[Osi-tickets] [COIN-OR Open Solver Interface] #98: the user cannot provide user names with OsiCpx

COIN-OR Open Solver Interface coin-trac at coin-or.org
Sun Jan 16 12:37:22 EST 2011


#98: the user cannot provide user names with OsiCpx
---------------------+------------------------------------------------------
 Reporter:  mgalati  |       Owner:  mjs
     Type:  defect   |      Status:  new
 Priority:  minor    |   Milestone:     
Component:  OsiCpx   |     Version:     
 Keywords:           |  
---------------------+------------------------------------------------------
 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 at 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 @@
 }

-- 
Ticket URL: <https://projects.coin-or.org/Osi/ticket/98>
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