Interface Solution


  • public interface Solution
    This interface allows accessing the values taken by the n variables of the optimal solution.
    Version:
    1.0
    Author:
    Stefano Scarioli
    See Also:
    SSC Software www.sscLab.org
    • Method Detail

      • getVariables

        Variable[] getVariables()
        Retrieves an array of Variable objects from which to obtain the characteristics and the optimal value assumed by each variable.
        Returns:
        An array of Variable objects from which to obtain the characteristics and the optimal value assumed by each variable.
      • getOptimumValue

        double getOptimumValue()
        Retrieves the optimal value assumed by the objective function.
        Returns:
        The optimal value assumed by the objective function.
      • getTypeSolution

        SolutionType getTypeSolution()
        Retrieves the type of solution obtained.
        Returns:
        The type of solution obtained.
      • getSolutionConstraint

        SolutionConstraint[] getSolutionConstraint()
        Retrieves an array of SolutionConstraint objects from which to obtain the value that each constraint assumes by substituting the optimal solution for the unknown variables.
        Returns:
        An array of SolutionConstraint objects from which to obtain the value that each constraint assumes by substituting the optimal solution for the unknown variables.
      • getValue

        double getValue()
        Retrieves the value assumed by the objective function.
        Returns:
        The value assumed by the objective function.
      • getValuesSolution

        double[] getValuesSolution()
        Retrieves the values of the variables in an array.
        Returns:
        The values of the variables in an array.