81 void push_back(
const mc::FFVar var,
const std::string &str)
92 for (
size_t i = 0; i < vars.size(); i++) {
93 value.push_back(vars[i]);
101 void push_back(
const std::vector<mc::FFVar> &vars,
const std::string &baseName)
103 if (vars.size() == 1) {
104 value.push_back(vars[0]);
105 name.push_back(baseName);
107 else if (baseName ==
"") {
111 for (
size_t i = 0; i < vars.size(); i++) {
112 value.push_back(vars[i]);
113 name.push_back(baseName +
'_' + std::to_string(i + 1));
146 void set_name(
const std::string str,
const unsigned i)
157 value.push_back(var);
174 inline mc::FFVar &
at(
const unsigned int i)
void set_name(const std::string str, const unsigned i)
Function for seting name value at a given index.
Definition: evaluationContainer.h:146
void clear()
Clears all information, note that currently objective has not to be cleared, since it is overwritten.
Definition: evaluationContainer.h:204
void push_back(const mc::FFVar var)
Function for inserting a FFVar value at the end of the value vector.
Definition: evaluationContainer.h:72
modelFunction(const mc::FFVar var)
Constructor with FFVar value only.
Definition: evaluationContainer.h:41
modelFunction()
Definition: evaluationContainer.h:35
modelFunction eq
Definition: evaluationContainer.h:195
std::vector< OutputVariable > output
Definition: evaluationContainer.h:199
Struct for making work with the EvaluationContainer easier for the user and also to ensure backward c...
Definition: evaluationContainer.h:33
size_t size() const
Function returning the size of the value vector. Note that value and name vectors have the same size ...
Definition: evaluationContainer.h:121
modelFunction ineqSquash
Definition: evaluationContainer.h:198
Struct for storing the values returned by model evaluation at the given point "var".
Definition: evaluationContainer.h:192
void clear()
Constructor with FFVar value only.
Definition: evaluationContainer.h:63
void push_back(const std::vector< mc::FFVar > &vars)
Function for inserting a vector of FFVar at the end of the value vector.
Definition: evaluationContainer.h:90
void push_back(const std::vector< mc::FFVar > &vars, const std::string &baseName)
Function for inserting a vector of FFVar at the end of the value vector with names.
Definition: evaluationContainer.h:101
modelFunction objective
Definition: evaluationContainer.h:193
void push_back(const mc::FFVar var, const std::string &str)
Function for inserting a FFVar and a name at the end of the vectors.
Definition: evaluationContainer.h:81
mc::FFVar & operator[](const unsigned int i)
[] operator for easier access to value vector
Definition: evaluationContainer.h:166
modelFunction ineq
Definition: evaluationContainer.h:194
modelFunction ineqRelaxationOnly
Definition: evaluationContainer.h:196
namespace holding all essentials of MAiNGO
Definition: aleModel.h:31
void resize(const size_t size)
Function for resizing of the underlying vectors.
Definition: evaluationContainer.h:129
mc::FFVar & at(const unsigned int i)
Function for accessing elements.
Definition: evaluationContainer.h:174
void set_value(const mc::FFVar var, const unsigned i)
Function for seting FFVar value at a given index.
Definition: evaluationContainer.h:138
modelFunction(const mc::FFVar var, const std::string &str)
Constructor with FFVar value and a name.
Definition: evaluationContainer.h:52
std::vector< std::string > name
Definition: evaluationContainer.h:179
~modelFunction()
Definition: evaluationContainer.h:36
modelFunction & operator=(const mc::FFVar var)
= operator for backward compatibility
Definition: evaluationContainer.h:154
modelFunction eqRelaxationOnly
Definition: evaluationContainer.h:197
std::vector< mc::FFVar > value
Definition: evaluationContainer.h:180