idol
A C++ Framework for Optimization
|
#include <Param.h>
Public Member Functions | |
Param (const Var &t_var) | |
Param (const Ctr &t_ctr) | |
Param (const Param &t_param)=default | |
Param (Param &&t_param) noexcept=default | |
Param & | operator= (const Param &t_param)=default |
Param & | operator= (Param &&t_param) noexcept=default |
template<class T > | |
bool | is () const |
template<class T > | |
T | as () const |
unsigned int | id () const |
const std::string & | name () const |
Parameter modeling-old object.
This class is used to model parameters for optimization models. More precisely, it represents a variable, or a constraint, from a model A
which is considered constant in another model B
.
Parameters are created using the Param
constructors or by prepending a variable, or a constraint, by the !
symbol.
Example:
|
inlineexplicit |
|
inlineexplicit |
|
default |
Copy constructor.
t_param | The parameter to copy. |
|
defaultnoexcept |
Move constructor.
t_param | The parameter to move. |
|
inline |
Returns the optimization object behind the parameter.
Example:
T | The type of the underlying object. |
|
inline |
|
inline |
|
inline |
Copy-assignment operator.
t_param | The parameter to copy. |