easyiec.problems.CSTRControl#

class easyiec.problems.CSTRControl(controller='pid', dt=0.01, horizon=15.0)[source]#

Bases: Problem

Temperature control of an exothermic continuous stirred-tank reactor.

First-order irreversible reaction A→B with jacket cooling (the classical benchmark model; parameter values as widely used after Seborg et al. and Henson and Seborg, 1997: \(q=100\) L/min, \(V=100\) L, \(C_{Af}=1\) mol/L, \(T_f=350\) K, \(\rho=1000\) g/L, \(C_p=0.239\) J/(g K), \(\Delta H=-5\cdot10^4\) J/mol, \(E/R=8750\) K, \(k_0=7.2\cdot10^{10}\) 1/min, \(UA=5\cdot10^4\) J/(min K)). The coolant temperature \(T_c\) (limited to 250–350 K) controls the reactor temperature. The operating point (\(Tpprox350\) K, \(C_Approx0.5\) mol/L at \(T_c=300\) K) is the open-loop unstable middle steady state of the reactor (Jacobian eigenvalues ≈ −0.45 and +2.83 1/min), so poor tuning leads to runaway or extinction. Scenario: setpoint 350 → 355 K at 1 min, feed temperature +3 K at 8 min.

controller="pid" tunes a PID controller; controller="dmc" tunes an unconstrained dynamic matrix controller (Cutler and Ramaker, 1980) that supervises a fixed stabilizing proportional temperature loop (the usual arrangement of MPC on top of regulatory control): prediction horizon, control horizon, move suppression and reference-trajectory filter, the MPC tuning task of the original EASY-IEC paper. Temperatures above 380 K are reported as a safety violation.

describe(x)[source]#

Text description of a candidate (for text-only judges).

features(x)[source]#

Phenotype features in psychological space (default: image features).

objectives(x)[source]#

Key performance indicators (engineering problems); empty by default.

render_plot(x, ax)[source]#

Plot-type phenotypes (curves, layouts) draw here; used by _image().

utility(x, target=None)[source]#

Default hidden utility in [0, 1] (ground truth of benchmarks).

With a target genome it is a Gaussian similarity of standardized phenotype features; subclasses with explicit objectives override it.

Examples using easyiec.problems.CSTRControl#

Controlling an exothermic reactor at its unstable steady state

Controlling an exothermic reactor at its unstable steady state