retouche page titre rapport

This commit is contained in:
François Pelletier 2018-02-03 10:41:42 -05:00
parent 568f35d8e5
commit 9798a6f3b8
4 changed files with 14 additions and 11 deletions

View file

@ -1,11 +1,14 @@
import java.nio.file.*;
import java.io.IOException;
import java.util.*;
import org.chocosolver.solver.Model;
public class ProductionHoraire {
public static void main(String[] args) {
// lecture des lignes du fichier d'instance
String instancePath = args[0];
// lecture des lignes du fichier d'instance
String[] variablesInstance = null;
String[] strLigne2 = null;
String[] strLigne3 = null;
@ -21,22 +24,21 @@ public class ProductionHoraire {
catch (Exception e){
System.err.println("Caught Exception: " + e.getMessage());
}
// traitement de la 1re ligne
// traitement de la 1re ligne
Integer N = Integer.valueOf(variablesInstance[0]);
Integer MIN_H = Integer.valueOf(variablesInstance[1]);
Integer MAX_H = Integer.valueOf(variablesInstance[2]);
Integer MIN_PERIODE = Integer.valueOf(variablesInstance[3]);
// traitement de la 2e ligne
List<Integer> nbEmployesRequis = new ArrayList<>();
for (String s: strLigne2) {
Integer i = Integer.valueOf(s);
nbEmployesRequis.add(i);
}
// traitement de la 3e ligne
List<Integer> nbEmployesSouhaite = new ArrayList<>();
for (String s: strLigne3) {
Integer i = Integer.valueOf(s);
nbEmployesRequis.add(i);
@ -51,5 +53,10 @@ public class ProductionHoraire {
System.out.println("nbEmployesRequis="+nbEmployesRequis.toString());
System.out.println("nbEmployesSouhaite="+nbEmployesRequis.toString());
System.out.println("### Fin Validation Lecture Instance ###");
Model model = new Model("Production Horaire");
}
}