Skip to content

Neural Lyapunov control of unknown nonlinear systems with stability guarantees

Notifications You must be signed in to change notification settings

RuikunZhou/Unknown_Neural_Lyapunov

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unknown_Neural_Lyapunov

This repository contains the code for the paper: Neural Lyapunov control of unknown nonlinear systems with stability guarantees

Requirements

To calculate the Lipschitz constant of neural networks

How it works

This algorithm is made up of two neural netowrks and an SMT solver. The first neural network is responsible for learning the unknown dynamics. The second neural network aims to identify a valid Lyapunov function and a provably stabilizing nonlinear controller. The SMT solver then verifies that the candidate Lyapunov function indeed satisfies the Lyapunov conditions.

A typical procedure is as follows:

  • Learn the unknown dynamics with a Neural network (FNN)
  • Define the neural network with random parameters for Lyapunov function and initialize controller’s parameters with a LQR controller (VNN)
  • Define the learned dynamics with a nonlinear controller
  • Set checking conditions for falsifier with dReal
  • Start training and verifying for the neural Lyapunov function
  • Procedure stops when no counterexample is found

FNN approximates the unknown dynamics by minimizing the Mean Square Loss bettween the outputs and the targets, and the training process stops when the max of the 2-norm over all the samples reaches the desired value. In VNN, the learning process updates the parameters by iteratively minimizing the Lyapunov risk, a cost function measures the degree of violation of the Lyapunov conditions and the norm of partial derivatives, while the verifying part (SMT solver) periodically searches counterexample state vectors and adds them back to the training set for the next iteration.

Example

About

Neural Lyapunov control of unknown nonlinear systems with stability guarantees

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published