Skip to content

Commit

Permalink
np
Browse files Browse the repository at this point in the history
  • Loading branch information
Cole Blanchard authored and Cole Blanchard committed Oct 1, 2024
1 parent 1807a97 commit ba71a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/models/operations/optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def gen_risk_bound(self):

def objfun(x, initial_guess, objective_function_option, relative_importance):
total_sum = 0
sum_of_all_weights = sum(relative_importance)
sum_of_all_weights = np.sum(relative_importance)

for i in range(len(x)):
weight = relative_importance[i] / sum_of_all_weights
Expand Down

0 comments on commit ba71a34

Please sign in to comment.