ML-enhancement of simulation and optimization in electromagnetism (Version intégrée)