rectangle-packing-solver icon indicating copy to clipboard operation
rectangle-packing-solver copied to clipboard

Same Value Of 2 Rectangle = No Results

Open arncode90 opened this issue 3 years ago • 2 comments

Im getting nothing from the same rectangles = (4, 4), (4, 4)

But its working if im using = (4, 3), (4, 4)

import rectangle_packing_solver as rps

# Define a problem
problem = rps.Problem(rectangles=[
    (4, 3),
    (4, 4),
])

print("\n=== Solving without width/height constraints ===")
solution = rps.Solver().solve(problem=problem, show_progress=True)
print("solution:", solution)

arncode90 avatar Mar 11 '22 06:03 arncode90

I found out that if using the same W/L of rectangle, need to set the solve(width_limit=VALUE, height_limit=VALUE)

arncode90 avatar Mar 11 '22 07:03 arncode90

@catherinezera88 I'll also look into this issue. Thank you for finding it!

kotarot avatar Mar 12 '22 12:03 kotarot