Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamSwayne committed Nov 21, 2023
1 parent 4a98e9c commit 0eb7f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linear_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def calculate(floors=1, xLength=1, yLength=1):
constraints.append(steelReinforcedColumns >= 0)

# create and solve problem
problem = cp.Problem(cp.Maximize(cost), constraints)
problem = cp.Problem(cp.Minimize(cost), constraints)
problem.solve(verbose = True)

logs.append("Parameters given: " + str(floors) + " floor, " + str(xLength) + " tile x length, " + str(yLength) + " tile y length.")
Expand Down

0 comments on commit 0eb7f30

Please sign in to comment.