back

Getting started

On this page you can download the latest OpenOCL v4.23. You can find older versions here.

Windows (Matlab > R2016a, 64bit) Linux (Matlab > R2014b, 64bit) Other
Matlab package (easiest) Matlab package (easiest) Get and setup CasADi (step 1)
Matlab code + binaries (you need to setup the path manually) Matlab code + binaries (you need to setup the path manually) Matlab Code (step2, you need to setup the path manually)

Matlab package installation and execution

If you have downloaded the Matlab package you are ready to go, just double click on the file and Matlab will install the packages as an Add-on. Then type

StartupOCL

and run an example, e.g.

mainCartPole

Matlab code + binaries

If you have downloaded the Matlab code + binaries, you need to unzip the downloaded folder, and navigate to it. Then do

StartupOCL

and run an example, e.g.

mainCartPole

If you would like to save your path using savepath or the Matlab path manager, add the main folder of OpenOCL without subfolders, and save the path. It is best to save the path before running StartupOCL so that the sub-directories of OpenOCL will not be saved to the path (by executing StartupOCL some folder will be added to the path).

Other configurations

If you have another configuration you need to setup CasADi manually.

Here is a step-by-step guide:

If you would like to save your path using savepath or the Matlab path manager, do this before running StartupOCL in order to not include the sub-directories.

Let us know if you run into any problems at info@openocl.org!