|
idol
A C++ Framework for Optimization
|
#include <TempVar.h>

Public Member Functions | |
| TempVar ()=default | |
| TempVar (double t_lb, double t_ub, VarType t_type, double t_obj, LinExpr< Ctr > &&t_column) | |
| TempVar (TempVar &&t_src)=default | |
| TempVar (const TempVar &t_src) | |
| TempVar & | operator= (TempVar &&t_src)=default |
| TempVar & | operator= (const TempVar &t_src)=default |
| const LinExpr< Ctr > & | column () const |
| LinExpr< Ctr > & | column () |
| double | lb () const |
| void | set_lb (double t_lb) |
| double | ub () const |
| void | set_ub (double t_ub) |
| VarType | type () const |
| void | set_type (VarType t_type) |
| double | obj () const |
| void | set_obj (double t_obj) |
Temporary variable class.
This class represents a variable which has not been built yet by a Model. It contains all the arguments needed to create a real variable as instantiated by the Var class. It is made of a lower and an upper bound, a type (see VarType), and a column (see Column).
Example 1:
|
default |
Default constructor.
Creates a new temporary variable. The default lower and upper bounds are 0 and Inf and the type is Continuous.
|
default |
Copy constructor.
| t_src | The object to copy. |
|
inline |
|
inline |
Move-assignment operator.
| t_src | The object to move. |
Copy-assignment operator.
| t_src | The object to copy. |
|
inline |
|
inline |
|
inline |
|
inline |