public void solve() {
int mode = 2;
switch (mode){
case 0:// to check
solver.post(ICF.arithm(minLoad,"=",17));
solver.set(new AllSolutionsRecorder(solver));
solver.findAllSolutions();
break;
case 1:// one step approach (could be slow)
solver.findAllOptimalSolutions(ResolutionPolicy.MAXIMIZE, minLoad, false);
break;