Output¶
Classes for defining outputs.
RVICollector
¶
RVICollector(
ep_output_names,
ep_output_type,
filename,
/,
ep_output_keys=(),
ep_output_frequency="",
*,
objectives=(),
constraints=(),
objective_direction="minimise",
constraint_bounds=(-math.inf, 0),
is_final=True,
)
Collects outputs by RVI.
This collector retrieves EnergyPlus simulation results defined by either
Output:Variable or Output:Meter via the ReadVarsESO programme, the required RVI
file is auto-generated.
| PARAMETER | DESCRIPTION |
|---|---|
ep_output_names
|
EnergyPlus output names.
TYPE:
|
ep_output_type
|
EnergyPlus output type.
TYPE:
|
filename
|
Output filename, this must end with
TYPE:
|
ep_output_keys
|
Specific names for EnergyPlus variable outputs, only applicable when
TYPE:
|
ep_output_frequency
|
EnergyPlus output frequency.
TYPE:
|
objectives
|
Optimisation objectives, which must match the output names in the output file.
TYPE:
|
constraints
|
Optimisation constraints, which must match the output names in the output file.
TYPE:
|
objective_direction
|
Optimisation objective direction.
TYPE:
|
constraint_bounds
|
Optimisation constraint bounds.
TYPE:
|
is_final
|
Whether the output is final and recorded.
TYPE:
|
ScriptCollector
¶
ScriptCollector(
script_file,
script_language,
filename,
/,
script_kwargs=None,
*,
level="task",
objectives=(),
constraints=(),
objective_direction="minimise",
constraint_bounds=(-math.inf, 0),
is_final=True,
)
Collects outputs by script.
This collector computes user-defined outputs by calling user-provided scripts, which
can be used for either the task- or the job-level output collection. The task level
usually deals with building performance metrics, whilst the job level can calculate
robustness measures. A loads_kwargs method is provided to conveniently retrieve
useful output-related data inside scripts.
Currently only a Python script is supported.
| PARAMETER | DESCRIPTION |
|---|---|
script_file
|
Script file path.
TYPE:
|
script_language
|
Script language, whose executable path must be configured via
TYPE:
|
filename
|
Output filename.
TYPE:
|
script_kwargs
|
Additional keyword arguments passed into the script.
TYPE:
|
level
|
Output collection level.
TYPE:
|
objectives
|
Optimisation objectives, which must match the output names in the output file.
TYPE:
|
constraints
|
Optimisation constraints, which must match the output names in the output file.
TYPE:
|
objective_direction
|
Optimisation objective direction.
TYPE:
|
constraint_bounds
|
Optimisation constraint bounds.
TYPE:
|
is_final
|
Whether the output is final and recorded.
TYPE:
|
loads_kwargs
staticmethod
¶
loads_kwargs()
Retrieve keyword arguments in scripts.
| RETURNS | DESCRIPTION |
|---|---|
dict
|
Keys of this dictionary are 'cwd', 'filename', 'objectives', 'constraints',
in addition to any key in |