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

Substituting in StateSpace #27

Open
freemin7 opened this issue Mar 18, 2025 · 1 comment
Open

Substituting in StateSpace #27

freemin7 opened this issue Mar 18, 2025 · 1 comment

Comments

@freemin7
Copy link

I am trying so substitute a variable inside a StateSpace{Continous,Num}.

julia>  Σᵤ
StateSpace{Continuous, Num}
A =
  0       1       0
  0  1 + k₁  1 + k₂
 kᵢ  1 + k₃      k₄
B =
 0
 1
 0
C =
 kᵢ  1 + k₁ + k₃  k₂ + k₄
D =
 1


julia>  substitute(Σᵤ, Dict( kᵢ=> -3))
StateSpace{Continuous, Num}
A =
  0       1       0
  0  1 + k₁  1 + k₂
 kᵢ  1 + k₃      k₄
B =
 0
 1
 0
C =
 kᵢ  1 + k₁ + k₃  k₂ + k₄
D =
 1

Continuous-time state-space model

but the system is unchanged. Is there a better way to go about this?

@baggepinnen
Copy link
Member

You'd have to operate on the matrix entries individually, we have no support for this right now.

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

No branches or pull requests

2 participants