I used "optim". I sometimes got err values of "-5", "12" or "13". The help page only explains err values between 1 and 10. What does err values "-5", "12" or "13" mean? Best regards -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html