[SCIP] run multiple problems in parallel
Ambros Gleixner
gleixner at zib.de
Wed Feb 14 14:09:33 CET 2024
Hi Thiago,
Am 12.02.2024 um 12:35 schrieb Thiago NOVAES:
> I would like to use SCIP to run multiple cases in parallel. Initially I
> tried to create a SCIP environment for each problem, in each environment
> I create a problem. However, when I delete restrictions from a problem,
> SCIP does not find the restriction. My first question is: Isn't it
> possible to use several SCIP environments at the same time?
It is absolutely possible. You should ensure to define SCIP_THREADSAFE
at compile time; with Cmake the flag is called THREADSAFE, see
https://scipopt.org/doc/html/md_INSTALL.php.
> My second idea was to use just one SCIP environment and create several
> problems in the same environment. Using "SCIP_RETCODE
> SCIPcreateProbBasic (SCIP *scip, const char *name)".
This would not work, one SCIP* holds only one problem.
Best,
Ambros
>
> However, I didn't find the method in the API to change the current
> problem. Does this method exist?
>
> If not, how could I handle multiple issues at the same time?
>
> Best regards,
>
> Thiago
>
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> https://listserv.zib.de/mailman/listinfo/scip
More information about the Scip
mailing list