-
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
Comments #3
Comments
|
Is it feasible to modify TRON to use |
I've created JuliaSmoothOptimizers/JSOSolvers.jl#30 to handle that. |
I haven't yet tried to run your code but here are a few comments and suggestions from a first reading:
obj()
allocates a new vector every time for the constraint values; why not preallocate a vector of sizencon
inside theAugLagModel
and usecons!()
instead?obj()
andgrad()
both evaluate the constraints, so you probably want to implementobjgrad!()
and save one constraint evaluation;grad()
does not reevaluate the constraints whereobj()
just evaluated them;hess_structure!()
doesn't look right; the J'J term could fill in the Hessian substantially. It's not hard to figure out the sparsity pattern of J'J from that of J;hess_coord!()
doesn't look right either. Also it should callhess_coord!()
andjac_coord()
on the originalnlp
;grad()
,hess()
,hess_structure()
,hess_coord()
andhprod()
because you already implement the!
version of those methods;hess_op()
andhess_op!()
because you already implementhprod!()
.Note that because you use TRON as subproblem solver, you don't need
hess_structure!()
orhess_coord!()
. You could leave those out for now.The text was updated successfully, but these errors were encountered: