Info

此问题已关闭。 请重新打开它进行编辑或回答。

Optimization using lsqnonneg function

1 次查看(过去 30 天)
rihab
rihab 2015-11-10
关闭: MATLAB Answer Bot 2021-8-20
I have to find value of x that minimizes norm of|C*exp(x) - d| subject to x >= 0. I am finding the value of exp(x) that minimizes norm of|C*exp(x) - d| using lsqnonneg function of MATLAB and further I am taking logarthmic of exp(x) to find the value of x. Is this a correct approach or is there some other way in MATLAB to do so? I would appreciate suggestions.
  10 个评论
Torsten
Torsten 2015-11-10
Then solve
min: ||C*y-d||^2 subject to y>=0
with lsqnonneg. x=log(y) will be the solution of the original problem.
Best wishes
Torsten.

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by