[Scip] Adding new constraints after solving the problem

Rostislav Stanek rostislav.stanek at uni-graz.at
Wed Dec 19 14:45:26 MET 2012


Dear SCIP community,
I have the following problem - maybe did someone of you solved something 
similar:
I would like to solve the instance by SCIPsolve(), then call 
SCIPfreeTransform() add new constraints and finally repeat the described 
process again until no more constraints are needed. All works fine if I 
do not add additional constraints during the solving process (e.g. in an 
event handler). But if I do so, the program falls with unauthorized 
memory access (SIGSEGV) (core dumped) either by calling the next 
SCIPfreeTransform() or by calling the next SCIPfreeTransform(). Am I 
doing something wrong? I add the constraints in the event handler in the 
same way as by defining of the origin problem - is it correct so?
Thank you for your response.
Best regards.
Rostislav Stanek


More information about the Scip mailing list