solver
1.0
|
Mapping of integer, to be more precise binary, variables of the energy optimization problem. More...
Go to the source code of this file.
Classes | |
struct | VariableMappingILP |
Mapping of continuous and binary variables. More... | |
Typedefs | |
using | map2to1 = std::map< std::pair< uint32_t, uint32_t >, uint32_t > |
Mapping of variables indexed by two numbers. | |
using | map4toN = std::map< std::pair< uint64_t, uint64_t >, std::vector< uint32_t > > |
Mapping of variables indexed by four numbers. | |
Functions | |
std::map< uint32_t, uint32_t > | inverseMapping (const std::vector< double > &solution, const map2to1 &mapping) |
It extracts the variables set to true and returns the ,,selected" indices. More... | |
Mapping of integer, to be more precise binary, variables of the energy optimization problem.
Definition in file VariableMappingILP.h.
std::map<uint32_t, uint32_t> inverseMapping | ( | const std::vector< double > & | solution, |
const map2to1 & | mapping | ||
) |
It extracts the variables set to true and returns the ,,selected" indices.
solution | A solution of the ILP problem. |
mapping | A mapping of some binary variables. |