Security and Reserve constrained network flow model for the NZ grid