-
Notifications
You must be signed in to change notification settings - Fork 42
Migration guide v4.3.0
MioRtia edited this page Jul 8, 2021
·
1 revision
From this version, generators' reactive power regulation is imported from CGMES (not only voltage regulation) and modeled by the RemoteReactivePowerControl
extension. If you are using a custom IIDM implementation, please ensure that you have an implementation for this extension in order for the import to work.
The Security Analysis API has been refactored. Your code can now be simplified. Here is an example of migration:
Network network = ...
ComputationManager computationManager = ...
SecurityAnalysisParameters securityAnalysisParameters = ...
ContingenciesProvider contingenciesProvider = ...
// 4.2.0
SecurityAnalysis securityAnalysis = new Hades2SecurityAnalysisFactory().create(network, computationManager, 0);
SecurityAnalysisResult securityAnalysisResult = securityAnalysis.run(VariantManagerConstants.INITIAL_VARIANT_ID,
securityAnalysisParameters, contingenciesProvider).join();
// 4.3.0
SecurityAnalysisReport report = SecurityAnalysis.run(network,
VariantManagerConstants.INITIAL_VARIANT_ID,
new DefaultLimitViolationDetector(),
new LimitViolationFilter(),
computationManager,
securityAnalysisParameters,
contingenciesProvider, Collections.emptyList());
SecurityAnalysisResult securityAnalysisResult = report.getResult();
Please also note that SecurityAnalysisResultWithLog
does not exist anymore; the log can be accessed by securityAnalysisReport.getLogBytes()
. Other functionalities are also available via the new API, feel free to look at the javadoc for more information.