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 OpenShopProblemgetFromJobFileWithoutSetupTimesAndWithOneMachinePerWorkcenter(java.io.File jobFile, OpenShopMetric metric)static OpenShopProblemmergeFromFiles(java.io.File jobFile, java.io.File setupTimesFile, java.io.File parallelMachinesFile, OpenShopMetric 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 OpenShopProblem getFromJobFileWithoutSetupTimesAndWithOneMachinePerWorkcenter(java.io.File jobFile, OpenShopMetric metric) throws java.io.IOException
- Throws:
java.io.IOException
-
mergeFromFiles
public static OpenShopProblem mergeFromFiles(java.io.File jobFile, java.io.File setupTimesFile, java.io.File parallelMachinesFile, OpenShopMetric 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
-
-