Skip to content

WIP: remove SC.LP; init when system is known; do not assemble u#107

Open
pjaap wants to merge 2 commits intomasterfrom
feature/rework-init
Open

WIP: remove SC.LP; init when system is known; do not assemble u#107
pjaap wants to merge 2 commits intomasterfrom
feature/rework-init

Conversation

@pjaap
Copy link
Member

@pjaap pjaap commented Feb 6, 2026

We have an inconsistency between the initialized system and the solved system: Restrictions are included after initialization of the linear solver...

This draft PR moves the initialize_linear_solver call into the solve_linear_system call.
It makes only sense to initialize after the restrictions are incorporated.

Also, is there a reason, why SC has a LP? (linear problem?) This also duplicates ownership of the matrix and the right hand side. I just removed this property.

Moreover, in the solve_linear_system call, we construct a linsolve.u object. This is already there and we break consistency with the initialized linear system. This u is constructed in the init call. So I removed it also.

Test will probably fail :)

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.

1 participant