Giter VIP home page Giter VIP logo

coco's Introduction

CoCo: Combinatorial Offline, Convex Online

This repository contains code for Learning Mixed-Integer Convex Optimization Strategies for Robot Planning and Control by Abhishek Cauligi*, Preston Culbertson*, Bartolomeo Stellato, Dimitris Bertsimas, Mac Schwager, and Marco Pavone (* denotes equal contribution).

Installation

This repository uses cvxpy for the construction of the optimization problems and PyTorch for training the neural network models. The necessary Python packages can be installed by running the following script.

pip3 install -r requirements_cython.txt
pip3 install -r requirements.txt

We also use the Gurobi and Mosek commercial solvers for solving our problems.

Further, define an environment variable CoCo that points to the working directory where this packagee is installed.

Usage

This repo contains examples for three systems in robot planning and control:

  1. Cart-pole with contact

  1. Free-flyer motion planning

  1. Dexterous grasping

The MICP for each problem is defined in {system}/problem.jl using either the CVXPY modeling framework. The {system}/data_generation.ipynb notebook must be run first to generate the MICP datasets later used in training.

Each system has a {system}_dev.ipynb notebook that steps through the strategy construction, classifier training, and evaluation of the trained strategy predictions.

Quick Start

An example notebook can be run through:

jupyter notebook cartpole_dev.ipynb 

coco's People

Contributors

acauligi avatar dependabot[bot] avatar pculbertson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.