[Scip] Deleting variables
Timo Berthold
berthold at zib.de
Tue Apr 23 09:52:53 MEST 2013
Hi Jonas,
did you call SCIPfreeTransform() after solving/before modifying the
sub-SCIP?
What does the deleted flag of SCIPdelVar() return?
Did you remove the variable from the constraints yourself, before
deleting it?
> It is important to really delete these variables and not just fix them to zero.
Why is this?
Cheers
Timo
Am 23.04.2013 08:53, schrieb Jonas Witt:
> Hi all,
>
> I'm having problems with deleting variables. I know you list deleting
> variables as a known bug on your website, but maybe you can still help me.
>
> I use a sub-SCIP and initialize it with some initial variables and
> constraints. This should work as some kind of pattern. So everytime I
> use this sub-SCIP, I want to add new variables and constraints to it,
> solve it and then delete the recently added variables and constraints.
> So after this solving proccess, the sub-SCIP should only consist of
> initial variables and constraints.
>
> I delete the recently added constraints with SCIPdelCons(). After this
> deletion the recently added variables do not belong to any constraint of
> the problem. Then I tried to delete these variables via SCIPdelVar() but
> failed (the variables still belong to the problem). It is important to
> really delete these variables and not just fix them to zero.
>
> How can I use the sub-SCIP the way I have described it without copying
> the whole problem?
>
> Best regards,
> Jonas
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> http://listserv.zib.de/mailman/listinfo/scip
More information about the Scip
mailing list