Closed akaph2p closed 11 months ago
my nonlinear system is:
% Inputs:
% x - [n, C1, Trx, rhoc]
%
%
% Outputs:
% dx - [n', C1', Trx', rhoc']
% Parameters
alpha = 0.001;
T0 = 0;
BETA = 0.01;
l = 1;
lambda1 = 1;
beta1 = 0.0248;
Tc = 650;
P0 = 250;
mdotp = 5;
m = 1;
Cp = 1;
q0 = 0;
% Control
n = x(1);
C1 = x(2);
Trx = x(3);
rhoc = x(4);
% differential equations
dx(1,1) = n*(rhoc - alpha*Trx - alpha*T0 - BETA)/l + lambda1*C1 + q0;
dx(2,1) = beta1*n/l - lambda1*C1;
dx(3,1) = -2*mdotp*Trx/m + 2*mdotp*Tc/m + P0*n/(m*Cp);
dx(4,1) = 0;
Thank you for reporting this issue.
Please define your dynamics-file (pke.m) as function dx = pke(x,u)
if you haven't already. Then, instantiate the nonlinear system using pke = nonlinearSys(@pke,4,1);
with one input. CORA always expects at least one input so that internal computations don't have to differ between systems with and without input. We acknowledge that this is confusing since your system is obviously not influenced by external inputs -- a change will be made in the next update so that your code executes with your current setting as well.
That fixed the issue, thank you
Im trying to run reach on a nonlinear hybrid automaton, but i receive a matrix dimension error in the abstractionError_adaptive function.
My code:
The error: