-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change and add some logs in generator dispatch modification #332
change and add some logs in generator dispatch modification #332
Conversation
Signed-off-by: David BRAQUART <[email protected]>
Signed-off-by: David BRAQUART <[email protected]>
Signed-off-by: David BRAQUART <[email protected]>
if (nbNoCost > 0) { | ||
report(reporter, reporterSuffixKey, "NbGeneratorsWithNoCost", "${nbNoCost} generator${isPlural} been discarded from generation dispatch because of missing marginal cost. Their active power set point has been set to 0", | ||
Map.of("nbNoCost", nbNoCost, | ||
"isPlural", nbNoCost > 1 ? "s have" : " has"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"isPlural" is used for 5 times in this file, use a constant will be better ?
disconnectedGeneratorCounter.getAndIncrement(); | ||
}); | ||
if (disconnectedGeneratorCounter.get() > 0) { | ||
report(reporter, Integer.toString(componentNum), "TotalDisconnectedGenerator", "${nbDisconnectedGenerator} generator${isPlural} been discarded from generation dispatch because their are disconnected. Their active power set point remains unchanged", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the synthetic report before each individual disconnected generator report ?
} | ||
return marginalCost != null; | ||
}).collect(Collectors.toList()); | ||
|
||
int nbNoCost = generators.size() - generatorsWithMarginalCost.size(); | ||
if (nbNoCost > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add this synthetic report before each individual generator without marginal cost report ?
.forEach(g -> report(reporter, suffixKey, "GeneratorUnchangedTargetP", "Generator ${generator} has not been selected by the merit order algorithm. Its active power set point has been set to 0", | ||
Map.of(GENERATOR, g.getId()), TypedValue.TRACE_SEVERITY)); | ||
int nbUnchangedGenerators = adjustableGenerators.size() - updatedGenerators.size(); | ||
if (nbUnchangedGenerators > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add this synthetic report before each individual unchanged generator report ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also made for updated generators (synthetic before details)
Signed-off-by: David BRAQUART <[email protected]>
d5d4f8d
to
75566ee
Compare
Kudos, SonarCloud Quality Gate passed! |
No description provided.