- int result = lp_h.solve();
- if (result == LinearProgramming.UNBOUNDED)
- Log.warn(this, "simplex solver claims unboundedness; this should never happen");
- if (result != LinearProgramming.OPTIMAL)
- Log.warn(this, "simplex solver claims infeasibility; this should never happen");
+ try {
+ int result = lp_h.solve();
+ switch(result) {
+ case LinearProgramming.UNBOUNDED:
+ Log.warn(this, "simplex solver claims unboundedness; this should never happen");
+ break;
+ case LinearProgramming.INFEASIBLE:
+ Log.debug(this, "simplex solver claims infeasibility; this should never happen");
+ break;
+ case LinearProgramming.MILP_FAIL:
+ Log.warn(this, "simplex solver claims MILP_FAIL; this should never happen");
+ break;
+ case LinearProgramming.RUNNING:
+ Log.warn(this, "simplex solver still RUNNING; this should never happen");
+ break;
+ case LinearProgramming.FAILURE:
+ Log.warn(this, "simplex solver claims FAILURE; this should never happen");
+ break;
+ }
+ } catch (Error e) {
+ Log.warn(this, "got an Error in simplex solver; not sure why this happens");
+ return;
+ }
+