Passing a function output to both objective function and nonlcon in fmincon

1 回表示 (過去 30 日間)
Jack
Jack 2018 年 11 月 28 日
コメント済み: Jack 2018 年 11 月 28 日
I am solving the optimisation of a function: f(y(x),x) with the non-linear constraint: g(y(x),x) with resect to u. Written in MATLAB as something like:
fmincon(@(x)(f(y(x),x)),x0,[],[],[],[],xlb,xub,@(x)deal(g(y(x),x),[]))
Is there any way to calculate y once per iteration? (without using globals)

回答 (0 件)

カテゴリ

Help Center および File ExchangeSolver Outputs and Iterative Display についてさらに検索

タグ

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by