-
Notifications
You must be signed in to change notification settings - Fork 17
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
simultaneously evaluated objective and constraint #51
Comments
The NLPModels API makes provisions for an Sorry if this isn’t a permanent solution but for the time being, perhaps a simple caching mechanism could save you some computations?! |
Where is |
Hi @tpapp
or visit directly NLPModels.jl's doc |
Thanks for this great package, I find it very useful for structural estimation in macroeconomics.
A lot of problems I work with calculate the objective and the constraint simultaneously. Eg (stylized)
θ
and pricesp
,k = f(θ, p)
,d = g(θ, p, k)
are calculated, which is the most costly step,d
is largem(θ, p, d)
, while the constraint (market clearing) isc(θ, p, d) = 0
.Eg typically
θ
andp
have a few ten-hundred elements,d
thousands or millions.Currently the way
NLPModel
andADNLPModel
are set up,f
andg
is evaluated twice. My understanding of augmented Lagrangian methods suggest that for an inner objective, they objective and the constrained are combined, so a function that returns both in a single pass could be used.Sorry if this can be done in an obvious way with the current setup already, I could not figure it out.
The text was updated successfully, but these errors were encountered: