Module org.cicirello.chips_n_salsa
Class MinimizeMaximumFlowtime
java.lang.Object
org.cicirello.search.problems.scheduling.MinimizeMaximumFlowtime
- All Implemented Interfaces:
IntegerCostOptimizationProblem<Permutation>
,Problem<Permutation>
,SingleMachineSchedulingProblem
Implements the scheduling cost function known as maximum flowtime (which we want to minimize).
The flowtime F[j] of job j is: F[j] = C[j] - r[j], where C[j] is the time it is completed by the
machine, and r[j] is its release time. The maximum flowtime cost function is equal to:
maxj { F[j] }.
-
Constructor Summary
ConstructorDescriptionMinimizeMaximumFlowtime
(SingleMachineSchedulingProblemData instanceData) Constructs a single machine scheduling problem for minimizing maximum flowtime. -
Method Summary
Modifier and TypeMethodDescriptionint
cost
(Permutation candidate) Computes the cost of a candidate solution to the problem instance.Gets an object that encapsulates the data describing the scheduling problem instance, such as number of jobs, and the characteristics of the jobs, such as processing times, setup times, due dates, weights, etc.int
minCost()
A lower bound on the minimum theoretical cost across all possible solutions to the problem instance, where lower cost implies better solution.int
value
(Permutation candidate) Computes the value of the candidate solution within the usual constraints and interpretation of the problem.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.cicirello.search.problems.IntegerCostOptimizationProblem
costAsDouble, getSolutionCostPair, isMinCost
-
Constructor Details
-
MinimizeMaximumFlowtime
Constructs a single machine scheduling problem for minimizing maximum flowtime.- Parameters:
instanceData
- An encapsulation of the job characteristics, such as processing times, etc.
-
-
Method Details
-
getInstanceData
Description copied from interface:SingleMachineSchedulingProblem
Gets an object that encapsulates the data describing the scheduling problem instance, such as number of jobs, and the characteristics of the jobs, such as processing times, setup times, due dates, weights, etc.- Specified by:
getInstanceData
in interfaceSingleMachineSchedulingProblem
- Returns:
- an encapsulation of the data describing the scheduling problem instance
-
cost
Description copied from interface:IntegerCostOptimizationProblem
Computes the cost of a candidate solution to the problem instance. The lower the cost, the more optimal the candidate solution.- Specified by:
cost
in interfaceIntegerCostOptimizationProblem<Permutation>
- Parameters:
candidate
- The candidate solution to evaluate.- Returns:
- The cost of the candidate solution. Lower cost means better solution.
-
value
Description copied from interface:IntegerCostOptimizationProblem
Computes the value of the candidate solution within the usual constraints and interpretation of the problem.- Specified by:
value
in interfaceIntegerCostOptimizationProblem<Permutation>
- Parameters:
candidate
- The candidate solution to evaluate.- Returns:
- The actual optimization value of the candidate solution.
-
minCost
public int minCost()Description copied from interface:IntegerCostOptimizationProblem
A lower bound on the minimum theoretical cost across all possible solutions to the problem instance, where lower cost implies better solution. The default implementation returns Integer.MIN_VALUE.- Specified by:
minCost
in interfaceIntegerCostOptimizationProblem<Permutation>
- Returns:
- A lower bound on the minimum theoretical cost of the problem instance.
-