# Installation¶

This section describes how to obtain RK-opt and test that it is working correctly.

## Dependencies¶

• MATLAB 7.X or greater
• MATLAB optimization toolbox

## Obtaining RK-opt¶

• Or clone:

\$ git clone https://github.com/ketch/RK-opt.git

You can test your RK-opt installation with xUnit.

## Installing xUnit¶

The MATLAB xUnit test framework can be downloaded for free at http://www.mathworks.com/matlabcentral/fileexchange/22846 (after the link, click on the button in the upper right corner). An easy way to install xUnit without setting any environment variables is to add the following lines to your startup.m file:

addpath /path/to/matlab/xunit/matlab_xunit


## Running the tests¶

To run the tests, do the following in MATLAB:

>> cd /path/to/RK/Opt/general/test
>> runtests

If everything is set up correctly, this will run several tests, and inform you that the tests passed. At present the tests are not very extensive.