Git Product home page Git Product logo

control's Introduction

Hi ๐Ÿ‘‹

control's People

Contributors

benubah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

control's Issues

Error with ss2tf function

I got this error when trying to convert the model back to TF with these statements:

g1 <- tf(10,c(1,6,5,0))
s1 <- tf2ss(g1)
ss2tf(s1)

y1:Error in poly2str(argnum, svar = "s", smul = " ") :
Argument 'p' must be a numeric vector.

Error using step function

Using the step function to plot the step response of a transfer function gives this error message.

Error

Error in balance(baP$z, "S") :
BLAS/LAPACK routine 'DGEBAL' gave error code -3

The control function care() uses defunct package "QT"

The current care() function requires package QT which is now unavailable.

However, commenting out line 69 as follows:
# tmp <- QZ::qz.zgees(val) # schur decomposition from QZ

and un-commenting line 68 as follows:
tmp <- Matrix::Schur(val) # coerces imaginary parts

solves the problem and gives the same results as Octave function lqr(), but not Octave care(), on a sample problem.

Let me know if anything unclear.

Regards,

Graham W Griffiths
[email protected]

the results of control::place are different from place function in Matlab

Hi

Thanks for your work in Control package. It seems the results of place() example cannot be reproduced by Matlab place function.

Here is the code of place example:

F <- rbind(c(0,1),c(0,0))
G <- rbind(0,1)
H <- cbind(1,0);
J <- 0
t <- 1
sys  <-  ss(F,G, H,J)
A  <-  c2d(sys,t);
j <- sqrt(as.complex(-1));
pc  <- rbind(0.78+0.18*j, 0.78-0.18*j)
K  <-  place(A$A, A$B, pc)

And the results just like the follows:

> K
        [,1]
[1,] -0.0808
[2,] -0.3188

But in Matlab, the results are different:

F = [0,1;0,0];
G = [0;1];
H = [1,0];
J = [0];
t = 1;
sys = ss(F,G,H,J);
sysd = c2d(sys,t);
pc = [0.78+0.18*sqrt(-1);0.78-0.18*sqrt(-1)];
place(sysd.A,sysd.B,pc)'

ans =

    0.0808
    0.3996

I really want to know where the problem lies since I am a green hand in control filed . I would greatly appreciate any suggestions.

Regards

JY

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.