[Scip] Adding new constraints after solving the problem

Rostislav Stanek rostislav.stanek at uni-graz.at
Sat Dec 22 19:11:17 MET 2012


Dear SCIP community,
the problem has been solved. To reason for the error was that I did not 
released the constraints added during the solving process in the event 
handler before calling SCIPfreeTransform().
I would like to thank especially Gerald Gamrath form the ZIB who solved 
this problem and who viewed my source code and gave me support via more 
private e-mails.
Best regards.
Rostislav Stanek




Dne 19.12.2012 14:45, Rostislav Stanek napsal(a):
> 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
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> http://listserv.zib.de/mailman/listinfo/scip



More information about the Scip mailing list