Main /



MATLAB R2011a or later.

Installation instructions

Automatic installation

Download and run the installation script install_mpt3.m in Matlab. The script basically executes the steps below and asks for installation directories.

Manual installation

  1. Remove any previous installations of MPT2 and YALMIP from your path. If you do not have MPT2 or YALMIP installed, you can skip this step.
  1. Create a directory where MPT3 and accompanying toolboxes will be installed to. Call the directory tbxmanager for instance.
cd tbxmanager
  1. Install tbxmanager, our new mechanism for installing and updating free Matlab toolboxes (make sure to properly configure Matlab if you are behind a proxy server):
urlwrite('', 'tbxmanager.m');
  1. Install MPT3 and required toolboxes
tbxmanager install mpt mptdoc cddmex fourier glpkmex hysdel lcp yalmip sedumi espresso
  1. The path to all toolboxes can be set by issuing
tbxmanager restorepath
It is recommended to store this command in the initialization file startup.m because the path is set automatically everytime you start Matlab. Edit startup.m and store the above line in there. If there is no file startup.m, you can create one in the tbxmanager directory.
  1. Run mpt_init to initialize default settings for MPT3.


To update MPT3 and other installed toolboxes to their latest stable versions, run

tbxmanager update
clear classes

Living on the bleeding edge

If you want to help us with testing development versions of MPT3, subscribe to the unstable repository:

tbxmanager source add

Then run

tbxmanager update
clear classes

from time to time to update your MPT3 installation to the latest development version.


If you don't require MPT anymore, you can save some disk space by uninstalling it:

tbxmanager uninstall mpt mptdoc cddmex fourier glpkmex hysdel lcp yalmip sedumi espresso

Manual installation without tbxmanager

If you for any reason cannot use tbxmanager, you can install MPT3 and all required dependencies manually:

  1. Download latest versions of following packages (pick the correct download link for your operating system; prefer stable versions):
  2. Download the latest YALMIP release
  3. Unpack all downloaded archives to a directory (each archive will automatically create its own subdirectory)
  4. Set Matlab path to all subdirectories of the main directory created in the previous step
  5. Save your Matlab path for later use