solver
1.0
|
Mapping of continuous variables occurring in the energy optimization problem. More...
#include <VariableMappingLP.h>
Public Member Functions | |
VariableMappingLP (Robot *r) | |
Constructs the mapping of the continuous variables. More... | |
VariableMappingLP (const RoboticLine &l) | |
Constructs the mapping of the continuous variables. More... | |
uint32_t | numberOfVariables () const |
void | addActivities (const std::vector< Activity * > &activities, bool mandatory, bool mapW=true) |
It adds the mapping for extra activities. More... | |
Public Attributes | |
map1to1 | W |
Maps activity identification to the index of variable corresponding to the energy consumption of this activity. | |
map1to1 | s |
Maps activity identification to the index of variable corresponding to the start time of this activity. | |
map1to1 | d |
Maps activity identification to the index of variable corresponding to the duration of this activity. | |
std::vector< Variable > | variables |
Continuous variables of the problem with the well-specified domains. | |
std::vector< std::string > | varDesc |
Description of the continuous variables. | |
Mapping of continuous variables occurring in the energy optimization problem.
An instance of this class creates a mapping of the continuous variables occurring in the energy optimization problem.
Definition at line 42 of file VariableMappingLP.h.
VariableMappingLP::VariableMappingLP | ( | Robot * | r | ) |
Constructs the mapping of the continuous variables.
r | Only the mandatory activities of this robot are taken into account. |
Definition at line 25 of file VariableMappingLP.cpp.
VariableMappingLP::VariableMappingLP | ( | const RoboticLine & | l | ) |
Constructs the mapping of the continuous variables.
l | Only the mandatory activities of this robotic cell are taken into account. |
Definition at line 29 of file VariableMappingLP.cpp.
void VariableMappingLP::addActivities | ( | const std::vector< Activity * > & | activities, |
bool | mandatory, | ||
bool | mapW = true |
||
) |
It adds the mapping for extra activities.
activities | Additional (e.g. optional) activities. |
mandatory | True if only mandatory activities should be considered, otherwise false. |
mapW | Whether continuous variables W (activity energy consumption) should be also mapped. |
Definition at line 34 of file VariableMappingLP.cpp.