Companion implementation for the paper Random Permutation Set-Based Diagnosis for Reliable Large-Scale Distributed Optimization Under Soft Faults. The code closes the loop "diagnosis -> soft ...