8
$\begingroup$

Bug introduced in 10.0.2 and fixed in 10.3


I don't know if this is a bug, or if just something changed I can't figure out.

Take the following examples:

sysEq = y'''[t] == -1/T2^2 y'[t] - T1/T2^2 y''[t] + Ki/T2^2 u[t];
sysEq1 = y[t] == Kp u[t];
sysEq2 = y'[t] + (T1 + T2) y''[t] + T1 T2 y'''[t] == Ki u[t];
sysEq3 = Tn y'[t] == Kp u[t] + Kp Tn u'[t];
sysEq4 = y'[t] + T1 y''[t] + T2 y'''[t] == Kp u[t];
sysEq5 = Tn y'[t] + T1 Tn y''[t] + T2^2 Tn y'''[t] == 
   Kp u[t] + Kp Tn u'[t];
sysEq6 = Tn y'[t] + T1 Tn y''[t] + T2^2 Tn y'''[t] == 
   Kp u[t - Tt] + Kp Tn u'[t - Tt];
sysEq7 = y'[
     t] + (T1 + T2 + T3) y''[t] + (T1 T2 + T1 T3 + T2 T3) y'''[t] + 
    T1 T2 T3 y''''[t] == Ki u[t - Tt - Tt2] + Kp u'[t - Tt - Tt2];
allExamples = {sysEq, sysEq1, sysEq2, sysEq3, sysEq4, sysEq5, sysEq6, 
   sysEq7};

In v10.0 all examples work:

FullSimplify@TransferFunctionModel[
    StateSpaceModel[#, {{y[t], 0}}, {{u[t], 0}}, {y[t]}, t]
    ] & /@ allExamples

But not in v10.2, example 6 and 7 won't give a proper result.

Can somone confirm this, or show me where StateSpaceModel has changed so it doesn't work for this examples?

$\endgroup$
2
  • $\begingroup$ There seems to be something wrong in 10.2; in the docs, Applications, there are the same warnings. $\endgroup$
    – user31001
    Aug 4, 2015 at 7:37
  • 6
    $\begingroup$ It's a bug, which seems to go back to version 10.0.2. Version 10.0.1 is unaffected. I've reported this internally. Thank you for bringing it to our attention! $\endgroup$
    – Stefan R
    Aug 4, 2015 at 20:57

1 Answer 1

2
$\begingroup$

This bug has been fixed as of Mathematica 10.3.0.

Mathematica graphics

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.