The Optimal Resource Allocation in Stochastic Activity Networks via the Electromagnetism Approach: a platform implementation in Java uri icon