File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -373,16 +373,16 @@ def solve(self) -> Dict:
373373 status = pulp .LpStatus [self .problem .status ]
374374
375375 # get limit violations
376- grid_imp_limit_violated = False
377- grid_imp_overshoot = []
376+ grid_imp_limit_violated = False
377+ grid_imp_overshoot = []
378378 if self .grid .p_max_imp is not None :
379- grid_imp_limit_violated = (np .max ([pulp .value (var ) for var in self .variables ['p_imp_pen' ]]) > 0 )
380- grid_imp_overshoot = [pulp .value (var ) for var in self .variables ['p_imp_pen' ]]
381- grid_exp_limit_hit = False
382- grid_exp_overshoot = []
379+ grid_imp_limit_violated = (np .max ([pulp .value (var ) for var in self .variables ['p_imp_pen' ]]) > 0 )
380+ grid_imp_overshoot = [pulp .value (var ) for var in self .variables ['p_imp_pen' ]]
381+ grid_exp_limit_hit = False
382+ grid_exp_overshoot = []
383383 if self .grid .p_max_exp is not None :
384- grid_exp_limit_hit = (np .max ([pulp .value (var ) for var in self .variables ['p_exp_pen' ]]) > 0 )
385- grid_exp_overshoot = [pulp .value (var ) for var in self .variables ['p_exp_pen' ]]
384+ grid_exp_limit_hit = (np .max ([pulp .value (var ) for var in self .variables ['p_exp_pen' ]]) > 0 )
385+ grid_exp_overshoot = [pulp .value (var ) for var in self .variables ['p_exp_pen' ]]
386386
387387 if status == 'Optimal' :
388388 result = {
You can’t perform that action at this time.
0 commit comments