Skip to content

Commit

Permalink
Upgrade rao parameters version to 3.0
Browse files Browse the repository at this point in the history
Signed-off-by: Pauline Jean-Marie <pauline.jean-marie@artelys.com>
  • Loading branch information
Pauline Jean-Marie committed Jan 16, 2025
1 parent 4ebd9ba commit 07511dd
Show file tree
Hide file tree
Showing 128 changed files with 128 additions and 128 deletions.
2 changes: 1 addition & 1 deletion docs/parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ Zones are seperated by + or -.
:::{group-tab} JSON
~~~json
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "SECURE_FLOW",
"unit" : "A",
Expand Down
2 changes: 1 addition & 1 deletion python-util/rao_parameter_modification.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def rao_parameters_file(file_path):
if "target" not in file_path and (file_path.endswith(".json")):
with open(os.path.join(dirpath, filename), 'r') as file:
for line in file:
if '"version" : "2.4"' in line or '"version" : "2.5"' in line:
if '"version" : "2.4"' in line or '"version" : "3.0"' in line:
correct_version = True
if any(name in line for name in relevant_rao_param_names):
has_rao_param_name = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public final class RaoParametersCommons {
private RaoParametersCommons() {
}

public static final String RAO_PARAMETERS_VERSION = "2.5";
public static final String RAO_PARAMETERS_VERSION = "3.0";

// header
public static final String VERSION = "version";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version" : "2.5",
"version" : "3.0",
"unknownField" : "abcd"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "A",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "SECURE_FLOW",
"unit" : "MW",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "SECURE_FLOW",
"unit" : "MW"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "WRONG"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "MW"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "SECURE_FLOW",
"unit" : "MW"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "A",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "SECURE_FLOW",
"unit" : "MW",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "MW",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "A",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "SECURE_FLOW",
"unit" : "MW"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "MW",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "SECURE_FLOW",
"unit" : "MW",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "A",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "MW",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MIN_COST",
"unit" : "MW",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "A",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "SECURE_FLOW",
"unit" : "MW"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "SECURE_FLOW",
"unit" : "MW"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "A",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "A",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "A",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "MW",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "MW",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "MW",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "SECURE_FLOW",
"unit" : "A"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "SECURE_FLOW",
"unit" : "A"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "SECURE_FLOW",
"unit" : "MW"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "SECURE_FLOW",
"unit" : "MW"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "SECURE_FLOW",
"unit" : "A"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "SECURE_FLOW",
"unit" : "MW"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_RELATIVE_MARGIN",
"unit" : "MW",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_RELATIVE_MARGIN",
"unit" : "MW",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_RELATIVE_MARGIN",
"unit" : "MW",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_RELATIVE_MARGIN",
"unit" : "MW",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_RELATIVE_MARGIN",
"unit" : "MW",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "MW",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "MW",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "SECURE_FLOW",
"unit" : "A"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "A",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "A",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "A",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "MW",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "MW",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "A",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "A",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "A",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "MW",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "MW",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "A",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "A",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version" : "2.5",
"version" : "3.0",
"objective-function" : {
"type" : "MAX_MIN_MARGIN",
"unit" : "A",
Expand Down
Loading

0 comments on commit 07511dd

Please sign in to comment.