[SCIP] Reoptimization

Marco Correia marco.v.correia at gmail.com
Tue Sep 28 16:12:13 CEST 2021


Thank you. I'll do that, but it is still somewhat odd that I am not using
benders decomposition in my model (I am using lazy constraints via a custom
constraint handler though).
Marco

On Tue, Sep 28, 2021 at 12:13 PM Witzig, Jakob <witzig at zib.de> wrote:

> Looks like an issue with the Benders coding in combination with
> reoptimization. Please open a bug report with a minimal not working example
> here: https://scipopt.org/bugs.php
>
> Cheers,
> Jakob
>
> Am 28.09.2021 12:55 schrieb Marco Correia <marco.v.correia at gmail.com>:
>
> Sorry, what works is 2.4.5.6  (Including step 1 also leads to the above
> error).
>
> On Tue, Sep 28, 2021 at 11:53 AM Marco Correia <marco.v.correia at gmail.com>
> wrote:
>
> Thanks Jakob,
>
> Step 4 is actually the only one that seems to work (that is 1,2,4,5,6
> works). Instead doing 1,2,3,5,6 gives me
>
> [cons.c:2399] ERROR: constraint handler <benderslp> already initialized
>
> in step 5.
>
> Am I missing some other step?
>
> On Tue, Sep 28, 2021 at 11:47 AM Witzig, Jakob <witzig at zib.de> wrote:
>
> Hi Marco,
>
> Step 4 is not needed.
>
> Cheers,
> Jakob
>
>
> Am 28.09.2021 12:37 schrieb Marco Correia <marco.v.correia at gmail.com>:
>
> Hi,
>
> I have a model I would like to solve, and then add a constraint and change
> the objective, and then solve again. My understanding of the necessary
> steps is:
>
> 1. SCIPenableReoptimization(true)
> 2. [Create and solve model]
> 3. SCIPfreeReoptSolve
> 4. SCIPfreeTransform
> 5. [Add new constraints and change objective]
> 6. [Solve modified model]
>
> This doesn't seem to work as it is, but when omitting step 1 and 3 it
> works. I guess the other steps are also important, right?
>
> Thank you
> Marco
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20210928/a01ef4e4/attachment.html>


More information about the Scip mailing list