-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from pvogt09/development
Decouplingcontrol and additional optimizers
- Loading branch information
Showing
210 changed files
with
11,455 additions
and
2,737 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
function [success, fileinfo] = minfunc(overwrite, nobuild) | ||
%MTIMES3D compile minFunc | ||
% Input: | ||
% overwrite: indicator, if mex file should be overwritten | ||
% nobuild: indicator, if compilation should not be done and only the file to compile should be returned | ||
% Output: | ||
% success: true, if compilation was successful, else false | ||
% fileinfo: information about the compiled function | ||
if nargin < 1 | ||
overwrite = true; | ||
end | ||
if nargin <= 1 | ||
nobuild = false; | ||
end | ||
file = realpath(fullfile(compile.destpath(), 'lib', 'optimization', 'minFunc', 'minFunc', 'mex', 'lbfgsC')); | ||
if nargout >= 2 | ||
fileinfo = struct(... | ||
'm', '',... | ||
'c', [file, '.c'],... | ||
'mex', [file, '.', mexext],... | ||
'build', [mfilename('fullpath'), '.m']... | ||
); | ||
end | ||
if nobuild | ||
success = true; | ||
return; | ||
end | ||
currdir = pwd(); | ||
cd(fullfile(compile.destpath(), 'lib', 'optimization', 'minFunc')); | ||
try | ||
if overwrite | ||
mexAll; | ||
end | ||
success = true; | ||
catch e | ||
if ~configuration.matlab.hascodertoolbox() | ||
warning(e.identifier, 'No license for Matlab Coder Toolbox available.'); | ||
else | ||
if strcmpi('', e.message) | ||
warning(e.identifier, 'Error in code generation.'); | ||
else | ||
warning(e.identifier, e.message); | ||
end | ||
end | ||
success = false; | ||
end | ||
cd(currdir); | ||
if nargout < 1 | ||
clear success; | ||
end | ||
end |
Oops, something went wrong.