java.lang.Object
org.ojalgo.optimisation.GenericSolver
org.ojalgo.optimisation.integer.IntegerSolver
- All Implemented Interfaces:
Optimisation,Optimisation.Solver
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.ojalgo.optimisation.GenericSolver
GenericSolver.Builder<B extends GenericSolver.Builder<B,S>, S extends GenericSolver> Nested classes/interfaces inherited from interface org.ojalgo.optimisation.Optimisation
Optimisation.Constraint, Optimisation.ConstraintType, Optimisation.Integration<M extends Optimisation.Model,S extends Optimisation.Solver>, Optimisation.Model, Optimisation.Objective, Optimisation.Options, Optimisation.ProblemStructure, Optimisation.Result, Optimisation.Sense, Optimisation.Solver, Optimisation.State -
Field Summary
FieldsFields inherited from class org.ojalgo.optimisation.GenericSolver
options -
Method Summary
Modifier and TypeMethodDescriptionprotected Optimisation.Resultprotected doubleevaluateFunction(Access1D<?> solution) protected MatrixStore<Double> protected Optimisation.Resultprotected Optimisation.Resultprotected booleanprotected voidlogProgress(int iterationsDone, String classSimpleName, CalendarDateDuration duration) static IntegerSolvermake(ExpressionsBasedModel model) protected voidmarkInteger(NodeKey key, Optimisation.Result result, ModelStrategy strategy) static IntegerSolvernewSolver(ExpressionsBasedModel model) solve(Optimisation.Result kickStarter) toString()protected booleanvalidate()Should validate the solver data/input/structue.Methods inherited from class org.ojalgo.optimisation.GenericSolver
countIterations, countTime, error, getClassSimpleName, getDuration, getState, incrementIterationsCount, isIterationAllowed, isLogDebug, isLogOff, isLogProgress, log, log, log, log, printf, resetIterationsCount, setState, setValidator, validate, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ojalgo.optimisation.Optimisation.Solver
dispose, solve
-
Field Details
-
INTEGRATION
-
-
Method Details
-
make
-
newSolver
-
solve
-
toString
-
buildResult
-
evaluateFunction
-
extractSolution
-
getBestEstimate
-
getBestResultSoFar
-
isIterationNecessary
protected boolean isIterationNecessary() -
logProgress
protected void logProgress(int iterationsDone, String classSimpleName, CalendarDateDuration duration) - Overrides:
logProgressin classGenericSolver
-
markInteger
-
validate
protected boolean validate()Should validate the solver data/input/structue. Even "expensive" validation can be performed as the method should only be called if Optimisation.Options.validate is set to true. In addition to returning true or false the implementation should set the state to either Optimisation.State.VALID or Optimisation.State.INVALID (or possibly Optimisation.State.FAILED). Typically the method should be called at the very beginning of the solve-method.- Returns:
- Is the solver instance valid?
-