loco-3d / crocoddyl

Crocoddyl is an optimal control library for robot control under contact sequence. Its solver is based on various efficient Differential Dynamic Programming (DDP)-like algorithms
BSD 3-Clause "New" or "Revised" License
830 stars 170 forks source link

Included an stopping criteria test for KKT on LQR problem - [merged] #340

Closed wxmerkt closed 4 years ago

wxmerkt commented 4 years ago

In GitLab by @cmastalli on Dec 3, 2018, 13:20

Merges topic/unittest -> devel

This PR includes a very simple unit-test for stopping criteria in LQR problem. Basically, we build and solve a KKT problem (computeKKTPoint https://gepgitlab.laas.fr/loco-3d/cddp/blob/topic/unittest/unittest/ddp.py#L184). After that, we check that the gradient of the Lagrangian is equals zero.

Some extra comments:

This proposes a solution for the #17.

wxmerkt commented 4 years ago

In GitLab by @cmastalli on Dec 3, 2018, 13:23

merged

wxmerkt commented 4 years ago

In GitLab by @cmastalli on Dec 3, 2018, 13:23

mentioned in commit 29307f825ecc8d10114cab1a7cee7f7898126e58