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!