Loading...
Searching...
No Matches
AcquisitionPolicy.cpp
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) gpridge developers
3// See LICENSE for details.
4
14
16
17#include <Eigen/Dense>
18#include <algorithm>
19#include <cmath>
20#include <cstdint>
21#include <limits>
22#include <numeric>
23#include <random>
24#include <utility>
25#include <vector>
26
27namespace gpr {
28namespace neb {
29namespace oie {
30
31namespace {
32
33constexpr double kPi = 3.14159265358979323846;
34
35// Optuna's quantile split size: min(ceil(0.1 n), 25). The 0.1 and 25 are the
36// reference algorithm's own definition (default_gamma, Optuna sampler.py:55),
37// not problem tunables.
38int defaultGamma(int n)
39{
40 const int q = static_cast<int>(std::ceil(0.1 * static_cast<double>(n)));
41 return std::min(q, 25);
42}
43
44// Per-channel standardization: (a - mean) / std across the interior images.
45// Returns zeros when the channel is constant (std == 0), so a flat channel
46// contributes nothing rather than NaNs.
47std::vector<double> standardize(const std::vector<double>& a)
48{
49 const std::size_t n = a.size();
50 std::vector<double> z(n, 0.0);
51 if (n == 0) return z;
52 double mean = 0.0;
53 for (double v: a)
54 mean += v;
55 mean /= static_cast<double>(n);
56 double var = 0.0;
57 for (double v: a)
58 var += (v - mean) * (v - mean);
59 var /= static_cast<double>(n); // population std, matching numpy default
60 const double sd = std::sqrt(var);
61 if (!(sd > 0.0)) return z;
62 for (std::size_t i = 0; i < n; ++i)
63 z[i] = (a[i] - mean) / sd;
64 return z;
65}
66
67// 1-D Parzen estimator log-density at each integer query index, Optuna's
68// adjacency-gap bandwidth + magic-clip, plus the single-pseudo-observation
69// uniform prior. Mirrors parzen_log_pdf() in the prototype exactly.
70//
71// `mus` are the observation locations (interior indices, as doubles). The
72// query points are 0 .. M-1. `kernel_weights`, when non-empty, weights each
73// data kernel (the OIE utility-rank ramp); empty means equal weights.
74// `consider_endpoints=false` makes a boundary kernel take its interior
75// neighbour gap (sharp recommendation for a lone best point).
76std::vector<double> parzenLogPdf(const std::vector<double>& query,
77 const std::vector<double>& mus, double low,
78 double high,
79 const std::vector<double>& kernel_weights,
80 bool consider_endpoints)
81{
82 const std::size_t n = mus.size();
83 std::vector<double> mu_all;
84 std::vector<double> sig_all;
85 std::vector<double> w;
86
87 if (n == 0) {
88 mu_all = {0.5 * (low + high)};
89 sig_all = {high - low};
90 w = {1.0};
91 } else {
92 // sort the mus, remembering the original order to scatter sigmas back
93 std::vector<std::size_t> order(n);
94 std::iota(order.begin(), order.end(), 0);
95 std::sort(
96 order.begin(), order.end(),
97 [&](std::size_t a, std::size_t b) { return mus[a] < mus[b]; });
98 std::vector<double> sorted_mus(n);
99 for (std::size_t i = 0; i < n; ++i)
100 sorted_mus[i] = mus[order[i]];
101
102 // padded = [low, sorted_mus..., high]
103 std::vector<double> padded(n + 2);
104 padded[0] = low;
105 for (std::size_t i = 0; i < n; ++i)
106 padded[i + 1] = sorted_mus[i];
107 padded[n + 1] = high;
108
109 // sigma per (sorted) kernel = max(gap to left, gap to right)
110 std::vector<double> sig_sorted(n);
111 for (std::size_t i = 0; i < n; ++i) {
112 const double left = padded[i + 1] - padded[i];
113 const double right = padded[i + 2] - padded[i + 1];
114 sig_sorted[i] = std::max(left, right);
115 }
116 if (!consider_endpoints && n >= 1) {
117 if (n >= 2) {
118 sig_sorted.front() = padded[2] - padded[1];
119 sig_sorted.back() = padded[n] - padded[n - 1];
120 } else {
121 sig_sorted.front() = 0.0; // clipped up to minsigma below
122 }
123 }
124
125 // scatter sigmas back to the original mu order
126 std::vector<double> sigmas(n);
127 for (std::size_t i = 0; i < n; ++i)
128 sigmas[order[i]] = sig_sorted[i];
129
130 // magic-clip: [(high-low)/min(100, 1+n_kernels), high-low]
131 const std::size_t n_kernels = n + 1;
132 const double width = high - low;
133 const double minsigma =
134 width / std::min(100.0, 1.0 + static_cast<double>(n_kernels));
135 for (std::size_t i = 0; i < n; ++i)
136 sigmas[i] = std::min(std::max(sigmas[i], minsigma), width);
137
138 // data kernels + a single uniform prior pseudo-observation
139 mu_all.resize(n + 1);
140 sig_all.resize(n + 1);
141 for (std::size_t i = 0; i < n; ++i) {
142 mu_all[i] = mus[i];
143 sig_all[i] = sigmas[i];
144 }
145 mu_all[n] = 0.5 * (low + high);
146 sig_all[n] = width;
147
148 // base weights normalized to n pseudo-counts, then +1 prior count
149 std::vector<double> base(n, 1.0);
150 if (!kernel_weights.empty() && kernel_weights.size() == n)
151 base = kernel_weights;
152 double bsum = 0.0;
153 for (double v: base)
154 bsum += v;
155 if (!(bsum > 0.0)) {
156 base.assign(n, 1.0);
157 bsum = static_cast<double>(n);
158 }
159 w.resize(n + 1);
160 for (std::size_t i = 0; i < n; ++i)
161 w[i] = base[i] / bsum * static_cast<double>(n);
162 w[n] = 1.0;
163 }
164
165 // normalize the mixture weights
166 double wsum = 0.0;
167 for (double v: w)
168 wsum += v;
169 for (double& v: w)
170 v /= wsum;
171
172 // log of the weighted Gaussian mixture at each query point, log-sum-exp
173 const std::size_t k = mu_all.size();
174 std::vector<double> out(query.size(), 0.0);
175 const double log_2pi = std::log(2.0 * kPi);
176 for (std::size_t qi = 0; qi < query.size(); ++qi) {
177 const double q = query[qi];
178 double m = -std::numeric_limits<double>::infinity();
179 std::vector<double> log_comp(k);
180 for (std::size_t j = 0; j < k; ++j) {
181 const double z = (q - mu_all[j]) / sig_all[j];
182 log_comp[j] = std::log(w[j]) - 0.5 * log_2pi -
183 std::log(sig_all[j]) - 0.5 * z * z;
184 if (log_comp[j] > m) m = log_comp[j];
185 }
186 double s = 0.0;
187 for (std::size_t j = 0; j < k; ++j)
188 s += std::exp(log_comp[j] - m);
189 out[qi] = m + std::log(s);
190 }
191 return out;
192}
193
194// interior slice [1 .. n-2] of a whole-band vector
195std::vector<double> interiorOf(const std::vector<double>& whole)
196{
197 if (whole.size() <= 2) return {};
198 return std::vector<double>(whole.begin() + 1, whole.end() - 1);
199}
200
201} // namespace
202
203double ucbBeta(int outer_iter, int n_candidates)
204{
205 const int t = std::max(outer_iter, 1);
206 const double delta = 1.0 / static_cast<double>(t);
207 const double nd = static_cast<double>(std::max(n_candidates, 1));
208 const double td = static_cast<double>(t);
209 const double beta =
210 2.0 * std::log(nd * td * td * kPi * kPi / (6.0 * delta));
211 return std::sqrt(std::max(beta, 0.0));
212}
213
214const char* tpeObjectiveName(TpeObjective objective) noexcept
215{
216 switch (objective) {
218 return "force";
220 return "saddle_identity";
221 }
222 return "unknown";
223}
224
225const char* tpeObjectiveLogName(bool evaluated, TpeObjective objective) noexcept
226{
227 return evaluated ? tpeObjectiveName(objective) : "inactive";
228}
229
231 bool candidate_confident,
232 bool chain_certificate_met) noexcept
233{
234 return ci_active && !candidate_confident && chain_certificate_met
237}
238
239double gaussianExceedanceProbability(double reference_mean,
240 double reference_variance,
241 double challenger_mean,
242 double challenger_variance)
243{
244 if (!std::isfinite(reference_mean) || !std::isfinite(challenger_mean) ||
245 !std::isfinite(reference_variance) ||
246 !std::isfinite(challenger_variance) || reference_variance < 0.0 ||
247 challenger_variance < 0.0) {
248 return std::numeric_limits<double>::infinity();
249 }
250 const double difference_variance = reference_variance + challenger_variance;
251 if (!(difference_variance > 0.0)) {
252 if (challenger_mean > reference_mean) return 1.0;
253 if (challenger_mean < reference_mean) return 0.0;
254 return 0.5;
255 }
256 const double z =
257 (reference_mean - challenger_mean) / std::sqrt(difference_variance);
258 return 0.5 * std::erfc(z / std::sqrt(2.0));
259}
260
261bool saddleExists(const std::vector<double>& energies)
262{
263 const std::vector<double> interior = interiorOf(energies);
264 if (interior.empty()) return false;
265 const double imax = *std::max_element(interior.begin(), interior.end());
266 const double e0 = energies.front();
267 const double en = energies.back();
268 return imax > std::max(e0, en);
269}
270
271bool confidenceMet(const std::vector<double>& energies,
272 const std::vector<double>& posterior_energy_variance,
273 int outer_iter)
274{
275 const std::vector<double> ivar = interiorOf(posterior_energy_variance);
276 if (ivar.empty()) return false;
277 double max_std = 0.0;
278 for (double v: ivar)
279 max_std = std::max(max_std, std::sqrt(std::max(v, 0.0)));
280 const double beta = ucbBeta(outer_iter, static_cast<int>(ivar.size()));
281 const std::vector<double> ienergy = interiorOf(energies);
282 if (ienergy.empty()) return false;
283 // Yardstick: the saddle PROMINENCE (interior max above the higher
284 // endpoint), not the whole-band span. The span includes the reaction
285 // energy, so on an exothermic band the GP resolves the downhill shape
286 // long before the barrier top and confidence fires prematurely --
287 // pinning CI exploitation on a noise-level bump. Prominence is the
288 // margin of the exact hypothesis this gate authorizes exploiting
289 // (a resolved interior saddle): beta_t * max_std <= prominence also
290 // implies prominence > 0, i.e. saddleExists.
291 const double imax = *std::max_element(ienergy.begin(), ienergy.end());
292 const double prominence =
293 imax - std::max(energies.front(), energies.back());
294 if (!(prominence > 0.0)) return false;
295 return beta * max_std <= prominence;
296}
297
298std::vector<double> oieUtility(
299 const std::vector<double>& energies,
300 const std::vector<double>& posterior_energy_variance,
301 const std::vector<double>& force_norm,
302 const std::vector<double>& force_variance, int outer_iter, bool confident)
303{
304 const std::vector<double> e_int = interiorOf(energies);
305 const std::vector<double> ev_int = interiorOf(posterior_energy_variance);
306 const std::vector<double> f_int = interiorOf(force_norm);
307 const std::vector<double> fv_int =
308 force_variance.empty() ? std::vector<double>(e_int.size(), 0.0)
309 : interiorOf(force_variance);
310 const std::size_t m = e_int.size();
311 std::vector<double> util(m, 0.0);
312 if (m == 0) return util;
313
314 const double beta = ucbBeta(outer_iter, static_cast<int>(m));
315 const std::vector<double> z_fv = standardize(fv_int);
316 const std::vector<double> z_f = standardize(f_int);
317 // The acquisition objective is FORCE accuracy alone. It decomposes
318 // (scripts/oie_acquisition_accuracy_derivation.py, SymPy:
319 // E[(F_true - F_gp)^2] = bias(x)^2 + force_var(x)) into a BIAS term,
320 // proxied by the predicted force magnitude |F| (an unrelaxed or
321 // extrapolating GP gradient is exactly what the oracle must correct),
322 // and the gradient posterior VARIANCE. Energy variance never enters:
323 // it carries no information about force-direction error, and mixing
324 // it in let over-confident energy channels outvote a drifting force
325 // model. UCB form: exploit the bias proxy, explore the force
326 // variance (beta_t schedules the TPE good/bad density ratio).
327 (void)ev_int;
328 for (std::size_t i = 0; i < m; ++i) {
329 util[i] = z_f[i] + beta * z_fv[i];
330 }
331 if (confident) {
332 // A confident band maximum exists: weight the saddle locus so the
333 // oracle resolves force accuracy WHERE it decides the barrier.
334 const std::vector<double> z_e = standardize(e_int);
335 for (std::size_t i = 0; i < m; ++i) {
336 util[i] = (z_e[i] + z_f[i]) + beta * z_fv[i];
337 }
338 }
339 return util;
340}
341
342std::vector<double> saddleIdentityUtility(
343 const std::vector<double>& energies,
344 const std::vector<double>& posterior_energy_variance)
345{
346 const std::vector<double> e_int = interiorOf(energies);
347 const std::vector<double> ev_int = interiorOf(posterior_energy_variance);
348 const std::size_t m = e_int.size();
349 std::vector<double> utility(m, 0.0);
350 if (m == 0 || ev_int.size() != m) return utility;
351
352 const auto candidate_it = std::max_element(e_int.begin(), e_int.end());
353 const std::size_t candidate =
354 static_cast<std::size_t>(candidate_it - e_int.begin());
355 const double candidate_std = std::sqrt(std::max(0.0, ev_int[candidate]));
356
357 for (std::size_t i = 0; i < m; ++i) {
358 if (i == candidate) continue;
359 const double probability = gaussianExceedanceProbability(
360 e_int[candidate], ev_int[candidate], e_int[i], ev_int[i]);
361 if (!std::isfinite(probability)) continue;
362 utility[candidate] += probability * candidate_std;
363 utility[i] = probability * std::sqrt(std::max(0.0, ev_int[i]));
364 }
365
366 if (energies.size() == posterior_energy_variance.size() &&
367 energies.size() >= 2) {
368 const std::size_t endpoint_indices[2] = {0, energies.size() - 1};
369 for (const std::size_t endpoint: endpoint_indices) {
370 const double probability = gaussianExceedanceProbability(
371 e_int[candidate], ev_int[candidate], energies[endpoint],
372 posterior_energy_variance[endpoint]);
373 if (std::isfinite(probability)) {
374 utility[candidate] += probability * candidate_std;
375 }
376 }
377 }
378 return utility;
379}
380
381namespace {
382
383int tpePickEligible(const std::vector<double>& interior_utility,
384 const std::vector<char>& eligible)
385{
386 const int m = static_cast<int>(interior_utility.size());
387 if (m <= 0) return -1;
388 std::vector<int> idx;
389 idx.reserve(static_cast<std::size_t>(m));
390 for (int i = 0; i < m; ++i) {
391 if (eligible.empty() ||
392 (i < static_cast<int>(eligible.size()) && eligible[i] != 0)) {
393 idx.push_back(i);
394 }
395 }
396 if (idx.empty()) return -1;
397 if (idx.size() == 1) return idx.front();
398 const std::vector<int> candidate_indices = idx;
399 const double low = 0.0;
400 const double high = static_cast<double>(m - 1);
401
402 // descending-utility order
403 std::sort(idx.begin(), idx.end(), [&](int a, int b) {
404 return interior_utility[a] > interior_utility[b];
405 });
406 const int n_eligible = static_cast<int>(idx.size());
407 const int n_below = std::max(defaultGamma(n_eligible), 1);
408
409 std::vector<double> good;
410 std::vector<double> good_util;
411 std::vector<double> bad;
412 for (int r = 0; r < n_eligible; ++r) {
413 if (r < n_below) {
414 good.push_back(static_cast<double>(idx[r]));
415 good_util.push_back(interior_utility[idx[r]]);
416 } else {
417 bad.push_back(static_cast<double>(idx[r]));
418 }
419 }
420
421 // weight each good kernel by softmax over its utility (the OIE analogue of
422 // Optuna's default_weights recency ramp: better objective -> heavier).
423 std::vector<double> gw(good_util.size(), 1.0);
424 if (!good_util.empty()) {
425 const double gmax =
426 *std::max_element(good_util.begin(), good_util.end());
427 for (std::size_t i = 0; i < good_util.size(); ++i)
428 gw[i] = std::exp(good_util[i] - gmax);
429 }
430
431 std::vector<double> candidates;
432 candidates.reserve(candidate_indices.size());
433 for (int image_index: candidate_indices)
434 candidates.push_back(static_cast<double>(image_index));
435 const std::vector<double> log_l = parzenLogPdf(
436 candidates, good, low, high, gw, /*consider_endpoints=*/false);
437 const std::vector<double> log_g =
438 parzenLogPdf(candidates, bad, low, high, /*kernel_weights=*/{},
439 /*consider_endpoints=*/true);
440
441 int best = candidate_indices.front();
442 double best_score = -std::numeric_limits<double>::infinity();
443 for (std::size_t x = 0; x < candidates.size(); ++x) {
444 const double score = log_l[x] - log_g[x];
445 if (score > best_score) {
446 best_score = score;
447 best = static_cast<int>(candidates[x]);
448 }
449 }
450 return best;
451}
452
453} // namespace
454
455int tpePick(const std::vector<double>& interior_utility)
456{
457 return tpePickEligible(interior_utility, {});
458}
459
460AcquisitionPolicy::AcquisitionPolicy(std::vector<char> eligible_images,
461 TpeObjective objective)
462 : eligible_images_(std::move(eligible_images)), objective_(objective)
463{
464}
465
466bool AcquisitionPolicy::eligible(int image_index, int n_images) const
467{
468 if (image_index <= 0 || image_index >= n_images - 1) return false;
469 if (eligible_images_.empty()) return true;
470 return static_cast<int>(eligible_images_.size()) == n_images &&
471 eligible_images_[static_cast<std::size_t>(image_index)] != 0;
472}
473
475 const std::vector<double>& energies,
476 const std::vector<double>& posterior_energy_variance,
477 const std::vector<double>& force_norm,
478 const std::vector<double>& force_variance, int outer_iter) const
479{
480 TpePickResult res;
481 const int n_images = static_cast<int>(energies.size());
482 if (n_images <= 2) return res; // no interior images
483
484 res.confident =
485 confidenceMet(energies, posterior_energy_variance, outer_iter);
486 res.saddle_exists = saddleExists(energies);
487 res.interior_utility =
488 objective_ == TpeObjective::SaddleIdentity
489 ? saddleIdentityUtility(energies, posterior_energy_variance)
490 : oieUtility(energies, posterior_energy_variance, force_norm,
491 force_variance, outer_iter, res.confident);
492
493 if (objective_ == TpeObjective::ForceAccuracy && res.confident &&
494 res.saddle_exists) {
495 // exploit: CI candidate must be the true interior max above endpoints
496 const std::vector<double> e_int = interiorOf(energies);
497 int imax = 0;
498 double vmax = -std::numeric_limits<double>::infinity();
499 for (std::size_t i = 0; i < e_int.size(); ++i) {
500 if (e_int[i] > vmax) {
501 vmax = e_int[i];
502 imax = static_cast<int>(i);
503 }
504 }
505 if (eligible(imax + 1, n_images)) {
506 res.image_index = imax + 1;
507 res.from_ci_saddle = true;
508 return res;
509 }
510 }
511
512 std::vector<char> eligible_interior(static_cast<std::size_t>(n_images - 2),
513 0);
514 for (int i = 1; i < n_images - 1; ++i) {
515 eligible_interior[static_cast<std::size_t>(i - 1)] =
516 eligible(i, n_images) ? 1 : 0;
517 }
518 const int interior_idx =
519 tpePickEligible(res.interior_utility, eligible_interior);
520 res.image_index = interior_idx >= 0 ? interior_idx + 1 : -1;
521 res.from_ci_saddle = false;
522 return res;
523}
524
526 const std::vector<double>& energies,
527 const std::vector<double>& posterior_energy_variance,
528 const std::vector<double>& force_norm,
529 const std::vector<double>& force_variance, int outer_iter)
530{
532 energies, posterior_energy_variance, force_norm, force_variance,
533 outer_iter);
534}
535
537 const Eigen::VectorXd& posterior_mean,
538 const Eigen::MatrixXd& posterior_covariance, std::uint64_t seed)
539{
540 const Eigen::Index channels = posterior_mean.size();
541 if (channels <= 0 || posterior_covariance.rows() != channels ||
542 posterior_covariance.cols() != channels ||
543 !posterior_mean.allFinite() || !posterior_covariance.allFinite()) {
544 return {};
545 }
546
547 const Eigen::MatrixXd symmetric_covariance =
548 0.5 * (posterior_covariance + posterior_covariance.transpose());
549 Eigen::SelfAdjointEigenSolver<Eigen::MatrixXd> solver(symmetric_covariance);
550 if (solver.info() != Eigen::Success || !solver.eigenvalues().allFinite() ||
551 !solver.eigenvectors().allFinite()) {
552 return {};
553 }
554
555 const double spectral_scale =
556 std::max(1.0, solver.eigenvalues().cwiseAbs().maxCoeff());
557 const double psd_roundoff =
558 std::sqrt(std::numeric_limits<double>::epsilon()) * spectral_scale;
559 if (solver.eigenvalues().minCoeff() < -psd_roundoff) return {};
560
561 const Eigen::VectorXd sqrt_eigenvalues =
562 solver.eigenvalues().cwiseMax(0.0).cwiseSqrt();
563 std::mt19937_64 rng(seed);
564 std::normal_distribution<double> gauss(0.0, 1.0);
565 Eigen::VectorXd standard_normal(channels);
566 for (Eigen::Index channel = 0; channel < channels; ++channel) {
567 standard_normal(channel) = gauss(rng);
568 }
569 return posterior_mean +
570 solver.eigenvectors() *
571 (sqrt_eigenvalues.array() * standard_normal.array()).matrix();
572}
573
574} // namespace oie
575} // namespace neb
576} // namespace gpr
TPE-style OIE acquisition over the discrete interior-image axis.
@ z
Definition Enums.h:28
@ x
Definition Enums.h:28
OIE acquisition over the currently informative band images.
AcquisitionPolicy(std::vector< char > eligible_images={}, TpeObjective objective=TpeObjective::ForceAccuracy)
TpePickResult selectTpeOracleTarget(const std::vector< double > &energies, const std::vector< double > &posterior_energy_variance, const std::vector< double > &force_norm, const std::vector< double > &force_variance, int outer_iter) const
eon_relax_band_t eon_relax_surface_fn void eon_relax_outcome_t * out
std::vector< double > saddleIdentityUtility(const std::vector< double > &energies, const std::vector< double > &posterior_energy_variance)
Per-image value of information for resolving the interior argmax.
double gaussianExceedanceProbability(double reference_mean, double reference_variance, double challenger_mean, double challenger_variance)
Probability that a Gaussian challenger equals or exceeds a Gaussian reference under the independent-m...
const char * tpeObjectiveName(TpeObjective objective) noexcept
const char * tpeObjectiveLogName(bool evaluated, TpeObjective objective) noexcept
TpeObjective tpeObjectiveForSaddleState(bool ci_active, bool candidate_confident, bool chain_certificate_met) noexcept
TpePickResult selectTpeOracleTarget(const std::vector< double > &energies, const std::vector< double > &posterior_energy_variance, const std::vector< double > &force_norm, const std::vector< double > &force_variance, int outer_iter)
Full OIE target decision with the strict-saddle CI constraint and every interior image eligible.
double ucbBeta(int outer_iter, int n_candidates)
GP-UCB exploration schedule sqrt(beta_t), Srinivas et al. 2010.
std::vector< double > oieUtility(const std::vector< double > &energies, const std::vector< double > &posterior_energy_variance, const std::vector< double > &force_norm, const std::vector< double > &force_variance, int outer_iter, bool confident)
Per-interior-image standardized OIE utility (the TPE objective).
Eigen::VectorXd drawPosteriorObservationSample(const Eigen::VectorXd &posterior_mean, const Eigen::MatrixXd &posterior_covariance, std::uint64_t seed)
Draw one joint posterior realization for action-level PS-BAX.
bool confidenceMet(const std::vector< double > &energies, const std::vector< double > &posterior_energy_variance, int outer_iter)
Global-confidence gate without a magic threshold.
bool saddleExists(const std::vector< double > &energies)
Strict interior maximum above BOTH endpoints (no single-hump assumption: any interior image above max...
int tpePick(const std::vector< double > &interior_utility)
TPE acquisition over the DISCRETE interior-image index axis.
The nudged elastic band: path, GP-NEB driver, configuration and result, acquisition,...
Gaussian-process regression, kernels, priors, and the searches that run on the surrogate.
Definition Macros.h:16
STL namespace.
Result of a TPE acquisition pick over the interior band.
std::vector< double > interior_utility