Use live parameters in sparse constraint Jacobians - #1270
Use live parameters in sparse constraint Jacobians#1270ChrisRackauckas-Claude wants to merge 1 commit into
Conversation
16265b0 to
d1e327f
Compare
|
Downstream confirmation from clean current I reduced Version boundary:
The 1.3.0 boundary maps to |
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
d1e327f to
3961edf
Compare
|
Rebased onto current clean |
|
CI triage after the clean-master rebase:
The available Actions credentials return 403 for a job rerun, so I could not request a clean retry. |
Important
Ignore this PR until it has been reviewed by @ChrisRackauckas.
Summary
Root cause
OptimizationIpopt switched to the generic
OptimizationCachein #1257. That cache invokes constraint Jacobians with the current parameter value. The sparse instantiation path still produced two-argument callbacks that captured the initial parameter, causing aMethodErrorwhen called ascons_j(J, x, p). The out-of-place path had the equivalent missing live-parameter behavior.This patch preserves the old two-argument convenience through default arguments while making the current parameter part of differentiation and analytic callback evaluation.
Investigation
masteratbe6fbd279Local validation
AD: 729 passedCore: 129 passed, 1 pre-existing brokengit diff --checkpassed