Why does my objective function in my LP file, generated with Ilog Cplex, contains variables with coefficient equal to 0 ? -


i using ilog cplex solve problem. use print out lp file of problem in order solve again different parameters later on.

when solving, want print out value of each variable in objective function. problem is, objective function contains variables coefficient equal 0. therefore, not variables in objective function relevant me.

i know :

  1. why cplex add variables null coefficient in objective function ?
  2. can remove them somehow ?

if find way print value of variable partial name, answer question, since know part of name of relevant variables. example, print value of variables contains 'global' in name. although, don't think can cplex interactive optimizer.


Comments