<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span><br></span></div><div><div style="font-size: 10pt; ">Não é esse o caso. No código que eu postei, a função l.u é otimizada somente com relação à 'u' (primeiro argumento da função), enquanto todos os outros valores ficam constantes.</div><div style="font-size: 10pt; "><br></div><div style="font-size: 10pt; ">Eu acabei postando a pergunta no r-help tb e a solução é bastante prosaica -- bastava nomear os argumentos, ie, optim(par=...,fn=...,...). De toda forma, obrigado pela resposta.</div><br class="Apple-interchange-newline"></div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><br><br><br> </div> </div>  </div></body></html>