# Generalised stochastic petrinets

The following C project contains the C source code and C examples used for generalised stochastic petrinets. this program manages evalute the performances by using stochastic petrinets.

The following C project contains the C source code and C examples used for common control part 2. part 2 introduce basic progress bar and track bar

The following C project contains the C source code and C examples used for common control part 1. part 1 introduce basic updown, spin and status bar

The following Matlab project contains the source code and Matlab examples used for control calculator.
This GUI provides results from a step input, impulse input and diagrams of Root Locus, Bode, and Nyquist.

The following Matlab project contains the source code and Matlab examples used for automated ziegler nicholas pid tuning.
The submitted code is aimed to provide an easy tool to find the gain parameters of P,PI and PID using Ziegler Nicholas by providing the numerator and denominator coefficients of the plant mathematical model in Laplace domain.

The following Matlab project contains the source code and Matlab examples used for solves siso mean-square optimal control design problems: a(p)x = b(p)u + f(t) .
Solves SISO mean-square optimal control design problems of the
following form:
Let the controlled plant is described by differential equation
A(p)x = B(p)u + f(t),
where x - scalar controlled variable, u - scalar control, A(p),B(p) are polynomials of p = d/dt, f(t) - external disturbance with known spectral density Sf=S(s)S(-s)=N(s)N(-s)/(T(s)T(-s)) (N(s),T(s) are Hurwitz polynomials).

The following Matlab project contains the source code and Matlab examples used for lyapack toolbox provides solutions for certain large scale problems related to lyapunov equations. .
LYAPACK is a MATLAB toolbox for the solution of certain large scale problems in control theory, which are closely related to Lyapunov equations.

The following Matlab project contains the source code and Matlab examples used for perform system identification and control system design for linear siso processes. .
ATVplus is a suite of MATLAB files that create a graphical user interface (GUI) to perform system identification and control system design using the ATV+ technique.

The following Matlab project contains the source code and Matlab examples used for the nnsysid toolbox contains a number of tools for identification of nonlinear dynamic systems with .
Neural Network Based System Identification Toolbox Version 2
The NNSYSID toolbox contains a number of tools for identification of nonlinear dynamic systems with neural networks.

The following Matlab project contains the source code and Matlab examples used for pid controller.
This simple program help you to calculate parameters for a pid controller for first order systems with delay using different method: Ziegler Nichols,Cohen coon,IMC...

The following Matlab project contains the source code and Matlab examples used for hankelsv computes hankel singular values and grammians. (improved version of hksv) .
HANKELSV computes controllability and observability grammians Wc, Wo, and the Hankel singular values OUT of an LTI model SYS (created with either TF, ZPK, SS, or FRD).

The following Matlab project contains the source code and Matlab examples used for direct adaptive control algorithms theory and applications, 2e companion software.
Companion software for the Direct Adaptive Control Algorithms: Theory and Applications, 2e book by Howard Kaufman, Itzhak Barkana & Kenneth Sobel

The following Matlab project contains the source code and Matlab examples used for quasi linearization for optimal control trajectory.
This programme implements Quasi Linearization Algorithm for searching optimal control trajectory, implemented for example of CSTR from book of Optimal Control Engineering by KIRK,

The following Matlab project contains the source code and Matlab examples used for nonlinear least square optimization through parameter estimation using the unscented kalman filter.
The Kalman filter can be interpreted as a feedback approach to minimize the least equare error.

The following Matlab project contains the source code and Matlab examples used for learning pid tuning ii stability margin.
The PID controller is the most widely used controller in industrial systems.

The following Matlab project contains the source code and Matlab examples used for learning pid tuning iii performance index optimization.
Most PID tuning rules are based on first-order plus time delay assumption of the plant hence cannot ensure the best control performance.

The following Matlab project contains the source code and Matlab examples used for mpc tutorial i dynamic matrix control.
This is the first part of the planned series for Model Predictive Control (MPC) tutorials.

The following Matlab project contains the source code and Matlab examples used for exp.sweep and impulse response.
[sweep,invsweep]=expsweep(T,f1,f2,silence,fs)
generate sine sweep with exponential frequency dependent energy decay
over time and time/frequency inverse for impulse response calculation
inputs:
T = sweep duration in seconds
f1 = start frequency in Hz
f2 = end frequency in Hz
silence = silence before and after sweep in seconds (default: 0)
fs = sampling frequency (default: 44100)
[h,h_dist]=sweepIR(rec,Nimp,T,f1,f2,offset,fs)

The following Matlab project contains the source code and Matlab examples used for ga tuned input shaper.
The purpose of Input Shaping is to filter out big changes (typically steps) in the reference signal of a closed-loop system which excite all the modes of the plant causing relevant snap overshoots and oscillations in the response.

The following Matlab project contains the source code and Matlab examples used for tune pid controller with your hand.
This code uses gui to demonstrate the step response for DC Motor Position system with PID controller which can be edited by three sliders.

The following Matlab project contains the source code and Matlab examples used for pid tuning controller by bacterial foraging.
This technique is used in many control application and here i used it to tune the PID controller

The following Matlab project contains the source code and Matlab examples used for mpc multivariable constrained state space example.
Here the multivariable constrained MPC example is developed for the stirred tank reactor as detailed in "Model Predictive Control" by Camacho and Bordons P.

The following Matlab project contains the source code and Matlab examples used for exact negative log likelihood of arma models via kalman filtering.
Several functions for evaluating the exact negative log-likelihood of ARMA models in O(n) time using the Kalman Filter.

The following Matlab project contains the source code and Matlab examples used for multi input controllable canonical form.
This function computes the frobenius transformation T for a multi-input state representation (A,B) such that the transformed system (T*A*inv(T),T*B) is in the multi-input controllable canonical form.

The following Matlab project contains the source code and Matlab examples used for pid controller matlab code.
Most of the time we use Simulink to simulate a PID controller.

The following Matlab project contains the source code and Matlab examples used for this function finds the percent os, ts, tr and tp for a step response. .
This function finds the percent overshoot (OS), settling time (ts), rise time (tr) and time to peak (tp) for a step response.

The following Matlab project contains the source code and Matlab examples used for tp tool.
The Tensor Product model transformation is a numerical method that is capable of uniformly transforming LPV (linear parameter-varying) dynamic models into polytopic forms, both in a theoretical and algorithmic context.

The following Matlab project contains the source code and Matlab examples used for reduced order inf. horizon time inv. discr. time lqg control for systems with white parameters.
Software described in and associated with the paper
"Numerical algorithms and issues concerning the discrete-time optimal projection equations for systems with white parameters", Proceedings UKACC International Conference on Control '98, 1-4 Sept.

The following Matlab project contains the source code and Matlab examples used for force position control of a robot manipulator using pid controller.
calculating torque at 3 joints, angle , angular accln, angular velocity

The following Matlab project contains the source code and Matlab examples used for impulse response invariant discretization of bico (bode's ideal cut off) transfer function.
Impulse response invariant discretization of BICO (Bode's Ideal Cut-Off) transfer function
BICO TF= 1./((s./w0+sqrt((s./w0).^2+1)).^r);
r is a positive real number
IN:
Ts: The sampling period
w0: Cutoff frequency
r: order
q : Denominator and Numerator order of the approximated z-transfer function
TEST CODE:
BICO_irid(0.01,1,1.2,5);