Package jline.api.mapqn
Class Mapqn_bnd_lr
java.lang.Object
jline.api.mapqn.Mapqn_bnd_lr
Implementation of bnd_linearreduction_new.mod linear program.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Mapqn_solutionsolve(LinearReductionParameters params, int objectiveQueue, int objectivePhase) Create and solve the linear program for bnd_linearreduction_new model.static Mapqn_solutionsolve(LinearReductionParameters params, int objectiveQueue, int objectivePhase, String sense) As above, optimizing in the requested direction.
-
Method Details
-
solve
public static Mapqn_solution solve(LinearReductionParameters params, int objectiveQueue, int objectivePhase) Create and solve the linear program for bnd_linearreduction_new model.- Parameters:
params- Model parametersobjectiveQueue- Queue index to maximize utilization (1-based)objectivePhase- Phase index to maximize utilization (1-based)- Returns:
- Solution containing the optimal value and variable values
-
solve
public static Mapqn_solution solve(LinearReductionParameters params, int objectiveQueue, int objectivePhase, String sense) As above, optimizing in the requested direction. The LP is a relaxation containing the exact solution, so "max" is a valid upper bound on the utilization and "min" the matching lower bound; reporting only one of the two leaves the interval half open.- Parameters:
sense- "min" or "max"
-