Replies: 1 comment 1 reply
-
|
I took a look, and the sparsity information should be available to SNOPT so in theory this should work. But I don't know in practice, maybe you can test it on a simple problem and see? Do keep us posted! Note that in the text you provided, "automatic gradients from pyOptSparse" refers to the gradients computed by pyOptSparse (e.g. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
SNOPT is capable of estimating sparse gradients via finite difference given the sparsity structure.
I am curious if this functionality is actually exposed by PyOptSprase. When setting
sens=Noneto use SNOPT's internal finite differencing, are thewrtkeywords in the constraint groups actually passed through to SNOPT?The language in the documentation would suggest not
Note that the wrt and jac keyword arguments are only supported when user-supplied sensitivity is used. If automatic gradients from pyOptSparse are used, the constraint Jacobian will necessarily be dense.Beta Was this translation helpful? Give feedback.
All reactions