CON-file: Difference between revisions
Jump to navigation
Jump to search
(translation) |
|||
Line 1: | Line 1: | ||
{{ | {{Template:BlueM.Opt input files}} | ||
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 '''<code>.CON</code>''', 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:'' | ||
<bluem> | <bluem> | ||
*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 | | ||
*|--------------- | *|-------------|------------|------|-----------|-------------|---------|-------|------|-----------------| | ||
</bluem> | </bluem> | ||
=== | ===Description=== | ||
:{| cellpadding="5" cellspacing="0" border="0" class="standard stripes" | :{| cellpadding="5" cellspacing="0" border="0" class="standard stripes" | ||
|- | |- | ||
! width="150" | Parameter !! width="500" | | ! width="150" | Parameter !! width="500" | Description | ||
|- | |- | ||
| ''' | | '''Name''' || Arbitrary name of the constraint | ||
|- | |- | ||
| ''' | | '''ThreshType''' | ||
| | | | ||
* <code>Wert</code>: | Threshold type | ||
* <code>Reihe</code>: | * <code>Wert</code>: Constant threshold value | ||
* <code>Reihe</code>: Time series of threshold values | |||
|- | |- | ||
| ''' | | '''File''' || The simulation result file containing the simulation result which should be checked for threshold violation. Accepted values: | ||
*<code>WEL</code> | |||
|- | |- | ||
| ''' | | '''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: | ||
* <code>Obergrenze</code> | * <code>Obergrenze</code>: Upper bound | ||
* <code>Untergrenze</code> | * <code>Untergrenze</code>: Lower bound | ||
|- | |- | ||
| ''' | |colspan=2| '''Threshold value'''<br/>(only used when '''ThreshType''' is <code>Wert</code> (a constant value)) | ||
|- | |- | ||
| ''' | | '''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 | |||
|- | |- | ||
| ''' | | '''Value''' || The threshold value to check against. | ||
|- | |- | ||
| ''' | |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> | |||
|} | |} | ||
The width of the columns can be adjusted if necessary, but the column separators (<code>|</code>) must be preserved! | |||
An asterisk (<code>*</code>) at the beginning of the line causes the line to be ignored. | |||
[[ | [[Category:BlueM.Opt input files]] |
Revision as of 04:09, 22 January 2018
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 valueReihe
: 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 boundUntergrenze
: Lower bound
Threshold value
(only used when ThreshType isWert
(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 resultMinWert
: Minimum value of the simulation resultAverage
: Average value of the simulation resultAnfWert
: First value of the simulation resultEndWert
: Last value of the simulation result
Value The threshold value to check against. Threshold series
(only used when ThreshType isReihe
(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.