18 #ifndef HLIDAC_PES_VARIABLE_MAPPING_LP_H
19 #define HLIDAC_PES_VARIABLE_MAPPING_LP_H
34 using map1to1 = std::map<uint32_t, uint32_t>;
54 uint32_t numberOfVariables()
const {
return W.size()+
s.size()+
d.size(); }
62 void addActivities(
const std::vector<Activity*>& activities,
bool mandatory,
bool mapW =
true);
82 std::map<uint32_t, double>
inverseMapping(
const std::vector<double>& solution,
const map1to1& mapping);
Instance of this class includes all the data structures and methods related to a robot.
void addActivities(const std::vector< Activity * > &activities, bool mandatory, bool mapW=true)
It adds the mapping for extra activities.
std::vector< Variable > variables
Continuous variables of the problem with the well-specified domains.
Mapping of continuous variables occurring in the energy optimization problem.
std::vector< std::string > varDesc
Description of the continuous variables.
map1to1 s
Maps activity identification to the index of variable corresponding to the start time of this activit...
General model for Integer Linear Programming problem.
VariableMappingLP(Robot *r)
Constructs the mapping of the continuous variables.
std::map< uint32_t, uint32_t > map1to1
Identification of the activity is mapped to the index of the variable.
map1to1 W
Maps activity identification to the index of variable corresponding to the energy consumption of this...
map1to1 d
Maps activity identification to the index of variable corresponding to the duration of this activity...
std::map< uint32_t, double > inverseMapping(const std::vector< double > &solution, const map1to1 &mapping)
It extracts the values of some continuous variables from the solution.
The robotic cell corresponds to an instance of this class.
The file contains various classes devoted to abstract representation of the robotic cell...