The feature of my f(x) defined for x>0 is as follows.
f(x)<0 for x0 for x1=x2
'fsolver' gives some x such as x>x2 as a solution.
I want to get x1 as a solution.
--
View this message in context:
http://mailinglists.scilab.org/fsolver-tp4033340p4033345.html
Sent from the
Le 27/01/2016 16:54, fujimoto2005 a écrit :
The feature of my f(x) defined for x>0 is as follows.
f(x)<0 for x0 for x1=x2
'fsolver' gives some x such as x>x2 as a solution.
I want to get x1 as a solution.
--
View this message in context:
May be you can use optim instead of fsolve using f(x)^2+alpha*norm(x)^2
as cost function with alpha small enough
If you cannot compute the gradient of the cost function you can use the
numderivative function to estimate it.
Serge
Le 27/01/2016 16:54, fujimoto2005 a écrit :
The feature of my
Hi, Christophe
I give a very small value as an initial point because it is known as the
character of my actual problem that this small value is necessarily smaller
than the smallest solution.
But 'fsolver' gives the largest solution which is most apart from the
initial point.
Best regards.
Hi,mottelet
Now I understand I don't need to provide the value of 'Ind '.
As explained in the help page, 'the ind input argument is a message sent
from the solver to the cost function ' .
Also I understand I have to provide the gradient explicitly even if I don't
need its value.
Unless an user
if f(x)=0 has multiple solutions and I want to get the smallest solution, is
there any way to get a such solution by 'fsolver'?
In my actual problem, 'fsolver' give the largest solution.
Best regards
--
View this message in context:
http://mailinglists.scilab.org/fsolver-tp4033340.html
Sent
Hello,
> De : fujimoto2005
> Envoyé : mercredi 27 janvier 2016 15:24
>
> if f(x)=0 has multiple solutions and I want to get the smallest solution, is
> there any way to get a such solution by 'fsolver'?
> In my actual problem, 'fsolver' give the largest solution.
I'm afraid the solution you
Of course, read "guess" instead of "guest" (-:
--
Christophe Dang Ngoc Chan
Mechanical calculation engineer
-Message d'origine-
De : Dang Ngoc Chan, Christophe
Envoyé : mercredi 27 janvier 2016 16:00
À : 'Users mailing list for Scilab'
Objet : RE: [Scilab-users]