Skip to content
Prev 262093 / 398502 Next

Taking Integral and Optimization using Integrate, Optim and maxNR

On 06.06.2011 20:14, MARYAM ZOLGHADR wrote:
If you want to maximize f, either minimize -f or read ?optim and find 
that it tells us:
"By default this function performs minimization, but it will maximize if 
control$fnscale is negative. "
If you integrate  log(t)/(1-t) from t=1 (as you specified in your 
code!), then at t=1 the value is undefined ...


Uwe Ligges