Optimization cost function file
이전 댓글 표시
Is it possible that optimization can be done without creating a seperate function file for the cost function and the constraint?..if yes then how can we do it....?
댓글 수: 5
Rik
2018년 6월 8일
What function are you using? Most functions will allow you to have a function handle as an input, so you can include a handle to a function in that same m-file (or even use an anonymous function).
Aquatris
2018년 6월 8일
Check the document page of "fmincon" where they have examples for this. Most solvers for Matlab follow similar input format.
Mondeep maz
2018년 6월 9일
sabreen farouq
2022년 8월 19일
where i can find this famous cost function ?
Walter Roberson
2022년 8월 20일
There are a few example cost functions such as rosenbeck, but mostly you write your own cost function depending on what you want to optimize.
See also Problem Based Optimization
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Surrogate Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!