[Osi] modify constraint system

Laszlo Ladanyi ladanyi at us.ibm.com
Tue Mar 25 13:45:08 EDT 2008


Hi Arno,

In the OsiSolverInterface class there is no way to change a coefficient. One 
thing you can do is to delete a rows where you want to zero out coefficients 
then add new rows without those coefficients. Not very nice, but I can't think 
of anything easier...

--Laci

On Tue, 25 Mar 2008, Arno Schödl wrote:

> Hello,
>
> I use OSI with Clp (and may try Dylp later). In my application, I need to 
> modify the constraint system, in particular iterating over
>
> - for a particular column, zero out some row entries,
>
> - change the bounds of these same rows,
>
> - and then resolve.
>
>> From the OsiSolverInterface doc, I could not figure out how to do that. Is 
>> it supported at all, or do I need to remove the row and add it back with 
>> different coefficients?
>
> Thank you for help,
>
> Arno
>
> --
> Arno Schoedl · aschoedl at think-cell.com
> Technical Director
>
> think-cell Software GmbH · Invalidenstr. 34 · 10115 Berlin, Germany
> http://www.think-cell.com · phone +49-30-666473-10 · fax +49-30-666473-19
> Geschäftsführer: Dr. Markus Hannebauer, Arno Schoedl · Amtsgericht Charlottenburg, HRB 85229
>
>


More information about the Osi mailing list