500 likes | 676 Views
SacMan Control Tuning. Bert Clemmens Agricultural Research Service. Canal Control Problem. Balance supply with demand. Maintain desired delivery rate. Above are accomplished by Control of pool water levels which in turn requires control of pool volumes. Three Aspects of Canal Automation.
E N D
SacMan Control Tuning Bert Clemmens Agricultural Research Service
Canal Control Problem • Balance supply with demand. • Maintain desired delivery rate. • Above are accomplished by • Control of pool water levels • which in turn requires control of pool volumes
Three Aspects of Canal Automation • Flow control • Ability to control flow rates at key points • Feedforward control of flow rates • Ability to route known major flow changes through the canal • Feedback control of water levels • Ability to adjust to disturbances and flow rate errors with downstream water-level feedback
Tuning Requirements • Gate calibration are important, but not critical when feedback control is used. We use handbook calibration or calibrations provided by operators. Nothing special! • Delay times for routing are important to transient performance. We manually adjust Manning n to match predicted and observed delay time for feedforward. • We use optimal control methods to obtain water level feedback control parameters. Canal properties are determined from simulation or on-line tests.
Automata HardwareGate Position Sensor • Two Sensors • Digital Output for fine resolution of gate movement • Analog Output for coarse resolution of gate opening
Optical Encoder Pulsed Output • Pulses count down to zero and motor stops 0.95 mm
Calibration of gates at CAIDD • District has determined from experience, relationship between relative gate position change and flow rate change • This is assumed linear. Then they correct when flows do not balance. • Sometimes they take into account non-linearity in initial opening. • We use this calibration to determine the amount of gate movement (number of pulses) for a desired flow change. • This is programmed into the SCADA system for manual control • SacMan also considers upstream water level in determining gate position change
Flow control issues • Canal headgates are often not accurate for flow measurement • Separate meter downstream can be used to adjust headgate • Downstream Water-Level Feedback adjusts for flow errors upstream • Incremental flow control allow gradual adjustment to match downstream flows • Free flow gate downstream can be used to adjust head gate
If gate is close to head-gate and is free-flowing, it can be alternative measurement device
Canal properties significantly affect the performance of any canal automation scheme. • pool delay times • which limits the responsiveness of the canal and thus the control possible • pool volume changes with flow rate • which influences the routing of flow changes through a canal • downstream water level response to pool volume changes over time • which influences the strength of feedback corrections to water level errors • Reflection Wave Frequency • Which is needed to avoid unstable feedback control
Control Engineering Practice • Most industrial controllers use simple “Classical” control, such as PID. • So called “Modern” control theory, which uses optimization, has never caught on. • Adaptive-classical control has received more coverage in the literature. • Several simple controllers in series continues to be a difficult control problem.
Optimization with State-Feedback Control of Water Levels • State-Transition Relationship • we use the Integrator-Delay Model • where, y(t) is the downstream water level at time t in response to a step change in upstream flow rate, Q, • is the pool time delay, and • A is the pool backwater surface area.
Integrator Delay Model • Time delay, • Backwater surface area, As
Canals under normal depth follow this model well (SRP Arizona Canal - Pool 1)
State Transition Equations • Derived from integrator-delay model
Optimization with State-Feedback Control of Water Levels • State-Feedback Control Law where u(k) is the control action (change in flow rate) at time step k, K is the controller gain matrix, and x(k) is the state vector.
Optimization with State-Feedback Control of Water Levels • Linear Quadratic Regulator (LQR) with Penalty Function where J is the cost, e(k) is the water level error at time step k, and Q and R are penalties on the water level errors and control actions, respectively.
Controller Tuning • Centralized PI-controller (with full gain matrix) can be found from solution of Riccati equation • Gradient search procedures are used to optimize other, more simple controllers, such as a series of local PI controllers
Proportional-Integral Controller • We can optimally tune a PI controller with the above scheme, • provided that the state vector, x(k), is properly chosen and • when only certain elements are chosen within the gain matrix, K.
Expansion of simple PI controller • Additional terms are added to state vector to account for delays(as in Smith Predictor used in control theory) • Off diagonal elements allow “decoupling” and centralized control
Full gain Matrix • Top version highlights PI terms • Bottom version highlights delay (L) terms
Conclusions from Optimization • Series of simple PI controllers can be greatly improved upon • Adding Smith Predictor should improve controller performance for this canal • Decoupling or sending control signals to other pools should improve control • Sending information to one pool downstream and one (or more) pools upstream is a good control compromise
Simulation Testing • Controllers tested with CanalCAD • Tested under tuned and untuned conditions • 12 different controllers tested for each test case
Test 1-1 with NO gate movement restrictionsCentralized PI Controller (PIL-+) Change at 2 hours had feed-forward Change at 14 hours was only feed-back
Test 1-1 with gate movement restrictionsCentralized PI Controller (PIL-+)
Test 1-1 untuned (gate move. restr. implied)Centralized PI Controller (PIL-+)
Conclusions • Gate movement restrictions have a big influence on controller performance • Tuning to actual canal conditions can improve controller performance • Results suggest passing control actions one pool upstream and one pool downstream may be good compromise. • While optimization suggests Smith predictor always improves performance, simulation results suggest that it often doesn’t • Control with centralized PI controller comparable to traditional LQR controller
Simulation results for Upper Arizona Canal when controlling entire network MPC w/ feedforward Centralized PI w/ feedforward Centralized PI w/ feedback only MPC w/ feedback only
Manning n is used to adjust delay times for volume-based feedforward routing
Some canal pools do not follow the ID model. They have “effectively” no delay, a backwater area, and reflection waves
Influence of reflection waves Reflection waves can destabilize an otherwise stable controller Water level filtering can be used to Minimize the influence of reflection waves on control Remove transducer noise Provide Anti-aliasing
Pseudo-random binary signal can be used to obtain frequency response of canal pool
Bode (Frequency) Diagram can be used to design filters Resonance Peak Filter Actual Signal ID Model is straight line Filtered Signal Frequency
Manual Supervisory Control • Standard Supervisory Control Features using iFix Dynamics from Intellution, Inc. • Added features for canal management
Manual Supervisory Control • iFix allows many types of displays (CAIDD) • Screen allows incremental flow change at gate