OptimizationData
public class SolutionCallback extends Object implements OptimizationData
Constructor | Description |
---|---|
SolutionCallback() |
Modifier and Type | Method | Description |
---|---|---|
PointValuePair |
getSolution() |
Retrieve the best solution found so far.
|
boolean |
isSolutionOptimal() |
Returns if the found solution is optimal.
|
public 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
otherwiseCopyright © 2016–2018 Hipparchus.org. All rights reserved.