An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20130729/53a0f20b/attachment.pl>
Help for optim
3 messages · Saman Monfared, Paulo Justiniano Ribeiro Jr
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20130729/4bd14d09/attachment.pl>
from the section Details of
?optim
By default ?optim? performs minimization, but it will maximize if
?control$fnscale? is negative.
Alternatively your chance the sigh of what is returned by your function
Paulo Justiniano Ribeiro Jr
LEG (Laboratorio de Estatistica e Geoinformacao)
Universidade Federal do Parana
Caixa Postal 19.081
CEP 81.531-990
Curitiba, PR - Brasil
Tel: (+55) 41 3361 3573
VOIP: (+55) (41) (3361 3600) 1053 1066
Fax: (+55) 41 3361 3141
e-mail: paulojus AT ufpr br
http://www.leg.ufpr.br/~paulojus
On Mon, 29 Jul 2013, Saman Monfared wrote:
Dear all, I want to optimize a function using optim. I have two problems: 1-how can i minimize function which fn value be positive because it can be negative? 2- how can i change it to maximization? Best, [[alternative HTML version deleted]]
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo