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 get depends on the initial guest. The help page says it uses the Powell hybrid method; I don't know it, but the Wikipedia page for the Powell method tells it finds a *local* minimum https://en.wikipedia.org/wiki/Powell%27s_method So you probably have to seed with several initial guests (randomly or systematically) and select the smallest one (unless you have another method to get closer to the final solution). HTH -- Christophe Dang Ngoc Chan Mechanical calculation engineer This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. _______________________________________________ users mailing list [email protected] http://lists.scilab.org/mailman/listinfo/users
