From the surge-margin example to an uncertainty-aware anti-surge controller

Open, looking for someone to take itPaper-sizedOpened

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.

Checked against cpomdp v0.5.0 on . cpomdp has since released v0.5.1.
StepWhat the method calls forIn cpomdp v0.5.0Status
1. Hidden statesPressure ratio, reduced mass flow, distance to the surge lineSurge margin, the flow above the surge line, as one continuous stateSimplified version
2. ObservationsFlow, inlet and outlet pressures, inlet temperature, speed, valve positionsOne flow readingSimplified version
3a. Observation modelHow each reading relates to the hidden statePower-law noise models for DP and Coriolis meters, derived from meter physics, and a fixed-noise twinSimplified version
3b. Transition modelDynamics, with a surge line that moves with suction conditions and speedLinear dynamics, fixed surge lineSimplified version
4. ActionsInlet guide vanes, speed or the anti-surge valve. The controller they outline uses the valveOne input: an anti-surge valve step, which moves flowIn cpomdp now
5. PreferencesStay a margin from the surge line, for example 10%Economic preference weighted by ΛIn cpomdp now
6. Control loopInfer, plan, act, repeatThe Agent in closed loop, noise-free, one-step planSimplified version
7. Optimise the strategyBalance throughput against staying within constraintsNo hard surge limitOpen
8. Simulate and evaluateHigh header pressure, low suction pressure, startup, emergency shutdownThe plant is the agent's own modelOpen
9–10. Refine and deployIterate and refine, then deploy and monitorNothing yetOpen
ComparisonNamed as future work: against PID and MPC surge controllersAgainst a fixed-noise twin of the same agent only. The first result asks for a fixed-margin controllerOpen
  • 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 .