Opened 10 years ago

Closed 20 months ago

#98 closed defect (migrated)

the user cannot provide user names with OsiCpx

Reported by: mgalati Owned by: mjs
Priority: minor Milestone:
Component: OsiCpx Version:
Keywords: Cc:

Description

Please consider applying the patch below. Currently, the user cannot provide user names with OsiCpx?, because the set/getIntParam doesn’t recognize OsiNameDiscpline?. This means the user names get overwritten with default C/RXXXX names – which makes debugging difficult. magh@stingray:~/COIN/coin-Dip/Osi?$ svn diff Index: src/OsiCpx/OsiCpxSolverInterface.cpp =================================================================== --- src/OsiCpx/OsiCpxSolverInterface.cpp (revision 1659) +++ src/OsiCpx/OsiCpxSolverInterface.cpp (working copy) @@ -514,6 +514,9 @@

else

retval = false;

break;

+ case OsiNameDiscipline?: + retval = OsiSolverInterface::setIntParam(key,value); + break;

case OsiLastIntParam?:

retval = false; break;

@@ -605,6 +608,9 @@

value = hotStartMaxIteration_; retval = true; break;

+ case OsiNameDiscipline?: + retval = OsiSolverInterface::getIntParam(key,value); + break;

case OsiLastIntParam?:

retval = false; break;

@@ -2768,6 +2774,8 @@ }

Change History (3)

comment:1 Changed 10 years ago by stefan

Patch has been applied in trunk, within chgset 1662.

comment:2 Changed 10 years ago by stefan

Not sure if thinks work correct if OsiNameDiscipline? is set to lazy. Someone familar with this should check.

comment:3 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: https://github.com/coin-or/Osi/issues/98

Note: See TracTickets for help on using tickets.