#include <idol/mixed-integer/modeling/parameters/Param.h>
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:
Public Methods | |
| 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 |
|
inlineexplicit |
Constructor.
Creates a new parameter associated to a variable.
| t_var | The variable. |
Definition at line 44 of file Param.h.
Referenced by operator=(), operator=(), Param(), and Param().
|
inlineexplicit |
|
default |
|
defaultnoexcept |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscard |