资源简介
含有各种需要的基本的优化求解器,下载后解压放在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优化工具箱讲解
- 龚纯《精通MATLAB最优化计算》随书源
- 工程优化问题的Matlab实现代码
- 协同进化遗传算法求解函数优化问题
- 粒子群算法优化pid源码 matlab仿真.ra
- 坐标转换/坐标标定(matlab优化方法实
- 多种群遗传算法的函数优化算法(源
- 30个优化智能算法matlab
- 粒子群算法优化RBF网络matlab源码
- pso解决单目标优化问题
- 灰狼优化算法求解柔性作业车间问题
- 利用WOA算法优化libsvm中SVDD算法的参数
- 最优化算法规划-单纯形法MATLAB程序
- 蝴蝶优化算法
- 优化的基于不定频滞环的SVPWM控制si
- 灰狼优化算法的仿真
- 粒子群算法求解函数优化问题.zip
- 最优化方法及其Matlab程序设计 - 马昌
- matlab求解最优化线性规划问题代码以
- 论文研究-基于改进蚁群算法的车辆路
- 精通MATLAB最优化计算全书配套算法M文
- matlab开发-果蝇优化算法第二版
- 《MATLAB优化算法案例分析与应用》随
- bbocomplex 生物地理学算法
- Sedumi工具箱_.zip
- 最优化方法及其matlab程序实现.zip
- matlab的cvx安装包
- matlab智能优化算法30个案例代码
- 最优化方法及MATLAB的实现最优化技术
评论
共有 条评论