Optimization using lsqnonneg function
Informazioni
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Mostra commenti meno recenti
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 Commenti
rihab
il 10 Nov 2015
Torsten
il 10 Nov 2015
exp(x)>=1 for x>=0.
So you will have to solve
min:||C*(x+1)-d||^2 subject to x>=0
Best wishes
Torsten.
rihab
il 10 Nov 2015
Torsten
il 10 Nov 2015
You still have the constraint x>=0 ...
Best wishes
Torsten.
rihab
il 10 Nov 2015
Torsten
il 10 Nov 2015
So which problem do you want to solve then ?
minimize the norm of ||C*exp(x)-d||^2
(without the constraint x>=0) ?
Best wishes
Torsten.
rihab
il 10 Nov 2015
Torsten
il 10 Nov 2015
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.
rihab
il 10 Nov 2015
Risposte (0)
Questa domanda è chiusa.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!