Dealing with uncertainty in network optimisation