betaFeedback

WorksComputer Science

Bayesian Optimisation under State-Preservation Constraints

Abstract

In many engineering design problems, the objective and constraints depend on the state: the solution of a PDE determined by the design parameters. We consider improving a design while holding selected state observables near trusted values, which we call state preservation constraints. Constrained Bayesian optimisation handles these with a learnt feasibility model, but struggles with this problem's highly anisotropic feasible set. Our central idea is to pre-compute the set of controls whose linearised constraint response stays within tolerance, thereby pulling back the state-space constraint into design space. This linearisation defines an ellipsoid from which we can efficiently draw a large number of well-spread candidates. The underlying linear response map is refined online, and the ellipsoid is rebuilt accordingly. We demonstrate the method end-to-end on our key application - Tokamak divertor optimisation under plasma-boundary preservation.

Introduction

There is a rich history of applying optimisation techniques to engineering design ([12]). Often, we rely on legacy, nondifferentiable codebases to evaluate expensive objective functions ([26] (Du et al. 2023)). feasible set and adopt it as a constraint-aware proposal geometry for the Bayesian optimisation loop. This ellipsoidal region is available in closed form, and millions of well-spread candidates can be drawn from it at negligible cost (Figure 1b). We additionally refine its defining linear response map online by regression and rebuild the region accordingly. Hence, at the cost of extracting a single Jacobian, we pre-compute and refine the geometry a purely data-driven method must spend its budget learning.

Figure 1. Left: (a) uniform samples across coil-current design variables X\mathcal{X} and (b) well-spread samples from the linearised feasible region EE, restricted to the D1, D2, D3 coils for presentation. Points feasible under the LCFS preservation constraint (desired fixed central region) are green, infeasible red. The starred point is our baseline solution. Right: (c, d) the resulting PDE solutions of the sampled design variables superposed on the baseline solution (black) corresponding to the designs in (a) and (b). This is a vertical slice of a tokamak reactor torus. (e, f) the same construction over the full d=10d=10 current domain, showing how tightly EE constrains the LCFS. Adopting EE as the proposal geometry within BO is the essence of our method.

Our primary application is divertor design for tokamak fusion reactors — a critical problem plagued by expensive numerical physics simulations. We seek to optimise a divertor’s magnetic geometry for improved heat-exhaust performance while preserving the plasma boundary of a baseline equilibrium, known as the last closed flux surface (LCFS). This ensures the reactor’s confinement properties are preserved (Figure 1c-Figure 1f and Figure 2). Recent work applies Bayesian optimisation in this setting, using connection length as a performance proxy and learning core preservation as a constraint (Nunn et al. [34]). We instead incorporate preservation directly into the proposal geometry, demonstrating substantial gains in sample efficiency over standard constrained-BO baselines, with ablations showing that the proposal geometry is the principal source of the improvement.

Figure 2. (a) A reconstructed super-X equilibrium from MAST-U shot 53349. We take this equilibrium as our baseline (starting design). (b, c) Random current perturbations (within known MAST-U PF coil bounds) demonstrating the sensitivity of the LCFS (black traced contour). The centre of the black boxes denotes coil location. We will be optimising the current strengths (and later the coil locations) in order to get desirable properties of the separatrix (red contour line), whilst attempting to preserve the LCFS at its baseline shape.

BACKGROUND

Bayesian optimisation. We wish to maximise an objective function f:X→Rf:\mathcal{X}\to\mathbb{R}. We assume that ff is expensive to evaluate and derivative-free, making sample efficiency our primary concern. Bayesian optimisation addresses this setting by sequentially constructing a probabilistic surrogate over the nn already observed evaluations Dn\mathcal{D}_n. Gaussian processes (GPs) are widely used as surrogate models, providing a closed-form posterior predictive distribution for f(x)∣Dnf(x)\mid\mathcal{D}_n (Rasmussen and Williams [39]).

Each surrogate model is then used to choose the next evaluation, as selected by maximising an acquisition function defined on this posterior. Acquisition functions balance regions of high predicted objective value against those of high uncertainty, e.g. we can use the expected improvement (EI) (Jones, Schonlau, and Welch [22]) over the score of the current best location (the incumbent) fn⋆:=max⁡i≤nf(xi)f_n^\star:=\max_{i\le n}f(x_i), given by;

EI⁡n(x):=Ef(x)∣Dn[max⁡(f(x)−fn⋆,0)].\operatorname{EI}_n(x):=\mathbb{E}_{f(x)\mid\mathcal{D}_n}\left[\max(f(x)-f_n^\star,0)\right].

Constrained Bayesian optimisation. Suppose feasibility is defined by constraints cj(x)≤0c_j(x)\leq0. Standard constrained BO places probabilistic surrogates on the constraints and incorporates feasibility through the acquisition function; for example, constrained expected improvement takes the form

cEI⁡n(x)=EI⁡n(x)∏jPcj(x)∣Dn[cj(x)≤0],\operatorname{cEI}_n(x)=\operatorname{EI}_n(x)\prod_j P_{c_j(x)\mid\mathcal{D}_n}[c_j(x)\leq0],

with the feasibility probability obtained from learnt constraint models (Schonlau, Welch, and Jones [41]; Gardner et al. [13]; Gelbart, Snoek, and R. P. Adams [14]). Alternatives use information-theoretic acquisitions or penalty-based formulations (Hernández-Lobato et al. [17]; Lu and Paulson 2022). In all cases, feasibility is judged by a learnt constraint surrogate (Eriksson and Poloczek [11]), while the initial design and candidate generation remain over the ambient domain. We show that for state preservation constraints these surrogates are often poor: the feasible set is thin and anisotropic, and a few expensive evaluations are not enough to resolve its boundary.

Multi-objective Bayesian optimisation. In multi-objective BO (MOBO) it is common to replace seeking scalar improvements in the current best solution by instead seeking improvements over the problem’s Pareto front — the set of optimal tradeoffs between the multiple objectives. The resulting acquisition function is the Expected Hyper-Volume Improvement (EHVI) of Emmerich, Giannakoglou, and Naujoks 2006, implemented efficiently by Daulton, Balandat, and Bakshy 2020.

