Sistemas de Controle  0.5
Biblioteca matematica de Controle
model.h
Vá para a documentação deste arquivo.
1 #ifndef MODEL_H
2 #define MODEL_H
3 #include <cfloat>
5 
7 
27 template <class UsedType>
28 class Model
29 {
30 protected:
32  UsedType input,output, lmin,lmax, step;
35 public:
36 
38 
139  Model();
140 
142 
178  UsedType diff(UsedType x);
179 
181 
217  void setStep(UsedType step);
218 
220 
256  void setInstance(Model<UsedType> *m);
257 
259 
318  void setModelCoef(Matrix<UsedType> coef);
319 
321 
364 
366 
434 
436 
480 
482 
525  UsedType getOutput();
526 
528 
571 
573 
615 
617 
659 
661 
700 
702 
734  virtual UsedType sim(UsedType x) = 0;
735 
737 
738  virtual UsedType sim(UsedType x, UsedType y) = 0;
739 
741 
772  virtual Matrix<UsedType> sim(Matrix<UsedType> x) = 0;
773 
775 
777 
779 
813  virtual Matrix<UsedType> sim(UsedType lsim, UsedType lmax, UsedType step) = 0;
814 
815 };
816 
817 #endif // MODEL_H
Matrix< UsedType > getInputMatrix()
Método que retorna as variável Input os valores de entrada do um modelo, ou função.
Matrix< UsedType > getLinearEqualityB()
Método cuja responsabilidade é retornar a Matrix b do sistema linear AX = b.
void setStep(UsedType step)
Método que insere na variável step um valor determinado.
virtual UsedType sim(UsedType x)=0
Método cuja responsabilidade é simular os valores futuros da saída de um modelo.
UsedType input
Definition: model.h:32
Classe abstrata que tratam todos os modelos matemáticos.
Definition: model.h:28
Model< UsedType > * instance
Definition: model.h:31
UsedType diff(UsedType x)
Método que realiza a derivada de uma função de maneira numérica.
Matrix< UsedType > getLinearVectorPhi()
Método cuja responsabilidade é retornar uma linha da Matrix A do sistema linear AX = b...
void setInstance(Model< UsedType > *m)
Método que insere na variável instance uma instância do objeto do tipo model.
UsedType lmax
Definition: model.h:32
Matrix< UsedType > LinearVectorPhi
Definition: model.h:33
void setIO(Matrix< UsedType > in, Matrix< UsedType > out)
Método que insere nas variáveis Input e Output os valores de entrada e saída de um modelo...
UsedType output
Definition: model.h:32
Matrix< UsedType > Output
Definition: model.h:33
Matrix< UsedType > EstOutput
Definition: model.h:33
UsedType getOutput()
Método que retorna a variável output, o valore de saída do modelo, ou função.
Matrix< UsedType > LinearMatrixA
Definition: model.h:33
Matrix< UsedType > getLinearMatrixA()
Método cuja responsabilidade é retornar a Matrix A do sistema linear AX = b.
Matrix< UsedType > getModelCoef()
Método que retorna a variável ModelCoef, os coeficientes do modelo.
Matrix< UsedType > LinearEqualityB
Definition: model.h:33
Classe Matriz, com o intuito de realizar operações entre matrizes entre outras funções.
Definition: matrix.h:23
void setModelCoef(Matrix< UsedType > coef)
Método que insere na variável ModelCoef os coeficientes do modelo que será simulado.
UsedType lmin
Definition: model.h:32
UsedType step
Definition: model.h:32
Model()
Construtor padrão da biblioteca modelos matemáticos.
Matrix< UsedType > getOutputMatrix()
Método que retorna a variável Output, os valores de saída do um modelo, ou função.
Matrix< UsedType > Input
Definition: model.h:33
Matrix< UsedType > ModelCoef
Definition: model.h:33