Optimizer Question
Show older comments
This is an example of matlab optimizer: A =[-1 -2 -2; 1 2 2]; b = [0; 72];
x0 = [10; 10; 10];
[x,fval] = fmincon(@myfun,x0,A,b);
function f = myfun(x) f = x(1) * x(2) * x(3); end
So, but I want to minimize something of the form: f = x1.x2.x3 - 5*(delx1 . delx2. delx3);
Here, delx refers to change in x. i.e. if I use the function and optimize now I also need to worry about change in x.
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!