RTE France

Hades - LoadFlow

Configuration

To use Hades for load-flow computations, set the default property of the load-flow module to Hades2.

Note: In previous Powsybl releases (before 3.0.0), this was configured in the load-flow-factory property with the value com.rte_france.powsybl.hades2.Hades2Factory.

To setup Hades, configure the hades2 module.

YAML

load-flow:
    default: Hades2
    
hades2:
    homeDir: /home/user/hades2-V6.4.0.1.1
    debug: false
    useSax: true

XML

<config>
    <load-flow>
        <default>Hades2</default>
    </load-flow>
    
    <hades2>
        <homeDir>/home/user/hades2-V6.4.0.1.1</homeDir>
        <debug>false</debug>
        <useSax>true</useSax>
    </hades2>
</config>

Examples

The following example shows how to run a load flow, using Hades and default configuration:

$> itools loadflow --case-file case.xiidm
Loading network 'case.xiidm'
loadflow results:
+--------+-----------------------------------------------------------------------------------------+
| Result | Metrics                                                                                 |
+--------+-----------------------------------------------------------------------------------------+
| true   | {nbIter=4, dureeCalcul=0.006098, cause=0, contraintes=6, statut=OK, csprMarcheForcee=0} |
+--------+-----------------------------------------------------------------------------------------+

The following example shows how to run a load flow, using Hades and a specific parameters file:

$> itools loadflow --case-file case.xiidm --parameters-file hades-lf-parameters.json
Loading network 'case.xiidm'
loadflow results:
+--------+-----------------------------------------------------------------------------------------+
| Result | Metrics                                                                                 |
+--------+-----------------------------------------------------------------------------------------+
| true   | {nbIter=4, dureeCalcul=0.006377, cause=0, contraintes=6, statut=OK, csprMarcheForcee=0} |
+--------+-----------------------------------------------------------------------------------------+