Skip to content

Commit 7656e8b

Browse files
couple of AEP fixes to code
1 parent fb9fc58 commit 7656e8b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

SS_benchfore.tpl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2836,15 +2836,13 @@ FUNCTION void Get_Forecast()
28362836
(1.0) * (1.0 - join2); // scale right side
28372837
break;
28382838
}
2839-
//AEP AEP Add here (protection level)
2839+
}
2840+
// protection level; contributed by AEP
28402841
if (H4010_prot > 0)
28412842
{
2842-
join1 = 1.0 / (1. + mfexp(20.0 * (SSB_current - H4010_prot * temp)));
2843-
//cout << ABC_buffer(y) << endl;
2843+
join1 = 1.0 / (1. + mfexp(20.0 * (SSB_current - H4010_prot * HCR_anchor)));
28442844
ABC_buffer(y) = 0.0001*join1 + (1.0 - 0.0001)*(1.0 - join1)*ABC_buffer(y);
2845-
//cout << SSB_current << " " << (SSB_current - H4010_prot * temp) << " " << SSB_current/temp << " " << join1 << " " << ABC_buffer(y) << endl;
28462845
}
2847-
}
28482846
} // end calc of ABC buffer
28492847
else
28502848
{ // ABC buffer remains at previously calculated value

0 commit comments

Comments
 (0)