Class representing a variable in the LP. More...
#include <data_objects.hpp>
Public Member Functions | |
| Variable ()=default | |
| Construct a non-negative variable. | |
| Variable (double lb, double ub) | |
| Construct a new Variable object. More... | |
| double | upper () const |
| Retrieve the upper bound of this variable. | |
| double | lower () const |
| Retrieve the lower bound of this variable. | |
Class representing a variable in the LP.
This class represents a variable in the linear program, referred to as a column by some solvers. In essense, it encodes an element of the vector x in
Concretely, it simply keeps track of the lower and upper bounds of the variable.
|
inline |
Construct a new Variable object.
| lb | Lower bound of this variable. |
| ub | Upper bound of this variable. |
1.8.6