[Osi] OsiNameDiscipline cannot be set in OsiCpx
Matthew Galati
Matthew.Galati at sas.com
Sun Jan 16 12:19:11 EST 2011
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 @@
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/osi/attachments/20110116/763096d9/attachment.html>
More information about the Osi
mailing list