Optimization for math equation

y=a[e^bx-e^(-cx)]
where
x=-0.5 to 0.5, a=10^(-4) to 10^(-5), b= 15 and c=20.
i) Find Y?
ii) By using the Values of x and y find the values of a,b and c?

3 件のコメント

Walter Roberson
Walter Roberson 2018 年 3 月 22 日
For the "optimization", is y to be minimized or maximized?
For either minimization or maximization, you can be certain that the optimal value for a will be either the minimum or the maximum possible value, since a is a constant multiplier .
Manikandan M
Manikandan M 2018 年 3 月 22 日
Dear Sir, We have a problem like this
" Problem description is given below. Given a vector x and another vector y (generated from the above code), we want to fit it to a function y = A (exp(bx)-exp(-cx)). We will pretend that we do not know the values of A, b and c. We need to find these parameter values from the data."
Torsten
Torsten 2018 年 3 月 22 日
Use "lsqcurvefit".
Best wishes
Torsten.

回答 (1 件)

Alan Weiss
Alan Weiss 2018 年 3 月 22 日

0 投票

For a more complete answer than Torsten gave, see this example, and if you have an Optimization Toolbox™ license, see this example.
Alan Weiss
MATLAB mathematical toolbox documentation

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

質問済み:

2018 年 3 月 22 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by