nlopt icon indicating copy to clipboard operation
nlopt copied to clipboard

library for nonlinear optimization, wrapping many algorithms for global and local, constrained or unconstrained, optimization

Results 156 nlopt issues
Sort by recently updated
recently updated
newest added

The Svanberg MMA paper notes that for the CCSA algorithms described, gradients are only required in the outer iterations. "Each new inner iteration requires function values, but no derivatives." However,...

Hello, Doing some tests on multiple starting guess and multiple optimization algorithm I found a case on which your solver behaves unexpectedly. This is luckily a simple analytical example easily...

hi, i have an optimization problem to solve. i have hundreds of input variables. the values of these variables can only be 1 or 0. How I can tell this...

I am trying to install `nloptr` from source in R version 4.1.3 on a cluster (CentOS). However I receive the following error: ``` /cvmfs/argon.hpc.uiowa.edu/2022.1/prefix/usr/lib/gcc/x86_64-pc-linux-gnu/9.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lnlopt collect2: error: ld...

Hi, I am sorry for maybe a vague question but is there a way to find out (debug/verbose/...) why nlopt fails? I am using C++ API and the only exception...

Hi there: During my optimization, I applied LN_COBYLA since it supports arbitrary nonlinear constraint. My "constraint function" is actually a collision avoidance function. The function returns 10.0 when collision hits,...

`NLopt` is available as a port in [vcpkg](https://github.com/microsoft/vcpkg), a C++ library manager that simplifies installation for `NLopt` and other project dependencies. Documenting the install process here will help users get...

Some compiler warnings with MS Visual Studio compiler are avoided.

I saw [https://www.reddit.com/r/cpp_questions/comments/k6743d/nlopt_round_off_error/](url) and translated it to Python. ``` import nlopt def obj_fn(x,grad): print("%.16f,%.16f"%(x[0],x[1])) print("%.16f"%(-x[0]+x[1])) return -x[0]+x[1] opt = nlopt.opt(nlopt.LN_COBYLA,2) opt.set_lower_bounds([-3.0,-3.0]) opt.set_upper_bounds([3.0,3.0]) opt.set_min_objective(obj_fn) opt.set_ftol_abs(1) opt.optimize([-1.5,-1.5]) print(opt.last_optimize_result()) ``` The python version...

I have a non-linear constraint problem as below: ![image](https://user-images.githubusercontent.com/109043204/179400410-2ce16e74-6fff-494e-8008-4302017d7f11.png) The objective and constraint functions can be expressed as the sum of 4th polynomial equations like below: ![image](https://user-images.githubusercontent.com/109043204/179400425-67932815-a2aa-4595-8c67-3b24f247e265.png) where $a_i, b_i,...