|
| SOSCtr (Env &t_env, bool t_is_sos1, std::vector< Var > t_vars, std::vector< double > t_weights, std::string t_name="") |
|
unsigned int | index (const Model &t_index) const |
|
const std::string & | name () const |
|
unsigned int | id () const |
|
bool | is_in (const Model &t_model) const |
|
const ValueT & | get (const Annotation< ValueT > &t_annotation) const |
|
void | set (const Annotation< ValueT > &t_annotation, ArgsT &&...t_args) const |
|
|
static SOSCtr | SOS1 (Env &t_env, std::vector< Var > t_vars, std::vector< double > t_weights, std::string t_name="") |
|
static SOSCtr | SOS2 (Env &t_env, std::vector< Var > t_vars, std::vector< double > t_weights, std::string t_name="") |
|
Definition at line 27 of file SOSCtr.h.
◆ create_version()
◆ get()
Returns the value of the given annotation t_annotation
associated to the object.
If no value is found, the default value of the annotation is returned. If no default value was set, an exception is thrown.
- Template Parameters
-
ValueT | The value type of the annotation. |
- Parameters
-
t_annotation | The annotation. |
- Returns
- The value of the annotation.
Definition at line 78 of file Object.h.
◆ id()
Returns the id of the optimization object.
- Returns
- The id of the optimization object.
Definition at line 60 of file Object.h.
◆ is_in()
Returns true if the optimization object is part of the model t_model
, false otherwise.
- Parameters
-
- Returns
- True if the optimization object is part of the model
t_model
, false otherwise.
Definition at line 67 of file Object.h.
◆ name()
Returns the name of the optimization object.
- Returns
- The name of the optimization object.
Definition at line 54 of file Object.h.
◆ remove_version()
◆ set()
Sets the value of the given annotation t_annotation
associated to the object.
- Template Parameters
-
ValueT | The value type of the annotation. |
ArgsT | The parameter pack types for constructing the value of the annotation. |
- Parameters
-
t_annotation | The annotation. |
t_args | The parameter pack arguments used to construct "in place" the value of the annotation. |
Definition at line 96 of file Object.h.
◆ SOS1()
static SOSCtr idol::SOSCtr::SOS1 |
( |
Env & |
t_env, |
|
|
std::vector< Var > |
t_vars, |
|
|
std::vector< double > |
t_weights, |
|
|
std::string |
t_name = "" |
|
) |
| |
|
inlinestatic |
◆ SOS2()
static SOSCtr idol::SOSCtr::SOS2 |
( |
Env & |
t_env, |
|
|
std::vector< Var > |
t_vars, |
|
|
std::vector< double > |
t_weights, |
|
|
std::string |
t_name = "" |
|
) |
| |
|
inlinestatic |
◆ versions() [1/2]
◆ versions() [2/2]
◆ impl::Env