Skip to content

Commit

Permalink
Merge pull request #251 from Jinadelee/patch-1
Browse files Browse the repository at this point in the history
Update padds.py
  • Loading branch information
thouska authored Sep 1, 2020
2 parents 3dab429 + b5bcce0 commit 72f4eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spotpy/algorithms/padds.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def calculate_next_s_test(self, previous_x_curr, rep, rep_limit, r):

if dvn_count == 0: # no DVs selected at random, so select ONE
dec_var = np.int(np.ceil(amount_params * self.np_random.rand()))
new_value = self.dds_generator.neigh_value_mixed(previous_x_curr, r, dec_var - 1, self.min_bound[j],self.max_bound[j])
new_value = self.dds_generator.neigh_value_mixed(previous_x_curr, r, dec_var - 1, self.min_bound[dec_var - 1],self.max_bound[dec_var - 1])

new_x_curr[dec_var - 1] = new_value # change relevant decision variable value in s_test

Expand Down

0 comments on commit 72f4eb0

Please sign in to comment.