SkillAgentSearch skills...

BFGS

Implementation of Broyden, Fletcher, Goldfarb and Shanno's (BFGS) quasi Newton's method in c++.

Install / Use

/learn @gcjyzdd/BFGS
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

BFGS

Implementation of Broyden, Fletcher, Goldfarb and Shanno's (BFGS) quasi Newton's method in c++.

Installation

git clone git@github.com:gcjyzdd/BFGS.git
cd BFGS
chmod +x test.sh
./test.sh

Examples

In the main.cpp, there is an example of applying BFGS to solve model predictive control.

To run the example, type

./bin/mpc_test

The result of MPC is shown below:

<div style="text-align:center"><img src ='./images/demo_mpc.png' /></div>

It takes 4.87416ms to solve MPC per run on my PC.

Dependencies

Eigen-3.3 or later.

TODO

Show a demo of comparison with the matlab example Swing-up Control of a Pendulum Using Nonlinear Model Predictive Control.

Related Skills

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated1y ago
Forks0

Languages

C++

Security Score

70/100

Audited on Jul 12, 2024

No findings