# \#nonlinear-optimizati

**URL:** https://discourse.julialang.org/tag/nonlinear-optimizati/1285.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [The Uno (Unifying Nonlinear Optimization) solver](https://discourse.julialang.org/t/the-uno-unifying-nonlinear-optimization-solver/115883)

<div class="topic-metadata">

**Author:** [@cvanaret](https://discourse.julialang.org/u/cvanaret)\
**Replies:** 61\
**Last updated:** [September 10, 2026, 10:08am UTC](https://discourse.julialang.org/t/the-uno-unifying-nonlinear-optimization-solver/115883 "2026-09-10T10:08:44Z")

</div>

Dear all, For the past 6 years, I have been working (on and off, this year full time) on Uno, a modular C++ solver for nonconvex optimization. It unifies the workflows of most gradient-based iterative methods (such as S…

---

## [\[ANN\] NonlinearOptimization TestFunctions.jl: A comprehensive collection of test functions for nonlinear optimization](https://discourse.julialang.org/t/ann-nonlinearoptimization-testfunctions-jl-a-comprehensive-collection-of-test-functions-for-nonlinear-optimization/131384)

<div class="topic-metadata">

**Author:** [@Aoxo\_MoxoA](https://discourse.julialang.org/u/Aoxo_MoxoA)\
**Replies:** 12\
**Last updated:** [February 14, 2026, 9:37am UTC](https://discourse.julialang.org/t/ann-nonlinearoptimization-testfunctions-jl-a-comprehensive-collection-of-test-functions-for-nonlinear-optimization/131384 "2026-02-14T09:37:26Z")

</div>

Hello Julia Community, I am excited to announce my new package, NonlinearOptimizationTestFunctionsInJulia.jl. It is designed to be a comprehensive collection of test functions for benchmarking nonlinear optimization alg…

---

## [Constraints of type MathOptInterface.ScalarNonlinearFunction-in-MathOptInterface.LessThan{Float64} are not supported by the solver](https://discourse.julialang.org/t/constraints-of-type-mathoptinterface-scalarnonlinearfunction-in-mathoptinterface-lessthan-float64-are-not-supported-by-the-solver/126178)

<div class="topic-metadata">

**Author:** [@leonie25](https://discourse.julialang.org/u/leonie25)\
**Replies:** 7\
**Last updated:** [February 23, 2025, 4:20am UTC](https://discourse.julialang.org/t/constraints-of-type-mathoptinterface-scalarnonlinearfunction-in-mathoptinterface-lessthan-float64-are-not-supported-by-the-solver/126178 "2025-02-23T04:20:46Z")

</div>

I am working on an optimization problem and build a model using Gurobi Optimizer with JuMP. It has some nonlinear constraints: @constraint(model, f\[i\] + func(qe\[i\])\<= M1 \* (1 - x\[(i, j)\]) + f\[j\]) where f, qe, x are non…

---

## [Some thoughts and questions on smooth non-linear optimization, degrees of freedom, optimizers, MLPs](https://discourse.julialang.org/t/some-thoughts-and-questions-on-smooth-non-linear-optimization-degrees-of-freedom-optimizers-mlps/125892)

<div class="topic-metadata">

**Author:** [@BdeKoning](https://discourse.julialang.org/u/BdeKoning)\
**Replies:** 0\
**Last updated:** [February 14, 2025, 7:02am UTC](https://discourse.julialang.org/t/some-thoughts-and-questions-on-smooth-non-linear-optimization-degrees-of-freedom-optimizers-mlps/125892 "2025-02-14T07:02:43Z")

</div>

Although I’d like to pose my thoughts and questions on a quite general group of optimization problems, my thoughts on these topics came from working on the following optimization problem: The second lens surface is a…

---

## [Receiving the Error: "MethodError: no method matching eps(::Int64)" When Using NonlinearProblem Solver](https://discourse.julialang.org/t/receiving-the-error-methoderror-no-method-matching-eps-int64-when-using-nonlinearproblem-solver/125514)

<div class="topic-metadata">

**Author:** [@mcket747](https://discourse.julialang.org/u/mcket747)\
**Replies:** 8\
**Last updated:** [February 6, 2025, 9:43pm UTC](https://discourse.julialang.org/t/receiving-the-error-methoderror-no-method-matching-eps-int64-when-using-nonlinearproblem-solver/125514 "2025-02-06T21:43:24Z")

</div>

Hello, I am attempting to solve a non-linear optimization problem using the NonlinearProblem solver with the TrustRegion method. I kept getting the error saying there was no method for Float64(::ForwardDiff Dual etc). I …

---

## [Restrictions when adding a binary variable - Local Infeasibility (Ipopt, Juniper)](https://discourse.julialang.org/t/restrictions-when-adding-a-binary-variable-local-infeasibility-ipopt-juniper/121870)

<div class="topic-metadata">

**Author:** [@fynnhoffmann54](https://discourse.julialang.org/u/fynnhoffmann54)\
**Replies:** 15\
**Last updated:** [January 23, 2025, 8:27am UTC](https://discourse.julialang.org/t/restrictions-when-adding-a-binary-variable-local-infeasibility-ipopt-juniper/121870 "2025-01-23T08:27:21Z")

</div>

Hello, I am trying to model a nonlinear optimization problem involving binary variables and continuous variables. Specifically, I cannot understand why a binary variable “z\_sys\_to\_HP(s)” makes the model unusable. My mo…

---

## [MadNLPGPU with cuDSS and other linear solvers](https://discourse.julialang.org/t/madnlpgpu-with-cudss-and-other-linear-solvers/124558)

<div class="topic-metadata">

**Author:** [@gangway](https://discourse.julialang.org/u/gangway)\
**Replies:** 4\
**Last updated:** [January 9, 2025, 11:55pm UTC](https://discourse.julialang.org/t/madnlpgpu-with-cudss-and-other-linear-solvers/124558 "2025-01-09T23:55:12Z")

</div>

Trying to solve nonlinear JuMP models with MadNLP.Optimizer(linear\_solver=CUDSSSolver). I have added MadNLP, MadNLPGPU, CUDSS, and CUDSS\_jll. While activating project, I keep getting warning for circular dependencies. …

---

## [Maximize the maximum of expressions](https://discourse.julialang.org/t/maximize-the-maximum-of-expressions/118295)

<div class="topic-metadata">

**Author:** [@janneshb](https://discourse.julialang.org/u/janneshb)\
**Replies:** 10\
**Last updated:** [October 17, 2024, 12:25pm UTC](https://discourse.julialang.org/t/maximize-the-maximum-of-expressions/118295 "2024-10-17T12:25:18Z")

</div>

Hey everyone, I would like to maximize the maximum of a vector that is a function of my optimization variables. Basically, I want to do the following, but in a “JuMP way”. @objective(model, Max, max(my\_vec...)) On th…

---

## [Nonlinear optimization with ODE solution in nonlinear constraint](https://discourse.julialang.org/t/nonlinear-optimization-with-ode-solution-in-nonlinear-constraint/116730)

<div class="topic-metadata">

**Author:** [@afossa](https://discourse.julialang.org/u/afossa)\
**Replies:** 6\
**Last updated:** [July 8, 2024, 5:51pm UTC](https://discourse.julialang.org/t/nonlinear-optimization-with-ode-solution-in-nonlinear-constraint/116730 "2024-07-08T17:51:54Z")

</div>

Hello, I am trying to model and solve a fairly complex constrained nonlinear optimization problem. The main issue is that to compute some equality constraints I need to solve an ODE numerically. So far, I have been abl…

---

## [Trajectory Optimization using Pseudospectral collocation](https://discourse.julialang.org/t/trajectory-optimization-using-pseudospectral-collocation/114017)

<div class="topic-metadata">

**Author:** [@DTdev](https://discourse.julialang.org/u/DTdev)\
**Replies:** 10\
**Last updated:** [May 30, 2024, 3:46pm UTC](https://discourse.julialang.org/t/trajectory-optimization-using-pseudospectral-collocation/114017 "2024-05-30T15:46:13Z")

</div>

Hi everyone! I am currently trying to solve a simple trajectory optimization problem using pseudospectral collocation or orthogonal collocation. I have written a simple UAV simulation using JuMP.jl with a moving obstac…

---

## [Nonlinear Optimization with Many Constraints + Autodifferentiation: Which Julia Solution?](https://discourse.julialang.org/t/nonlinear-optimization-with-many-constraints-autodifferentiation-which-julia-solution/110678)

<div class="topic-metadata">

**Author:** [@SebKrantz](https://discourse.julialang.org/u/SebKrantz)\
**Replies:** 23\
**Last updated:** [March 15, 2024, 6:42pm UTC](https://discourse.julialang.org/t/nonlinear-optimization-with-many-constraints-autodifferentiation-which-julia-solution/110678 "2024-03-15T18:42:18Z")

</div>

I’m trying to rewrite a Matlab Package in Julia which solves a high-dimensional non-linear optimal transport problem in order to maximize economic welfare as predicted by a linked quantiative trade model. In particular, …

---

## [Comparing non-linear least squares solvers](https://discourse.julialang.org/t/comparing-non-linear-least-squares-solvers/104752)

<div class="topic-metadata">

**Author:** [@user664303](https://discourse.julialang.org/u/user664303)\
**Replies:** 37\
**Last updated:** [March 5, 2024, 9:34am UTC](https://discourse.julialang.org/t/comparing-non-linear-least-squares-solvers/104752 "2024-03-05T09:34:42Z")

</div>

I’m creating this thread as a resource for people looking to solve non-linear least squares problems in Julia, so they know what tools are available, what features they have and how well they perform. UPDATE: This compa…

---

## [How to set a Non-linear function with double summatory](https://discourse.julialang.org/t/how-to-set-a-non-linear-function-with-double-summatory/105542)

<div class="topic-metadata">

**Author:** [@PatrickeTownsend](https://discourse.julialang.org/u/PatrickeTownsend)\
**Replies:** 4\
**Last updated:** [October 29, 2023, 9:18pm UTC](https://discourse.julialang.org/t/how-to-set-a-non-linear-function-with-double-summatory/105542 "2023-10-29T21:18:54Z")

</div>

Hello Again! I’m trying to solve this optimization problem: But i’m not really sure about how to write down that objective function, I tried doing this: using JuMP using Ipopt model = Model(Ipopt.Optimizer) set\_att…

---

## [PRIMA: a package for solving general nonlinear optimization problems without using derivatives](https://discourse.julialang.org/t/prima-a-package-for-solving-general-nonlinear-optimization-problems-without-using-derivatives/105134)

<div class="topic-metadata">

**Author:** [@Zaikun](https://discourse.julialang.org/u/Zaikun)\
**Replies:** 4\
**Last updated:** [October 19, 2023, 2:05am UTC](https://discourse.julialang.org/t/prima-a-package-for-solving-general-nonlinear-optimization-problems-without-using-derivatives/105134 "2023-10-19T02:05:19Z")

</div>

Hi everyone, I am very glad to announce PRIMA, a package for solving general nonlinear optimization problems without using derivatives. PRIMA provides the reference implementation for M.J.D. Powell’s renowned derivativ…

---

## [How to introduce an if sentence with optimization variables](https://discourse.julialang.org/t/how-to-introduce-an-if-sentence-with-optimization-variables/102130)

<div class="topic-metadata">

**Author:** [@PatrickeTownsend](https://discourse.julialang.org/u/PatrickeTownsend)\
**Replies:** 2\
**Last updated:** [July 27, 2023, 1:15pm UTC](https://discourse.julialang.org/t/how-to-introduce-an-if-sentence-with-optimization-variables/102130 "2023-07-27T13:15:45Z")

</div>

Hello again, For and electric propulsion system optimization, i’m trying to impose zero thrust during eclipse phases, I have this function created: function Step\_eclipse(j,r...,r\_par...) Re = 6378 if r\_par\[j\] +…

---

## [Nelder-Mead or other optimization](https://discourse.julialang.org/t/nelder-mead-or-other-optimization/98853)

<div class="topic-metadata">

**Author:** [@papar](https://discourse.julialang.org/u/papar)\
**Replies:** 5\
**Last updated:** [May 16, 2023, 9:28pm UTC](https://discourse.julialang.org/t/nelder-mead-or-other-optimization/98853 "2023-05-16T21:28:42Z")

</div>

I am trying to use Optim to find parameters of a vector valued function using the Nelder-Mead algorithm, but open to considering other algorithms or packages. The problem is to find parameters of a function by minimizing…

---

## [Does integral function related optimization supported in Julia?](https://discourse.julialang.org/t/does-integral-function-related-optimization-supported-in-julia/94836)

<div class="topic-metadata">

**Author:** [@Jian\_ZUO](https://discourse.julialang.org/u/Jian_ZUO)\
**Replies:** 12\
**Last updated:** [February 22, 2023, 7:22am UTC](https://discourse.julialang.org/t/does-integral-function-related-optimization-supported-in-julia/94836 "2023-02-22T07:22:11Z")

</div>

Hi all, I have a nonlinear optimization problem that involves integral functions, for instance: F(x, a) = $$\\int\_0^x a\*(x - 4y^3)dy + \\int\_0^x\\int\_0^3y (7s^2)dsdy$$ How can I define this objective (involves single a…
