private void btnRunOpf_Click(object sender, RoutedEventArgs e) { //builds the model OPFSolverForLDC = new OPFModelSolverForLDC(this.MyPowerSystem, this.MyLoadBlock); //solves the model OPFSolverForLDC.Solve(); //binds results OPFResultsForLDC = OPFSolverForLDC.MyOPFModelResultsForLDC; }
public OPFModelResultForLDC BuildOPFModelResultsForLDC() { MyOPFModelResultForLDC = new OPFModelResultForLDC(MyPowerSystem, GRBModelStatus, ObjVal, PGen_Solution, PFlow_Solution, LShed_Solution, BusAng_Solution, NodalSpotPrice, PFlow_TLsIDs, LoadBlock); return MyOPFModelResultForLDC; }