public interface OptEnvironment extends BasicProverEnvironment<Void>, AutoCloseable
| Modifier and Type | Interface and Description |
|---|---|
static class |
OptEnvironment.OptStatus
Status of the optimization problem.
|
| Modifier and Type | Method and Description |
|---|---|
OptEnvironment.OptStatus |
check()
Optimize the objective function subject to the previously
imposed constraints.
|
String |
dump() |
Optional<Rational> |
lower(int handle,
Rational epsilon) |
int |
maximize(Formula objective)
Add the maximization
objective. |
int |
minimize(Formula objective)
Add minimization
objective. |
Optional<Rational> |
upper(int handle,
Rational epsilon) |
addConstraint, close, evaluate, getModel, isUnsat, pop, push, pushint maximize(Formula objective)
objective.
Note: push/pop may be used for switching objectivesint minimize(Formula objective)
objective.
Note: push/pop may be used for switching objectivesOptEnvironment.OptStatus check() throws InterruptedException, SolverException
InterruptedExceptionSolverExceptionOptional<Rational> upper(int handle, Rational epsilon)
epsilon - Value to substitute for the epsilon.Optional<Rational> lower(int handle, Rational epsilon)
epsilon - Value to substitute for the epsilon.String dump()