3
• You get no warranties of any kind;
• If the software damages you in any way, you may only recover direct damages up to the amount you
paid for it (that is, you get zero if you did not pay anything for the software);
• You may not recover any other damages, including those called ”consequential damages.” (The state
or country where you live may not allow you to limit your liability in this way, so this may not apply
to you).
Neither authors nor their employers (past, present, or future) assume any responsibility whatsoever from
any harm resulting from the software.
GPOPS − II is provided “as is” without warranty of any kind, expressed or implies, including but not
limited to the warranties of merchantability, fitness for a particular purpose, and non-infringement. In no
event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in
an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use
or dealings in the software.
Licensing Agreement
By downloading, using, modifying, or distributing GPOPS2, you agree to the terms of the license agreement as
stated on the website http://www.gpops2.com/License/License.html. Please read the license terms
and conditions carefully before proceeding to download, install, or use GPOPS −II
Installation Instructions
GPOPS − II can be installed using any version of MATLAB after R2011a on any computer that runs Mi-
crosoft Windows 32-bit and 64-bit, Linux 64-bit, or Mac OS-X 64-bit. The installation instructions are as
follows:
(1) Unzip the zip archive from the download link that was supplied when you registered or purchased
GPOPS − II. Once the file is unzipped, place the license file you received in the directory $GPOPS2/license
(where $GPOPS2 is the root directory where GPOPS − II was unzipped).
(2) Start MATLAB, change to the directory $GPOPS2, and execute the file “gpopsMatlabPathSetup.m”
from the MATLAB command prompt. The execution of “gpopsMatlabPathSetup.m” will attempt to
write to the master path definition file “pathdef.m”. If “pathdef.m” cannot be written to (for example,
if you are not the administrator of the computer or if you otherwise do not have permission to write
to “pathdef.m”), then the GPOPS −II directories will not be saved when MATLAB is closed. If the
MATLAB path cannot be saved and you want to include the GPOPS − II directories each time MATLAB
starts, you will need to add the GPOPS − II paths using the “addpath” command in a “startup.m” file
and place the “startup.m” file in your MATLAB home working directory.
For completeness, if you do not have permission to write to the “pathdef.m” file, then the following addpath
commands should be included in the “startup.m” file so that you have a functioning GPOPS − II installation
each time MATLAB is started:
addpath('$GPOPS2/license');
addpath('$GPOPS2/nlp/ipopt');
addpath('$GPOPS2/gpopsUtilities');
addpath('$GPOPS2/lib/gpopsCommon');
addpath('$GPOPS2/lib/gpopsMeshRefinement');
addpath('$GPOPS2/lib/gpopsAutomaticScaling');
addpath('$GPOPS2/lib/gpopsADiGator');
addpath('$GPOPS2/lib/gpopsFiniteDifference');
addpath('$GPOPS2/lib/gpopsRPMDifferentiation');
addpath('$GPOPS2/lib/gpopsRPMDifferentiation/gpopsIpoptRPMD');
addpath('$GPOPS2/lib/gpopsRPMDifferentiation/gpopsSnoptRPMD');