Code covered by the BSD License  

Highlights from
OpenOpt

image thumbnail

OpenOpt

by

 

25 Nov 2006 (Updated )

nonSmoothSolve (similar to fsolve), non-smooth & noisy local + some global solvers; works in Octave

ExtractRoutineParamsFromProb.m
% by Dmitrey
% if variable structName exist => it will be "opened"
% elseware will be "opened" struct prob.<solverName> (if exist)
if ~exist('structName', 'var') && isfield (prob, 'solverName') && isfield(prob, prob.solverName)
    structName = ['prob.' prob.solverName];
    eval(['Struct=' structName ';'])
    fn = fieldnames(Struct);
    for i = 1:length(fn)
        eval([fn{i} '=' structName '.' fn{i} ';'])
    end
end


Contact us