question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Scipy Optimizer trust-constr does not work

See original GitHub issue

Optimization with trust-constr from scipy does not work currently because the default options we set for scipy are not known to trust-constr. Therefore optimization stops with:

start 0 failed: _minimize_trustregion_constr() got an unexpected keyword argument 'max_nfev'

@yannikschaelte pointed out, that also for some other optimizer there are warnings regarding not supported options (see https://github.com/ICB-DCM/pyPESTO/runs/2225587545?check_suite_focus=true#step:6:1169)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
yannikschaeltecommented, Mar 30, 2021

@LoosC , you here?

0reactions
PaulJonasJostcommented, May 18, 2022

@PaulJonasJost this should be related to #778

@yannikschaelte, @LeonardSchmiester could this perhaps have been fixed by #803?

Read more comments on GitHub >

github_iconTop Results From Across the Web

minimize(method='trust-constr') — SciPy v1.9.3 Manual
Minimize a scalar function subject to constraints. Tolerance for termination by the norm of the Lagrangian gradient. The algorithm will terminate when both...
Read more >
Minimize with 'trust-constr' violates the constraint ... - GitHub
Hi,. I have been trying to use minimize with the method 'trust-constr' to solve a maximum-likelihood optimization problem.
Read more >
scipy.optimize.minimize(method='trust-constr') doesn't ...
As I have boundaries on the coefficients as well as constraints, I used the trust-constr method within scipy. optimize. minimize . The ...
Read more >
Optimization (scipy.optimize)
The method 'trust-constr' requires the constraints to be defined as a sequence of objects LinearConstraint and NonlinearConstraint . Methods 'SLSQP' and 'COBYLA ...
Read more >
trust-constr - PyPI
trust -constr optimization algorithm from the SciPy project that was originally implemented by Antonio Horta Ribeiro. This is a version of the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found