ParameterIdentify[TimeDomain] - MapleSim Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


ControlDesign[ParameterIdentify]

  

TimeDomain

  

identify parameters of a first-order with time-delay (FOTD) model using time-domain techniques

 

Calling Sequence

Parameters

Options

Description

Examples

References

Calling Sequence

TimeDomain(sys, opts)

Parameters

sys

-

System; a DynamicSystems system object in continuous-time domain; must be single-input single-output (SISO) and stable.

opts

-

(optional) equation(s) of the form option = value; specify options for the TimeDomain command

Options

• 

method : one of moments, stepPercentage, stepIntegrate or doubletPulse

  

Specifies the method of parameter identification.

– 

moments uses the values of the transfer function and its first and second derivatives at zero to estimate the parameters.  This is the method of moments as described in Astrom et. al. (1995). This method is the default.

– 

stepPercentage uses the points on the system step-response for which the response reaches 1/3 and 2/3 of its final value, as described in O'Dwyer (2006).

– 

stepIntegrate is based on certain areas under the step response plot as described in Nishikawa et. al. (1984).

– 

doubletPulse uses the system response to a doublet pulse input as described in Astrom et. al. (2006). The amplitude and period of the doublet pulse input signal must be specified by the user. This method only applies to systems with no symbolic parameters.

• 

Amp = realcons

  

Amplitude of the doublet pulse input signal in the doubletPulse method. Must be a positive-real number.

• 

Tp = realcons

  

The half period  of the doublet pulse input signal in the doubletPulse method. Must be a positive-real number.

• 

simplifyOutput = truefalse

  

In case that the system contains symbolic parameters, specifies whether the symbolic expressions for the identified parameters should be simplified. If true then the identification output is simplified using the simplify command. The default value is true. For details see: simplify.

Description

• 

The TimeDomain command estimates the parameters of an FOTD model for the given system, sys, using the time-domain method specified in the options. The command returns a list containing gain, time constant, and time delay of the identified FOTD model, respectively. In other words, TimeDomain(sys,opts) computes the parameters Kp&comma;T&comma;L for the model Kp&ExponentialE;sLsT+1 that best approximates sys according to the chosen method, with Kp0, 0T, and 0<L.

• 

When the system has symbolic parameters, the FOTD model parameters are returned as symbolic expressions of the system parameters. The computed results are theoretically valid for the parameter space only when the following conditions hold:

– 

The system is open-loop stable. The parametric stability condition can be obtained using the DynamicSystems[RouthTable] command with the stablecondition option set to true. For details see: DynamicSystems[RouthTable].

– 

The computed algebraic expressions for the FOTD model parameters time-constant (T) and time-delay (L) are positive-real, and that of the FOTD model gain (Kp) is either positive-real (corresponding to systems with positive DC gain) or negative-real (corresponding to systems with negative DC gain).

Examples

withControlDesignParameterIdentify&colon;

withDynamicSystems&colon;

Basic Usage

• 

Use each of the methods to identify the parameters K&comma;T&comma;L for the following system.

sysNewSystem1s2+2s+3&colon;

paramsTimeDomainsys&comma;method=stepPercentage

params13&comma;0.5461468460&comma;0.3747961646

(1)

paramsTimeDomainsys&comma;method=stepIntegrate

params13&comma;0.6721581969&comma;0.2695254684

(2)

paramsTimeDomainsys&comma;method=doubletPulse&comma;Amp=1&comma;Tp=0.6

params13&comma;0.619100864277216&comma;0.492805324230899

(3)

paramsTimeDomainsys&comma;method=moments

params13&comma;23&comma;13

(4)

Symbolic System

• 

Identify the parameters for a system with symbolic coefficients.

sysNewSystems+as3+bs2+35s+c&colon;

sys:-tf

s+as3+bs2+35s+c

(5)

paramsTimeDomainsys

paramsac&comma;2cb1225a2+c2cc2a&comma;2cb1225a2+c2c2+35ac35c2aa2+c2cb1225a2+c2ca+2cb1225a2+c2c4+2abc1225a+35cac4a2c3a2

(6)
• 

Use DynamicSystems[RouthTable] to find the domains of b and c that give a stable system.

stableRouthTabledenomsys:-tf1,1&comma;s&comma;stablecondition=true

stable0<band0<cand0<35cb

(7)
• 

Verify that the following values for a, b, and c are within the stable region, then substitute into params to find the corresponding FOTD parameters.

valsa=1&comma;b=1&comma;c=5

valsa=1&comma;b=1&comma;c=5

(8)

evalstable&comma;vals

0<1and0<5and0<30

(9)

evalparams&comma;vals

15&comma;11905&comma;119053562500250

(10)

FOTD Approximation

• 

Starting with the FOTD transfer function, use series to generate a second-order polynomial approximation for the delay term, create a DynamicSystems model from the rational polynomial, then use TimeDomain and simplify to extract the original parameters.

fotdKpexpsL1+sT

fotdKp&ExponentialE;sLsT+1

(11)

fotd2convertseriesnumerfotd&comma;s&comma;3&comma;polynomdenomfotd

fotd2KpKpLs+12KpL2s2sT+1

(12)

sysNewSystemfotd2&colon;

paramsTimeDomainsys

paramsKp&comma;KpTKp&comma;KpL+TKpKpT+Kp2T+L2+2LT+2T2Kp2Kp2T2Kp2Kp2

(13)

simplifyparamsassuming0<Kp,0T,0<L

Kp&comma;T&comma;L

(14)

Unstable System

• 

Create a system with a zero at −1, poles at −2, 1+I, and 1I, and a gain of 3.

sysNewSystem1&comma;2&comma;1+I&comma;1I&comma;3&colon;

• 

Attempt to identify the parameters for this unstable system; doing so raises an error.

TimeDomainsys

Error, (in ControlDesign:-ParameterIdentify:-TimeDomain) model is unstable. Cannot apply parameter identification to unstable models.

References

  

[1] K. J. Astrom and T. Hagglund, Automatic Tuning of PID Controllers, ISA, 1995.

  

[2] K. J. Astrom and T. Hagglund, Advanced PID Control, ISA, 2006.

  

[3] Y. Nishikawa, N. Sannomiya, T. Ohta and H. Tanaka, A Method for Auto_Tuning of PID Control Parameters, Automatica, Vol. 20, No. 3, pp. 321-332, 1984.

  

[4] A. O'Dwyer, Handbook of PI and PID Controller Tuning Rules, 2nd Edition, Imperial College Press, 2006.

See Also

ControlDesign

ControlDesign[ParameterIdentify][FrequencyDomain]

DynamicSystems[RouthTable]

simplify