How to solve an optimization problem with an objective function which is not directly a function of decision variables?
古いコメントを表示
My objective function and constraints include some expressions each of which are defined separately. Therefore the OF and constraints does not directly include variables. I know that the optimization functions in Matlab require the variables to present in the constraints or OFs to be able to solve the problem. I cannot bring variables to my functions because I do max operation and some different for loops for their calculations separately.
4 件のコメント
Note, max() operations likely render your objective function/constraints non-differentiable. There are no constrained solvers in the Optimization Toolbox that can handle non-differentiable problems. Only the Global Optimization Toolbox solvers would be appropriate for them, or maybe FMINSEARCHCON
saman Tayari
2014 年 3 月 18 日
編集済み: saman Tayari
2014 年 3 月 18 日
Bahar Bahari
2019 年 12 月 15 日
編集済み: Walter Roberson
2020 年 10 月 7 日
Hello
I have the same question in using GA but I found the answer a bit complicated. Could you say the soloution for a simple question as follows:
a=10;
b=5;
x=2a+b
y=b/3
z=x+y
I want to minimize "z" while "a" & "b" are the variables.
Thank you very much.
Jacob Mathew
2020 年 10 月 7 日
Hey,
did you found a solution to this prob?
Regards.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Solver Outputs and Iterative Display についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!