Commit ee099a46 authored by Daniel Le Berre's avatar Daniel Le Berre

Fix for #127

parent 2e3dde80
......@@ -194,7 +194,7 @@ public class OPBStringSolver extends DimacsStringSolver implements IPBSolver {
tmp.append(nVars());
tmp.append(" #constraint= ");
tmp.append(this.nbOfConstraints);
if (this.obj != null) {
if (this.obj != null && !this.obj.getCoeffs().isEmpty()) {
tmp.append("\n");
tmp.append("min: ");
tmp.append(this.obj);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment