L13: Nonlinearity + Saturation¶
Prerequisites: L12 | Effort: 60 min | Seborg: Chapter 16
Learning Objectives¶
- ✅ Handle nonlinear processes (pH, valve saturation)
- ✅ Implement gain scheduling
- ✅ Use clamp() and conditional logic
- ✅ Simulate valve saturation effects
Theory Recap: Nonlinearity (Seborg Ch. 16)¶
Common Nonlinearities: - pH control: Titration curve (steep near equivalence) - Valve saturation: 0-100% physical limits - Gain variation: Process gain changes with operating point
Solutions: 1. Gain scheduling: Switch controller gains based on PV 2. Adaptive control: Continuously adjust gains 3. Advanced control: MPC handles constraints natively
Odibi Hands-On¶
Example 1: Valve Saturation¶
Working example: /examples/cheme_course/L13_nonlinearity/valve_saturation.yaml
Example 2: pH Nonlinearity¶
Working example: /examples/cheme_course/L13_nonlinearity/ph_control.yaml
Summary¶
- ✅ Saturation and nonlinearity are real-world facts
- ✅ Gain scheduling helps
- ✅ Always use output limits and anti-windup
Next: L14: MPC-lite