Class MSCTGenerator

java.lang.Object
org.ddolib.examples.layered.msct.MSCTGenerator

public class MSCTGenerator extends Object
Contains methods to generates instance of the MSCT.
  • Method Details

    • writeInstance

      public static void writeInstance(String fname, int n, long seed) throws IOException
      Generates and writes instances for the MSCT.
      Parameters:
      fname - the file to save the instance
      n - the number of task in the problem
      seed - the seed of the random number generator
      Throws:
      IOException - if something goes wrong while writing the file
    • main

      public static void main(String[] args) throws IOException
      Entry point of the program. Generates a random MSCT instance with 12 tasks and writes it to data/MSCT/12_tasks.txt.
      Parameters:
      args - command-line arguments (not used)
      Throws:
      IOException - if something goes wrong while writing the file