/PA1

Primary LanguagePython

CS4789 Programming Assignment 1: CartPole Control with LQR Method

This repository contains files that may help you get started with the programming assignments 1. There are TODOs in the files finite_difference_method.py, lqr.py and cartpole_controller.py. Please refer to the docstring in these files for more details.

Usage

  • run and show the cartpole environment. (also generate a video under directory ./gym-results)
  $ python cartpole.py
  • test different initial states
  $ python test.py
  • test finite difference method
  $ python finite_difference_method.py