Gain scheduling

On this page 7

Gain scheduling is a nonlinear control technique in which a family of linear controllers, each tuned for one operating point, is combined by switching or interpolating their gains according to a measured scheduling variable. In robotics control systems, it lets a simple controller such as PID or LQR stay well tuned while inertia, payload, speed or configuration change across the workspace.

The method rests on a practical observation: many nonlinear plants behave almost linearly in a small neighborhood of each operating condition. Instead of designing one complex nonlinear controller, the engineer designs several local controllers and lets a scheduling map select the appropriate gains in real time.

How gain scheduling adapts a controller

Gain scheduling adapts a controller by making its parameters functions of a scheduling variable that captures where the system currently operates. The classical design follows four steps, each of which can be checked separately before the controller runs on hardware.

  1. Linearize the plant at a grid of operating points, such as several arm configurations or payload masses.
  2. Design a local controller for each linear model with standard methods such as loop shaping, pole placement or LQR.
  3. Build the scheduling map that interpolates or switches gains between grid points.
  4. Verify the blended controller in simulation and on hardware across transitions, not only at the design points.

The scheduling variable must be measurable or reliably estimated, and it should change more slowly than the closed-loop dynamics. When it varies too quickly, the frozen-parameter assumption behind the design breaks down and stability is no longer guaranteed by the local designs alone.

Scheduling can act on any controller parameter, not only proportional gains. Integral and derivative terms, feedforward gains, filter cutoff frequencies and even saturation limits are frequently scheduled together, because a joint that carries more inertia usually needs a lower bandwidth and a different feedforward compensation for gravity.

Typical scheduling variables in robots

The choice of scheduling variable determines which nonlinearity the scheme compensates. The table below lists common choices in robotic systems and what they correct.

Scheduling variableNonlinearity addressedExample system
Joint configurationConfiguration-dependent inertia and gravitySerial manipulator arm
Payload massChanging effective inertiaPick-and-place robot
Forward speedSpeed-dependent tire and aerodynamic forcesAutonomous ground vehicle
Airspeed or altitudeChanging aerodynamic effectivenessFixed-wing drone
Contact stateDifferent dynamics in free motion and contactLegged robot or gripper
Battery voltageVarying actuator torque capabilitySmall mobile robot
Scheduling variables and the effects they address

In practice, engineers often schedule on one or two variables, because the number of design points grows quickly with every added dimension and each point must be tuned and validated.

Interpolation and switching strategies

Gains are blended between design points either by smooth interpolation or by discrete switching, and the choice strongly affects transient behavior. Abrupt switching can cause bumps in the actuator command, while interpolation produces gains that were never directly verified.

StrategyHow gains changeAdvantageRisk
Lookup table switchingJump at region boundariesSimple and transparentCommand bumps and chattering
Linear interpolationBlend between neighboring pointsSmooth transitionsIntermediate gains unverified
Hysteresis switchingSwitch with separate up and down thresholdsAvoids rapid togglingDelayed adaptation
LPV synthesisGains from a parameter-dependent designFormal stability guaranteesComplex design and conservatism
Ways to move between local controllers

Bumpless transfer techniques, such as resetting integrator states when gains change, keep the control output continuous when a PID controller moves between gain sets.

A useful rule of thumb is to place design points densest where the dynamics change fastest, for example near full arm extension, rather than spacing them uniformly. Engineers then test the controller while sweeping the scheduling variable at its maximum realistic rate, which exposes transition problems that static tests at fixed points cannot reveal.

Gain scheduling is often confused with adaptive control, but the two differ in where the knowledge comes from. A gain-scheduled controller uses a map designed offline, whereas an adaptive controller estimates parameters online from the data it observes.

MethodSource of variationComputational loadTypical robot use
Gain schedulingPrecomputed map of gainsVery lowJoint servos, drones, vehicles
Adaptive controlOnline parameter estimationLow to moderateUnknown or slowly changing payloads
Computed torque controlFull dynamic model each cycleModerateModel-based arm control
Model predictive controlOptimization at every stepHighLegged locomotion and vehicles
Robust controlOne fixed controller for all casesVery lowUncertain but bounded plants
Gain scheduling versus neighboring approaches

A robust controller sacrifices performance to cover all conditions with one gain set, while gain scheduling recovers performance by tailoring gains to each region. Computed torque control removes much of the need for scheduling, but only when an accurate dynamic model is available.

Limitations and practical pitfalls

The main weakness of gain scheduling is that local stability does not imply global stability: each frozen controller may be stable, yet the blended system can become unstable during fast transitions. Formal guarantees require linear parameter-varying analysis or slow-variation arguments.

  • Sparse design grids leave regions where interpolated gains perform poorly.
  • Noisy scheduling signals cause gains to jitter and should be filtered or quantized with hysteresis.
  • Unmodeled operating conditions, such as an unexpected payload, fall outside the map entirely.
  • Tuning effort grows with every additional scheduling dimension.

Despite these limits, gain scheduling remains popular because it is easy to certify, explain and implement on embedded controllers with tight real-time budgets.

Put simply

Gain scheduling means using different settings for different situations. Think of a cyclist who shifts gears. On a steep hill, one gear works best. On a flat road, another gear is better.

A robot does the same with its control settings. When it carries a heavy load or stretches its arm far out, it switches to settings prepared for that case. The settings are chosen in advance, so the switch is fast and predictable.

In practice

A palletizing robot in a beverage plant lifts cases that weigh between 2 and 25 kilograms. With a single set of PID gains, the arm either oscillates when empty or responds sluggishly when fully loaded. The integrator chooses payload mass and arm reach as scheduling variables.

Engineers tune joint gains at three payloads and four reach distances, giving twelve design points stored in a table. During operation, the controller reads the payload from the gripper recipe and interpolates the gains every millisecond. The result is consistent settling time below 0.3 seconds across all products, with no overshoot that could drop a case, and the same control software runs on the existing drive hardware.