[Symphony-tickets] [SYMPHONY] #124: OsiSym doesn't seem to respect OsiNameDiscipline

SYMPHONY coin-trac at coin-or.org
Tue Dec 17 10:06:19 EST 2013


#124: OsiSym doesn't seem to respect OsiNameDiscipline
---------------------+-----------------
 Reporter:  ycollet  |      Owner:  tkr
     Type:  defect   |     Status:  new
 Priority:  normal   |  Milestone:
Component:  LP       |    Version:
 Keywords:           |
---------------------+-----------------
 I Added OsiNameDiscipline to 2 to allow to use custom name for columns and
 row.
 The exported lp files doesn't contains these custom names but only the
 ones generated by defaut.
 With the Cbc solver, this operation works.
 Here is an example of the code I use:

 solverInterface->setIntParam(OsiNameDiscipline, 2);
 for (unsigned int noVar_l = 0; noVar_l < variables.size(); ++noVar_l) {
   solverInterface->setColName(noVar_l, variables[noVar_l].name);
   }
 for (unsigned int noConstr_l = 0; noConstr_l < constraints.size();
 ++noConstr_l) {
   solverInterface->setRowName(noConstr_l, constraints[noConstr_l].name);
   }

 solverInterface->writeLp(path_l.str().c_str());

--
Ticket URL: <https://projects.coin-or.org/SYMPHONY/ticket/124>
SYMPHONY <http://projects.coin-or.org/SYMPHONY>
The SYMPHONY framework for parallel branch-and-cut algorithms.



More information about the Symphony-tickets mailing list