-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d51084
commit 65278b5
Showing
8 changed files
with
2,955 additions
and
1 deletion.
There are no files selected for viewing
2,716 changes: 2,716 additions & 0 deletions
2,716
TestModel_onlyGeometryForVRFsystem_2zones_CalcVent_V2310.idf
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
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,18 @@ | ||
|
||
def modify_VSToffset(building, value): | ||
import accim.sim.accis_single_idf_funcs as accis | ||
accis.modifyAccis( | ||
idf=building, | ||
ComfStand=1, | ||
CAT=3, | ||
ComfMod=3, | ||
# SetpointAcc=1000, | ||
HVACmode=2, | ||
VentCtrl=0, | ||
CoolSeasonStart='01/02', | ||
CoolSeasonEnd='01/03', | ||
VSToffset=value, | ||
# MinOToffset=50, | ||
# MaxWindSpeed=50 | ||
) | ||
return |
File renamed without changes.
73 changes: 73 additions & 0 deletions
73
accim/sample_files/script_usage/besos_parametric_accis_functions_imported.py
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,73 @@ | ||
from besos import eppy_funcs as ef | ||
from besos.evaluator import EvaluatorEP | ||
from besos.optimizer import NSGAII | ||
from besos.parameters import RangeParameter, Parameter, GenericSelector | ||
from besos.problem import EPProblem | ||
from besos.objectives import VariableReader, MeterReader | ||
|
||
import accim.sim.accis_single_idf_funcs as accis | ||
import accim.funcs_for_besos.param_accis as bf | ||
|
||
## | ||
|
||
building = ef.get_building('TestModel_onlyGeometryForVRFsystem_2zones_CalcVent_V2310.idf') | ||
|
||
accis.addAccis( | ||
idf=building, | ||
ScriptType='vrf_mm', | ||
SupplyAirTempInputMethod='temperature difference', | ||
Output_keep_existing=False, | ||
Output_type='standard', | ||
Output_freqs=['hourly'], | ||
# EnergyPlus_version='9.4', | ||
TempCtrl='temperature', | ||
Output_gen_dataframe=True, | ||
) | ||
|
||
## | ||
|
||
# def modify_accis(building, value): | ||
# accis.modifyAccis( | ||
# idf=building, | ||
# ComfStand=1, | ||
# CAT=3, | ||
# ComfMod=3, | ||
# # SetpointAcc=1000, | ||
# HVACmode=2, | ||
# VentCtrl=0, | ||
# CoolSeasonStart='01/02', | ||
# CoolSeasonEnd='01/03', | ||
# VSToffset=value, | ||
# # MinOToffset=50, | ||
# # MaxWindSpeed=50 | ||
# ) | ||
# return | ||
|
||
## | ||
parameters_set = [ | ||
Parameter( | ||
name='VSToffset', | ||
selector=GenericSelector(set=bf.modify_VSToffset), | ||
value_descriptor=RangeParameter(min_val=0.1, max_val=0.9) | ||
), | ||
] | ||
|
||
## | ||
|
||
objectives = [ | ||
MeterReader("Electricity:Facility", name="Electricity Usage"), | ||
] | ||
|
||
evaluator = EvaluatorEP( | ||
problem=EPProblem( | ||
inputs=parameters_set, | ||
outputs=objectives, | ||
minimize_outputs=[ | ||
True | ||
], | ||
), | ||
building=building, | ||
) | ||
|
||
|
||
results1 = NSGAII(evaluator, evaluations=1, population_size=3) |
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,74 @@ | ||
from besos import eppy_funcs as ef | ||
from besos.evaluator import EvaluatorEP | ||
from besos.optimizer import NSGAII | ||
from besos.parameters import RangeParameter, Parameter, GenericSelector | ||
from besos.problem import EPProblem | ||
from besos.objectives import VariableReader, MeterReader | ||
|
||
import accim.sim.accis_single_idf as accis | ||
import accim.funcs_for_besos.param_accis as bf | ||
|
||
## | ||
|
||
building = ef.get_building('TestModel_onlyGeometryForVRFsystem_2zones_CalcVent_V2310.idf') | ||
|
||
x = accis.addAccis( | ||
idf=building, | ||
ScriptType='vrf_mm', | ||
SupplyAirTempInputMethod='temperature difference', | ||
Output_keep_existing=False, | ||
Output_type='standard', | ||
Output_freqs=['hourly'], | ||
# EnergyPlus_version='9.4', | ||
TempCtrl='temperature', | ||
Output_gen_dataframe=True, | ||
|
||
) | ||
|
||
## | ||
|
||
# def modify_accis(building, value): | ||
# x.modifyAccis( | ||
# # idf=building, | ||
# ComfStand=1, | ||
# CAT=3, | ||
# ComfMod=3, | ||
# # SetpointAcc=1000, | ||
# HVACmode=2, | ||
# VentCtrl=0, | ||
# CoolSeasonStart='01/02', | ||
# CoolSeasonEnd='01/03', | ||
# VSToffset=value, | ||
# # MinOToffset=50, | ||
# # MaxWindSpeed=50 | ||
# ) | ||
# return | ||
|
||
## | ||
parameters_set = [ | ||
Parameter( | ||
name='VSToffset', | ||
selector=GenericSelector(set=bf.modify_accis), | ||
value_descriptor=RangeParameter(min_val=0.1, max_val=0.9) | ||
), | ||
] | ||
|
||
## | ||
|
||
objectives = [ | ||
MeterReader("Electricity:Facility", name="Electricity Usage"), | ||
] | ||
|
||
evaluator = EvaluatorEP( | ||
problem=EPProblem( | ||
inputs=parameters_set, | ||
outputs=objectives, | ||
minimize_outputs=[ | ||
True | ||
], | ||
), | ||
building=building, | ||
) | ||
|
||
|
||
results1 = NSGAII(evaluator, evaluations=1, population_size=3) |
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,73 @@ | ||
from besos import eppy_funcs as ef | ||
from besos.evaluator import EvaluatorEP | ||
from besos.optimizer import NSGAII | ||
from besos.parameters import RangeParameter, Parameter, GenericSelector | ||
from besos.problem import EPProblem | ||
from besos.objectives import VariableReader, MeterReader | ||
|
||
import accim.sim.accis_single_idf_funcs as accis | ||
import accim.funcs_for_besos.param_accis as bf | ||
|
||
## | ||
|
||
building = ef.get_building('TestModel_onlyGeometryForVRFsystem_2zones_CalcVent_V2310.idf') | ||
|
||
accis.addAccis( | ||
idf=building, | ||
ScriptType='vrf_mm', | ||
SupplyAirTempInputMethod='temperature difference', | ||
Output_keep_existing=False, | ||
Output_type='standard', | ||
Output_freqs=['hourly'], | ||
# EnergyPlus_version='9.4', | ||
TempCtrl='temperature', | ||
Output_gen_dataframe=True, | ||
) | ||
|
||
## | ||
|
||
# def modify_accis(building, value): | ||
# accis.modifyAccis( | ||
# idf=building, | ||
# ComfStand=1, | ||
# CAT=3, | ||
# ComfMod=3, | ||
# # SetpointAcc=1000, | ||
# HVACmode=2, | ||
# VentCtrl=0, | ||
# CoolSeasonStart='01/02', | ||
# CoolSeasonEnd='01/03', | ||
# VSToffset=value, | ||
# # MinOToffset=50, | ||
# # MaxWindSpeed=50 | ||
# ) | ||
# return | ||
|
||
## | ||
parameters_set = [ | ||
Parameter( | ||
name='VSToffset', | ||
selector=GenericSelector(set=bf.modify_VSToffset), | ||
value_descriptor=RangeParameter(min_val=0.1, max_val=0.9) | ||
), | ||
] | ||
|
||
## | ||
|
||
objectives = [ | ||
MeterReader("Electricity:Facility", name="Electricity Usage"), | ||
] | ||
|
||
evaluator = EvaluatorEP( | ||
problem=EPProblem( | ||
inputs=parameters_set, | ||
outputs=objectives, | ||
minimize_outputs=[ | ||
True | ||
], | ||
), | ||
building=building, | ||
) | ||
|
||
|
||
results1 = NSGAII(evaluator, evaluations=1, population_size=3) |