# NLP: Attribute ScalarNonlinearFunction is not supported by the model

**URL:** <https://discourse.julialang.org/t/nlp-attribute-scalarnonlinearfunction-is-not-supported-by-the-model/110444>\
**Category:** Optimization (Mathematical)\
**Tags:** jump, nlp\
**Created:** [February 20, 2024, 9:04am UTC](https://discourse.julialang.org/t/nlp-attribute-scalarnonlinearfunction-is-not-supported-by-the-model/110444 "2024-02-20T09:04:53Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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 20, 2024, 6:32pm UTC](https://discourse.julialang.org/t/nlp-attribute-scalarnonlinearfunction-is-not-supported-by-the-model/110444/8 "2024-02-20T18:32:44Z")

</div>

The underlying cause is [ANN: JuMP v1.15 is released](https://discourse.julialang.org/t/ann-jump-v1-15-is-released/103875)

Some solvers have not been updated. So for SCIP and Alpine, you’ll need to use  
`@NLobjective` instead of `@objective`.

AmplNLWriter with Couenne etc will work if you update your packages to AmplNLWriter v1.2.0.

---

_[View the full topic](https://discourse.julialang.org/t/nlp-attribute-scalarnonlinearfunction-is-not-supported-by-the-model/110444)._
