フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Optimization: which function is better for my case?

1 回表示 (過去 30 日間)
Matteo Iannitelli
Matteo Iannitelli 2015 年 9 月 18 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have to perform an optimization with 3 inputs over a cost function. The 3 inputs have precise boundaries and stay around 1. I have tried:
- fminbnd, but it seems to not accept vector x;
- fmincon, but it shows me an error (see figure below);
- fminsearch, which has a good performance, but of course the result doesn't satifies every time the constraint.
Do you have suggestions?

回答 (2 件)

Kirby Fears
Kirby Fears 2015 年 9 月 18 日
編集済み: Kirby Fears 2015 年 9 月 18 日
From the fmincon screen shot, you didn't get any errors - just a warning. It's more of a notification.
fmincon is the way to go. Go through the documentation carefully to insure that you're supplying inputs as intended. Keep an eye on setting the tolerances and boundaries appropriately.

Abdelmoumen Bacetti
Abdelmoumen Bacetti 2015 年 11 月 29 日
It would be better if you can provide some code.
From the output, and regarding the narrow interval of your variables, I suspect that your cost function is constant or the step size is not small enough to allow the algorithm find a decreasing direction.
If you had chosen a small step, make sure that your function is convex in the interval by plotting it.

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by