Browse Source

removed solver and constraint names in the LpMinMaxSolver

tempestpy_adaptions
TimQu 7 years ago
parent
commit
8ff7cd1026
  1. 4
      src/storm/solver/LpMinMaxLinearEquationSolver.cpp

4
src/storm/solver/LpMinMaxLinearEquationSolver.cpp

@ -23,7 +23,7 @@ namespace storm {
bool LpMinMaxLinearEquationSolver<ValueType>::solveEquations(OptimizationDirection dir, std::vector<ValueType>& x, std::vector<ValueType> const& b) const { bool LpMinMaxLinearEquationSolver<ValueType>::solveEquations(OptimizationDirection dir, std::vector<ValueType>& x, std::vector<ValueType> const& b) const {
// Set up the LP solver // Set up the LP solver
std::unique_ptr<storm::solver::LpSolver> solver = lpSolverFactory->create("MinMaxLinearEquationSolver");
std::unique_ptr<storm::solver::LpSolver> solver = lpSolverFactory->create("");
solver->setOptimizationDirection(invert(dir)); solver->setOptimizationDirection(invert(dir));
// Create a variable for each row group // Create a variable for each row group
@ -58,7 +58,7 @@ namespace storm {
} else { } else {
rowConstraint = variables[rowGroup].getExpression() >= rowConstraint; rowConstraint = variables[rowGroup].getExpression() >= rowConstraint;
} }
solver->addConstraint("row" + std::to_string(row), rowConstraint);
solver->addConstraint("", rowConstraint);
} }
} }

Loading…
Cancel
Save