DataProperties properties = new DataProperties();
properties.setProperty("General.Seed", "123321");
UniTimeSimpleModel model = createModel();
Solver solver = new Solver(properties);
condition.init();
solver.setTerminalCondition(new TerminationCondition() {
@Override
public boolean canContinue(Solution sltn) {
return condition.canContinue() && !statusBar.getMyProgressMonitor().isCanceled();
}