You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
822 B
23 lines
822 B
|
|
#include "LpSolver.h"
|
|
|
|
#include "src/storage/expressions/Expression.h"
|
|
#include "src/storage/expressions/ExpressionManager.h"
|
|
|
|
|
|
|
|
namespace storm {
|
|
namespace solver {
|
|
LpSolver::LpSolver() : manager(new storm::expressions::ExpressionManager()), currentModelHasBeenOptimized(false), optimizationDirection(OptimizationDirection::Minimize) {
|
|
// Intentionally left empty.
|
|
}
|
|
|
|
LpSolver::LpSolver(OptimizationDirection const& optimizationDir) : manager(new storm::expressions::ExpressionManager()), currentModelHasBeenOptimized(false), optimizationDirection(optimizationDir) {
|
|
// Intentionally left empty.
|
|
}
|
|
|
|
storm::expressions::Expression LpSolver::getConstant(double value) const {
|
|
return manager->rational(value);
|
|
}
|
|
}
|
|
}
|