Skip to content
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

add branch selection on which Release is build #1941

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/new_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Create new release
on:
workflow_dispatch:
inputs:
target_branch:
description: "Target branch or full commit SHA (default develop)"
default: "develop"
release_tag:
description: "Release tag"
required: true
Expand All @@ -24,11 +27,13 @@ jobs:
tag: ${{ github.event.inputs.release_tag }}
title: ${{ github.event.inputs.release_name }}
tests: ${{ github.event.inputs.run-tests }}
target_branch: ${{ github.event.inputs.target_branch }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="$title" \
--notes="Run tests: $tests"
--notes="Run tests: $tests"\
--target="$target_branch"



Expand All @@ -38,31 +43,36 @@ jobs:
uses: ./.github/workflows/ubuntu.yml
with:
run-tests: ${{ inputs.run-tests }}
target_branch: ${{ inputs.target_branch }}

windows:
name: Release - Windows
needs: release
uses: ./.github/workflows/windows-vcpkg.yml
with:
run-tests: ${{ inputs.run-tests }}
target_branch: ${{ inputs.target_branch }}

centos7:
name: Release - centos7
needs: release
uses: ./.github/workflows/centos7.yml
with:
run-tests: ${{ inputs.run-tests }}
target_branch: ${{ inputs.target_branch }}

oracle8:
name: Release - oracle8
needs: release
uses: ./.github/workflows/oracle8.yml
with:
run-tests: ${{ inputs.run-tests }}
target_branch: ${{ inputs.target_branch }}

user_guide:
name: User Guide
needs: release
uses: ./.github/workflows/build-userguide.yml
with:
run-tests: ${{ inputs.run-tests }}
target_branch: ${{ inputs.target_branch }}
6 changes: 5 additions & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ on:
run-tests:
required: true
type: string
target_branch:
required: true
type: string

env:
GITHUB_TOKEN: ${{ github.token }}
Expand All @@ -37,7 +40,8 @@ jobs:

steps:
- uses: actions/checkout@v3

with:
ref: ${{ inputs.target_branch}}
- name: ccache
uses: hendrikmuhs/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion docs/reference-guide/03-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ whose detailed analysis may have shown that they were not physically realistic.
in replaying only a small number of years of specific interest (for instance, years in the course of which Min or Max
values of a given variable were encountered in a previous simulation).

In addition, each MC year i=1, …, N can be given a relative “weight” \\(W_i\\) in the simulation (default value: 1). The expectation and standard deviation of all random variables will then be computed as if the scenarios simulated were sampled from a probability density function in which MC year i is given the probability
In addition, each MC year i=1, …, N can be given a relative “weight” $W_i$ in the simulation (default value: 1). The expectation and standard deviation of all random variables will then be computed as if the scenarios simulated were sampled from a probability density function in which MC year i is given the probability

$$\frac{W_{i}}{\sum_{j=1,...,N}{W_{j}}}$$

Expand Down
14 changes: 7 additions & 7 deletions docs/reference-guide/04-active_windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -632,15 +632,15 @@ This window is used to handle all input data regarding the interconnections. On

- Hurdle cost indirect: a downstream-to-upstream transmission fee, in €/MWh

- Impedance: used in economy simulations to give a physical meaning to raw outputs, when no binding constraints have been defined to enforce Kirchhoff's laws (see "Output" section, variable "Flow Quad") OR used by the Kirchhoff's constraint generator to build up proper flow constraints (AC flow computed with the classical "DC approximation"). Since voltage levels are not explicitly defined and handled within Antares, all impedances are assumed to be scaled to some reference \\( U_{ref} \\)
- Impedance: used in economy simulations to give a physical meaning to raw outputs, when no binding constraints have been defined to enforce Kirchhoff's laws (see "Output" section, variable "Flow Quad") OR used by the Kirchhoff's constraint generator to build up proper flow constraints (AC flow computed with the classical "DC approximation"). Since voltage levels are not explicitly defined and handled within Antares, all impedances are assumed to be scaled to some reference $ U_{ref} $

- Loop flow: amount of power flowing circularly though the grid when all "nodes" are perfectly balanced (no import and no export). Such loop flows may be expected on any "simplified" grid in which large regions (or even countries) are modeled by a small number of "macro" nodes, and should accordingly be accounted for.

- PST min (denoted \\(Y^-\\) in [Kirchhoff Constraints Generator](07-kirchhoffs_constraint_generator.md)): lower bound of phase-shifting that can be reached by a PST installed on the link, if any (note : the effect of the active loop flow generated by the PST may be superimposed to that of the passive loop flow)
- PST min (denoted $Y^-$ in [Kirchhoff Constraints Generator](07-kirchhoffs_constraint_generator.md)): lower bound of phase-shifting that can be reached by a PST installed on the link, if any (note : the effect of the active loop flow generated by the PST may be superimposed to that of the passive loop flow)

- PST max (denoted \\(Y^+\\) in [Kirchhoff Constraints Generator](07-kirchhoffs_constraint_generator.md)): upper bound of phase-shifting that can be reached by a PST installed on the link, if any (note : the effect of the active loop flow generated by the PST may be superimposed to that of the passive loop flow)
- PST max (denoted $Y^+$ in [Kirchhoff Constraints Generator](07-kirchhoffs_constraint_generator.md)): upper bound of phase-shifting that can be reached by a PST installed on the link, if any (note : the effect of the active loop flow generated by the PST may be superimposed to that of the passive loop flow)

For the sake of simplicity and homogeneity with the convention used for impedance, PST settings are assumed to be expressed in \\( rad/U^2_{ref} \\)
For the sake of simplicity and homogeneity with the convention used for impedance, PST settings are assumed to be expressed in $ rad/U^2_{ref} $


- The "Transmission capacities" tab displays "ready-made" 8760-hour time-series already available for simulation purposes.
Expand Down Expand Up @@ -678,10 +678,10 @@ A typical situation in which this feature proves useful is, for instance, encoun

In such cases, assuming that:

- \\(Z_l\\) denotes the impedance of interconnections \\(l=1, L\\)
- A preliminary study of the graph modeling the grid has shown that it can be described by a set of independent meshes \\(c=1, C\\)(cycle basis of the graph)
- $Z_l$ denotes the impedance of interconnections $l=1, L$
- A preliminary study of the graph modeling the grid has shown that it can be described by a set of independent meshes $c=1, C$(cycle basis of the graph)

Then the DC flow approximation may be implemented, for each time-step of the simulation, by a set of C binding constraints between AC flows \\(F_l\\):
Then the DC flow approximation may be implemented, for each time-step of the simulation, by a set of C binding constraints between AC flows $F_l$:

$$ c= 1, ..., C : \sum_{i \in C}{sign(l,c)F_lZ_l = 0}$$

Expand Down
52 changes: 26 additions & 26 deletions docs/reference-guide/06-time_series_analysis_and_generation.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,33 +30,33 @@ The stationary processes are defined at a monthly scale. For each month, there a

- Four parameters for the definition of the marginal law

TS Gen. Parameters : \\(\alpha\\), \\(\beta\\), \\(\gamma\\) and \\(\delta\\)
TS Gen. Parameters : $\alpha$, $\beta$, $\gamma$ and $\delta$

| **Law** | \\(\alpha\\) | \\(\beta\\) | \\(\gamma\\) | \\(\delta\\) | **Expectation** | **Variance** |
| **Law** | $\alpha$ | $\beta$ | $\gamma$ | $\delta$ | **Expectation** | **Variance** |
|---------|:----------:|:---------:|:----------:|:----------:|:---------------:|:------------:|
| Uniform | N/A | N/A | \\(< \delta\\) | \\(> \gamma\\) | \\({(\delta - \gamma)\over 2}\\) | \\({(\delta - \gamma)^2\over 12}\\) |
| Beta | &gt;0 | &gt;0 | \\(< \delta\\) | \\(> \gamma\\) | \\(\gamma + {\alpha(\delta - \gamma)\over (\alpha + \beta)}\\) | \\(\alpha\beta(\delta - \gamma)^2\over (\alpha + \beta + 1)(\alpha + \beta)^2\\) |
| Normal | Any | &gt;0 | N/A | N/A | \\(\alpha\\) | \\(\beta^2\\) |
| Weibull | &gt;=1 <br/> &lt;50 | &gt;0 | N/A | N/A | \\(\beta \Gamma (1 + {1\over\alpha})\\) | \\(\beta^2[\Gamma(1+{2\over \alpha}) - \Gamma (1 + {1\over \alpha})^2]\\) |
| Gamma | &gt;=1 <br/> &lt;50 | &gt;0 | N/A | N/A | \\(\alpha * \beta\\) | \\(\alpha * \beta^2\\) |
| Uniform | N/A | N/A | $< \delta$ | $> \gamma$ | ${(\delta - \gamma)\over 2}$ | ${(\delta - \gamma)^2\over 12}$ |
| Beta | &gt;0 | &gt;0 | $< \delta$ | $> \gamma$ | $\gamma + {\alpha(\delta - \gamma)\over (\alpha + \beta)}$ | $\alpha\beta(\delta - \gamma)^2\over (\alpha + \beta + 1)(\alpha + \beta)^2$ |
| Normal | Any | &gt;0 | N/A | N/A | $\alpha$ | $\beta^2$ |
| Weibull | &gt;=1 <br/> &lt;50 | &gt;0 | N/A | N/A | $\beta \Gamma (1 + {1\over\alpha})$ | $\beta^2[\Gamma(1+{2\over \alpha}) - \Gamma (1 + {1\over \alpha})^2]$ |
| Gamma | &gt;=1 <br/> &lt;50 | &gt;0 | N/A | N/A | $\alpha * \beta$ | $\alpha * \beta^2$ |

_Uniform: uniform defined on (\\(\gamma\\), \\(\delta\\))._
_Beta: Beta (\\(\alpha\\), \\(\beta\\)) defined on (\\(\gamma\\), \\(\delta\\))._
_Normal: expectation \\(\alpha\\), standard deviation \\(\beta\\)._
_Weibull: shape \\(\alpha\\), scale \\(\beta\\), defined on (0,+\\(\infty\\))._
_Gamma: shape \\(\alpha\\), scale \\(\beta\\), defined on (0, +\\(\infty\\))._
_Uniform: uniform defined on ($\gamma$, $\delta$)._
_Beta: Beta ($\alpha$, $\beta$) defined on ($\gamma$, $\delta$)._
_Normal: expectation $\alpha$, standard deviation $\beta$._
_Weibull: shape $\alpha$, scale $\beta$, defined on (0,+$\infty$)._
_Gamma: shape $\alpha$, scale $\beta$, defined on (0, +$\infty$)._

In the expressions of expectation and variance, \\(\Gamma(x)\\) is the standard Euler Function.
In the expressions of expectation and variance, $\Gamma(x)$ is the standard Euler Function.


- Two parameters for the definition of the autocorrelation function

**TS Gen. Parameters : \\(\theta\\) and \\(\mu\\)**
**TS Gen. Parameters : $\theta$ and $\mu$**

| **Law** | \\(\theta\\) | \\(\mu\\) | **Corr(Xt, Xt+h)** |
| **Law** | $\theta$ | $\mu$ | **Corr(Xt, Xt+h)** |
|-----|----|-----|--------|
| Pure exponential decay | \\(\theta > 0\\) | \\(\mu = 1\\) | \\(e^{-\theta h}\\) |
| Smoothed exponential decay [^decay] | \\(\theta > 0\\) | \\( 1 < \mu < 24\\) | \\(\Phi(\theta, \mu, h)\\) |
| Pure exponential decay | $\theta > 0$ | $\mu = 1$ | $e^{-\theta h}$ |
| Smoothed exponential decay [^decay] | $\theta > 0$ | $ 1 < \mu < 24$ | $\Phi(\theta, \mu, h)$ |

$$\Phi(\theta, \mu, h)\ =\ {1\over A}\ *\ \sum_{i=0, \mu}{\ \sum_{j=h, h+\mu}{e^{-\theta|j-i|}}}$$

Expand All @@ -71,15 +71,15 @@ The section of the GUI specific to the generation of wind, solar and load time-s

1. **Spatial correlation matrices that are located within the "spatial correlation" tab of each path "Wind|Solar|Load / &lt;area\_name&gt;"**

This tab contains a workspace for the description of 12 monthly spatial correlation matrices \\(\Xi\\) and one annual correlation matrix. For the stochastic generators to work properly, these matrices must meet the usual requirements (matrices must be p.s.d, symmetric, with all terms between -100 and +100, and a main diagonal made of 100s). If this is not the case, generators will emit an infeasibility diagnosis. Matrices can be either set up manually OR automatically filled out by the time-series analyzer (see next paragraph).
This tab contains a workspace for the description of 12 monthly spatial correlation matrices $\Xi$ and one annual correlation matrix. For the stochastic generators to work properly, these matrices must meet the usual requirements (matrices must be p.s.d, symmetric, with all terms between -100 and +100, and a main diagonal made of 100s). If this is not the case, generators will emit an infeasibility diagnosis. Matrices can be either set up manually OR automatically filled out by the time-series analyzer (see next paragraph).

Depending on the choices made in the main "simulation" window, the matrices used will be either the 12 monthly matrices or the annual matrix. Whether to use the first or the second option depends on the quality of the statistical data at hand: with high quality data (for instance, that derived from the analysis of a very large pool of historical data), use of monthly correlations is recommended because monthly differences between matrices have a physical meaning ; with less robust data (derived from a handful of historical data,…), use of the single annual correlation matrix should be preferred because it smooths out the numeric noise which impairs the monthly matrices.

2. **Four parameters and four subtabs that are located within the "local" tab of each path "Wind|Solar|Load / &lt;area\_name&gt;"**

**FOUR PARAMETERS**

- Capacity: This first parameter is used to scale up time-series generated on the basis of the (\\(\alpha\\), \\(\beta\\), \\(\gamma\\), \\(\delta\\), \\(\theta\\), \\(\mu\\)) parameters described previously in the "principles" paragraph, together with coefficients characterizing the diurnal pattern (see below)
- Capacity: This first parameter is used to scale up time-series generated on the basis of the ($\alpha$, $\beta$, $\gamma$, $\delta$, $\theta$, $\mu$) parameters described previously in the "principles" paragraph, together with coefficients characterizing the diurnal pattern (see below)

- Distribution: This second parameter gives the type of marginal distribution of the stationary stochastic processes to generate (Beta, Weibull, Normal, Gamma, Uniform)

Expand All @@ -98,7 +98,7 @@ The section of the GUI specific to the generation of wind, solar and load time-s
**FOUR SUBTABS**

- Subtab "Coefficients"
A twelve-month table of values for the primary parameters \\(\alpha\\), \\(\beta\\), \\(\gamma\\), \\(\delta\\), \\(\theta\\), \\(\mu\\) <br/>
A twelve-month table of values for the primary parameters $\alpha$, $\beta$, $\gamma$, $\delta$, $\theta$, $\mu$ <br/>
This table may be either filled out manually or automatically (use of the time-series analyzer)

- Subtab "Translation"
Expand Down Expand Up @@ -148,7 +148,7 @@ The primary TS analyzer window shows two tabs:
- Keep the same:

- Type of distribution
- Values for \\(\alpha\\), \\(\beta\\), \\(\gamma\\), \\(\delta\\) and for the diurnal–seasonal pattern (table of 12 X 24 values)
- Values for $\alpha$, $\beta$, $\gamma$, $\delta$ and for the diurnal–seasonal pattern (table of 12 X 24 values)
- Value for the "capacity" parameter (the analyzer automatically sets it to 1)

- Besides:
Expand All @@ -163,7 +163,7 @@ The primary TS analyzer window shows two tabs:

- Short-term autocorrelation adjustment (%)
- Long-term autocorrelation adjustment (%) <br/>
These two parameters are used by Antares as targets for the fitting of \\(\theta\\) and \\(\mu\\) parameters. For instance, if the historical time-series autocorrelation function is such that Corr(T,T+ 18 hours)=90 % and Corr(T,T+60 hours)= 50%, and if the parameters in the analyzer are (ST = 90%,LT = 50%) , then it will search values of \\(\theta\\) and \\(\mu\\) matching the historical autocorr.function in two points(18 hours, 60 hours).
These two parameters are used by Antares as targets for the fitting of $\theta$ and $\mu$ parameters. For instance, if the historical time-series autocorrelation function is such that Corr(T,T+ 18 hours)=90 % and Corr(T,T+60 hours)= 50%, and if the parameters in the analyzer are (ST = 90%,LT = 50%) , then it will search values of $\theta$ and $\mu$ matching the historical autocorr.function in two points(18 hours, 60 hours).

- Trimming threshold (%) <br/>
In the spatial correlation matrices, terms lower than the threshold will be replaced by zeroes
Expand Down Expand Up @@ -240,14 +240,14 @@ In complement to the average value of the duration D of outages beginning on a p
- If choice = "geometric": **F = 0 and G = D** <br/>
(which in turn implies 1 &lt;= actual duration &lt;= #4D)

- 0&lt;V&lt;1: The variability of the actual outage duration is such that the ratio \\(\sigma / D\\) of its standard deviation to its expectation has a value that depends on **V** , on **D** and on the chosen distribution law. More precisely:
- 0&lt;V&lt;1: The variability of the actual outage duration is such that the ratio $\sigma / D$ of its standard deviation to its expectation has a value that depends on **V** , on **D** and on the chosen distribution law. More precisely:

- If choice = "uniform": \\(\sigma / D = [{1/3}^{0.5}] \* V \* (D-1) / D \\) <br/>
- If choice = "uniform": $\sigma / D = [{1/3}^{0.5}] \* V \* (D-1) / D $ <br/>
and <br/>
**Duration min = D (1-V) + V** <br/>
**Duration max = D (1+V) - V**

- If choice = "geometric": \\(\sigma / D = V \* [(D-1) / D]^{0.5}\\) <br/>
- If choice = "geometric": $\sigma / D = V \* [(D-1) / D]^{0.5}$ <br/>
and <br/>
**Duration min = F** <br/>
**Duration max # 4D-3F** <br/>
Expand Down Expand Up @@ -424,4 +424,4 @@ In both cases, assuming that a large number of historical time-series of energie

Assess the expectations of the 12 random variables **R1(n)/M1(n),…., R12(n)/M12(n)** . These values should be used to fill out the fields "ROR share" of the "local data" tab in the "hydro" active window.

[^decay]: Obtained by the generation of purely exponentially autocorrelated values (parameter \\(\theta\\) ) followed by a moving average transformation (parameter \\(\mu\\) ). \\(\theta\\) and \\(\mu\\) should be carefully chosen so as to accommodate at best the experimental data at hand. If meaningful historical data are available, this identification may be directly made using the Antares time-series analyzer.
[^decay]: Obtained by the generation of purely exponentially autocorrelated values (parameter $\theta$ ) followed by a moving average transformation (parameter $\mu$ ). $\theta$ and $\mu$ should be carefully chosen so as to accommodate at best the experimental data at hand. If meaningful historical data are available, this identification may be directly made using the Antares time-series analyzer.
Loading
Loading