Universe::IOptimizationSolver class

The IUniverseSolver defines the contract for optimization solvers.

Derived classes

class JavaOptimizationSolver virtual

Constructors, destructors, conversion operators

~IOptimizationSolver() defaulted virtual

Public functions

auto isMinimization() -> bool pure virtual
void setBounds(const Universe::BigInteger& lb, const Universe::BigInteger& ub) pure virtual
void setLowerBound(const Universe::BigInteger& lb) pure virtual
auto getLowerBound() -> Universe::BigInteger pure virtual
void setUpperBound(const Universe::BigInteger& ub) pure virtual
auto getUpperBound() -> Universe::BigInteger pure virtual
auto getCurrentBound() -> Universe::BigInteger pure virtual

Function documentation

Universe::IOptimizationSolver::~IOptimizationSolver() virtual defaulted

Destroys this IOptimizationSolver.

bool Universe::IOptimizationSolver::isMinimization() pure virtual

Returns Whether the underlying problem is a minimization problem.

Checks whether the optimization problem is a minimization problem.

void Universe::IOptimizationSolver::setBounds(const Universe::BigInteger& lb, const Universe::BigInteger& ub) pure virtual

Parameters
lb The lower bound to set.
ub The upper bound to set.

Sets the bounds for the optimization problem to solve.

void Universe::IOptimizationSolver::setLowerBound(const Universe::BigInteger& lb) pure virtual

Parameters
lb The lower bound to set.

Sets the lower bound for the optimization problem to solve.

Universe::BigInteger Universe::IOptimizationSolver::getLowerBound() pure virtual

Returns The current lower bound.

Gives the current (best) lower bound of the underlying optimization problem.

void Universe::IOptimizationSolver::setUpperBound(const Universe::BigInteger& ub) pure virtual

Parameters
ub The upper bound to set.

Sets the upper bound for the optimization problem to solve.

Universe::BigInteger Universe::IOptimizationSolver::getUpperBound() pure virtual

Returns The current upper bound.

Gives the current (best) upper bound of the underlying optimization problem.

Universe::BigInteger Universe::IOptimizationSolver::getCurrentBound() pure virtual

Returns The current bound.

Gives the current (best) bound that have been found by this solver. It is the current lower or upper bound, depending on whether the problem is a minimization or maximization problem.