All Projects → StanfordASL → neural-network-lyapunov

StanfordASL / neural-network-lyapunov

Licence: MIT license
Synthesizing neural-network Lyapunov functions (and controllers) as stability certificate.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to neural-network-lyapunov

Antiddos System
🛡️⚔️ Protect your web app from DDOS attack or the Dead Ping + CAPTCHA VERIFICATION in one line!
Stars: ✭ 173 (+110.98%)
Mutual labels:  verification
Symbiotic
Symbiotic is a tool for finding bugs in computer programs based on instrumentation, program slicing and KLEE
Stars: ✭ 212 (+158.54%)
Mutual labels:  verification
core-v-verif
Functional verification project for the CORE-V family of RISC-V cores.
Stars: ✭ 283 (+245.12%)
Mutual labels:  verification
Md5 File
return an md5sum of a given file
Stars: ✭ 176 (+114.63%)
Mutual labels:  verification
Alive2
Automatic verification of LLVM optimizations
Stars: ✭ 199 (+142.68%)
Mutual labels:  verification
Stainless
Verification framework and tool for higher-order Scala programs
Stars: ✭ 241 (+193.9%)
Mutual labels:  verification
Software Quality Wiki
Software Quality Wiki
Stars: ✭ 1,991 (+2328.05%)
Mutual labels:  verification
DocumentReader-iOS
iOS Framework for reading and validation of identification documents
Stars: ✭ 54 (-34.15%)
Mutual labels:  verification
Alive
Alive: Automatic LLVM's Instcombine Verifier
Stars: ✭ 204 (+148.78%)
Mutual labels:  verification
qcec
MQT QCEC - A tool for Quantum Circuit Equivalence Checking
Stars: ✭ 64 (-21.95%)
Mutual labels:  verification
Whileycompiler
The Whiley Compiler (WyC)
Stars: ✭ 181 (+120.73%)
Mutual labels:  verification
Android Play Safetynet
Samples for the Google SafetyNet Attestation API
Stars: ✭ 195 (+137.8%)
Mutual labels:  verification
anti-ddos-lite
Anti-DDoS-Lite (Anti-Crawler app) is a small PHP app to protect your site against DDoS attack.
Stars: ✭ 96 (+17.07%)
Mutual labels:  verification
Laravel2step
Laravel 2-Step verification is a package to add 2-Step user authentication to any Laravel project easily. It is configurable and customizable. It uses notifications to send the user an email with a 4-digit verification code. Laravel 2-Step Authentication Verification for Laravel. Can be used in out the box with Laravel's authentication scaffolding or integrated into other projects.
Stars: ✭ 175 (+113.41%)
Mutual labels:  verification
laravel-otp-login
Adds a customizable, translatable, configurable OTP verification step to Laravel Auth. You can add your own SMS provider too.
Stars: ✭ 16 (-80.49%)
Mutual labels:  verification
Fstar
A Proof-oriented Programming Language
Stars: ✭ 2,171 (+2547.56%)
Mutual labels:  verification
Flint
The Flint Programming Language for Smart Contracts
Stars: ✭ 228 (+178.05%)
Mutual labels:  verification
passport-activedirectory
Active Directory strategy for passport.js
Stars: ✭ 28 (-65.85%)
Mutual labels:  verification
verify-apple-id-token
Verify the Apple id token on the server side.
Stars: ✭ 49 (-40.24%)
Mutual labels:  verification
KWVerificationCodeView
A customisable verification code view to capture OTPs
Stars: ✭ 83 (+1.22%)
Mutual labels:  verification

Introduction

This repo contains the code for the two papers

We can synthesize neural-network controllers with Lyapunov stability guarantees. Namely for all the initial states within a certain region, the controller will drive the system from these initial states to converge to the goal state.

Setup

Python requirements

We use python 3 in this project. You could first install the packages in requirements.txt.

Install gurobi

Please download gurobi from https://www.gurobi.com/products/gurobi-optimizer/. We require at least gurobi 9.5. After downloading the software, please install its Python API by following https://www.gurobi.com/documentation/9.0/quickstart_mac/the_grb_python_interface_f.html

To check your gurobi installation, type the following command in your terminal:

$ python3 -c "import gurobipy"

There should be no error thrown when executing the command.

Setup environment variable

In the terminal, please run

$ python3 setup.py

It will print out the command to setup the environment variables. Execute that command in your terminal.

Run a toy example

You could run

$ python3 neural_network_lyapunov/test/train_toy_system_controller_demo.py --dimension=1

This will synthesize a stabilizing controller with a Lyapunov function for a toy 1D system (TODO: add some visualization at the end of the demo). You should see that the error printed on the screen decreases to almost 0. (The code is non-deterministic, so if it doesn't converge to 0 in the first trial, you can re-run the demo and hopefully it converges in the second trial).

Contributing to repo

Linting

We use flake8 to check if the python code follows PEP standard. Before submitting the PR, you could run

$ cd neural_network_lyapunov
$ flake8 ./

to check if there are any violations.

Unit test

I am a strong believer of unit test. We strongly encourage to add tests to the functions in the PR.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].