Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash When Optimizing #248

Closed
HilaireFoillard opened this issue Oct 13, 2022 · 15 comments
Closed

Crash When Optimizing #248

HilaireFoillard opened this issue Oct 13, 2022 · 15 comments

Comments

@HilaireFoillard
Copy link

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
Copy link
Member

Hello,

Can you give us a bit more details on:

  • what version of Julia, what OS you are on?
  • The full minimal example?
  • What is the error message?

@HilaireFoillard
Copy link
Author

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

@matbesancon
Copy link
Member

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

@matbesancon
Copy link
Member

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
Copy link
Author

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
Copy link
Member

matbesancon commented Oct 13, 2022 via email

@HilaireFoillard
Copy link
Author

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

@HilaireFoillard
Copy link
Author

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

@matbesancon
Copy link
Member

matbesancon commented Oct 13, 2022 via email

@HilaireFoillard
Copy link
Author

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
Copy link
Author

The following package names could not be resolved:

  • SCIP (not found in project or manifest)

@matbesancon
Copy link
Member

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

@HilaireFoillard
Copy link
Author

Nice that time it works

@matbesancon
Copy link
Member

perfect!

@matbesancon
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants