gpops-IIgpops-IIgpops-II


A General-Purpose MATLAB Toolbox for Solving Optimal Control Problems Using Sparse Nonlinear Programming and hp–Adaptive Pseudospectral Methods
资源截图
代码片段和文件信息

% optimalprimePathSetup
% this script adds the appropriate paths for use of optimalprime to the
% MATLAB path directory

% get current directory
currdir = pwd;

% add opRPMintegration/opRPMIsnopt/
disp([‘Adding path ‘pwd‘/lib/gpopsRPMIntegration/gpopsSnoptRPMI/‘]);
addpath([pwd‘/lib/gpopsRPMIntegration/gpopsSnoptRPMI/‘]‘-begin‘);

% add opRPMintegration/opRPMIipopt/
disp([‘Adding path ‘pwd‘/lib/gpopsRPMIntegration/gpopsIpoptRPMI/‘]);
addpath([pwd‘/lib/gpopsRPMIntegration/gpopsIpoptRPMI/‘]‘-begin‘);

% add opRPMintegration/
disp([‘Adding path ‘pwd‘/lib/gpopsRPMIntegration/‘]);
addpath([pwd‘/lib/gpopsRPMIntegration/‘]‘-begin‘);

% add opRPMdifferentiation/opRPMDsnopt/
disp([‘Adding path ‘pwd‘/lib/gpopsRPMDifferentiation/gpopsSnoptRPMD/‘]);
addpath([pwd‘/lib/gpopsRPMDifferentiation/gpopsSnoptRPMD/‘]‘-begin‘);

% add opRPMdifferentiation/opRPMDipopt/
disp([‘Adding path ‘pwd‘/lib/gpopsRPMDifferentiation/gpopsIpoptRPMD/‘]);
addpath([pwd‘/lib/gpopsRPMDifferentiation/gpopsIpoptRPMD/‘]‘-begin‘);

% add opRPMdifferentiation/
disp([‘Adding path ‘pwd‘/lib/gpopsRPMDifferentiation/‘]);
addpath([pwd‘/lib/gpopsRPMDifferentiation/‘]‘-begin‘);
% add opOCPfinitediff/
disp([‘Adding path ‘pwd‘/lib/gpopsFiniteDifference/‘]);
addpath([pwd‘/lib/gpopsFiniteDifference/‘]‘-begin‘);

% add opMeshHP1/
disp([‘Adding path ‘pwd‘/lib/gpopsMeshHP1/‘]);
addpath([pwd‘/lib/gpopsMeshHP1/‘]‘-begin‘);

% add opMeshHP/
disp([‘Adding path ‘pwd‘/lib/gpopsMeshHP/‘]);
addpath([pwd‘/lib/gpopsMeshHP/‘]‘-begin‘);

% add opCommon/
disp([‘Adding path ‘pwd‘/lib/gpopsCommon/‘]);
addpath([pwd‘/lib/gpopsCommon/‘]‘-begin‘);

% add NLP directory
disp([‘Adding path ‘pwd‘/nlp/‘]);
addpath([pwd‘/nlp/‘]‘-begin‘);

% add SNOPT directory
disp([‘Adding path ‘pwd‘/nlp/snopt/‘]);
addpath([pwd‘/nlp/snopt/‘]‘-begin‘);

% add IPOPT directory
disp([‘Adding path ‘pwd‘/nlp/ipopt/‘]);
addpath([pwd‘/nlp/ipopt/‘]‘-begin‘);

% save current path
savepath;

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-01-04 04:33  gpops2
     目录           0  2013-01-04 04:33  gpops2examples
     目录           0  2013-01-04 04:33  gpops2examplesrachistochone
     文件         612  2013-01-03 01:14  gpops2examplesrachistochonerachistochroneContinuous.m
     文件         395  2013-01-03 01:14  gpops2examplesrachistochonerachistochroneEndpoint.m
     文件        4128  2013-01-03 19:06  gpops2examplesrachistochonerachistochroneMain.m
     目录           0  2013-01-04 04:33  gpops2examplesBrysonDenham
     文件         263  2012-12-27 04:13  gpops2examplesBrysonDenhamBrysonDenhamContinuous.m
     文件         112  2012-12-27 04:13  gpops2examplesBrysonDenhamBrysonDenhamEvents.m
     文件        2525  2012-12-27 23:52  gpops2examplesBrysonDenhamBrysonDenhamMain.m
     目录           0  2013-01-04 04:33  gpops2examplesdynamicSoaring
     文件        1847  2012-12-27 04:13  gpops2examplesdynamicSoaringdynamicSoaringContinuous.m
     文件         329  2012-12-27 04:13  gpops2examplesdynamicSoaringdynamicSoaringEndpoint.m
     文件        3814  2012-12-27 04:13  gpops2examplesdynamicSoaringdynamicSoaringMain.m
     文件        2050  2013-01-03 19:06  gpops2examplesdynamicSoaringdynamicSoaringPlot.m
     目录           0  2013-01-04 04:33  gpops2exampleshyperSensitive
     文件         428  2013-01-03 19:06  gpops2exampleshyperSensitivehyperSensitiveContinuous.m
     文件         314  2013-01-03 19:06  gpops2exampleshyperSensitivehyperSensitiveEndpoint.m
     文件        3099  2013-01-03 19:06  gpops2exampleshyperSensitivehyperSensitiveMain.m
     文件        1701  2013-01-03 19:06  gpops2exampleshyperSensitivehyperSensitivePlot.m
     目录           0  2013-01-04 04:33  gpops2exampleskineticBatchReactor
     文件        8326  2012-12-27 04:13  gpops2exampleskineticBatchReactorettsPhase1.mat
     文件        3236  2013-01-03 19:00  gpops2exampleskineticBatchReactorkineticBatchReactorContinuous.m
     文件        2813  2013-01-03 18:59  gpops2exampleskineticBatchReactorkineticBatchReactorEndpoint.m
     文件       13692  2013-01-03 18:59  gpops2exampleskineticBatchReactorkineticBatchReactorMain.m
     文件        1721  2013-01-03 15:11  gpops2exampleskineticBatchReactorkineticBatchReactorPlot.m
     文件      231056  2012-12-27 04:13  gpops2exampleskineticBatchReactorRPMIoutput.mat
     文件      149531  2012-12-27 04:13  gpops2exampleskineticBatchReactorRPMoutput.mat
     目录           0  2013-01-04 04:33  gpops2exampleslaunch
     文件        5274  2012-12-27 04:13  gpops2exampleslaunchlaunchContinuous.m
     文件        1877  2012-12-27 04:13  gpops2exampleslaunchlaunchEndpoint.m
............此处省略292个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)