Minimization of a Integral function

1 回表示 (過去 30 日間)
Tanmay
Tanmay 2015 年 1 月 23 日
コメント済み: Torsten 2015 年 1 月 26 日
I want to minimize (integration(f(w,x1,x2,..,xn)),w,0,1) and find the corresponding values of x1,x2... xn How can I implement this in MATLAB?? Help needed!!

回答 (2 件)

Torsten
Torsten 2015 年 1 月 23 日
Use MATLAB's "fminunc" with the objective function being your integral expression or "fmincon" with the objective function being your integral expression and possibly constraints on the parameters x1,x2,...,xn.
To evaluate the integral, use "integral".
Best wishes
Torsten.
  1 件のコメント
Tanmay
Tanmay 2015 年 1 月 23 日
Thanks!!

サインインしてコメントする。


Tanmay
Tanmay 2015 年 1 月 23 日
another thing how can I make the integrand user defined?
what I mean is, say i have a string s = '(w.^2).*((w.^2 - x(1).^2).^2)' and I want " @(x)integral(@(w)s,0,1) " where s is the above string.
Thank you in advance :)

カテゴリ

Help Center および File ExchangeNumerical Integration and Differentiation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by