1. A method for determining a set of costs of routes in a network, the method comprising: providing a model of the network, optimizing the model for maximum network lifetime, updating the model using at least one constraint based on the maximum network lifetime, optimizing the updated model for minimum network latency, modifying the updated model using at least one constraint based on the minimum network latency, and, optimizing the modified updated model by balancing the network across multiple pathways to provide the costs.