scipopt / SCIP.jl

Julia interface to SCIP solver
MIT License
95 stars 24 forks source link

Crash When Optimizing #248

Closed HilaireFoillard closed 2 years ago

HilaireFoillard commented 2 years ago

Hello, I use to test the SCIP solver on my model on Julia. This is a very simple LP problem. I have an issue because my model crash when I try to optimize it (m = Model(SCIP.Optimizer) ... optimize!(m) ) So I'm disappointed. I see that a good way to avoid that is to build SCIP by downloading the solver on the website but I don't understand how to build it after.

Thank you

matbesancon commented 2 years ago

Hello,

Can you give us a bit more details on:

HilaireFoillard commented 2 years ago

I was using Julia on a jupyter notebook, Julia 1.8.0-rc4 , and I work on a windows 11 os

matbesancon commented 2 years ago

once you have the windows SCIP installed, you can set the environment variable SCIPOPTDIR and build SCIP, it should be sufficient

matbesancon commented 2 years ago

The issue you encountered is documented in the readme, the automatic version does not work yet on windows: https://github.com/scipopt/SCIP.jl#custom-scip-installations

HilaireFoillard commented 2 years ago

I tried it but I didn't succeed . The sequence of command i have to do is Pkg.rm("SCIP") to remove the scip package download using Pkg, add the path of the bin of SCIP on the environnement variable then build SCIP (do i need to make Pkg.add("SCIP") before? ) Note that I installed the SCIPOptSuite 8.0.2 using the win64.exe way, but I didn't find $SCIPOPTDIR/lib/libscip.so, $SCIPOPTDIR/lib/libscip.dylib nor $SCIPOPTDIR/bin/scip.dll ( but I have bin/libscip.dll, bin/scip.exe, lib/libscip.lib ).

matbesancon commented 2 years ago

Is there not a $SCIPOPTDIR/lib/scip.dll?

On Thu, Oct 13, 2022 at 1:42 PM HilaireFoillard @.***> wrote:

I tried it but I didn't succeed . The sequence of command i have to do is Pkg.rm("SCIP") to remove the scip package download using Pkg, add the path of the bin of SCIP on the environnement variable then build SCIP (do i need to make Pkg.add("SCIP") before? ) Note that I installed the SCIPOptSuite 8.0.2 using the win64.exe way, but I didn't find $SCIPOPTDIR/lib/libscip.so, $SCIPOPTDIR/lib/libscip.dylib nor $SCIPOPTDIR/bin/scip.dll ( but I have bin/libscip.dll, bin/scip.exe, lib/libscip.lib ).

— Reply to this email directly, view it on GitHub https://github.com/scipopt/SCIP.jl/issues/248#issuecomment-1277477337, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2FDMSDG4DCT5OI5EFO6BDWC7YRPANCNFSM6AAAAAAREC7IQA . You are receiving this because you commented.Message ID: <scipopt/SCIP. @.***>

-- Mathieu Besançon

HilaireFoillard commented 2 years ago

Don't see it. Note that my way is SCIPOptSuite 8.0.2/lib/....

HilaireFoillard commented 2 years ago

But I have a SCIPOptSuite 8.0.2/bin/libscip.dll

matbesancon commented 2 years ago

Then the env variable SCIPOPTDIR as your path to the Scipootsuite 8.0.2 repo should work

On Thu, Oct 13, 2022, 14:44 HilaireFoillard @.***> wrote:

But I have a SCIPOptSuite 8.0.2/bin/libscip.dll

— Reply to this email directly, view it on GitHub https://github.com/scipopt/SCIP.jl/issues/248#issuecomment-1277552078, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2FDMTZMFQJPNPCROZVG4DWC773BANCNFSM6AAAAAAREC7IQA . You are receiving this because you commented.Message ID: <scipopt/SCIP. @.***>

HilaireFoillard commented 2 years ago

I put this value for SCIPOPTDIR : C:\Program Files\SCIPOptSuite 8.0.2\bin

Then i remove SCIP Then I build SCIP and I have this issue

HilaireFoillard commented 2 years ago

The following package names could not be resolved:

matbesancon commented 2 years ago

yes you need to add the environment variable SCIPOPTDIR, then add and build SCIP

HilaireFoillard commented 2 years ago

Nice that time it works

matbesancon commented 2 years ago

perfect!

matbesancon commented 2 years ago

Closing this, if you feel the docs in the README could be improved for windows, a PR is welcome :)