Local feasible-set approximations. In this work, rather than learning feasibility pointwise, we will approximate the feasible set directly as a geometric object. This is a classical technique in constrained optimisation, however, this has yet to be fully explored in BO. For example, sequential quadratic programming combines a local quadratic model of the objective with linearised constraints; trust-region variants limit steps to a neighbourhood where these approximations remain reliable ([33]) and derivative-free methods such as COBYLA construct local linear models of the constraints from function evaluations ([38]). We adapt these ideas from the nonlinear-programming literature and use the local linearised feasible region to provide candidate proposals within a Bayesian optimisation loop. We further update this approximation of the feasible region online, using data observations.

Optimising under the simulator constraint. One could avoid learning the constraint altogether and maximise the acquisition function subject to the simulator-defined feasibility directly, making the inner loop a PDE-constrained optimisation ([19]). We do not — this approach only makes sense when checking feasibility is significantly cheaper than evaluating the objective. Furthermore, gradients may in principle be obtained by finite differences or adjoint methods, but, here, neither is straightforward. Finally, gradient-based optimisation of the resulting non-convex acquisition function is typically local, leaving performance sensitive to initialisation — the difficulty our proposal geometry addresses.

Constraint-Aware Candidate Generation

Let x∈X⊂Rdx \in\mathcal{X} \subset\mathbb{R}^{d} denote a design and let ψ(x)\psi(x) denote the corresponding system state produced by an expensive simulator. We seek to optimise an objective F(ψ(x))F(\psi(x)) while preserving a selected observable C(ψ(x))C(\psi(x)) relative to a baseline design x0x_{0}.

We define feasibility by

∥C(ψ(x))−C(ψ(x0))∥G≤τ,\lVert C(\psi(x)) - C(\psi(x_{0})) \rVert_{G} \le\tau,

where ∥⋅∥G\lVert\cdot\rVert_{G} is a norm on the observable space and τ>0\tau> 0 is a prescribed tolerance. Writing

v(x):=∥C(ψ(x))−C(ψ(x0))∥G,v(x) := \lVert C(\psi(x)) - C(\psi(x_{0})) \rVert_{G},

for the constraint violation. Our optimisation problem is therefore

x⋆∈arg⁡max⁡x∈X F(ψ(x))subject tov(x)≤τ.x^{\star} \in\underset{x \in\mathcal{X}}{\arg\max}\ F(\psi(x)) \quad\text{subject to}\quad v(x) \le\tau.

The linearised feasible region

The essence of our method is to approximate the feasible set to first order and use this approximation as the proposal geometry for Bayesian optimisation.

Around the baseline design x0x_{0}, a first-order expansion gives

C(ψ(x0+δx))=C(ψ(x0))+Jδx+O(∥δx∥2).C(\psi(x_{0}+\delta x)) = C(\psi(x_{0})) + J\delta x + O(\lVert\delta x\rVert^{2}).

Where the Jacobian J:=D(C∘ψ)(x0)J := D(C \circ\psi)(x_{0}). Hence

C(ψ(x0+δx))−C(ψ(x0))≈Jδx,C(\psi(x_{0}+\delta x)) - C(\psi(x_{0})) \approx J\delta x,

and therefore

v(x0+δx)2≈∥Jδx∥G2=δxTJTGJδx.v(x_{0}+\delta x)^{2} \approx\lVert J\delta x\rVert_{G}^{2} = \delta x^{\mathsf{T}}J^{\mathsf{T}}GJ\delta x.

Writing M:=JTGJM := J^{\mathsf{T}}GJ, the first-order approximation to the preservation constraint v(x0+δx)≤τv(x_{0}+\delta x) \le\tau becomes the linearised feasible region

E:={x0+δx:δxTMδx≤τ2}.E := \left\{x_{0}+\delta x : \delta x^{\mathsf{T}}M\delta x \le\tau^{2}\right\}.

We use E∩XE \cap\mathcal{X} as the proposal geometry for the Bayesian optimisation loop. The intersection keeps the region bounded when MM is singular.

This construction admits a geometric interpretation. The inner product GG measures changes in the observable space, while JJ pulls this structure back to design space through

M=JTGJ.M = J^{\mathsf{T}}GJ.

Thus EE consists of design perturbations whose predicted first-order observable displacement is bounded by τ\tau.

Ray-based intersection sampling and maximin filtering

At each stage of the optimisation we draw candidates from E∩BE \cap B, where EE is the linearised feasible region and BB is either the engineering domain X\mathcal{X} or the current objective-focused trust region. Because EE may be highly anisotropic, naive box sampling can give poor coverage. We therefore generate a large candidate pool by ray-based sampling within E∩BE \cap B, using analytic intersections with the ellipsoidal and box boundaries, and then greedily retain a well-spread subset using a maximin criterion [21]. This procedure allows very large candidate pools to be generated cheaply; implementation details are given in Appendix § 10.

Online refinement

The initial response map

J=D(C∘ψ)(x0)J = D(C \circ\psi)(x_0)

describes the infinitesimal change in the observable around the baseline. As the optimisation explores finite displacements from x0x_0, nonlinear effects cause this local differential to become an imperfect predictor of the observed change C(ψ(x))−C(ψ(x0))C(\psi(x)) - C(\psi(x_0)).

Every simulator evaluation, however, provides additional information about this response at no extra solver cost. Writing

δxi:=xi−x0,δCi:=C(ψ(xi))−C(ψ(x0)),\delta x_i := x_i - x_0,\qquad\delta C_i := C(\psi(x_i)) - C(\psi(x_0)),

each evaluated design supplies a displacement pair (δxi,δCi)(\delta x_i,\delta C_i) satisfying approximately

δCi≈J^ δxi.\delta C_i \approx\hat{J}\,\delta x_i.

We therefore refit the linear response map J^\hat{J} by least squares over the pairs observed so far, including the initial finite-difference probes. The proposal geometry is then updated through

M^=J^TGJ^,E={x0+δx:δxTM^δx≤τ2}.\widehat{M} = \hat{J}^{\mathsf{T}}G\hat{J},\qquad E = \left\{x_0+\delta x:\delta x^{\mathsf{T}}\widehat{M}\delta x\leq\tau^2\right\}.

Thus the finite-difference Jacobian supplies an initial proposal geometry before BO has collected data, while subsequent evaluations continually adapt that geometry to the finite-scale behaviour encountered by the search.

