Conserving energy and calculating power loss in complex systems.