-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add an option to provide the sparsity pattern of jacobians and hessians #284
Add an option to provide the sparsity pattern of jacobians and hessians #284
Conversation
Thanks @amontoison So, provide:
|
@jbcaillau
In the future I would like to only support two backends ( |
@amontoison OK. Thought it was more directly related to this request (example / tuto on how to build an NLPModel) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @amontoison ! Just a small improvement, I don't think we need the parametric type anymore.
After, this PR I can rehabilitate this PR #209 to have such tutorials |
@tmigot Do you think that we can add an option when we create an |
Co-authored-by: Tangi Migot <[email protected]>
kwargs given to the ADNLPModels constructor are passed to the ADModelBackend which are passed to each backend. I am not against adding kwargs, but ADNLPModels has so many constructors, I would love not adding more code if possible. |
Ok, let's not add new keywords and just add an example / tutorial in the documentation to provide the sparsity patterns. |
@jbcaillau