Package org.ssclab.pl.milp
Class LinearObjectiveFunction
- java.lang.Object
-
- org.ssclab.pl.milp.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 Summary
Constructors Constructor Description LinearObjectiveFunction(double[] C, GoalType type)
Constructor
-
-
-
Constructor Detail
-
LinearObjectiveFunction
public LinearObjectiveFunction(double[] C, GoalType type) throws LPException
Constructor- Parameters:
C
- The vector of coefficients of the objective functiontype
- 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
-
-