... Thank you for your reply, much appreciate it. Actually, my bad, what I wanted to do, was to run mode compute=1, which should call fmincon, but Octave says "fmincon not defined in Octave", so it seems that Octave does not have a similar function as fmincon? [On the other hand, mode ...