Skip to content

Commit

Permalink
fix response formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeisel committed Jan 15, 2024
1 parent 6960c7c commit 76cbd8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/objective_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def generate_knapsack_objective_response(input: KnapsackObjectiveEvaluationReque
print("Result bit string: ", result)
costs = {result: objective_value}
print("Costs: ", costs)
return ObjectiveResponse(objective_value, costs, None)
return ObjectiveResponse(objective_value, [costs], None)


def getObjectiveFunction(objFun, costFun, **kwargs):
Expand Down

0 comments on commit 76cbd8d

Please sign in to comment.