solver  1.0
Public Member Functions | Public Attributes | List of all members
VariableMappingLP Struct Reference

Mapping of continuous variables occurring in the energy optimization problem. More...

#include <VariableMappingLP.h>

+ Inheritance diagram for VariableMappingLP:
+ Collaboration diagram for VariableMappingLP:

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< Variablevariables
 Continuous variables of the problem with the well-specified domains.
 
std::vector< std::string > varDesc
 Description of the continuous variables.
 

Detailed Description

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.

See also
mathematical formulation

Definition at line 42 of file VariableMappingLP.h.

Constructor & Destructor Documentation

VariableMappingLP::VariableMappingLP ( Robot r)

Constructs the mapping of the continuous variables.

Parameters
rOnly 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.

Parameters
lOnly the mandatory activities of this robotic cell are taken into account.

Definition at line 29 of file VariableMappingLP.cpp.

Member Function Documentation

void VariableMappingLP::addActivities ( const std::vector< Activity * > &  activities,
bool  mandatory,
bool  mapW = true 
)

It adds the mapping for extra activities.

Parameters
activitiesAdditional (e.g. optional) activities.
mandatoryTrue if only mandatory activities should be considered, otherwise false.
mapWWhether continuous variables W (activity energy consumption) should be also mapped.
Note
This method is usually called after the constructor to add optional activities.

Definition at line 34 of file VariableMappingLP.cpp.


The documentation for this struct was generated from the following files: