How can I maximize a function in Matlab?
Show older comments
Hi everyone,
A(i,1) = sum(B(i,:)) + C*3;
I have function A as above. I wan t to maksimize this function. How can I do this?
Thanks.
4 Comments
Jan
on 9 Sep 2019
What is C? Which value do you want to optimize?
Abdullah Türk
on 9 Sep 2019
John D'Errico
on 9 Sep 2019
Edited: John D'Errico
on 9 Sep 2019
Why did you unaccept Jan's answer? It is the correct solution. What was wrong with it? Just negate the function, exactly as he said. Then you are minimizing the negative of your function, which maximizes it! So WTP?
Abdullah Türk
on 9 Sep 2019
Accepted Answer
More Answers (0)
Categories
Find more on Matrix Computations 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!