solver  1.0
Classes | Typedefs | Functions
VariableMappingLP.h File Reference

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

#include <map>
#include <string>
#include <vector>
#include "RoboticLine.h"
#include "ILPModel/ILPModel.h"
+ Include dependency graph for VariableMappingLP.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Typedefs

using map1to1 = std::map< uint32_t, uint32_t >
 Identification of the activity is mapped to the index of the variable.
 

Functions

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. More...
 

Detailed Description

Mapping of continuous variables of the energy optimization problem.

Author
Libor Bukata

Definition in file VariableMappingLP.h.

Function Documentation

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.

Parameters
solutionA solution of an LP/ILP problem.
mappingA mapping of some continuous variable.
Returns
Extracted values from the solution in the form of map, e.g. 'activity identification -> duration'.

Definition at line 62 of file VariableMappingLP.cpp.