Eigen-Levenberg-Marquardt-Optimization | Code for tutorial on how to use Eigen 's LM optimization | Learning library
kandi X-RAY | Eigen-Levenberg-Marquardt-Optimization Summary
kandi X-RAY | Eigen-Levenberg-Marquardt-Optimization Summary
Code for tutorial on how to use Eigen's LM optimization
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Eigen-Levenberg-Marquardt-Optimization
Eigen-Levenberg-Marquardt-Optimization Key Features
Eigen-Levenberg-Marquardt-Optimization Examples and Code Snippets
Community Discussions
Trending Discussions on Eigen-Levenberg-Marquardt-Optimization
QUESTION
I'm using Eigen's Levenberg-Marquardt implementation and wondering how to set some boundaries on the parameters which should be optimized.
As I'm migrating some GNU octave programs to Eigen I expected that there might be some boundaries which can be easily provided as parameters to the module.
The layout of my implemenation is nearly the same as in this example. I'm not providing the df() implemenatation but rather use Eigen::NumericalDiff in order to approximate it.
So how do I enforce some boundaries on the parameters which are supplied to minimize()? I thought about setting the errors(fvec) in the operator() to some high values when leaving my expected ranges, but in some small tests this resulted in strange results.
...ANSWER
Answered 2021-Jun-04 at 08:42I found a solution which is at least working for me.
The idea is to increase the error vector once the parameters are leaving their sanity boundaries.
This can be achieved by the following function:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Eigen-Levenberg-Marquardt-Optimization
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