National Electricity Market optimisation framework