Package org.opt4j.satdecoding
Class MixedSATManager
java.lang.Object
org.opt4j.satdecoding.MixedSATManager
- All Implemented Interfaces:
SATManager
The
MixedSATManager encodes the decision strategy into two vectors:
One binary vector for the phase and one double vector for the priority.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSATGenotype(List<Object> variables, Map<Object, Double> lowerBounds, Map<Object, Double> upperBounds, Map<Object, Double> priorities, Map<Object, Boolean> phases) Creates a newGenotypefrom the variables, priorities, and phases.decodeSATGenotype(List<Object> variables, Genotype genotype) Returns theSolver.
-
Constructor Details
-
MixedSATManager
Constructs aMixedSATManager.- Parameters:
solver- the solver
-
-
Method Details
-
createSATGenotype
public Genotype createSATGenotype(List<Object> variables, Map<Object, Double> lowerBounds, Map<Object, Double> upperBounds, Map<Object, Double> priorities, Map<Object, Boolean> phases) Description copied from interface:SATManagerCreates a newGenotypefrom the variables, priorities, and phases.- Specified by:
createSATGenotypein interfaceSATManager- Parameters:
variables- the variableslowerBounds- the lower bounds for the priority for the variablesupperBounds- the upper bounds for the priority for the variablespriorities- the prioritiesphases- the phases- Returns:
- the new genotype
-
decodeSATGenotype
Description copied from interface:SATManager- Specified by:
decodeSATGenotypein interfaceSATManager- Parameters:
variables- the variables of the problemgenotype- the genotype- Returns:
- the model
-
getSolver
Description copied from interface:SATManagerReturns theSolver.- Specified by:
getSolverin interfaceSATManager- Returns:
- the solver
-