![]() |
MAiNGO
|
Struct for storing additional output variables. More...
#include <outputVariable.h>
Public Member Functions | |
OutputVariable (const std::string descIn, const mc::FFVar valueIn) | |
Constructor for use in the evaluate function. More... | |
OutputVariable (const mc::FFVar valueIn, const std::string descIn) | |
Constructor for use in the evaluate function. More... | |
OutputVariable (const std::tuple< mc::FFVar, std::string > inTuple) | |
Constructor for use in the evaluate function. More... | |
OutputVariable (const std::tuple< std::string, mc::FFVar > inTuple) | |
Constructor for use in the evaluate function. More... | |
~OutputVariable ()=default | |
Destructor. More... | |
OutputVariable (const OutputVariable &variableIn)=default | |
Copy constructor. More... | |
OutputVariable (OutputVariable &&variableIn)=default | |
Move constructor. More... | |
OutputVariable & | operator= (const OutputVariable &variableIn)=default |
Copy assignment operator. More... | |
OutputVariable & | operator= (OutputVariable &&variableIn)=default |
Move assignment operator. More... | |
bool | operator== (const OutputVariable &other) const |
Equality comparison operator. More... | |
Public Attributes | |
mc::FFVar | value = {} |
std::string | description = {} |
Struct for storing additional output variables.
Since the model evaluation can contain several intermediate variables that appear neither as optimization variables nor as constraints directly, but the value of which might be interesting at the optimal solution point, a vector of these structs can be used in the EvaluationContainer to give such additional output after the problem is solved.
|
inline |
Constructor for use in the evaluate function.
[in] | descIn | is a string describing the variable |
[in] | valueIn | is the value of the variable at the current point |
|
inline |
Constructor for use in the evaluate function.
[in] | valueIn | is the value of the variable at the current point |
[in] | descIn | is a string describing the variable |
|
inline |
Constructor for use in the evaluate function.
[in] | inTuple | is a tuple containing the value of the variable at the current point and a descriptive string |
|
inline |
Constructor for use in the evaluate function.
[in] | inTuple | is a tuple containing the value of the variable at the current point and a descriptive string |
|
default |
Destructor.
|
default |
Copy constructor.
[in] | variableIn | is the output variable to be copied |
|
default |
Move constructor.
[in] | variableIn | is the output variable to be moved |
|
default |
Copy assignment operator.
[in] | variableIn | is the output variable to be copied |
|
default |
Move assignment operator.
[in] | variableIn | is the output variable to be moved |
|
inline |
Equality comparison operator.
std::string maingo::OutputVariable::description = {} |
Description, e.g. name of variable
mc::FFVar maingo::OutputVariable::value = {} |
Variable object