What is the purpose of fminimax?
Show older comments
Is fminimax(@myFun1, x0) equivalent to fminunc(@myFun2, x0), where myFun1 and myFun2 are defined as follows:
function myFun1(x)
return [f1(x) f2(x) f3(x)];
end
function myFun2(x)
return max([f1(x) f2(x) f3(x)]);
end
and f1, f2, f3 are some arbitrary functions. If so, what's the use of fminimax? Does it perform better?
1 Comment
I think you really meant to define myFun1 and myFun2 as follows,
function out=myFun1(x)
out = [f1(x) f2(x) f3(x)];
end
function out=myFun2(x)
out=max([f1(x) f2(x) f3(x)]);
end
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with Optimization Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!