![]() |
MAiNGO
|
This class provides the interface for a program composed of ALE expressions. More...
#include <aleModel.h>
Public Member Functions | |
EvaluationContainer | evaluate (const std::vector< Var > &optVars) |
Main function used to evaluate the model and construct a directed acyclic graph. More... | |
AleModel (Program prog, ale::symbol_table &symbols) | |
Constructor taking a ALE-based Program and an ALE symbol_table. More... | |
std::vector< OptimizationVariable > | get_variables () |
Function for getting optimization variables data. More... | |
const std::unordered_map< std::string, int > & | get_positions () |
Function for getting optimization variable position data. More... | |
std::vector< double > | get_initial_point () |
Function for getting initial point data. More... | |
void | make_variables () |
Function for populating _variables, _initials, and _positions. More... | |
![]() | |
virtual | ~MAiNGOmodel () |
Destructor. More... | |
Private Attributes | |
Program | _prog |
ale::symbol_table & | _symbols |
std::vector< OptimizationVariable > | _variables |
std::vector< double > | _initials |
std::unordered_map< std::string, int > | _positions |
Additional Inherited Members | |
![]() | |
using | Var = mc::FFVar |
This class provides the interface for a program composed of ALE expressions.
|
inline |
|
virtual |
Main function used to evaluate the model and construct a directed acyclic graph.
[in] | optVars | is the optimization variables vector |
Implements maingo::MAiNGOmodel.
|
virtual |
Function for getting initial point data.
Reimplemented from maingo::MAiNGOmodel.
const std::unordered_map< std::string, int > & AleModel::get_positions | ( | ) |
Function for getting optimization variable position data.
|
virtual |
Function for getting optimization variables data.
Implements maingo::MAiNGOmodel.
void AleModel::make_variables | ( | ) |
Function for populating _variables, _initials, and _positions.
|
private |
Initial point for _variables
|
private |
Association of ALE symbol names to positions in _variables
|
private |
Container for ALE expressions
|
private |
Container for ALE symbols
|
private |
OptimiztionVariables used in the model