资源简介
含有各种需要的基本的优化求解器,下载后解压放在matlab安装目录下的toolbox里面,在求解基本优化问题时可以直接调用里面的优化求解器。
代码片段和文件信息
function opti_Install(savePathrunTestsopenBrowser)
% OPTI Toolbox Installation File
%
% opti_Install(savePath runTests openBrowser)
%
% savePath: Save the paths added by OPTI to the MATLAB path
% runTests: Run the post-installation tests
% openBrowser: Whether to open the OPTI Toolbox Website after installation
%
% All arguments are optional and if not supplied the user will be prompted
% to enter their selection in the MATLAB Command Window. True is the
% default option for each argument.
%
% You MUST be in the current directory of this file!
%
% Copyright (C) 2017 Jonathan Currie (Inverse Problem Limited)
% https://inverseproblem.co.nz/OPTI/
% Handle missing input args
if (nargin < 3) openBrowser = []; end
if (nargin < 2) runTests = []; end
if (nargin < 1) savePath = []; end
cpath = cd;
try
cd(‘Utilities/opti‘);
catch %#ok
error(‘You don‘‘t appear to be in the OPTI Toolbox directory‘);
end
%Get current versions
localVer = optiver();
fprintf(‘\n------------------------------------------------\n‘)
fprintf([‘ INSTALLING OPTI TOOLBOX ver ‘ sprintf(‘%1.2f‘localVer) ‘\n‘])
cd(cpath);
% Check ML ver
matlabVerCheck();
% Perform MEX File check (also checks pre-reqs)
if (~mexFileCheck(localVer cpath))
return;
end
%Uninstall previous versions of OPTI
fprintf(‘\n- Checking for previous versions of OPTI Toolbox...\n‘);
no = opti_Uninstall(‘opti_Install.m‘0);
if(no < 1)
fprintf(‘Could not find a previous installation of OPTI Toolbox\n‘);
else
fprintf(‘Successfully uninstalled previous version(s) of OPTI Toolbox\n‘);
end
%Add toolbox path to MATLAB
fprintf(‘\n- Adding OPTI Paths to MATLAB Search Path...‘);
genp = genpath(cd);
genp = regexp(genp‘;‘‘split‘);
%Folders to exclude from adding to Matlab path
i = 1;
rInd{::i} = strfind(genp‘Documentation + Licenses‘); i = i + 1;
rInd{::i} = strfind(genp‘Source‘); i = i + 1;
rInd{::i} = strfind(genp‘CppAD‘); i = i + 1;
rInd{::i} = strfind(genp‘misdp‘); i = i + 1;
rInd{::i} = strfind(genp‘tex‘); i = i + 1;
rInd{::i} = strfind(genp‘.git‘); i = i + 1;
rInd{::i} = strfind(genp‘Crash Files‘); i = i + 1;
rInd{::i} = strfind(genp‘mexopts‘); i = i + 1;
if(~exist([cd ‘\Solvers\Source\lib\win32\libclp.lib‘]‘file‘))
rInd{::i} = strfind(genp‘Development‘); i = i + 1;
end
ind = NaN(length(rInd{1})1);
%Track indices of paths to remove from list
for i = 1:length(rInd{1})
for j = 1:size(rInd3)
if(any(rInd{j}{i}))
ind(i) = 1;
end
end
end
%Remove paths from above and add to matlab path
genp(ind == 1) = [];
addpath(genp{:});
rehash
fprintf(‘Done\n\n‘);
if (isempty(savePath))
in = input(‘- Would You Like To Save the Path Changes? (Recommended) (y/n): ‘‘s‘);
else
in = bool2yn(savePath);
end
if(strcmpi(in‘y‘))
try
savepath;
catch %#ok
warning(‘opti:install‘[‘It appears you do not have administrator rights on your computer to save the Matlab path. ‘...
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-10-23 03:55 OPTI-master\
文件 226 2017-10-23 03:55 OPTI-master\.gitignore
目录 0 2017-10-23 03:55 OPTI-master\@opti\
文件 38161 2017-10-23 03:55 OPTI-master\@opti\buildConfig.m
文件 62061 2017-10-23 03:55 OPTI-master\@opti\buildOpti.m
文件 11729 2017-10-23 03:55 OPTI-master\@opti\calcStatistics.m
文件 5802 2017-10-23 03:55 OPTI-master\@opti\checkOptiSol.m
文件 19182 2017-10-23 03:55 OPTI-master\@opti\displayOPTI.m
文件 14968 2017-10-23 03:55 OPTI-master\@opti\multiSolveOpti.m
文件 20064 2017-10-23 03:55 OPTI-master\@opti\opti.m
文件 22648 2017-10-23 03:55 OPTI-master\@opti\solveOpti.m
文件 3406 2017-10-23 03:55 OPTI-master\@opti\testProblem.m
目录 0 2017-10-23 03:55 OPTI-master\Examples\
文件 2996 2017-10-23 03:55 OPTI-master\Examples\AMPL_Examples.m
文件 4946 2017-10-23 03:55 OPTI-master\Examples\Basic_Usage.m
文件 6911 2017-10-23 03:55 OPTI-master\Examples\Differentiation_Examples.m
文件 1995 2017-10-23 03:55 OPTI-master\Examples\FileIO_Examples.m
文件 6649 2017-10-23 03:55 OPTI-master\Examples\Global_NonlinearProgramming.m
文件 2940 2017-10-23 03:55 OPTI-master\Examples\LinearProgramming.m
文件 4138 2017-10-23 03:55 OPTI-master\Examples\MATLAB_Overloads.m
文件 3434 2017-10-23 03:55 OPTI-master\Examples\MixedInteger_LinearProgramming.m
文件 8679 2017-10-23 03:55 OPTI-master\Examples\NonlinearProgramming.m
文件 2374 2017-10-23 03:55 OPTI-master\Examples\QuadraticProgramming.m
文件 10297 2017-10-23 03:55 OPTI-master\Examples\SymBuilder_Examples.m
文件 2506 2017-10-23 03:55 OPTI-master\README.md
目录 0 2017-10-23 03:55 OPTI-master\Solvers\
目录 0 2017-10-23 03:55 OPTI-master\Solvers\Documentation + Licenses\
目录 0 2017-10-23 03:55 OPTI-master\Solvers\Documentation + Licenses\bonmin\
文件 978 2017-10-23 03:55 OPTI-master\Solvers\Documentation + Licenses\bonmin\AUTHORS
文件 313464 2017-10-23 03:55 OPTI-master\Solvers\Documentation + Licenses\bonmin\BONMIN_UsersManual.pdf
文件 11613 2017-10-23 03:55 OPTI-master\Solvers\Documentation + Licenses\bonmin\LICENSE
............此处省略1137个文件信息
相关资源
- 精通MATLAB最优化计算光盘内容
- MATLAB实现群体多目标优化算法MOALO蚁狮
- DIRECT 全局优化算法 matlab程序 附带
- SVM分类器.zip
- 基于智能优化的机器人路径规划matl
- 最优化方法及其matlab设计课件以及源
- gpops工具箱详细注释官方手册安装方法
- matlab最优化问题
- 多目标函数优化
- 差分蜂群优化算法MATLAB实现.rar
- 基于MATLAB与Comsol联合仿真的电磁优化
- 精通Matlab最优化计算源代码114682
- 1stopt1.5破解版.zip
- matlab优化工具箱教程
- MATLAB优化算法测试函数
- 多目标优化文档及代码
- 基于优化的ADRC在异步电机矢量控制系
- MATLAB多种优化算法介绍
- 最优化方法及MATLAB的实现
- 多目标优化算法
- 精通matlab最优化计算光盘(第二版)
- 节约里程法求解CVP_MATLAB.zip
- 基于MATLAB的无碳小车轨迹优化
- 超完整规范的多目标遗传优化算法M
- Matlab优化算法.pdf
- 2017年电工杯优化类微电网调度问题一
- matlab算法大全
- Matlab优化算法PDF
- 最优化方法及其Matlab程序设计 马昌凤
- platEMO内涵几乎所有多目标优化问题的
评论
共有 条评论