Opened 11 years ago

Closed 20 months ago

#81 closed defect (migrated)

OsiCpx setRowPrice does not set duals

Reported by: mgalati Owned by: mjs
Priority: major Milestone:
Component: OsiCpx Version:
Keywords: Cc: magh@…


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)

Change History (1)

comment:1 Changed 20 months ago by stefan

  • Resolution set to migrated
  • Status changed from new to closed

This ticket has been migrated to GitHub and will be resolved there:

Note: See TracTickets for help on using tickets.