Prerequisites
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
- 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.
rmpath(genpath(fileparts(which('mpt_init'))))
rmpath(genpath(fileparts(which('yalmipdemo'))))
- Create a directory where MPT3 and accompanying toolboxes will be installed to. Call the directory
tbxmanager
for instance.
mkdir('tbxmanager')
cd tbxmanager
- 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('http://www.tbxmanager.com/tbxmanager.m', 'tbxmanager.m');
tbxmanager
savepath
- Install MPT3 and required toolboxes
tbxmanager install mpt mptdoc cddmex fourier glpkmex hysdel lcp yalmip sedumi espresso
- The path to all toolboxes can be set by issuing
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.
- Run
mpt_init
to initialize default settings for MPT3.
Updating
To update MPT3 and other installed toolboxes to their latest stable versions, run
tbxmanager update
clear classes
mpt_init
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 http://www.tbxmanager.com/package/unstable.xml/mpt
Then run
tbxmanager update
clear classes
mpt_init
from time to time to update your MPT3 installation to the latest development version.
Removal
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:
- Download latest versions of following packages (pick the correct download link for your operating system; prefer stable versions):
- Download the latest YALMIP release
- Unpack all downloaded archives to a directory (each archive will automatically create its own subdirectory)
- Set Matlab path to all subdirectories of the main directory created in the previous step
- Save your Matlab path for later use