• 大小: 12.83MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-29
  • 语言: Matlab
  • 标签: gpops-2  

资源简介

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  gpops2\examples\
     目录           0  2013-01-04 04:33  gpops2\examples\brachistochone\
     文件         612  2013-01-03 01:14  gpops2\examples\brachistochone\brachistochroneContinuous.m
     文件         395  2013-01-03 01:14  gpops2\examples\brachistochone\brachistochroneEndpoint.m
     文件        4128  2013-01-03 19:06  gpops2\examples\brachistochone\brachistochroneMain.m
     目录           0  2013-01-04 04:33  gpops2\examples\BrysonDenham\
     文件         263  2012-12-27 04:13  gpops2\examples\BrysonDenham\BrysonDenhamContinuous.m
     文件         112  2012-12-27 04:13  gpops2\examples\BrysonDenham\BrysonDenhamEvents.m
     文件        2525  2012-12-27 23:52  gpops2\examples\BrysonDenham\BrysonDenhamMain.m
     目录           0  2013-01-04 04:33  gpops2\examples\dynamicSoaring\
     文件        1847  2012-12-27 04:13  gpops2\examples\dynamicSoaring\dynamicSoaringContinuous.m
     文件         329  2012-12-27 04:13  gpops2\examples\dynamicSoaring\dynamicSoaringEndpoint.m
     文件        3814  2012-12-27 04:13  gpops2\examples\dynamicSoaring\dynamicSoaringMain.m
     文件        2050  2013-01-03 19:06  gpops2\examples\dynamicSoaring\dynamicSoaringPlot.m
     目录           0  2013-01-04 04:33  gpops2\examples\hyperSensitive\
     文件         428  2013-01-03 19:06  gpops2\examples\hyperSensitive\hyperSensitiveContinuous.m
     文件         314  2013-01-03 19:06  gpops2\examples\hyperSensitive\hyperSensitiveEndpoint.m
     文件        3099  2013-01-03 19:06  gpops2\examples\hyperSensitive\hyperSensitiveMain.m
     文件        1701  2013-01-03 19:06  gpops2\examples\hyperSensitive\hyperSensitivePlot.m
     目录           0  2013-01-04 04:33  gpops2\examples\kineticBatchReactor\
     文件        8326  2012-12-27 04:13  gpops2\examples\kineticBatchReactor\bettsPhase1.mat
     文件        3236  2013-01-03 19:00  gpops2\examples\kineticBatchReactor\kineticBatchReactorContinuous.m
     文件        2813  2013-01-03 18:59  gpops2\examples\kineticBatchReactor\kineticBatchReactorEndpoint.m
     文件       13692  2013-01-03 18:59  gpops2\examples\kineticBatchReactor\kineticBatchReactorMain.m
     文件        1721  2013-01-03 15:11  gpops2\examples\kineticBatchReactor\kineticBatchReactorPlot.m
     文件      231056  2012-12-27 04:13  gpops2\examples\kineticBatchReactor\RPMIoutput.mat
     文件      149531  2012-12-27 04:13  gpops2\examples\kineticBatchReactor\RPMoutput.mat
     目录           0  2013-01-04 04:33  gpops2\examples\launch\
     文件        5274  2012-12-27 04:13  gpops2\examples\launch\launchContinuous.m
     文件        1877  2012-12-27 04:13  gpops2\examples\launch\launchEndpoint.m
............此处省略292个文件信息

评论

共有 条评论

相关资源