public class SolutionCallback extends java.lang.Object implements OptimizationData
Modifier and Type | Field and Description |
---|---|
private SimplexTableau |
tableau
The SimplexTableau used by the SimplexSolver.
|
Constructor and Description |
---|
SolutionCallback() |
Modifier and Type | Method and Description |
---|---|
PointValuePair |
getSolution()
Retrieve the best solution found so far.
|
boolean |
isSolutionOptimal()
Returns if the found solution is optimal.
|
(package private) void |
setTableau(SimplexTableau tableau)
Set the simplex tableau used during the optimization once a feasible
solution has been found.
|
private SimplexTableau tableau
void setTableau(SimplexTableau tableau)
tableau
- the simplex tableau containing a feasible solutionpublic PointValuePair getSolution()
Note: the returned solution may not be optimal, e.g. in case the optimizer did reach the iteration limits.
null
if
no feasible solution could be foundpublic boolean isSolutionOptimal()
true
if the solution is optimal, false
otherwise