CON-file: Difference between revisions

From BlueM
Jump to navigation Jump to search
m (Froehlich moved page CON-Datei to CON-file: translation)
(translation)
Line 1: Line 1:
{{Vorlage:BlueM.Opt Eingabedateien}}
{{Template:BlueM.Opt input files}}
Diese Datei definiert die Constraints (Grenzen) für die Optimierung. Jede Zeile entspricht einem Constraint.
This file defines the constraints for the optimization. Each line corresponds to one constraint.


Die Datei muss den gleichen Namen wie der Simulations-Datensatz haben, aber mit der Endung '''.CON''', und muss sich im Simulations-Arbeitsverzeichnis befinden. (Diese Datei ist optional!)
The file must have the same filename as the rest of the dataset's files but have the file extension '''<code>.CON</code>''', and be located in the same directory as the rest of the dataset.


Für die Berechnung eines Constraints wird die Differenz zwischen der Simulationsgröße und dem Grenzwert gebildet.
A constraint is evaluated by comparing a simulated value to a threshold value, which may be defined either as a lower or upper bound.


''Beispiel für eine Talsperre in [[BlueM.Sim]] mit 2 Constraints:''
''Example for a reservoir in [[BlueM.Sim]] with 2 constraints:''
<bluem>
<bluem>
*Constraints
*Constraints
*===========
*===========
*
*
*|---------------|----------|-------|-----------|------------|----------------------|-----------------------------|
*|-------------|------------|------|-----------|-------------|-----------------|------------------------|
*|               |         |       |          |           |     Grenzwert       |        Grenzreihe          |
*|             |           |     |          |             | Threshold value | Threshold series       |
*| Bezeichnung  | GrenzTyp | Datei | SimGröße  | Oben/Unten | WertTyp  | Grenzwert | Grenzgröße | Datei          |
*| Name        | ThreshType | File | SimResult | Lower/Upper | Type    | Value | Name | File            |
*|---------------|----------|-------|-----------|------------|----------|-----------|------------|----------------|
*|-------------|------------|------|-----------|-------------|---------|-------|------|-----------------|
  | Überlauf      | Wert     |  WEL | TOLF_QH2  | Obergrenze | MinWert |    0      |           |                |
  | Spill      | Wert       |  WEL | TOLF_QH2  | Obergrenze | MinWert |    0 |     |                 |
  | HWSRaum      | Reihe   |  WEL | TOLF_VOL  | Obergrenze |         |           | HWSR       | HWSR.wel       |
  | FloodBuffer | Reihe     |  WEL | TOLF_VOL  | Obergrenze |         |       | HWSR | FloodBuffer.wel |
*|---------------|----------|-------|-----------|----------- |----------|-----------|------------|----------------|
*|-------------|------------|------|-----------|-------------|---------|-------|------|-----------------|
</bluem>
</bluem>


===Spaltenbeschreibung===
===Description===
:{| cellpadding="5" cellspacing="0" border="0" class="standard stripes"
:{| cellpadding="5" cellspacing="0" border="0" class="standard stripes"
|-  
|-  
! width="150" | Parameter !! width="500" | Beschreibung
! width="150" | Parameter !! width="500" | Description
|-
|-
| '''Bezeichnung''' || Bezeichnung des Constraints (beliebig)
| '''Name''' || Arbitrary name of the constraint
|-
|-
| '''GrenzTyp'''
| '''ThreshType'''
|  
|  
* <code>Wert</code>: Es handelt sich um einen Grenzwert
Threshold type
* <code>Reihe</code>: Es handelt sich um eine Grenzwertreihe
* <code>Wert</code>: Constant threshold value
* <code>Reihe</code>: Time series of threshold values
|-
|-
| '''Datei''' || Die Ergebnisdatei, aus der das Simulationsergebnis ausgelesen werden soll [WEL]
| '''File''' || The simulation result file containing the simulation result which should be checked for threshold violation. Accepted values:
*<code>WEL</code>
|-
|-
| '''SimGröße''' || Die Simulationsgröße, die auf Verletzung der Grenze überprüft werden soll
| '''SimResult''' || The identifier of the simulation result which should be checked for threshold violation.
|-
|-
| '''Oben/Unten''' || Gibt an, ob die Grenze eine Ober- oder Untergrenze darstellt.
| '''Lower/Upper''' || Specifies whether the threshold is a lower or upper bound. Accepted values:
* <code>Obergrenze</code>
* <code>Obergrenze</code>: Upper bound
* <code>Untergrenze</code>
* <code>Untergrenze</code>: Lower bound
|-
|-
| '''WertTyp'''<br/>(nur bei Grenzwerten) || Gibt an wie der Wert, der mit dem Grenzwert verglichen werden soll, aus dem Simulationsergebnis berechnet werden soll.
|colspan=2| '''Threshold value'''<br/>(only used when '''ThreshType''' is <code>Wert</code> (a constant value))
* <code>MaxWert</code>: Maximaler Wert des Simulationsergebnisses
* <code>MinWert</code>: Minimaler Wert des Simulationsergebnisses
* <code>Average</code>: Durchschnittlicher Wert des Simulationsergebnisses
* <code>AnfWert</code>: Der erste wert des Simulationsergebnisses
* <code>EndWert</code>: Der letzte Wert des Simulationsergebnisses
|-
|-
| '''Grenzwert'''<br/>(nur bei Grenzwerten) || Der zu überprüfende Grenzwert
| '''Type''' || Specifies how to calculate the value that should be compared to the threshold vaslue from the simulation result.
* <code>MaxWert</code>: Maximum value of the simulation result
* <code>MinWert</code>: Minimum value of the simulation result
* <code>Average</code>: Average value of the simulation result
* <code>AnfWert</code>: First value of the simulation result
* <code>EndWert</code>: Last value of the simulation result
|-
|-
| '''Grenzgröße'''<br/>(nur bei Grenzwertreihen und .wel als Grenzwertdatei) || Gibt an welche Spalte der .wel Grenzwertdatei für die Grenze herangezogen werden soll.
| '''Value''' || The threshold value to check against.
|-
|-
| '''Datei'''<br/>(nur bei Grenzwertreihen) || Der Dateiname der Grenzwertdatei (.zre oder .wel)<br/><span style="color:red">'''Achtung:''' Die Zeitschrittweite der Zeitreihe muss mit dem Zeitschritt der Simulation übereinstimmen! (siehe Bug 218)</span>
|colspan=2| '''Threshold series'''<br/>(only used when '''ThreshType''' is <code>Reihe</code> (a series of values))
|-
| '''Name''' || Only used for threshold series files in [[WEL-Format]]. The identifier of the time series within the threshold series file.
|-
| '''File''' || The filename of the threshold series file. Must be either in [[ZRE-Format|ZRE]] or [[WEL-Format]]<br/><span style="color:red">'''Warning:''' The time step size of the threshold series must be identical to that of the simulation result! (see #218)</span>
|}
|}
Die Breite der Spalten darf bei Bedarf angepasst werden, nur alle "|"-Zeichen müssen erhalten bleiben!
The width of the columns can be adjusted if necessary, but the column separators (<code>|</code>) must be preserved!


Ein "<code>*</code>" am Anfang einer Zeile führt dazu, dass die Zeile ignoriert wird.
An asterisk (<code>*</code>) at the beginning of the line causes the line to be ignored.  


[[Kategorie:BlueM.Opt Eingabedateien]]
[[Category:BlueM.Opt input files]]

Revision as of 04:09, 22 January 2018

EVO.png BlueM.Opt | Download | Usage | Development

BlueM.Opt input files: MOD · OPT · OBF · CON


This file defines the constraints for the optimization. Each line corresponds to one constraint.

The file must have the same filename as the rest of the dataset's files but have the file extension .CON, and be located in the same directory as the rest of the dataset.

A constraint is evaluated by comparing a simulated value to a threshold value, which may be defined either as a lower or upper bound.

Example for a reservoir in BlueM.Sim with 2 constraints:

*Constraints
*===========
*
*|-------------|------------|------|-----------|-------------|-----------------|------------------------|
*|             |            |      |           |             | Threshold value | Threshold series       |
*| Name        | ThreshType | File | SimResult | Lower/Upper | Type    | Value | Name | File            |
*|-------------|------------|------|-----------|-------------|---------|-------|------|-----------------|
 | Spill       | Wert       |  WEL | TOLF_QH2  | Obergrenze  | MinWert |    0  |      |                 |
 | FloodBuffer | Reihe      |  WEL | TOLF_VOL  | Obergrenze  |         |       | HWSR | FloodBuffer.wel |
*|-------------|------------|------|-----------|-------------|---------|-------|------|-----------------|

Description

Parameter Description
Name Arbitrary name of the constraint
ThreshType

Threshold type

  • Wert: Constant threshold value
  • Reihe: Time series of threshold values
File The simulation result file containing the simulation result which should be checked for threshold violation. Accepted values:
  • WEL
SimResult The identifier of the simulation result which should be checked for threshold violation.
Lower/Upper Specifies whether the threshold is a lower or upper bound. Accepted values:
  • Obergrenze: Upper bound
  • Untergrenze: Lower bound
Threshold value
(only used when ThreshType is Wert (a constant value))
Type Specifies how to calculate the value that should be compared to the threshold vaslue from the simulation result.
  • MaxWert: Maximum value of the simulation result
  • MinWert: Minimum value of the simulation result
  • Average: Average value of the simulation result
  • AnfWert: First value of the simulation result
  • EndWert: Last value of the simulation result
Value The threshold value to check against.
Threshold series
(only used when ThreshType is Reihe (a series of values))
Name Only used for threshold series files in WEL-Format. The identifier of the time series within the threshold series file.
File The filename of the threshold series file. Must be either in ZRE or WEL-Format
Warning: The time step size of the threshold series must be identical to that of the simulation result! (see #218)

The width of the columns can be adjusted if necessary, but the column separators (|) must be preserved!

An asterisk (*) at the beginning of the line causes the line to be ignored.