Optimal resource allocation in stochastic activity networks via the electromagnetism approach: a platform implementation in Java Anabela Tereso, Rui Novais, M. Araújo, Salah Elmaghraby (2009) Control and Cybernetics