*/
public class KnapsackTest {
private final static TFloatArrayList times = new TFloatArrayList();
public Solver modelIt(String data, int n) throws IOException {
Knapsack pb = new Knapsack();
pb.readArgs("-d", data, "-n", "" + n);
pb.createSolver();
pb.buildModel();
// pb.configureSearch();
for (IntVar v : pb.objects) {
if (v == null) {
throw new UnsupportedOperationException();
}
}
return pb.getSolver();
}