# Having problem with Convex.jl

**URL:** <https://discourse.julialang.org/t/having-problem-with-convex-jl/77196>\
**Category:** Optimization (Mathematical)\
**Tags:** question, package\
**Created:** [February 28, 2022, 3:42pm UTC](https://discourse.julialang.org/t/having-problem-with-convex-jl/77196 "2022-02-28T15:42:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![janilin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/janilin/32/33769_2.png) [@janilin](https://discourse.julialang.org/u/janilin)\
**Post date:** [February 28, 2022, 3:42pm UTC](https://discourse.julialang.org/t/having-problem-with-convex-jl/77196/1 "2022-02-28T15:42:57Z")

</div>

Hi!  
I’m new to Julia. While I was going through the **Julia for Data Science** course’s \*\* Numerical Optimization\*\* lecture, got stucked in solve!() unfortunately. Explored in different forums but could not get the solution regarding **SCS.Optimizer**

After executing:  
solve!(problem, SCS.Optimizer)

I’m getting:  
MethodError: no method matching solve!(::Problem, ::Type{SCS.Optimizer})

Updated Convex to 0.14.5 but still doesn’t work. Besides, from Convex’s github page, tried the given examples regardins solve!() function, but not luck with non-error output.

I’m from a non-CS background, so you could say me a boomer to programming indeed. Not sure where is the problem, followed the given codes from the course’s .ipynb, still doesn’t work in ma machine.

NB: using  
Win10 64bit (Home) OS  
Julia 1.7.2 on Jupyter notebook

 ![Capture](https://global.discourse-cdn.com/julialang/original/3X/f/1/f15c8a9a0270346b4c3b8c8ae454e769a25b9120.jpeg)

---

<div class="post-metadata">

**Author:** ![ericphanson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ericphanson/32/215186_2.png) [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Post date:** [February 28, 2022, 4:34pm UTC](https://discourse.julialang.org/t/having-problem-with-convex-jl/77196/2 "2022-02-28T16:34:33Z")

</div>

Welcome!

The error message in the screenshot makes it look like you have a very old version of Convex.jl; that references MathProgBase which we stopped using in Convex a few years ago.

> [@janilin](#):
>
> Updated Convex to 0.14.5 but still doesn’t work

How did you update? Try

```julia
using Pkg
Pkg.add(PackageSpec(name="Convex", version=v"0.14.5"))

```

If you get an error, copy the whole message here.

Also, please read this post: [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757).

---

<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 28, 2022, 8:33pm UTC](https://discourse.julialang.org/t/having-problem-with-convex-jl/77196/3 "2022-02-28T20:33:22Z")

</div>

> [@janilin](#):
>
> Updated Convex to 0.14.5 but still doesn’t work.

This often catches people out: when you update your packages, you need to restart Julia for the change to take effect.

---

<div class="post-metadata">

**Author:** ![janilin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/janilin/32/33769_2.png) [@janilin](https://discourse.julialang.org/u/janilin)\
**Post date:** [March 1, 2022, 6:06am UTC](https://discourse.julialang.org/t/having-problem-with-convex-jl/77196/4 "2022-03-01T06:06:25Z")

</div>

Tnaks a lot for the solution. I updated the Convex.jl likewise but restarting the REPL was the thing that didn’t do. And ya, the attached linked was helpful and will follow afterwards. Thanks for the support!

---

<div class="post-metadata">

**Author:** ![janilin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/janilin/32/33769_2.png) [@janilin](https://discourse.julialang.org/u/janilin)\
**Post date:** [March 1, 2022, 6:08am UTC](https://discourse.julialang.org/t/having-problem-with-convex-jl/77196/5 "2022-03-01T06:08:49Z")

</div>

Ya! It’s working now! Thanks a lot for helping out. Form now, it is a to go task for me, if something goes wrong, restart the REPL or notebook! Thank you for your support.
