Class MSCTFastLowerBound

java.lang.Object
org.ddolib.examples.layered.msct.MSCTFastLowerBound
All Implemented Interfaces:
FastLowerBound<MSCTState>

public class MSCTFastLowerBound extends Object implements FastLowerBound<MSCTState>
Provides a fast lower bound computation for the Maximum Sum of Compatible Tasks (MSCT) problem.

The MSCTFastLowerBound class estimates a lower bound on the total completion time (or cost) that can be achieved from a given partial state of the problem. This lower bound is used within search-based optimization algorithms (such as A*, ACS, or DDO) to prune suboptimal branches and guide the search toward promising solutions.

Computation logic: a job v scheduled from the current state cannot complete before max(currentTime, release[v]) + processing[v]. Exactly k more jobs are scheduled, k being the number of remaining variables, so the bound is the sum of the k smallest of these completion times.

Note that on a merged (relaxed) state, the set of remaining jobs may contain more than k jobs: summing the completion times of all of them would overestimate the remaining cost.

Example:

 MSCTProblem problem = new MSCTProblem("data/MSCT/msct1.txt");
 MSCTState state = new MSCTState(...);
 MSCTFastLowerBound lb = new MSCTFastLowerBound(problem);

 double lowerBound = lb.fastLowerBound(state, Set.of(0, 1, 2));
 System.out.println("Estimated lower bound: " + lowerBound);
 
  • Constructor Details

    • MSCTFastLowerBound

      public MSCTFastLowerBound(MSCTProblem problem)
      Constructs a lower bound evaluator for a specific instance of the MSCT problem.
      Parameters:
      problem - the MSCTProblem instance containing the task data (processing times, release dates, etc.).
  • Method Details

    • fastLowerBound

      public double fastLowerBound(MSCTState state, Set<Integer> variables)
      Computes a fast lower bound on the total completion time (or cost) from the given state and remaining variables.

      This method evaluates how good a partial solution can potentially become by estimating the minimal additional cost required to schedule the remaining tasks.

      Specified by:
      fastLowerBound in interface FastLowerBound<MSCTState>
      Parameters:
      state - the current state of the problem, representing already scheduled tasks
      variables - the set of remaining variables (tasks) to be scheduled
      Returns:
      an estimated lower bound on the minimal total cost achievable from the current state