A Total Cost Approach (TCA) for optimising energy-saving measures in disruption conditions