Skip to content
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

Steadystate solver fails if preequilibration starts in steadystate #1422

Closed
dweindl opened this issue Feb 17, 2021 · 5 comments · Fixed by #1461
Closed

Steadystate solver fails if preequilibration starts in steadystate #1422

dweindl opened this issue Feb 17, 2021 · 5 comments · Fixed by #1461
Assignees

Comments

@dweindl
Copy link
Member

dweindl commented Feb 17, 2021

E.g. preequilibration for the conversion reaction example with initial states [0, 0] fails:

    solver.setSensitivityMethod(amici.SensitivityMethod_forward)
    solver.setSensitivityOrder(amici.SensitivityOrder_first)
    model.setSteadyStateSensitivityMode(
        SteadyStateSensitivityMode_simulationFSA)

Steady state sensitivity computation failed due to unsuccessful factorization of RHS Jacobian

preeq_status: [[1 0 0]]

preeq_numsteps [[0 0 0]]

x_ss and sx_ss seem to be set correctly, though.

@FFroehlich
Copy link
Member

E.g. preequilibration for the conversion reaction example with initial states [0, 0] fails:

    solver.setSensitivityMethod(amici.SensitivityMethod_forward)
    solver.setSensitivityOrder(amici.SensitivityOrder_first)
    model.setSteadyStateSensitivityMode(
        SteadyStateSensitivityMode_simulationFSA)

Steady state sensitivity computation failed due to unsuccessful factorization of RHS Jacobian

preeq_status: [[1 0 0]]

preeq_numsteps [[0 0 0]]

x_ss and sx_ss seem to be set correctly, though.

Is it possible that the Jacobian is singular in that case, which (correctly) prevents computation of sensitivities?

@paulstapor
Copy link
Contributor

It is indeed singular, but the fun thing is: Simulation started in steady state. So all the steadystate solver would have to do is just output sx0...

@FFroehlich
Copy link
Member

It is indeed singular, but the fun thing is: Simulation started in steady state. So all the steadystate solver would have to do is just output sx0...

Good point!

@paulstapor paulstapor self-assigned this Feb 17, 2021
@paulstapor
Copy link
Contributor

Will do on Friday, hopefully. Should be easy to fix

@elbaraim
Copy link

elbaraim commented Mar 15, 2021

I have observed this behavior also in the Raimundez_PCB2020 model.

( already discussed with @paulstapor , I just wanted to add here for documentation )

@paulstapor paulstapor mentioned this issue Mar 15, 2021
@dweindl dweindl linked a pull request Mar 15, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants