Documentation of 'org.apache.commons.math3.optim.linear.SolutionCallback' Java class
SolutionCallback
org.apache.commons.math3.optim.linear

Class SolutionCallback

  • All Implemented Interfaces:
    OptimizationData


    public class SolutionCallback
    extends java.lang.Object
    implements OptimizationData
    A callback object that can be provided to a linear optimizer to keep track of the best solution found.
    Since:
    3.3
    • Constructor Detail

      • SolutionCallback

        public SolutionCallback()
    • Method Detail

      • getSolution

        public PointValuePair getSolution()
        Retrieve the best solution found so far.

        Note: the returned solution may not be optimal, e.g. in case the optimizer did reach the iteration limits.

        Returns:
        the best solution found so far by the optimizer, or null if no feasible solution could be found
      • isSolutionOptimal

        public boolean isSolutionOptimal()
        Returns if the found solution is optimal.
        Returns:
        true if the solution is optimal, false otherwise

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.