[Osi-tickets] [COIN-OR Open Solver Interface] #81: OsiCpx setRowPrice does not set duals

COIN-OR Open Solver Interface coin-trac at coin-or.org
Thu Aug 13 20:00:44 EDT 2009


#81: OsiCpx setRowPrice does not set duals
---------------------+------------------------------------------------------
 Reporter:  mgalati  |       Owner:  mjs
     Type:  defect   |      Status:  new
 Priority:  major    |   Milestone:     
Component:  OsiCpx   |     Version:     
 Keywords:           |  
---------------------+------------------------------------------------------
 The term setRowPrice makes me think of duals.

 However, in OsiCpx, it sends the "rowSol" into argument 6. According to
 the manual, that should be the row solution, i.e., activities (not the
 dual solution). I think you want to use the 8th argument.

 Note - I need a setRowSol method too - which does what is currently done
 in setRowPrice. But, this seems like a bad name or a bug as currently
 implemented.

  int err = CPXcopystart( env_, getMutableLpPtr(), NULL, NULL,
                   const_cast<double*>( colsol_ ),
                   const_cast<double*>( rowsol_ ),
                   NULL, NULL );


 int CPXPUBLIC CPXcopystart(CPXCENVptr env, CPXLPptr lp, const int * cstat,
 const int * rstat, const double * cprim, const double * rprim, const
 double * cdual, const double * rdual)

-- 
Ticket URL: <https://projects.coin-or.org/Osi/ticket/81>
COIN-OR Open Solver Interface <http://projects.coin-or.org/Osi>
An API for a variety of LP and MIP solvers (and more).



More information about the Osi-tickets mailing list