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

Public Member Functions | |
| TempCtr ()=default | |
| TempCtr (LinExpr< Var > &&t_lhs, CtrType t_type, double t_rhs) | |
| TempCtr (const TempCtr &t_src)=default | |
| TempCtr (TempCtr &&t_src) noexcept=default | |
| TempCtr & | operator= (const TempCtr &t_src)=default |
| TempCtr & | operator= (TempCtr &&t_src) noexcept=default |
| LinExpr< Var > & | lhs () |
| const LinExpr< Var > & | lhs () const |
| void | set_lhs (LinExpr< Var > &&t_lhs) |
| CtrType | type () const |
| double | rhs () const |
| double & | rhs () |
| void | set_rhs (double t_rhs) |
| void | set_type (CtrType t_type) |
Temporary constraint class.
This class represents a constraint which has not been built yet by a Model. It contains all the arguments needed to create a real constraint as instantiated by the Ctr class. It is made of a row (see Row) and a type (see CtrType.rst.rst).
Typically, one creates a TempCtr by using the overloaded operators <=, >= and == between variable expressions (i.e., AffExpr) and constant terms (i.e., Constant).
Example 1:
Example 2 (equivalent to Example 1):
|
default |
Default constructor.
Creates an empty temporary constraint. The default type is LessOrEqual.
|
default |
Copy constructor.
| t_src | The object to copy. |
|
defaultnoexcept |
Move constructor.
| t_src | The object to move. |
Copy-assignment operator.
| t_src | The object to copy. |
Move-assignment operator.
| t_src | The object to move. |
|
inline |