Code Monkey home page Code Monkey logo

hw3_solutions's Introduction

HW3: Intro to Nonlinear Trajectory Optimization

Due date: Wednesday, March 24

In this homework you will implement some foundational methods for solving simple nonlinear trajectory optimization problems. Here's an overview of the problems:

  1. Implement iLQR to get a planar quadrotor to do a simple flip. Track with TVLQR to make it robust to wind.
  2. Write a sequential-quadratic-programming (SQP) solver to find a solution to the canonical cartpole problem. Generate a TVLQR controller to make it robust to model mismatch.

Running the Autograder

The autograder setup has changed slightly for this assignment. We'll no longer use GitHub actions to run the autograder (since it didn't really work last time, maybe in future assignements...). You will run all your tests locally. To run the full test suite the same way we will when grading your submission follow these instructions:

  1. Open a terminal in the root directory of your repo
  2. Launch a Julia REPL
  3. Enter the package manager using ] and enter activate .
  4. Launch the testing suite using test hw3

Each notebook now includes a run_tests() function at the end, that will run the test suite in your notebook. You can call that test at any point. It will just run the q1.jl, or q2.jl files in the test/ directory. Question 2 also has some additional test suites included in the middle of the notebook to help debug your methods.

Submitting your homework

Make sure your repo lives under the Class Organization. This will be done automatically when you use the GitHub Classrooms link we send provide.

  1. Add your info to the studentinfo function in src/hw3.jl
  2. Create a release. Follow these instructions for more info on creating the release.

Adding the Upstream Repo

We may release changes to the homework periodically if errors or bugs are found. Follow these instructions for linking your repo to the original template and pulling changes. It's always a good idea to branch your code before pulling from the upstream repo in case something goes wrong or the merge is particularly nasty. Do the right away after creating your repo.

git remote add upstream https://github.com/Optimal-Control-16-745/hw3
git pull upstream main --allow-unrelated-histories

hw3_solutions's People

Contributors

bjack205 avatar zacmanchester 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.