Optimization cost function file
Ältere Kommentare anzeigen
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 Kommentare
Rik
am 8 Jun. 2018
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
am 8 Jun. 2018
Check the document page of "fmincon" where they have examples for this. Most solvers for Matlab follow similar input format.
Mondeep maz
am 9 Jun. 2018
sabreen farouq
am 19 Aug. 2022
where i can find this famous cost function ?
Walter Roberson
am 20 Aug. 2022
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
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Surrogate Optimization finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!