Changeset 1053


Ignore:
Timestamp:
Jan 27, 2014 5:34:26 PM (6 years ago)
Author:
pbelotti
Message:

cut useless output in exprTrilinear convexification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Couenne/src/convex/operators/conv-exprTrilinear-gencuts.cpp

    r1051 r1053  
    11931193
    11941194        cg -> Problem () -> Jnlst () -> Printf (Ipopt::J_ERROR, J_CONVEXIFYING, "exprTriLin: variable should be fixed but cut can't be added: ");
    1195         w -> print ();
     1195        if (cg -> Problem () -> Jnlst () -> ProduceOutput (Ipopt::J_ERROR, J_CONVEXIFYING)) w -> print ();
    11961196        cg -> Problem () -> Jnlst () -> Printf (Ipopt::J_ERROR, J_CONVEXIFYING, "\n");
    11971197      }
     
    12481248          if (!(cg->createCut (cs, lb, ub, w -> Index (), 1, ArgList () [varInd] -> Index (), -fixed_prod))) {
    12491249            cg -> Problem () -> Jnlst () -> Printf (Ipopt::J_ERROR, J_CONVEXIFYING, "exprTriLin: variable should be fixed but cut can't be added: ");
    1250             w -> print ();
     1250            if (cg -> Problem () -> Jnlst () -> ProduceOutput (Ipopt::J_ERROR, J_CONVEXIFYING)) w -> print ();
    12511251            cg -> Problem () -> Jnlst () -> Printf (Ipopt::J_ERROR, J_CONVEXIFYING, "\n");
    12521252          }
Note: See TracChangeset for help on using the changeset viewer.