# Has anyone gotten SCIP 4.0 to work with Julia?

**URL:** <https://discourse.julialang.org/t/has-anyone-gotten-scip-4-0-to-work-with-julia/3014>\
**Category:** Optimization (Mathematical)\
**Created:** [April 2, 2017, 8:44pm UTC](https://discourse.julialang.org/t/has-anyone-gotten-scip-4-0-to-work-with-julia/3014 "2017-04-02T20:44:47Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frank\_Kampas](https://avatars.discourse-cdn.com/v4/letter/f/a183cd/32.png) [@Frank\_Kampas](https://discourse.julialang.org/u/Frank_Kampas)\
**Post date:** [April 2, 2017, 8:44pm UTC](https://discourse.julialang.org/t/has-anyone-gotten-scip-4-0-to-work-with-julia/3014/1 "2017-04-02T20:44:47Z")

</div>

I tried following the instructions on my MacBookAir, but it fails testing.

---

<div class="post-metadata">

**Author:** ![miles.lubin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/miles.lubin/32/279_2.png) [@miles.lubin](https://discourse.julialang.org/u/miles.lubin)\
**Post date:** [April 2, 2017, 8:48pm UTC](https://discourse.julialang.org/t/has-anyone-gotten-scip-4-0-to-work-with-julia/3014/2 "2017-04-02T20:48:01Z")

</div>

As the SCIP.jl readme states:

```nohighlight
Note that support for OS X is currently broken with the update to SCIP 4.0.0.

```

Follow the discussion [here](https://github.com/SCIP-Interfaces/SCIP.jl/pull/45).

---

<div class="post-metadata">

**Author:** ![Frank\_Kampas1](https://avatars.discourse-cdn.com/v4/letter/f/7c8e57/32.png) [@Frank\_Kampas1](https://discourse.julialang.org/u/Frank_Kampas1)\
**Post date:** [April 2, 2017, 8:53pm UTC](https://discourse.julialang.org/t/has-anyone-gotten-scip-4-0-to-work-with-julia/3014/3 "2017-04-02T20:53:44Z")

</div>

Yes, but the instructions tell you to download 4.0.

Has anyone gotten it to work on Windows?

---

<div class="post-metadata">

**Author:** ![adowling2](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adowling2/32/539_2.png) [@adowling2](https://discourse.julialang.org/u/adowling2)\
**Post date:** [April 6, 2017, 7:02pm UTC](https://discourse.julialang.org/t/has-anyone-gotten-scip-4-0-to-work-with-julia/3014/4 "2017-04-06T19:02:22Z")

</div>

We have SCIP 4.0.0 working with Julia via AmplNLWriter.jl on a Linux machine. The transition from SCIP 3.x was super easy.

---

<div class="post-metadata">

**Author:** ![Frank\_Kampas](https://avatars.discourse-cdn.com/v4/letter/f/a183cd/32.png) [@Frank\_Kampas](https://discourse.julialang.org/u/Frank_Kampas)\
**Post date:** [April 7, 2017, 3:22pm UTC](https://discourse.julialang.org/t/has-anyone-gotten-scip-4-0-to-work-with-julia/3014/5 "2017-04-07T15:22:54Z")

</div>

I’ve been trying to do it with the command-line version of Ubuntu that can run inside Windows 10  
([​How to get started with Ubuntu and Bash on Windows 10 | ZDNET](http://www.zdnet.com/article/ubuntu-and-bash-arrive-on-windows-10/))  
but haven’t gotten everything to work yet.

---

<div class="post-metadata">

**Author:** ![Frank\_Kampas](https://avatars.discourse-cdn.com/v4/letter/f/a183cd/32.png) [@Frank\_Kampas](https://discourse.julialang.org/u/Frank_Kampas)\
**Post date:** [April 19, 2017, 4:43pm UTC](https://discourse.julialang.org/t/has-anyone-gotten-scip-4-0-to-work-with-julia/3014/6 "2017-04-19T16:43:53Z")

</div>

When I try to call SCIP on Ubuntu using AMPL I get the following error message:

could not spawn `Home/frank/scipoptsuite-4.0.0/scip-4.0.0/interfaces/ampl/bin/sciampl /home/frank/.julia/v0.5/AmplNLWriter/.solverdata/tmpIL6x3b.nl -AMPL`: no such file or directory (ENOENT)

Calling Ipopt via AMPL does work, however

---

<div class="post-metadata">

**Author:** ![adowling2](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adowling2/32/539_2.png) [@adowling2](https://discourse.julialang.org/u/adowling2)\
**Post date:** [April 26, 2017, 5:12pm UTC](https://discourse.julialang.org/t/has-anyone-gotten-scip-4-0-to-work-with-julia/3014/7 "2017-04-26T17:12:51Z")

</div>

Go into `/home/frank/.julia/v0.5/AmplNLWriter/.solverdata/` and see if the temporary file is being created. Also check the path to the scipampl executable. Should it be /home/frank/… and …/scipampl?

---

<div class="post-metadata">

**Author:** ![Frank\_Kampas](https://avatars.discourse-cdn.com/v4/letter/f/a183cd/32.png) [@Frank\_Kampas](https://discourse.julialang.org/u/Frank_Kampas)\
**Post date:** [April 26, 2017, 5:33pm UTC](https://discourse.julialang.org/t/has-anyone-gotten-scip-4-0-to-work-with-julia/3014/8 "2017-04-26T17:33:41Z")

</div>

I fixed up the path to scipampl and am now getting an error message from SCIP that the temporary file is not found even though I can find it. I’m wondering if it is a question of the permission for the directory the temporary file is in.

---

<div class="post-metadata">

**Author:** ![Frank\_Kampas](https://avatars.discourse-cdn.com/v4/letter/f/a183cd/32.png) [@Frank\_Kampas](https://discourse.julialang.org/u/Frank_Kampas)\
**Post date:** [April 27, 2017, 1:10am UTC](https://discourse.julialang.org/t/has-anyone-gotten-scip-4-0-to-work-with-julia/3014/9 "2017-04-27T01:10:50Z")

</div>

The actual statement is error reading file … no problem exists. It may be that the file is read but isn’t correct.

---

<div class="post-metadata">

**Author:** ![adowling2](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adowling2/32/539_2.png) [@adowling2](https://discourse.julialang.org/u/adowling2)\
**Post date:** [April 28, 2017, 10:05pm UTC](https://discourse.julialang.org/t/has-anyone-gotten-scip-4-0-to-work-with-julia/3014/10 "2017-04-28T22:05:57Z")

</div>

Can you run the .nl file from the command line using scipampl?

Alex

---

<div class="post-metadata">

**Author:** ![Frank\_Kampas](https://avatars.discourse-cdn.com/v4/letter/f/a183cd/32.png) [@Frank\_Kampas](https://discourse.julialang.org/u/Frank_Kampas)\
**Post date:** [April 28, 2017, 11:59pm UTC](https://discourse.julialang.org/t/has-anyone-gotten-scip-4-0-to-work-with-julia/3014/11 "2017-04-28T23:59:23Z")

</div>

When I did that, I got an error message that cos is not supported. I changed the problem in Julia to a quadratic problem and it ran. I had thought that SCIP can do Ipopt searches with integer variables but clearly was mistaken. Thanks for your help.

---

<div class="post-metadata">

**Author:** ![adowling2](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adowling2/32/539_2.png) [@adowling2](https://discourse.julialang.org/u/adowling2)\
**Post date:** [May 10, 2017, 4:25pm UTC](https://discourse.julialang.org/t/has-anyone-gotten-scip-4-0-to-work-with-julia/3014/12 "2017-05-10T16:25:18Z")

</div>

Hello Frank,

SCIP does not support trig. functions including cosine:  
[http://scip.zib.de/doc/html/FAQ.php#minlptypes](http://scip.zib.de/doc/html/FAQ.php#minlptypes)

For solving MINLPs, give Bonmin or Pajarito.jl a try. I suspect with your problem these solves cannot guarantee a globally optimal solution.

Also, when solving MINLPs, it is critical to compile SCIP with support for IPOPT.  
[http://scip.zib.de/doc/html/MAKE.php](http://scip.zib.de/doc/html/MAKE.php)

Alex