Feasibility beyond the linearisation

Due to linearisation error, the edges of our feasible region will contain some infeasible points. To handle these, we use a learnt feasibility model to weight the acquisition. Rather than model the scalar violation, we model the change in the observable, δC(x)\delta C(x) and take its norm:

δC(x)=J^ δx+∑j=1Kaj(x) ϕj,\delta C(x) = \hat{J}\,\delta x + \sum_{j=1}^{K} a_j(x)\,\phi_j,

where J^\hat{J} is the online-refit linear response map from which EE is built, {ϕj}\{\phi_j\} are the leading KK modes of an uncentred proper orthogonal decomposition of the residual fields δCi−J^ δxi\delta C_i-\hat{J}\,\delta x_i and the aja_j are zero-mean GPs on the mode coefficients, learning what is missed by the linearisation [23]. Since δC(x)\delta C(x) is Gaussian under this model, ∥δC(x)∥G2\|\delta C(x)\|_G^2 is a quadratic form of a Gaussian vector and P[∥δC(x)∥G≤τ]\mathbb{P}[\|\delta C(x)\|_G\leq\tau] is a generalised χ2\chi^2 tail, which we approximate by moment matching.

We refer to this model as our field model, since CC is field-valued. The construction — a low-rank basis for the field with GPs on its coefficients — is standard for functional outputs [18, 16] and, as we show in § 5, outperforms fitting a scalar GP directly on ∥δC(x)∥G\|\delta C(x)\|_G.

DIVERTOR OPTIMISATION

We now explain our key application of divertor optimisation, as summarised in Figure 2.

Design xx. Tokamak fusion reactors confine a high-temperature plasma with a magnetic cage of helical field lines. This magnetic field is induced by current flowing through external coils and through the plasma itself. The poloidal field coils shape the confined plasma and the divertor geometry. We take as design x=Ix=I, the poloidal field coil currents, and later x=(I,R,Z)x=(I,R,Z) with their positions.

State ψ\psi. Under axisymmetry, the divergence-free magnetic field admits a scalar representation in terms of a single function: ψ(R,Z)\psi(R,Z) – the poloidal magnetic flux function and constitutes our state. The level sets of ψ\psi define magnetic flux surfaces. At ideal MHD equilibrium, both the pressure and toroidal field function are constant on flux surfaces and the force-balance equation reduces to the Grad-Shafranov equation

Δ⋆ψ=−μ0R2p′(ψ)−F(ψ)F′(ψ).\Delta^\star\psi=-\mu_0R^2p'(\psi)-F(\psi)F'(\psi).

where

Δ⋆=R∂∂R(1R∂∂R)+∂2∂Z2\Delta^\star=R\frac{\partial}{\partial R}\left(\frac{1}{R}\frac{\partial}{\partial R}\right)+\frac{\partial^2}{\partial Z^2}

is the Grad-Shafranov operator. In this work, we use FreeGSNKE [1], to solve the free-boundary Grad-Shafranov equation (GSE). The

GSE takes as inputs the currents and positions of the poloidal field coils and returns the poloidal flux function over the full spatial domain. Example such equilibria are plotted in Figure 2.

Constraint CC. Charged particles follow magnetic field lines. The field lines arising from solving the GSE may be open, so the charged particles can interact with material surfaces, or closed, when they are confined. The boundary between closed and open field lines is known as the separatrix. On this flux surface, the point(s) where the poloidal magnetic field goes to zero is called the X-point. The last closed flux surface (LCFS) (Figure 2) is the outermost closed magnetic flux surface. The shape of this closed curve is chosen to optimise plasma confinement and stability requirements and therefore acts as our observable CC.

For a smooth curve, first-order shape changes are described by normal displacement ([31, 43]). Let Γ0\Gamma_0 denote the baseline LCFS. We represent the change to the perturbed LCFS Γ(x)\Gamma(x) by δC(x)∈RN\delta C(x) \in\mathbb{R}^N, whose entries are signed normal displacements measured at NN equally spaced arclength locations on Γ0\Gamma_0 (construction in Appendix § 9).

Finite differences with respect to the design variables give the response map

J=D(C∘ψ)(x0)∈RN×d,J = D(C \circ\psi)(x_0) \in\mathbb{R}^{N \times d},

a matrix whose jjth column is the LCFS normal-displacement field produced by a small perturbation of design variable xjx_j. We measure preservation by the RMS normal displacement,

v(x):=∥δC(x)∥G=(1NδC(x)⊤δC(x))1/2,v(x) := \lVert\delta C(x) \rVert_G = \left(\frac{1}{N}\delta C(x)^\top\delta C(x)\right)^{1/2},
∥y∥G:=(y⊤Gy)1/2,i.e. G=1NI.\lVert y \rVert_G := (y^\top G y)^{1/2}, \qquad\text{i.e. } G = \frac{1}{N}I.

Objective FF. A fusion plasma is not a closed system – charged particles and heat continuously escape the confined core and intersect material surfaces on the tokamak wall. In reactor-scale tokamaks, such unmitigated exhaust heat loads far exceed the engineering limits of any practical plasma-facing material ([24]). To manage this, tokamaks employ a dedicated region known as the divertor. The central objective of the divertor is to achieve and control a detached plasma regime, characterised by sufficiently strong power and momentum losses that the plasma cools and begins to recombine before reaching the divertor target. The result is a large reduction of the parallel heat flux incident on material surfaces.

We minimise the detachment-threshold impurity fraction, czc_z: the impurity fraction required for detachment onset at the divertor target, at fixed upstream conditions. Lowering this threshold makes detachment easier to access and widens the operating window ([27]). We compute this objective using the reduced divertor model FusionDLS ([4, 25]).

Related work in Fusion Research

We note that considering the linearised coil-to-boundary response is a well-studied construct in tokamak magnetic control. Virtual circuits use it to vary one geometric shape parameter while holding the others fixed [30, 2]. We use the same principle to construct a search region rather than control directions. Relaxing the response’s null space to a region would require a norm on shape parameter changes, instead, we use the L2L^2 norm of the LCFS normal displacement.

