Package jline.opt.objectives
Class MinimizeCost
java.lang.Object
jline.opt.objectives.Objective
jline.opt.objectives.MinimizeCost
Minimize infrastructure cost subject to service-level constraints. Cost is a
weighted sum of server costs (
name_servers), rate costs (variable
names containing the station name and "rate"), and replica costs
(name_replicas). Mirrors native-Python MinimizeCost.-
Field Summary
Fields inherited from class jline.opt.objectives.Objective
constraints -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleevaluate(EvaluationResult result, Map<String, Object> variableValues) The scalar to minimize (before constraint penalties).booleanstatic MinimizeCostRate-cost-only convenience constructor.static MinimizeCostserverCost(Map<Station, Double> serverCost, List<Constraint> subjectTo) Server-cost-only convenience constructor.Methods inherited from class jline.opt.objectives.Objective
evaluateWithPenalty, getConstraints
-
Constructor Details
-
MinimizeCost
-
-
Method Details
-
serverCost
Server-cost-only convenience constructor. -
rateCost
Rate-cost-only convenience constructor. -
isMinimization
public boolean isMinimization()- Specified by:
isMinimizationin classObjective
-
evaluate
Description copied from class:ObjectiveThe scalar to minimize (before constraint penalties).
-