Package org.ddolib.examples.layered.msct
Class MSCTGenerator
java.lang.Object
org.ddolib.examples.layered.msct.MSCTGenerator
Contains methods to generates instance of the MSCT.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidEntry point of the program.static voidwriteInstance(String fname, int n, long seed) Generates and writes instances for the MSCT.
-
Method Details
-
writeInstance
Generates and writes instances for the MSCT.- Parameters:
fname- the file to save the instancen- the number of task in the problemseed- the seed of the random number generator- Throws:
IOException- if something goes wrong while writing the file
-
main
Entry point of the program. Generates a random MSCT instance with 12 tasks and writes it todata/MSCT/12_tasks.txt.- Parameters:
args- command-line arguments (not used)- Throws:
IOException- if something goes wrong while writing the file
-