public class SolutionCallback extends Object implements OptimizationData
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.
|
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 © 2003–2016 The Apache Software Foundation. All rights reserved.