Skip to content

feat: [AI] use LinearProblem for linear initialization systems in MTKBase#4366

Open
AayushSabharwal wants to merge 1 commit intomasterfrom
as/mtkbase-initprob-linprob
Open

feat: [AI] use LinearProblem for linear initialization systems in MTKBase#4366
AayushSabharwal wants to merge 1 commit intomasterfrom
as/mtkbase-initprob-linprob

Conversation

@AayushSabharwal
Copy link
Member

No description provided.

@AayushSabharwal AayushSabharwal changed the title feat: [AI] use LinearProblem for linear initialization systems in MTKBasel feat: [AI] use LinearProblem for linear initialization systems in MTKBase Mar 1, 2026
u0 = u0_constructor(ones(eltype(linprob.A), size(linprob.A, 2)))
)
end
return SCCNonlinearProblem((linprob,), (Returns(nothing),), parameter_values(linprob), true; sys)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a bit of a kludge, we should just make a linearproblem?

Copy link
Member Author

@AayushSabharwal AayushSabharwal Mar 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LinearProblem looks and works significantly different from most other *Problems in SciML. The initialization infrastructure doesn't like working with it directly. SCCNonlinearProblem basically serves as a "make this look like a NonlinearProblem" wrapper while still actually using LinearSolve.jl directly.

@AayushSabharwal AayushSabharwal force-pushed the as/mtkbase-initprob-linprob branch from d048230 to 881d802 Compare March 3, 2026 18:10
…TKBase

Co-authored-by: Claude <noreply@anthropic.com>
@AayushSabharwal AayushSabharwal force-pushed the as/mtkbase-initprob-linprob branch from 881d802 to 24f922c Compare March 5, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants