[Osi] OsiNameDiscipline cannot be set in OsiCpx
Matthew Galati
matthew.galati at gmail.com
Sun Jan 16 12:37:45 EST 2011
https://projects.coin-or.org/Osi/ticket/98
On Sun, Jan 16, 2011 at 12:19 PM, Matthew Galati <Matthew.Galati at sas.com>wrote:
> 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 @@
>
> }
>
>
>
> _______________________________________________
> Osi mailing list
> Osi at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/osi
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/osi/attachments/20110116/513ab3fc/attachment.html>
More information about the Osi
mailing list