Skip to content

Commit

Permalink
Modified example/wedding.py to maximize happiness
Browse files Browse the repository at this point in the history
  • Loading branch information
aralsea committed Nov 2, 2024
1 parent c06fe08 commit bb0bcf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/wedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def happiness(table):
"table", possible_tables, lowBound=0, upBound=1, cat=pulp.LpInteger
)

seating_model = pulp.LpProblem("Wedding Seating Model", pulp.LpMinimize)
seating_model = pulp.LpProblem("Wedding Seating Model", pulp.LpMaximize)

seating_model += pulp.lpSum([happiness(table) * x[table] for table in possible_tables])

Expand Down

0 comments on commit bb0bcf7

Please sign in to comment.