Class OpenShopProblemReader
- java.lang.Object
-
- ai.libs.jaicore.problems.scheduling.openshop.OpenShopProblemReader
-
public class OpenShopProblemReader extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IJobSchedulingInputgetFromJobFileWithoutSetupTimesAndWithOneMachinePerWorkcenter(java.io.File jobFile, JobShopMetric metric)static IJobSchedulingInputmergeFromFiles(java.io.File jobFile, java.io.File setupTimesFile, java.io.File parallelMachinesFile, JobShopMetric metric)Reads the problem from a job file, a setup times file, and a file describing the number of parallel machines in each work center.
-
-
-
Method Detail
-
getFromJobFileWithoutSetupTimesAndWithOneMachinePerWorkcenter
public static IJobSchedulingInput getFromJobFileWithoutSetupTimesAndWithOneMachinePerWorkcenter(java.io.File jobFile, JobShopMetric metric) throws java.io.IOException
- Throws:
java.io.IOException
-
mergeFromFiles
public static IJobSchedulingInput mergeFromFiles(java.io.File jobFile, java.io.File setupTimesFile, java.io.File parallelMachinesFile, JobShopMetric metric) throws java.io.IOException
Reads the problem from a job file, a setup times file, and a file describing the number of parallel machines in each work center. The underlying assumption here is that all jobs have the same number of operations, one for each work center. Under this assumption, naturally each operation i of some job is assigned to the i-th work center by convention. In addition, we assume that each operation has a specific status required for the machines.- Parameters:
jobFile-setupTimesFile-parallelMachinesFile-- Returns:
- Throws:
java.io.IOException
-
-