-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
budget allocation---nloptr #92
Comments
Hi Regina, no worries:) glad that you like it and want to know more.
|
Hi Regina, Closing this issue as it has been a long time. Please raise a new one if you have further questions :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Robyn team,
Thank you so much for giving me lots of support. I totally understand function code. However, I am looking at Optm code and have few questions want to ask.
build evaluation function : I saw you build evaluation function and use nloptr package to optimize. In evaluation function, eval_f, it return a list including objective, gradient, and objective.channel. In dt_optimOut table, I think we only use "eval_f(nlsMod$solution)[["objective.channel"]]" and didn't use objective and gradient. Could you please explain the reason of put objective and gradient? which step use objective and gradient?
i tried eval_f (x) function and I think x would be spending, is it right? I found there are lots of negative results and what's the meaning for these negative results?
eval_f(4354198)
$objective
[1] -3636.619
$gradient
[1] -1.446742e-07 -5.093368e-06 -1.917148e-13 -5.276625e-07
$objective.channel
[1] -926.9574 -1314.6663 -492.3336 -902.6618
###Result
NLopt solver status: 5 ( NLOPT_MAXEVAL_REACHED: Optimization stopped because maxeval (above) was reached.
Number of Iterations....: 100001
Termination conditions: xtol_rel: 1e-10 maxeval: 1e+05
Number of inequality constraints: 0
Number of equality constraints: 1
Current value of objective function: -167.973312354315
Current value of controls: 202304.2 23275.2 29175 57533.26
Sorry for list tons of questions here and really appreciated for explaining.
Best,
Regina
The text was updated successfully, but these errors were encountered: