I am trying to do identifiability analysis for a chemical reaction network model. I specify the model via Catalyst, and then convert to ODESystem. But that means that I cannot declare the y as a part of the model, and I am a bit unsure how to add them afterwards.
This was my attempt (toy example, to model is simplified and not that interesting, but gives the same error):
# Fectch packages.
using Catalyst, DifferentialEquations, StructuralIdentifiability
# Create model and convert to ODESystem.
rn = @reaction_network begin
(k1,k2), X <--> Y
end k1 k2
osys = convert(ODESystem,rn)
# Create equation for observables (X only).
@variables y
eq = y ~ states(osys)[1]
# Do identifiability analysis.
assess_identifiability(osys; measured_quantities=[eq])
I am trying to do identifiability analysis for a chemical reaction network model. I specify the model via Catalyst, and then convert to ODESystem. But that means that I cannot declare the
y
as a part of the model, and I am a bit unsure how to add them afterwards.This was my attempt (toy example, to model is simplified and not that interesting, but gives the same error):
However, this gives a: