How can I maximize a function in Matlab?
古いコメントを表示
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 件のコメント
Jan
2019 年 9 月 9 日
What is C? Which value do you want to optimize?
Abdullah Türk
2019 年 9 月 9 日
John D'Errico
2019 年 9 月 9 日
編集済み: John D'Errico
2019 年 9 月 9 日
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
2019 年 9 月 9 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Matrix Computations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!