Two additional constructions for holding the core fixed appear in the literature and we present them below. However, in both, note that constraint approximations are controlled coarsely by a discrete parameter that sacrifices approximation quality for degrees of freedom. In contrast, our norm-based constraint de-couples LCFS resolution from design dimension: we are able to resolve the LCFS at O(104)O(10^4) points while retaining all dd design directions, with τ\tau controlling the allowed displacement.

  1. Bardsley, Baker, and Vincent [3] preserve the core approximately by matching the leading spherical-harmonic coefficients of ψmachine\psi_{\mathrm{machine}} to their baseline values. These coefficients are linear in coil currents, so admissible current changes lie in the null space of the resulting constraint matrix. Each additional harmonic tightens preservation at the cost of a degree of freedom, with no intermediate settings available. The approximation is also conservative as the constraint fixes the field throughout a source-free ball containing the plasma rather than directly preserving the LCFS.

  1. Marsden [29] place conditions on the machine flux at sampled points along the separatrix to define a linear system whose null space supplies simulated-annealing proposals that satisfy the constraints. However, the exactness is only enforced pointwise, with the boundary pinned at a set number of chosen points and unconstrained between them.

Experiments

Experimental protocol. All experiments start from the same MAST-U-like baseline equilibrium with LCFS-displacement tolerance τ=0.5\tau= 0.5 cm. We first optimise d=10d = 10 paired coil currents, then jointly optimise currents and positions (d=30d = 30), and finally consider an additional objective function. Evaluation budgets are 1,000 (currents-only) and 1,500 (joint), with 50 and 100 initial designs respectively. Constructing the initial response map requires an additional 2d2d finite-difference solves. We report 50 seeds per run, each on 4 CPU cores with 16 GB and 40 GB of memory for d=10d = 10 and d=30d = 30. See Appendix § 8.

Shared implementation details. We compare our proposed algorithm with a variant of the previous application of BO to divertor optimisation (Nunn et al. [34]) (henceforth, the competitor). These two methods differ principally (see Appendix § 8) in candidate generation and feasibility modelling — Nunn et al. [34] attempt to learn core preservation (with a Matérn-5/2 GP on the scalar violation v(x)v(x)) whereas we approximate the feasible set directly as a geometric object (details below). For both methods, objectives are modeled with zero-mean GPs with ARD Matérn-5/2 kernels, fit by maximum likelihood. Candidates

are ranked by feasibility-weighted expected improvement, EI⁡(x)×P[v(x)≤τ]\operatorname{EI}(x) \times P[v(x) \le\tau] relative to the best observed feasible value. The highest-ranked candidates initialise L-BFGS-B refinement of this acquisition. Both methods deploy the Trust-Region BO (TuRBO) of Eriksson, Pearce, et al. [10] to localise search and modelling to an adaptively sized neighbourhood BB of the incumbent. Upon trust-region convergence, the objective GP is reset and a fresh initial design is drawn.

Our algorithm. The primary contribution of our paper is the continually updating candidate proposal geometry: the initial design and candidate pools are drawn from the linearised feasible region EE of § 3. At each iteration, we draw 10510^5 candidates from E∩BE \cap B using ray-based sampling and apply maximin filtering. Acquisition may leave EE, with feasibility assessed by the field model of § 3.4, using K=5K = 5 modes. After each step, we refit J^\hat{J} on all observed pairs, rebuild EE, and update surrogates and trust regions, see Algorithm 1.

