# Optimisation of Segregation Distances between Electric Cable Bundles Embedded in a Structure
## 6 Conclusions
**Appendix A. Algorithm of the Proposed Methods**  
```
1:Setting definition: Define \(f_{\mathbf{X}}\), \(\alpha\), the minimum number of Monte Carlo samples \(N_{\text{min}}\) and the maximum number of Monte Carlo samples \(N_{\text{max}}\), the distance \(d\) proposed by the optimiser COBYLA
2:Initialisation with \(N_{\text{min}}\) samples:
3:Generate \(N_{\text{min}}\) independent samples \(\mathbf{X}_{1},\dots,\mathbf{X}_{N_{\text{min}}}\) with distribution \(f_{\mathbf{X}}\)
4:Estimate \(\widehat{\mathbb{P}_{d}^{MC}}=\frac{1}{N_{\text{min}}}\sum_{i=1}^{N_{\text{ min}}}\mathbf{1}_{G}(\mathbf{\underline{\alpha}}\mathbf{\underline{\chi}}_{i})<0\)
5:Compute \(IC_{0.95}(\widehat{\mathbb{P}_{d}^{MC}})=\widehat{\mathbb{P}_{d}^{MC}}\pm 1.96\sqrt{\frac{\widehat{\mathbb{P}_{d}^{MC}}(1-\widehat{\mathbb{P}_{d}^{MC}} )}{N_{\text{min}}}}\)
6:if\(\widehat{\mathbb{P}_{d}^{MC}}-1.96\sqrt{\frac{\widehat{\mathbb{P}_{d}^{MC}}(1- \widehat{\mathbb{P}_{d}^{MC}})}{N}}>1-\alpha\)then Return \"the EMC constraint is respected at distance \(d\)\"
7:endif
8:if\(\widehat{\mathbb{P}_{d}^{MC}}+1.96\sqrt{\frac{\widehat{\mathbb{P}_{d}^{MC}}(1- \widehat{\mathbb{P}_{d}^{MC}})}{N}}<1-\alpha\)then Return \"the EMC constraint is not respected at distance \(d\)\"
9:endif
10:Iteration until a decision is possible:
11:Set \(N=N_{\text{min}}\)
12:while\(N<N_{\text{max}}\)do
13: Set \(N=N+1\)
14: Generate 1 independent sample \(\mathbf{X}_{N}\) with distribution \(f_{\mathbf{X}}\)
15: Estimate \(\widehat{\mathbb{P}_{d}^{MC}}=\frac{1}{N}\sum_{i=1}^{N}\mathbf{1}_{G}( \mathbf{\underline{\alpha}}\mathbf{\underline{\chi}}_{i})<0\)
16: Compute \(IC_{0.95}(\widehat{\mathbb{P}_{d}^{MC}})=\widehat{\mathbb{P}_{d}^{MC}}\pm 1.96\sqrt{\frac{\widehat{\mathbb{P}_{d}^{MC}}(1-\widehat{\mathbb{P}_{d}^{MC}} )}{N}}\)
17:if\(\widehat{\mathbb{P}_{d}^{MC}}-1.96\sqrt{\frac{\widehat{\mathbb{P}_{d}^{MC}}(1- \widehat{\mathbb{P}_{d}^{MC}})}{N}}>1-\alpha\)then Return \"the EMC constraint is respected at distance \(d\)\"
18:endif
19:if\(\widehat{\mathbb{P}_{d}^{MC}}+1.96\sqrt{\frac{\widehat{\mathbb{P}_{d}^{MC}}(1- \widehat{\mathbb{P}_{d}^{MC}})}{N}}<1-\alpha\)then Return \"the EMC constraint is not respected at distance \(d\)\"
20:endif
21:endwhile
22:The whole budget is necessary to make a decision:
23:if\(\widehat{\mathbb{P}_{d}^{MC}}>1-\alpha\)then Return \"the EMC constraint is respected at distance \(d\)\"
24:endif
25:if\(\widehat{\mathbb{P}_{d}^{MC}}<1-\alpha\)then Return \"the EMC constraint is not respected at distance \(d\)\"
26:endif

## References

* [1] [PERSON] Optimization models with probabilistic constraints. In _Probabilistic and Randomized Methods for Design under Uncertainty_, Springer. Berlin/Heidelberg, Germany, 2006; pp. 49-97. * [2] [PERSON]; [PERSON] Surrogate-assisted reliability-based design optimization: A survey and a unified modular framework. _Struct. Multidiscip. Optim._**2019**, _60_, 1-20. [CrossRef]
* [3] [PERSON]; [PERSON]; [PERSON] On the analysis of general multiconductor transmission-line networks. _Internet. Note_**1978**, _350_, 467-547. * [4] [PERSON]; [PERSON]; [PERSON] _CRIPTE: Code de Resenux de Lignes de Transmission Multiconducteur--User's Guide-Version 5.1_, ONERA/DEMR/T-N119/10-CRIPTE 5.1; AEM: Orsay, France, 2010. * [5] [PERSON]; [PERSON] [PERSON]; [PERSON]; [PERSON]; [PERSON] EMC harness design applied to helicopter engine from the model to the measurement validation. In Proceedings of the 2019 IEEE International Symposium on Electromagnetic Compatibility, Signal & Power Integrity (EMC + SIPI), New Orleans, LA, USA, 22-26 July 2019; pp. 278-283. * [6] [PERSON] A direct search optimization method that models the objective and constraint functions by linear interpolation. In _Advances in Optimization and Numerical Analysis_; Springer: Berlin/Heidelberg, Germany, 1994; pp. 51-67. * [7] [PERSON]; [PERSON] _Monte Carlo Statistical Methods_; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2013. * [8] [PERSON]; [PERSON]; [PERSON] AK-MCS: An active learning reliability method combining Kriging and Monte Carlo simulation. _Struct.