Skip to content

Commit

Permalink
looks like more parameters need to be exposed to pymoo
Browse files Browse the repository at this point in the history
  • Loading branch information
calbaker committed Jan 31, 2025
1 parent 0f1477e commit e695acc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 27 deletions.
40 changes: 20 additions & 20 deletions cal_and_val/thermal/cal_hev.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,26 +332,26 @@ def get_exp_pwr_hvac(df):
get_mod_soc,
get_exp_soc
),
# (
# get_mod_pwr_fuel,
# get_exp_pwr_fuel
# ),
# (
# get_mod_cab_temp,
# get_exp_cab_temp
# ),
# (
# get_mod_fc_temp,
# get_exp_fc_temp
# ),
# (
# get_mod_spd,
# get_exp_spd
# ),
# (
# get_mod_pwr_hvac,
# get_exp_pwr_hvac
# ),
(
get_mod_pwr_fuel,
get_exp_pwr_fuel
),
(
get_mod_cab_temp,
get_exp_cab_temp
),
(
get_mod_fc_temp,
get_exp_fc_temp
),
(
get_mod_spd,
get_exp_spd
),
(
get_mod_pwr_hvac,
get_exp_pwr_hvac
),
),
param_fns=(
new_em_eff_max,
Expand Down
7 changes: 0 additions & 7 deletions python/fastsim/pymoo_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,6 @@ def update_params(self, xs: List[Any]):
t1 = time.perf_counter()
if self.verbose:
print(f"Time to update params: {t1 - t0:.3g} s")
import pprint
pprint.pp(sim_drives)
return sim_drives

def get_errors(
Expand Down Expand Up @@ -255,13 +253,8 @@ def get_errors(
objectives[key].append(mod_sig)

t2 = time.perf_counter()
import pprint
print("\n")
pprint.pp(objectives)
print("\n")
if self.verbose:
print(f"Time to postprocess: {t2 - t1:.3g} s")
print(f'\n{objectives}\n')
if return_mods:
return objectives, solved_mods
else:
Expand Down

0 comments on commit e695acc

Please sign in to comment.