Algorithm 1 Constrained BO with linearised proposal geometry (# initial designs NinitN_{\mathrm{init}}, # steps TT)

1: Solve ψ0=ψ(x0)\psi_0 = \psi(x_0) 2: Estimate J^\hat{J} by finite differences (2d2d solves) 3: E←{x0+δx:δxTJ^TG^J^δx≤τ2}E \leftarrow\{x_0 + \delta x : \delta x^\mathsf{T}\hat{J}^\mathsf{T}\hat{G}\hat{J}\delta x \le\tau^2\}; B←XB \leftarrow\mathcal{X} 4: Sample NinitN_{\mathrm{init}} points from E∩XE \cap\mathcal{X}; evaluate FF, δC\delta C 5: Refit J^\hat{J}, EE, and surrogate models 6: for t=1,…,Tt = 1,\ldots,T do 7: Sample candidates from E∩BE \cap B; 8: Maximin filter candidates; rank by EI⁡P[v≤τ]\operatorname{EI}P[v \le\tau] 9: Refine top candidates with L-BFGS-B; select x∗x^* 10: Evaluate F(ψ(x∗))F(\psi(x^*)), δC(x∗)\delta C(x^*) 11: Refit J^\hat{J}, EE, and surrogate models 12: Update, rescale, and recentre TuRBO region BB 13: if ∣B∣<Lmin⁡|B| < L_{\min} then 14: Restart objective GP 15: Sample NinitN_{\mathrm{init}} points from E∩XE \cap\mathcal{X}; evaluate FF 16: Initialise new TuRBO region BB 17: end if 18: end for 19: return best feasible design

Experiment 1: currents only (d=10d=10)

We first consider the task of optimising currents to minimise the detachment-threshold impurity fraction. Results are presented in Figure 3 and Table 1, alongside a set of ablations on our method (A1-A8) and the competitor (C1-C8) to separate the effects of proposal geometry, feasibility modelling, online refinement and the box trust region. These results show substantial gains over the existing method and raise the following observations.

Figure 3. Currents-only (d=10d = 10), 1000 evaluations. Median (bold), IQR (band) and every individual seed (faint). (a),(c) y-axis is best feasible cZc_Z; the dotted line is the baseline cZ=0.086c_Z = 0.086. (b),(d) y-axis is cumulative feasible fraction. (a),(b) our method (A7) against the full competitor sweep C1–C8 over its trust-region size LL. (c),(d) the best competitor setting (C7) against every ablation A1–A8. Identifiers and colours are shared across all four panels and with Table 1.

Runmedian cZc_ZIQRmedian feas.IQR
C1 competitor, L=0.001L = 0.0010.0827[0.0787, 0.0837]0.720[0.646, 0.768]
C2 competitor, L=0.005L = 0.0050.0702[0.0665, 0.0728]0.214[0.155, 0.619]
C3 competitor, L=0.01L = 0.010.0683[0.0651, 0.0723]0.203[0.083, 0.398]
C4 competitor, L=0.015L = 0.0150.0692[0.0653, 0.0717]0.057[0.045, 0.103]
C5 competitor, L=0.02L = 0.020.0646[0.0563, 0.0722]0.064[0.039, 0.321]
C6 competitor, L=0.025L = 0.0250.0655[0.0622, 0.0696]0.049[0.033, 0.091]
C7 competitor, L=0.03L = 0.030.0636[0.0582, 0.0726]0.071[0.053, 0.251]
C8 competitor, L=0.035L = 0.0350.0657[0.0577, 0.0702]0.047[0.034, 0.093]
A1 scalar GP, unconfined0.0244[0.0209, 0.0334]0.468[0.429, 0.503]
A2 box proposals0.0238[0.0137, 0.0283]0.506[0.469, 0.525]
A3 geometry only0.0178[0.0120, 0.0244]0.908[0.877, 0.929]
A4 frozen map0.0155[0.0110, 0.0203]0.774[0.748, 0.815]
A5 scalar GP, confined0.0140[0.0099, 0.0198]0.769[0.734, 0.800]
A6 hard gate0.0142[0.0106, 0.0186]0.772[0.736, 0.800]
A7 full0.0122[0.0090, 0.0171]0.895[0.876, 0.908]
A8 no box0.0087[0.0069, 0.0134]0.911[0.895, 0.920]

Table 1. Final performance at 1000 evaluations. Identifiers match Figure 3; the box defines the ablation.

Our proposal geometry is the principal source of improvement. Most of the performance gain is already obtained once this geometry is used for proposals. A3 uses no surrogate of any kind (sampling randomly from E∩BE \cap B), yet reaches a median final cZc_Z of 0.018 at 90.8% feasibility — 3.6× better than the best competitor setting. It also outperforms both methods that adopt only one of our other components: the field model with box proposals (A2) and the scalar GP with proposals from EE but unconfined acquisition refinement (A1).

A1proposals from EE; competitor’s scalar GP; acquisition optimiser can leave EE
A2competitor’s box proposals (L=0.03L = 0.03, as C7); our field model (mean JδxJ\delta x)
A3proposals from E∩BE \cap B; no objective or constraint surrogate; random selection
A4A7 with J^\hat{J} frozen at the finite-difference Jacobian
A5A1 with the optimiser held inside EE
A6A5 with the scalar GP removed; EE alone decides feasibility
A7the full algorithm 1
A8A7 with the box trust region removed

Table 3.

Online refinement is important for maintaining feasibility. Online refitting is primarily a feasibility correction as the local linearisation degrades. Freezing the response map (A4) costs roughly 12% feasibility with no significant objective effect.

The field model allows us to safely leave the linearised region. While unconstrained refinement under the scalar GP gives 47% feasibility (A1), hard confinement to EE raises it to 77% (A5, A6). Adding the field model and letting L-BFGS refinement leave EE improves this further to 89.5% (A7). These excursions,

however, buy a minimal amount of objective improvement: A5 to A7 moves the median cZc_Z by a couple percentage points from the baseline, pointing again to the geometry as the key driver.

Trust regions are critical for the competitor, but not for us. Removing trust regions (A8) does not hurt our algorithm, and here even improves it, but makes the competitor a non-starter — sampling and acquisition optimisation over the full engineering bounds yield almost no feasible points and many equilibrium-solver failures. Moreover, even when using trust regions within the competitor, the initial side length of the trust region must be carefully chosen to be small enough to find feasible designs, but large enough to permit useful optimisation. We sweep eight initial side lengths LL (C1–C8) and see that larger LL buys progress at the cost of feasibility — once L≥0.015L \ge0.015, feasibility falls to below 8% and progress stalls at cZ≈0.065c_Z \approx0.065. Every competitor setting is markedly less sample efficient and has worse cumulative feasibility than our method (A7/A8) – we reach a median final cZc_Z of 0.012, 5.2× better than the best competitor setting, while keeping 89.5% of its evaluations feasible.

Experiment 2: include positions (d=30)

So far, the design variables have been the PF-coil currents alone. We now extend the control vector to include coil positions, x=(I,R,Z)∈RdI+2dRx = (I, R, Z) \in\mathbb{R}^{d_I+2d_R}. This combined optimisation stresses our method as its control to LCFS perturbation response is much more nonlinear than with currents-only. Each control is normalised by its engineering bounds, and the response map JJ is computed in these normalised coordinates. The bilinear structure of the equilibrium response to positions, and the coordinate transformation it motivates, are deferred to Appendix § 11. Figure 4 shows that our method is markedly more sample-efficient than the competitor, achieving a 2.1× lower detachment threshold at the same evaluation budget. While our method is robust to trust region removal (O1-2), the competitor remains sensitive to trust region setup (C1-8).

Figure 4. Left: Currents and position combined optimisation plots: (a) best cZc_Z-so-far and (b) cumulative feasibility, vs our competitor method (C1-C8). O1: joint with box trust region, O2: without. Right: (c) An illustration of the position bounds, (d) our optimal feasible separatrices from the combined optimisation and (e) from our currents-only optimisations.

Online refinement is critical as we increase nonlinearity Coil positions enter the equilibrium more nonlinearly than currents. With positions included, the frozen linearisation’s median violation-prediction error is 1.07 cm, exceeding the 0.5 cm tolerance. Online refitting reduces the one-step-ahead (held-out) median prediction error to 0.031 cm, allowing us to retain 83.3% feasibility despite stronger nonlinearity.

Extension 3: an additional objective

The focus of our paper is on the handling of preservation constraints, and our exact same machinery can

also be applied to multi-objective Bayesian optimisation by swapping EI with EHVI. Following Cowley et al. [4], we seek to jointly optimise with respect to two key quantities that govern the controllability of a detachment front: connection length LcL_c (field-line distance from midplane to target) and total flux expansion (ratio of field strength at the X-point to that at the target). Figure 5 demonstrates effective MOBO, finding dense Pareto fronts for both the currents-only (blue) and currents and positions (red) MOBO. We do not run a competitor here, as this would require a non-trivial multi-objective trust-region. The point of this demonstration is to show that our proposal geometry is indifferent to the choice of acquisition function.

Hypervolume and Pareto plots

Figure 5. Left: HV plots from currents-only MOBO and currents and positions MOBO. Right: The corresponding connection length and total flux expansion pareto plots. Red are the joint MOBO results, blue the currents-only. The ‘x’ is our baseline equilibrium and the HV anchor.

Conclusion

Preservation constraints admit a thin, anisotropic feasible set that is expensive to learn but cheap to compute. Here, uniform sampling of the d=10d = 10 current box yielded no feasible designs in 1,000 solves (Figure 1e). Thus, a data-driven method must locate the set from scalar observations that almost never land inside it. We get around this by precomputing its first-order approximation from 2d2d solves and refining it online. On the divertor optimisation problem, using this geometry to propose candidate designs inside a Bayesian optimisation loop reaches a median detachment threshold 5–7× below the best competitor in the currents-only problem while holding ∼90% of evaluations within a 0.5 cm boundary tolerance.

We believe our approach provides a general framework for the Bayesian optimisation of trusted engineering designs under tightly constrained state variation. Future work will apply our method to other key problems in heavily-constrained and high-cost engineering, like radio-frequency cavity (Wang et al. 2026) and stellarator ([35]) design. Moreover, as our experiments show on MOBO, the proposed BO module is self-contained and can be easily plugged into orthogonal BO advances, including batch ([15]), multi-fidelity ([42]), multi-task ([32]) and high-dimensional (Doumont et al. 2025) BO, as well as BO under risk-adversity ([36]).

References

Hyperparameters

Table 2 lists every numerical setting used in the experiments.

Problemcurrentsjoint
dimension dd1030
tolerance τ\tau [cm]0.5
leg truncation margin [m]0.1
shot / index53349 / 120
current bounds [A]PX ±6000\pm6000, P4/P5 ±14400\pm14400, D1–D3 ±8000\pm8000, Dp ±6400\pm6400, D5 ±4000\pm4000, D6 ±3200\pm3200, D7 ±4800\pm4800
Budget
NinitN_{\mathrm{init}}50100
matched-comparison budget10001500
FD Jacobian solves (not counted)2060
seeds (ours / per competitor LL)50 / 3050 / 30
Candidates
initial pool2×1052 \times10^5
per-iteration pool10510^5
L-BFGS-B refinements per iteration2
Surrogates
kernelARD Matérn-5/2, MLE
hyperparameter refit interval [iters]10
POD modes KK5
weight of FD probes in map regression1.0 (same as an evaluation)
Box trust region (ours)
initial / minimum length1.0 / 10−310^{-3}
expand factor / successes2.0 / 2
shrink factor / failures0.5 / 100.5 / 20
axis scalingobjective GP ARD lengthscales
Competitor
initial length (swept, C1–C8){0.001,0.005,0.01,0.015,0.02,0.025,0.03,0.035}\{0.001, 0.005, 0.01, 0.015, 0.02, 0.025, 0.03, 0.035\}
minimum length10−410^{-4}
initial design50 (Sobol, in box, incl. baseline)100
expand / shrink successes, failures3 / 10
acquisition candidates2000 Sobol, 10 L-BFGS-B restarts

Table 2. Experimental settings for the currents-only (d=10d = 10) and joint currents-and-positions (d=30d = 30) problems.

Measuring the LCFS Displacement

The baseline LCFS is the contour ψ0=ψX\psi_0 = \psi_X, with divertor legs truncated 10 cm beyond the X-point. To discretise this, we resample uniformly in arclength to 10410^4 points pkp_k and compute their outward unit normals n^k\hat{n}_k by finite differences.

For an equilibrium ψ\psi with poloidal magnetic flux ψX′\psi'_X at the X-point, we compute δCk\delta C_k as the root tt nearest 0 of ψ(pk+tn^k)=ψX′\psi(p_k + t\hat{n}_k) = \psi'_X. This is precisely a point on the perturbed separatrix along the direction normal to our point on the LCFS. We set this to 1 m if no such root exists within 1 m.

JJ, then, is the central difference of δC\delta C with FD steps of 100 A for currents and 2 cm for positions (2d2d solves). Vertices with no root at these FD probes are dropped, leaving N≈104N \approx10^4 rows used throughout.

Sampling Details

Each candidate is a point o+tuo + t u on a ray with origin o∈E∩Bo \in E \cap B, direction uu and length tt. We need to pick a origins of the ray and sample over their directions and lengths.

Origins. We use the baseline x0x_0 (the ellipsoid centre) and the incumbent xbestx_{\mathrm{best}}, whichever lie in E∩BE \cap B, splitting candidates evenly between them. If neither does, we use, in order:

  • the incumbent under the region snapshot that proposed it;

  • the point 0.999 of the way from x0x_0 to the boundary of EE towards xbestx_{\mathrm{best}}, if it lies in BB;

  • or x0x_0 but sampling E∩XE \cap\mathcal{X} for that iteration – that is, we drop the box trust region entirely for this iteration.

Directions. To sample directions, we split evenly into two cases.

Let M=VΛVTM = V \Lambda V^{\mathsf{T}} be the eigendecomposition of the metric MM. For our first half, we sample uniformly in the ellipsoid induced by the constraint pullback, a sphere in MM. We take direction samples: u=VΛ−1/2yu = V \Lambda^{-1/2}y, with y=z/∥z∥y = z/\lVert z\rVert and z∼N(0,Id)z \sim\mathcal{N}(0, I_d), so that yy is uniform on the unit sphere. Since the eigenvalues of MM span roughly ten orders of magnitude, these directions concentrate along its small-eigenvalue eigenvectors, the coil combinations that barely move the LCFS.

The other half are uniform Euclidean directions, which cover the remaining directions.

Lengths. Each ray is truncated at tmax⁡=min⁡(tE,tB)t_{\max} = \min(t_E, t_B), where tEt_E is the positive root of (o−x0+tu)TM(o−x0+tu)=τ2(o-x_0+tu)^{\mathsf{T}}M(o-x_0+tu) = \tau^2 and tBt_B the exit time from BB. We draw t∼U(0,tmax⁡)t \sim U(0,t_{\max}), and reduce the pool by greedy maximin.

This sampling scheme is heuristic and exact splits between the origins and direction samples will depend on the preservation constraints. It is very fast and parallelisable, however, so we can provide good coverage after down-sampling by maximin.

Bilinear Structure of the Equilibrium Response

The coil (machine) contribution to the flux is linear in the coil currents,

ψcoil(r)=∑jIjG(r;pj),pj=(Rj,Zj),\psi_{\mathrm{coil}}(r) = \sum_j I_j G(r; p_j), \qquad p_j = (R_j, Z_j),

where GG denotes the Green’s function and pjp_j the position of coil jj.

Perturbing about a reference configuration (I0,p0)(I^0,p^0) gives, for coil jj,

δψj=Gj0δIj+Ij0∇pGj0⋅δpj+δIj∇pGj0⋅δpj+O(∥δpj∥2),\delta\psi_j = G_j^0 \delta I_j + I_j^0 \nabla_p G_j^0 \cdot\delta p_j + \delta I_j \nabla_p G_j^0 \cdot\delta p_j + O(\lVert\delta p_j\rVert^2),

with Gj0:=G(r;pj0)G_j^0 := G(r;p_j^0). The first two terms are linear, while the third couples current and position perturbations through the product δIjδpj\delta I_j \delta p_j.

Writing Ij=Ij0+δIjI_j = I_j^0 + \delta I_j, the last two terms combine to ∇pGj0⋅mj\nabla_p G_j^0 \cdot m_j with the flux moment mj:=Ijδpjm_j := I_j \delta p_j, so

δψj=Gj0δIj+∇pGj0⋅mj+O(∥δpj∥2)\delta\psi_j = G_j^0 \delta I_j + \nabla_p G_j^0 \cdot m_j + O(\lVert\delta p_j\rVert^2)

is linear in c=(δI,m)c = (\delta I,m).

For the joint problem, JJ and EE are built in the coordinates cc and mapped back to xx (regularised for small ∣Ij∣\lvert I_j\rvert). The refit of J^\hat{J} regresses δCi\delta C_i on c(xi)c(x_i), while the remaining surrogates stay in xx.

References

  1. [1]Amorisco, N. C. et al. (2024). “FreeGSNKE: A Python-based dynamic free-boundary toroidal plasma equilibrium solver”. In: *Physics of Plasmas* 31.4, p. 042517. DOI: 10.1063/5.0188467.DOI
  2. [2]Anand, H. et al. (July 2024). “Real-time plasma equilibrium reconstruction and shape control for the MAST Upgrade tokamak”. In: *Nuclear Fusion* 64.8, p. 086051. DOI: 10.1088/1741-4326/ad5c80. URL: https://doi.org/10.1088/1741-4326/ad5c80.
  3. [3]Bardsley, O P, J L Baker, and C Vincent (Mar. 2024). “Decoupled magnetic control of spherical tokamak divertors via vacuum harmonic constraints”. In: *Plasma Physics and Controlled Fusion* 66.5, p. 055006. DOI: 10.1088/1361-6587/ad319d. URL: https://doi.org/10.1088/1361-6587/ad319d.
  4. [4]Cowley, C. et al. (July 2022). “Optimizing detachment control using the magnetic configuration of divertors”. English. In: *Nuclear Fusion* 62.8. © EU-RATOM 2022. ISSN: 0029-5515. DOI: 10.1088/1741-4326/ac7a4c.DOI
  5. [10]Eriksson, David, Michael Pearce, et al. (2019). “Scalable Global Optimization via Local Bayesian Optimization”. In: *Advances in Neural Information Processing Systems*. Ed. by H. Wallach et al. Vol. 32. Curran Associates, Inc. URL: https://proceedings.neurips.cc/paper_files/paper/2019/file/6c990b7aca7bc7058f5e98ea909e924b-Paper.pdf.arxiv.org/abs/1910.01739
  6. [11]Eriksson, David and Matthias Poloczek (Apr. 2021). “Scalable Constrained Bayesian Optimization”. In: *Proceedings of The 24th International Conference on Artificial Intelligence and Statistics*. Ed. by Arindam Banerjee and Kenji Fukumizu. Vol. 130. Proceedings of Machine Learning Re- search. PMLR, pp. 730–738. URL: https:// proceedings.mlr.press/v130/eriksson21a. html.arxiv.org/abs/2002.08526
  7. [12]Forrester, Alexander I. J., András Sóbester, and Andy J. Keane (2008). Engineering Design via Surrogate Modelling: A Practical Guide. Wiley. ISBN: 9780470770801. DOI: 10.1002/9780470770801.DOI
  8. [13]Gardner, Jacob R. et al. (2014). “Bayesian optimization with inequality constraints”. In: Proceedings of the 31st International Conference on International Conference on Machine Learning - Volume 32. ICML’14. Beijing, China: JMLR.org, II–937–II–945.
  9. [14]Gelbart, Michael A., Jasper Snoek, and Ryan P. Adams (2014). “Bayesian optimization with unknown constraints”. English (US). In: Uncertainty in Artificial Intelligence - Proceedings of the 30th Conference, UAI 2014. Ed. by {Nevin L.} Zhang and Jin Tian. Uncertainty in Artificial Intelligence - Proceedings of the 30th Conference, UAI 2014. 30th Conference on Uncertainty in Artificial Intelligence, UAI 2014 ; Conference date: 23-07-2014 Through 27-07-2014. AUAI Press, pp. 250–259.arxiv.org/abs/1403.5607
  10. [15]González, Javier et al. (2016). “Batch Bayesian optimization via local penalization”. In: Artificial intelligence and statistics. PMLR, pp. 648–657.arxiv.org/abs/1505.08052
  11. [16]Guo, Mengwu and Jan S. Hesthaven (2018). “Reduced Order Modeling for Nonlinear Structural Analysis Using Gaussian Process Regression”. In: Computer Methods in Applied Mechanics and Engineering 341, pp. 807–826. DOI: 10.1016/j.cma.2018.07.017.DOI
  12. [17]Hernández-Lobato, José Miguel et al. (2015). “Predictive entropy search for Bayesian optimization with unknown constraints”. In: Proceedings of the 32nd International Conference on Machine Learning - Volume 37. ICML’15. Lille, France: JMLR.org, pp. 1699–1707.
  13. [18]Higdon, Dave et al. (2008). “Computer Model Calibration Using High-Dimensional Output”. In: Journal of the American Statistical Association 103.482, pp. 570–583. DOI: 10.1198/016214507000000888.DOI
  14. [19]Hinze, Michael et al. (2008). Optimization with PDE Constraints. Springer.
  15. [21]Johnson, M. E., L. M. Moore, and D. Ylvisaker (1990). “Minimax and Maximin Distance Designs”. In: Journal of Statistical Planning and Inference 26.2, pp. 131–148.
  16. [22]Jones, Donald R., Matthias Schonlau, and William J. Welch (Dec. 1, 1998). “Efficient Global Optimization of Expensive Black-Box Functions”. In: Journal of Global Optimization 13.4, pp. 455–492. DOI: 10.1023/A:1008306431147. URL: https://doi. org/10.1023/A:1008306431147.DOI
  17. [23]Kennedy, Marc C. and Anthony O’Hagan (Sept. 2001). “Bayesian Calibration of Computer Models”. In: Journal of the Royal Statistical Society Series B: Statistical Methodology 63.3, pp. 425–464. ISSN: 1369-7412. DOI: 10.1111/1467-9868.00294. eprint: https://academic.oup.com/jrsssb/ article-pdf/63/3/425/49590547/jrsssb_63_ 3_425.pdf. URL: https://doi.org/10.1111/ 1467-9868.00294.
  18. [24]Kotschenreuther, M. et al. (2007). “On Heat Loading, Novel Divertors and Fusion Reactors”. In: Physics of Plasmas 14.7, p. 072502. DOI: 10.1063/1. 2739422.
  19. [25]Kryjak, Mike et al. (2026). “DLS-Extended: a reduced model to assess the impact of impurity radiation location on optimal magnetic geometry choices for the STEP divertor”. In: Nuclear Fusion. URL: http://iopscience.iop.org/article/10. 1088/1741-4326/aea0ec.DOI
  20. [26]Lam, Rémi et al. (2018). “Advances in Bayesian Optimization with Applications in Aerospace Engineering”. In: 2018 AIAA Non-Deterministic Approaches Conference. American Institute of Aeronautics and Astronautics. DOI: 10.2514/6.2018-1656.DOI
  21. [27]Lipschultz, Bruce, Felix I. Parra, and Ian H. Hutchinson (Apr. 2016). “Sensitivity of detachment extent to magnetic configuration and external parameters”. In: Nuclear Fusion 56.5, p. 056007. DOI: 10.1088/0029-5515/56/5/056007. URL: https:// doi.org/10.1088/0029-5515/56/5/056007.DOI
  22. [29]Marsden, Chris (2026). FORGE: FORGE Optimises Reactor Geometries to improve Exhaust. Version 1.0.1. URL: https://github.com/ FORGEexhaust/FORGE.
  23. [30]McArdle, Graham, Luigi Pangione, and Martin Kochan (2020). “The MAST Upgrade plasma control system”. In: Fusion Engineering and Design 159, p. 111764. ISSN: 0920-3796. DOI: https://doi.org/10.1016/j.fusengdes.2020.111764. URL: https://www.sciencedirect.com/science/article/pii/S0920379620303124.
  24. [31]Michor, Peter W. and David Mumford (2006). “Riemannian geometries on spaces of plane curves”. eng. In: Journal of the European Mathematical Society 008.1, pp. 1–48. URL: http://eudml.org/ doc/277745.DOI
  25. [32]Moss, Henry B, David S Leslie, and Paul Rayson (2020). “Mumbo: Multi-task max-value bayesian optimization”. In: Joint European Conference on Machine Learning and Knowledge Discovery in Databases. Springer, pp. 447–462.arxiv.org/abs/2006.12093
  26. [33]Nocedal, Jorge and Stephen J. Wright (2006). Numerical optimization. 2. ed. Springer series in operations research and financial engineering. New York, NY: Springer. XXII, 664. ISBN: 978-0-387-30303-1. URL: http://gso.gbv.de/DB=2.1/CMD?ACT= SRCHA&SRT=YOP&IKT=1016&TRM=ppn+502988711& sourceid=fbw_bibsonomy.
  27. [34]Nunn, Timothy et al. (July 2025). “Bayesian optimization of poloidal field coil positions in tokamaks”. In: Physics of Plasmas 32.7, p. 072507. ISSN: 1070- 664X. DOI: 10.1063/5.0272085. eprint: https: //pubs.aip.org/aip/pop/article-pdf/doi/ 10.1063/5.0272085/20606824/072507_1_5. 0272085.pdf. URL: https://doi.org/10.1063/ 5.0272085.
  28. [35]Packman, Sam, Nicolo Riva, and Pablo Rodriguez- Fernandez (2025). “Bayesian methods for magnetic and mechanical optimization of superconducting magnets for fusion”. In: Journal of Fusion Energy 44.1, p. 19.DOI
  29. [36]Picheny, Victor et al. (2022). “Bayesian quantile and expectile optimisation”. In: Uncertainty in Artificial Intelligence. PMLR, pp. 1623–1633.
  30. [38]Powell, M. J. D. (1994). “A Direct Search Optimization Method That Models the Objective and Constraint Functions by Linear Interpolation”. In: DOI: 10.1007/978-94-015-8330-5_4.DOI
  31. [39]Rasmussen, Carl Edward and Christopher K. I. Williams (Nov. 2005). Gaussian Processes for Machine Learning. The MIT Press. ISBN: 9780262566834. DOI: 10.7551/mitpress/3206. 001.0001. eprint: https://direct.mit.edu/ book-pdf/2514321/book_9780262256834.pdf. URL: https://doi.org/10.7551/mitpress/ 3206.001.0001.
  32. [41]Schonlau, Matthias, William J. Welch, and Donald R. Jones (1998). “Global versus local search in constrained optimization of computer models”. In: URL: https://api.semanticscholar.org/ CorpusID:58806889.DOI
  33. [42]Snoek, Jasper, Hugo Larochelle, and Ryan Adams (2012). “Practical bayesian optimization of machine learning algorithms”. In: Advances in neural information processing systems 25.arxiv.org/abs/1206.2944
  34. [43]Sokolowski, Jan and Jean-Paul Zolesio (1992). Introduction to Shape Optimization. Shape Sensitivity Analysis. Vol. 16. Springer Series in Computational Mathematics. Berlin, Heidelberg: Springer. ISBN: 978-3-540-54177-6. DOI: 10.1007/978-3-642-58106-9.DOI

Paper details

vlnc:W_jqt6mqmy
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 3

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents