# NLopt failed due to Forced Stop

**URL:** https://discourse.julialang.org/t/nlopt-failed-due-to-forced-stop/34364
**Category:** Optimization (Mathematical)
**Tags:** jump
**Created:** [February 9, 2020, 2:09am UTC](https://discourse.julialang.org/t/nlopt-failed-due-to-forced-stop/34364 "2020-02-09T02:09:00Z")
**Posts on this page:** 1
**Showing post:** 2

<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 9, 2020, 5:35pm UTC](https://discourse.julialang.org/t/nlopt-failed-due-to-forced-stop/34364/2 "2020-02-09T17:35:22Z")

</div>

Hi there,

Take a read of the first post in [Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757) (Don’t worry about the long thread).

In particular, it’s easier to help if you can simplify your problem to a minimal working example. Since we can’t run your example, it’s a little hard to offer advice.

The most common reason for NLopt to return `:FORCED_STOP` is an error in the objective function ([NLopt Reference - NLopt Documentation](https://nlopt.readthedocs.io/en/latest/NLopt_Reference/#forced-termination)). You probably need to check that `fxp` solved correctly before trying to return the likelihood.

See [Query Solutions · JuMP](https://www.juliaopt.org/JuMP.jl/stable/solutions/#Obtaining-solutions-1)

---

_[View the full topic](https://discourse.julialang.org/t/nlopt-failed-due-to-forced-stop/34364)._
