From: czlowiek kuba on 24 Apr 2010 13:26 Is it possible to add constraints like x >= 0 to fsolve function? I didn't find any information on this matter in help.
From: John D'Errico on 24 Apr 2010 14:46 "czlowiek kuba" <czlowiekkuba(a)gmail.com> wrote in message <hqv9jd$s59$1(a)fred.mathworks.com>... > Is it possible to add constraints like x >= 0 to fsolve function? I didn't find any information on this matter in help. No. It is not. However, you can use lsqnonlin with bound constraints. If you can minimize the residuals to zero, then fsolve is satisfied. John
From: Torsten Hennig on 25 Apr 2010 22:33 > Is it possible to add constraints like x >= 0 to > fsolve function? I didn't find any information on > this matter in help. You can substitute x by a new variable y^2. If fsolve gives a solution for this system, x:=y^2 is a solution for your original equation, thus nonnegative. Best wishes Torsten.
|
Pages: 1 Prev: How to set atomic system in Simulink Next: help in maketform function |