}
try {
ResAllocModel model = loader.getModel();
GreedyAlgorithm a = null;
if (algType.equals("greedy1_delta1") ||
algType.equals("greedy1_delta2") ||
algType.equals("greedy1_delta3") ||
algType.equals("greedy4") ||
algType.equals("reschedule")) {
nativeSolve(inputDir);
log = propertiesData + "\n\n" + log;
return;
}
else if (algType.equals("greedy2")) {
a = new GreedyAlgorithm2(model);
}
else if (algType.equals("greedy3_delta1")) {
a = new GreedyAlgorithm3(model, 1);
}
else if (algType.equals("greedy3_delta2")) {
a = new GreedyAlgorithm3(model, 2);
}
else if (algType.equals("greedy3_delta3")) {
a = new GreedyAlgorithm3(model, 3);
}
if (a == null) {
log += "no such algorithm\n";
return;
}
a.solve();
log += a.getLog();
log = propertiesData + "\n\n" + log;
//model.computeC();
output = model.output();
model.outputTables(inputDir);
} catch (Exception e) {