Skip to content

Commit

Permalink
Add commented fine-tuning parameters for mariPower
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPontius committed Mar 22, 2024
1 parent 9eafc40 commit 25efd1e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WeatherRoutingTool/ship/ship.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ def __init__(self, config):
self.hydro_model.WaveForcesFactor = config.FACTOR_WAVE_FORCES
self.hydro_model.CalmWaterFactor = config.FACTOR_CALM_WATER
self.use_depth_data = True
# Fine-tuning the following parameters might lead to a significant speedup of mariPower. However, they should
# be set carefully because the accuracy of the predictions might also be affected
# self.hydro_model.MaxIterations = 25 # mariPower default: 10
# self.hydro_model.Tolerance = 0.000001 # mariPower default: 0.0
# self.hydro_model.Relaxation = 0.7 # mariPower default: 0.3

def set_ship_property(self, variable, value):
print('Setting ship property ' + variable + ' to ' + str(value))
Expand Down

0 comments on commit 25efd1e

Please sign in to comment.