lemon/cplex.cc
changeset 1207 eba5aa390aca
parent 1140 f8ec64f78b5f
equal deleted inserted replaced
16:d6b0defc6db6 17:5a4c28b6a610
   156       CPXaddrows(cplexEnv(), _prob, 0, 1, values.size(), &lb, &s,
   156       CPXaddrows(cplexEnv(), _prob, 0, 1, values.size(), &lb, &s,
   157                  &rmatbeg, &indices.front(), &values.front(), 0, 0);
   157                  &rmatbeg, &indices.front(), &values.front(), 0, 0);
   158     } else {
   158     } else {
   159       const char s = 'R';
   159       const char s = 'R';
   160       double len = ub - lb;
   160       double len = ub - lb;
   161       CPXaddrows(cplexEnv(), _prob, 0, 1, values.size(), &ub, &s,
   161       CPXaddrows(cplexEnv(), _prob, 0, 1, values.size(), &lb, &s,
   162                  &rmatbeg, &indices.front(), &values.front(), 0, 0);
   162                  &rmatbeg, &indices.front(), &values.front(), 0, 0);
   163       CPXchgrngval(cplexEnv(), _prob, 1, &i, &len);
   163       CPXchgrngval(cplexEnv(), _prob, 1, &i, &len);
   164     }
   164     }
   165     
   165     
   166     return i;
   166     return i;