From the surge-margin example to an uncertainty-aware anti-surge controller
The question
Given its flow meter's real state-dependent uncertainty R(Q), does an active inference agent hold a centrifugal compressor's surge margin better than a fixed-margin anti-surge controller on the same plant? The example covers differential-pressure meters (orifice, venturi, nozzle) and Coriolis meters. "Better" is defined under the first result.
The continuation is open as a paper. Lead authorship is yours of course. I'm happy to co-author the meter derivation and the cpomdp side if that helps and my contribution is sufficient. If not I only ask you cite cpomdp.
What a first result looks like
One meter type, Coriolis. The example covers it, and it is the case where the epistemic term pulls toward surge.
Give it a measured or literature-sourced uncertainty model, zero-stability term included. The SEVA work below reports an uncertainty with every measurement and is one place to start. Put a hard surge constraint on the margin. Run the agent and a fixed-margin anti-surge controller on the same plant, with the same meter and the same disturbances. Sweep Λ for the agent and the margin setting for the baseline, and report both margin-versus-efficiency curves. Efficiency here is recycle avoided.
"Better" means the agent's curve dominates. At the same rate of surge-limit violations it holds a smaller mean margin. Or at the same mean margin it violates less.
A negative result counts. An agent that needs the hard limit to stay out of surge, and does no better than a fixed margin once it has one, is worth writing up.
Kind of work
- Application / industry example
- Validation against a benchmark or oracle (RxInfer, published data)
Skills that would help
- Flow metering or process instrumentation
- compressor or anti-surge control
- Bayesian filtering
- JAX
Where it starts
The example the question grows from is written up here as Anti-surge control, with its results and the script that computed them.
From the published method to code
Sathish et al. (2024) set out a ten-step method for designing an active inference anti-surge controller, and outline a controller in pymdp. The table maps each step to what cpomdp v0.5.0 already has.
| Step | What the method calls for | In cpomdp v0.5.0 | Status |
|---|---|---|---|
| 1. Hidden states | Pressure ratio, reduced mass flow, distance to the surge line | Surge margin, the flow above the surge line, as one continuous state | Simplified version |
| 2. Observations | Flow, inlet and outlet pressures, inlet temperature, speed, valve positions | One flow reading | Simplified version |
| 3a. Observation model | How each reading relates to the hidden state | Power-law noise models for DP and Coriolis meters, derived from meter physics, and a fixed-noise twin | Simplified version |
| 3b. Transition model | Dynamics, with a surge line that moves with suction conditions and speed | Linear dynamics, fixed surge line | Simplified version |
| 4. Actions | Inlet guide vanes, speed or the anti-surge valve. The controller they outline uses the valve | One input: an anti-surge valve step, which moves flow | In cpomdp now |
| 5. Preferences | Stay a margin from the surge line, for example 10% | Economic preference weighted by Λ | In cpomdp now |
| 6. Control loop | Infer, plan, act, repeat | The Agent in closed loop, noise-free, one-step plan | Simplified version |
| 7. Optimise the strategy | Balance throughput against staying within constraints | No hard surge limit | Open |
| 8. Simulate and evaluate | High header pressure, low suction pressure, startup, emergency shutdown | The plant is the agent's own model | Open |
| 9–10. Refine and deploy | Iterate and refine, then deploy and monitor | Nothing yet | Open |
| Comparison | Named as future work: against PID and MPC surge controllers | Against a fixed-noise twin of the same agent only. The first result asks for a fixed-margin controller | Open |
- DP: a differential-pressure flow meter, such as an orifice plate.
- Λ: the weight on the economic preference. It sets where the agent wants to sit.
- PID: proportional-integral-derivative, the standard industrial controller.
- MPC: model predictive control.
The cpomdp results are direction results on a simplified plant. The plant has no compressor dynamics and no noise, and the agent plans one step ahead. The size of the standoff from surge depends on Λ, so it is not a citable number. The “Open” rows are the proposed study.
Respond
The discussion states the proposal in full, with what the software already provides, what is missing and the prior art. Reply there to take it on or to ask about it.
Discussion #192 by DanBoringName, last updated .