Digital Twin For Dynamic Coordination Of Systems In Complex And Variable Environments