91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 10.64MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-16
  • 語言: Matlab
  • 標簽: 優化??

資源簡介

含有各種需要的基本的優化求解器,下載后解壓放在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?if?(nargin?if?(nargin?
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?????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個文件信息

評論

共有 條評論