[Scip] Is it possible to change the coefficient of a variable in a SCIP_ROW?

nikolaj@crt.umontreal.ca nikolaj at crt.umontreal.ca
Mon Oct 11 22:36:09 MEST 2010


On Mon, October 11, 2010 3:36 pm, Stefan Heinz wrote:
> Hi Nikolaj,
>
>
>> In my branch, price and cut, the generation of a new variable could ask
>>  for the change in coefficient for few variables in a SCIP_ROW (i.e.
>> the cut would be stronger if reinterpreted in another way).
>>
>> Is it possible to change the coefficient of a variable in a SCIP_ROW?
>>
> Did you try to use the method SCIPaddVarToRow() adding the changes of the
>  coefficients?
>
> Stefan
>
>
Hi Stefan,

Thank you for your reply.

If the new coefficient is different than 0, why not but if I want to
remove the variable is there a way to do this other than to subtract the
same amount of that variable? Will SCIP replace 3x - 3x by 0? and 2x + x
by 3x?

Have a good evening,

Nikolaj







More information about the Scip mailing list