Class LinearObjectiveFunction


  • public final class LinearObjectiveFunction
    extends Object
    This class allows instantiating objects representing the objective function in linear programming problems expressed in matrix notation.
    Version:
    1.0
    Author:
    Stefano Scarioli
    See Also:
    SSC Software www.sscLab.org
    • Constructor Detail

      • LinearObjectiveFunction

        public LinearObjectiveFunction​(double[] C,
                                       GoalType type)
                                throws LPException
        Constructor
        Parameters:
        C - The vector of coefficients of the objective function
        type - The type of optimization (MAX or MIN) as an instance of the GoalType enumeration
        Throws:
        LPException - If the parameters are incongruent with the problem
    • Method Detail

      • getType

        public GoalType getType()
        Returns:
        The type of optimization (MAX or MIN))
      • getC

        public double[] getC()
        Returns:
        The vector of coefficients of the objective function