# JuMP / SCS tutorial example fails on simple(?) data

**URL:** https://discourse.julialang.org/t/jump-scs-tutorial-example-fails-on-simple-data/125857
**Category:** Optimization (Mathematical)
**Tags:** jump
**Created:** [February 13, 2025, 10:44am UTC](https://discourse.julialang.org/t/jump-scs-tutorial-example-fails-on-simple-data/125857 "2025-02-13T10:44:31Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![healyp](https://avatars.discourse-cdn.com/v4/letter/h/67e7ee/32.png) [@healyp](https://discourse.julialang.org/u/healyp)
#### Post date: [February 13, 2025, 10:44am UTC](https://discourse.julialang.org/t/jump-scs-tutorial-example-fails-on-simple-data/125857/1 "2025-02-13T10:44:31Z")

</div>

Using the code verbatim as provided in the JuMP conic programming [tutorial](https://jump.dev/JuMP.jl/stable/tutorials/conic/ellipse_approx/) the SCS solver fails after 100,000 iterations on the matrix of five 2-D points below

```julia
julia> S
5×2 Matrix{Float64}:
 39.1 18.7
 39.5 17.4
 40.3 18.0
 36.7 19.3
 39.3 20.6

```

with

```julia
100000| 1.73e+14 6.42e+07 1.65e+14 -8.27e+13 1.00e-06 1.07e+00 
------------------------------------------------------------------
status: unbounded (inaccurate - reached max_iters)
timings: total: 1.07e+00s = setup: 1.40e-04s + solve: 1.07e+00s
	 lin-sys: 8.45e-02s, cones: 8.13e-01s, accel: 2.53e-02s
------------------------------------------------------------------
objective = -inf (inaccurate)
------------------------------------------------------------------
Test Failed at /home/healyp/res/ellipse/src/ell.jl:33
  Expression: is_solved_and_feasible(model)

```

Could anybody please offer any advice / suggestions?

---

<div class="post-metadata">

### Author: ![abulak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abulak/32/28314_2.png) [@abulak](https://discourse.julialang.org/u/abulak)
#### Post date: [February 13, 2025, 3:58pm UTC](https://discourse.julialang.org/t/jump-scs-tutorial-example-fails-on-simple-data/125857/2 "2025-02-13T15:58:56Z")

</div>

Try `CSDP` Optimizer; `SCS` has numerical problems with this example of `S`

---

<div class="post-metadata">

### Author: ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)
#### Post date: [February 13, 2025, 7:55pm UTC](https://discourse.julialang.org/t/jump-scs-tutorial-example-fails-on-simple-data/125857/3 "2025-02-13T19:55:42Z")

</div>

Try Clarabel.jl. I’ll update the docs to use it too.

---

<div class="post-metadata">

### Author: ![healyp](https://avatars.discourse-cdn.com/v4/letter/h/67e7ee/32.png) [@healyp](https://discourse.julialang.org/u/healyp)
#### Post date: [February 21, 2025, 8:26am UTC](https://discourse.julialang.org/t/jump-scs-tutorial-example-fails-on-simple-data/125857/4 "2025-02-21T08:26:29Z")

</div>

Thank you – and please don’t mistake silence for ingratitude 🙂

For this, and a more realistic example, `CSDP` ran to completion.

@odow Thank you, also, but Clarabel.jl also choked on the toy example I provided above.

---

<div class="post-metadata">

### Author: ![pgoulart](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pgoulart/32/17514_2.png) [@pgoulart](https://discourse.julialang.org/u/pgoulart)
#### Post date: [February 26, 2025, 9:44am UTC](https://discourse.julialang.org/t/jump-scs-tutorial-example-fails-on-simple-data/125857/5 "2025-02-26T09:44:30Z")

</div>

I am unable to reproduce this error in Clarabel.jl. The problem solves fine for me using your toy example data in all recent solver versions and on both x86\_64 and aarch64.

If you are able to reproduce it, could you please open it as an issue on the solver github page?

---

<div class="post-metadata">

### Author: ![healyp](https://avatars.discourse-cdn.com/v4/letter/h/67e7ee/32.png) [@healyp](https://discourse.julialang.org/u/healyp)
#### Post date: [February 26, 2025, 8:40pm UTC](https://discourse.julialang.org/t/jump-scs-tutorial-example-fails-on-simple-data/125857/6 "2025-02-26T20:40:44Z")

</div>

Thank you. I have just filed an issue supplying data and code.
