-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable the possibility to use the command with only the parameter --study fix the fact that the preloaded_libraries parameter in the resolve_library method didn't keep the preloaded models in the returned library
- Loading branch information
1 parent
941d5f5
commit f45d135
Showing
6 changed files
with
124 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Copyright (c) 2024, RTE (https://www.rte-france.com) | ||
# | ||
# See AUTHORS.txt | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# | ||
# This file is part of the Antares project. | ||
library: | ||
id: basic | ||
description: Basic library | ||
|
||
port-types: | ||
- id: flow | ||
description: A port which transfers power flow | ||
fields: | ||
- name: flow | ||
|
||
models: | ||
|
||
|
||
- id: node | ||
description: A basic balancing node model | ||
ports: | ||
- name: injection_port | ||
type: flow | ||
binding-constraints: | ||
- name: balance | ||
expression: sum_connections(injection_port.flow) = 0 | ||
|
||
- id: spillage | ||
description: A basic spillage model | ||
parameters: | ||
- name: cost | ||
time-dependent: false | ||
scenario-dependent: false | ||
variables: | ||
- name: spillage | ||
lower-bound: 0 | ||
ports: | ||
- name: injection_port | ||
type: flow | ||
port-field-definitions: | ||
- port: injection_port | ||
field: flow | ||
definition: -spillage | ||
objective: expec(sum(cost * spillage)) | ||
|
||
- id: demand | ||
description: A basic fixed demand model | ||
parameters: | ||
- name: demand | ||
time-dependent: true | ||
scenario-dependent: true | ||
ports: | ||
- name: injection_port | ||
type: flow | ||
port-field-definitions: | ||
- port: injection_port | ||
field: flow | ||
definition: -demand |