• Stars
    star
    1
  • Language
  • Created over 8 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The model-reference adaptive system (MRAS) is an important adaptive controller. It may be regarded as an adaptive servo system in which the desired performance is expressed in terms of a reference model, which gives the desired response to a command signal.

More Repositories

1

Recursive-Least-Squares-with-Exponential-Forgetting

This function is intended to estimate the parameters of a dynamic system of unknown time varying parameters using the Recursive Least Squares with Exponential Forgetting Method (RLS).
MATLAB
9
star
2

Stochastic-Recursive-Extended-Least-Squreas-With-Exponential-Forgetting-Factor-RELSWEF

% This function is made by Ahmed ElTahan %{ This function is intended to estimate the parameters of a dynamic system of unknown parameters using the Recursive Extended Least Squares With Exponential Forgetting Factor Method (RELSWEF) for time varying parameter system. After an experiment, we get the inputs, the outputs of the system. The experiment is operated with sample time Ts seconds. The model is given by A(z) y(t) = B(z)sys u(t) + C(z) eps(t) which can be written in z^(-d) B(z) C(z) y(t) = ------------------- u + ------------ e = L*u + M*e A(z) A(z) where: -- y : output of the system. -- u : control action (input to the system). -- e : color guassian noise (noise with non zero mean). -- Asys = 1 + a_1 z^-1 + a_2 z^-2 + ... + a_na z^(-na). [denominator polynomail] -- Bsys = b_0 + b_1 z^-1 + b_2 z^-2 + ... + b_nb z^(-nb). [numerator polynomail] -- C = 1 + c_1 z^-1 + c_2 z^-2 + ... + c_nc z^(-nc). [noise characteristics] -- d : delay in the system. A and C are monic polynomials. (in output estimation of the stochastic system as C is monic, we add e(t) to the estimation i.e. not starting from c1*e(t-1)) Function inputs u : input to the system in column vector form y : input of the system in column vector form na : order of the denominator polynomail nb : order of the numerator polynomail nc : order of the characteristics of the noise (usually <=2 for max) d : number represents the delay between the input and the output lambda : forgetting factor -->>> 1>lambda>0 Function Output Theta_final : final estimated parameters. Gz_estm : pulse (discrete) transfer function of the estimated parameters 1 figure for the history of the parameters that are being estimated 2 figure to validate the estimated parameters on the given output using the instantaneous estimated parameters. 3 figure to plot the input versus time. Note: the noise added shall not to be with a magnitude close to the system output, it should be smaller, this is in simulation such as here or the algorithm will go crazy that can't distinguish between the main and the noisy signal (This can be measured in practical case finding noise to signal ratio). An example is added to illustrate how to use the funcrtion
MATLAB
5
star
3

Deterministic-Recursive-Least-Squares

This function is intended to estimate the parameters of a dynamic system of unknown parameters using the Deterministic Recursive Least Squares Method (RLS).
MATLAB
4
star
4

Stochastic-Recursive-Modified-Extended-Least-Squreas-With-Exponential-Forgetting-Factor-RMELSWEF

% This function is made by Ahmed ElTahan %{ This function is intended to estimate the parameters of a dynamic system of unknown parameters using the Recursive Modified Extended Least Squares With Exponential Forgetting Factor Method (RMELSWEF) for time varying parameter system which has an noise addition. After an experiment, we get the inputs, the outputs of the system. The experiment is operated with sample time Ts seconds. The model is given by A(z) y(t) = B(z)sys u(t) + C(z) eps(t) which can be written in z^(-d) B(z) C(z) y(t) = ------------------- u + ------------ e = L*u + M*e A(z) A(z) where: -- y : output of the system. -- u : control action (input to the system). -- e : color guassian noise (noise with non zero mean). -- Asys = 1 + a_1 z^-1 + a_2 z^-2 + ... + a_na z^(-na). [denominator polynomail] -- Bsys = b_0 + b_1 z^-1 + b_2 z^-2 + ... + b_nb z^(-nb). [numerator polynomail] -- C = 1 + c_1 z^-1 + c_2 z^-2 + ... + c_nc z^(-nc). [noise characteristics] -- d : delay in the system. A and C are monic polynomials. (in output estimation of the stochastic system as C is monic, we add e(t) to the estimation i.e. not starting from c1*e(t-1)) Function inputs u : input to the system in column vector form y : input of the system in column vector form na : order of the denominator polynomail nb : order of the numerator polynomail nc : order of the characteristics of the noise (usually <=2 for max) d : number represents the delay between the input and the output lambda : forgetting factor -->>> 1>lambda>0 Function Output Theta_final : final estimated parameters. Gz_estm : pulse (discrete) transfer function of the estimated parameters 1 figure for the history of the parameters that are being estimated 2 figure to validate the estimated parameters on the given output using the instantaneous estimated parameters. 3 figure to plot the input versus time. Note: the noise added shall not to be with a magnitude close to the system output, it should be smaller, this is in simulation such as here or the algorithm will go crazy that can't distinguish between the main and the noisy signal (This can be measured in practical case finding noise to signal ratio). An example is added to illustrate how to use the funcrtion %}
MATLAB
3
star
5

Deterministic-Indirect-Self-Tuning-Regulator-One-Degree-Controller

MATLAB
2
star
6

Standard-Embedded-Systems-Diploma

This folder contains codes that are relevant embedded systems diploma. It includes ( C programming codes from the basics, ... )
C
2
star
7

Discrete-Kalman-Filter

A Kalman ๏ฌlter is an optimal estimator - i.e. infers parameters of interest from indirect, inaccurate and uncertain observations. It is recursive so that new measurements can be processed as they arrive. (cf batch processing where all data must be present).
1
star
8

Stochastic-Recursive-Extended-Least-Squreas-RELS

This function is intended to estimate the parameters of a dynamic system of unknown parameters using the Recursive Extended Least Squares Method (RELS).
MATLAB
1
star
9

Master

MATLAB
1
star
10

Model-Reference-Adaptive-Control-MIT-Rule-First-Order-System

The model-reference adaptive system (MRAS) is an important adaptive controller. It may be regarded as an adaptive servo system in which the desired performance is expressed in terms of a reference model, which gives the desired response to a command signal.
1
star