Questions tagged [state-space]

State-space models are models that use state variables to describe a system by a set of first-order differential or difference equations, rather than by one or more nth-order differential or difference equations. State variables x(t) can be reconstructed from the measured input-output data, but are not themselves measured during an experiment.

186 questions
0
votes
1 answer

Statsmodels state space representation of stochastic process with nonzero mean

I would like to define a state space representation of a model with a nonzero drift term in statsmodels. The documentation for the state state representation framework appears to assume that the stochastic terms (epsilon and eta) have zero…
tom_servo
  • 308
  • 1
  • 15
0
votes
0 answers

how to extract space state matrices form workbench 2022 model using matlab

I need to extract state space matrices of Ansys-Workbench 2022 model. I need to import this Ansys-Workbench model (after modal analysis is done ) to Matlab , then do post-processing to it in order to extract A,B, and C matrices(state space…
0
votes
0 answers

Matrix and vector shape in TVP-VAR in the statespace mlemodels

Thanks to everyone in advance for their time! I am trying to run a TVP-VAR (time varying papramenter) for a panel in the statespace mlemodels in statsmodel. I get an error while trying to fit the model. My understanding is that mostly is regarding…
MarioF
  • 1
  • 1
0
votes
1 answer

TypeError: '>=' not supported between instances of 'method' and 'float'

Thanks to everyone in advance for their time! I am trying to run a TVP-VAR for a panel in the statespace mlemodels in statsmodel. I get an error while trying to fit the model. My understanding is that mostly is regarding the start paramenters How…
MarioF
  • 1
  • 1
0
votes
0 answers

Numpy: not supported between instances of 'method' and 'float

Thanks to everyone in advance for their time! I am trying to run a TVP-VAR for a panel in the statespace mlemodels in statsmodel. I get an error while trying to fit the model. Not only that, but I cannot really locate the part of the code the error…
MarioF
  • 1
  • 1
0
votes
0 answers

Making a TVP-VAR statespace mlemodel in statsmodel

Thanks to everyone in advance for their time! I am trying to run a TVP-VAR for a panel in the statespace mlemodels in statsmodel. I get an error while trying to fit the model TypeError: '>=' not supported between instances of 'method' and…
MarioF
  • 1
  • 1
0
votes
1 answer

Does not the Bode Diagrama of the inputs of the system?

I am implementing a python code that performs with a Bode Diagram of a dynamic system. Nevertheless, according to a command available at the library of "Signal.Processing" of Scipy, the Bode diagram does not depends of the inputs of the dynamic…
0
votes
1 answer

How can i check “whether two state space are equivalent" in SMT Solver like z3

I'm a SMT Beginner. I am confused how to check “whether two state space are equivalent" and encoding this problem in SMT. For example, I have a register called "reg". Then, I write "dataIn1" and "dataIn2" to the "reg" in sequence. as follows . reg…
cccccccc
  • 3
  • 2
0
votes
1 answer

How do I Backtrack a Stack-Based Depth First Search

I am trying to implement a DFS algorithm to work in a maze. The maze has walls. The DFS gets stuck in a corner and does not backtrack therefore it results in an infinite loop. How should I rewrite my code to get it to backtrack. This is code for a…
0
votes
1 answer

smoothed state disturbances in statsmodels' state space model

I am building a custom state-space model with statsmodels as follows from statsmodels.tsa.statespace import mlemodel mod = mlemodel.MLEModel(YY, k_states=n_st, k_posdef=n_sh) mod['design'] = Z mod['transition'] = T mod['selection'] =…
niskrev
  • 3
  • 3
0
votes
0 answers

equation manipulation in MATLAB

I have a problem using MATLAB for a dynamics problem. The problem is how to code in MATLAB, not how to solve the equation. I'm fairly new to MATLAB. I have 2 equations of motion like DDx_c = ((kx_c - (m_p(2Dtheta^2lsin(theta) -…
0
votes
1 answer

How to convert a state-space model to transfer function?

Following this question, I am trying to convert the state-space model from this tutorial back into its transfer-function form. I have tried the R = 2.0; % Ohms L = 0.5; % Henrys Km = 0.1; % torque…
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
0
votes
1 answer

Model Predictive Control (MPC) for electromechanical system

So I want to create an MPC controller for my seesaw-cart system. All the "grunt work" (getting equations of motion, state-space representation etc.) has been done, so I went into coding into MATLAB. Here's the following: clc; clear all; close…
0
votes
1 answer

MATLAB's ss() state-space model function in Scilab

I am trying to follow this tutorial, implemented function transfer_function = tf(numerator, denominator) transfer_function = syslin('c', poly(numerator, "s", "coeff") / poly(denominator, "s", "coeff")); endfunction // physical constants: R =…
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
0
votes
1 answer

Loading saved params (a Pandas series) into a Statsmodels state-space model

I'm building a dynamic factor model using the excellent python package statsmodels, and I would like to pickle an estimated parameter vector so I can build the model again later, and load those params into it. (C.f., this Notebook built by Chad…
Drew
  • 103
  • 2