public static final class Optimisation.Options extends Object implements Optimisation, Cloneable
Optimisation.Constraint, Optimisation.Integration<M extends Optimisation.Model,S extends Optimisation.Solver>, Optimisation.Model, Optimisation.Objective, Optimisation.Options, Optimisation.Result, Optimisation.Solver, Optimisation.State
Modifier and Type | Field and Description |
---|---|
NumberContext |
feasibility
Used to determine/validate feasibility.
|
int |
iterations_abort
The maximmum number of iterations allowed for the solve() command.
|
int |
iterations_suffice
Calculations will be terminated after this number of iterations if a feasible solution has been
found.
|
BasicLogger.Printer |
logger_appender
If this is null nothing is printed, if it is not null then progress/debug messages are printed to
that BasicLogger.Printer.
|
boolean |
logger_detailed
Detailed (debug) logging or not.
|
Class<? extends Optimisation.Solver> |
logger_solver
Which Optimisation.Solver to debug.
|
double |
mip_gap
The (relative) MIP gap is the difference between the best integer solution found so far and a
node's non-integer solution, relative to the optimal value (approximated by the currently best
integer solution).
|
NumberContext |
print
For display only!
|
NumberContext |
solution
Used when copying the solver's solution back to the model (converting from double to BigDecimal).
|
long |
time_abort
The maximmum number of millis allowed for the solve() command.
|
long |
time_suffice
Calculations will be terminated after this amount of time if a feasible solution has been found.
|
boolean |
validate
If true models and solvers will validate data at various points.
|
Constructor and Description |
---|
Options() |
Modifier and Type | Method and Description |
---|---|
protected Object |
clone()
Deprecated.
Since v45 Don't copy or clone these, create them the waynyou need them.
|
Optimisation.Options |
copy()
Deprecated.
Since v45 Wont be Cloneable either
|
void |
debug(Class<? extends Optimisation.Solver> solver)
Will configure detailed dubug logging and validation
|
<T> Optional<T> |
getConfigurator(Class<T> type) |
void |
progress(Class<? extends Optimisation.Solver> solver)
Will configure high level (low volume) progress logging
|
void |
setConfigurator(Object configurator) |
public NumberContext feasibility
public int iterations_abort
public int iterations_suffice
public BasicLogger.Printer logger_appender
public boolean logger_detailed
public Class<? extends Optimisation.Solver> logger_solver
logger_appender
has been set.public double mip_gap
public NumberContext print
public NumberContext solution
public long time_abort
public long time_suffice
public boolean validate
@Deprecated public Optimisation.Options copy()
public void debug(Class<? extends Optimisation.Solver> solver)
solver
- public void progress(Class<? extends Optimisation.Solver> solver)
solver
- public void setConfigurator(Object configurator)
@Deprecated protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2018 Optimatika. All rights reserved.