Commit 231da5d8 authored by Daniel Le Berre's avatar Daniel Le Berre

Fix for #129

parent 2e3dde80
Pipeline #3372 canceled with stages
......@@ -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