non-linear-optimization | Steepest Descent , Newton , Quasi-Newton and Conjugate
kandi X-RAY | non-linear-optimization Summary
kandi X-RAY | non-linear-optimization Summary
Implementation of Steepest Descent, Newton, Quasi-Newton and Conjugate Gradient for non-linear unconstrained optimization
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Perform a quasi - Newton - Newton algorithm
- Linear interpolation
- Calculate the step length of a function
- Evaluate a function fd
- Returns true if fd is less than alpha
- Calculate the gradient of an objective function
- Wrapper function for Newton s method
- R Steepest descent
- Simple Backtracking algorithm
non-linear-optimization Key Features
non-linear-optimization Examples and Code Snippets
Community Discussions
Trending Discussions on non-linear-optimization
QUESTION
I am trying to supply constraints to a a function minimisation that I have hitherto been performing successfully with an unconstrained algorithm available via scipy (scipy.optimize.fmin_l_bfgs_b()
).
Reading up (see, e.g, Python constrained non-linear optimization), I discovered a minimisation packed called mystic
that seems to be what I need. My situation is as follows. I have a function of 3N
variables (representing xyz position coordinates of N
nodes), and I want to supply a list of constraints such that z/x = const.
for each node. This makes for a total of N
constraints. How do I do define/supply these constraints most efficiently for mystic()
? Can the same constraint object be used with scipy.optimize.slsqp()
as well? Since my constraints are linear, this should be a viable option too.
I tried the following, but it crashed my computer:
...ANSWER
Answered 2018-Nov-14 at 04:24I'm the mystic
author. I believe what you are looking to do is something like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install non-linear-optimization
You can use non-linear-optimization like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page