|
|
|
@ -84,7 +84,7 @@ async def get_all_budget_constrains(
|
|
|
|
for item in result:
|
|
|
|
for item in result:
|
|
|
|
cost = item["total_cost"] or 1.0
|
|
|
|
cost = item["total_cost"] or 1.0
|
|
|
|
efficiency = item["contribution_norm"] / cost
|
|
|
|
efficiency = item["contribution_norm"] / cost
|
|
|
|
item["priority_score"] = 0.7 * item["contribution_norm"] + 0.3 * efficiency
|
|
|
|
item["priority_score"] = item["contribution_norm"]
|
|
|
|
|
|
|
|
|
|
|
|
# Choose method
|
|
|
|
# Choose method
|
|
|
|
if use_optimal:
|
|
|
|
if use_optimal:
|
|
|
|
|