Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Same Value Of 2 Rectangle = No Results #35

Open
arncode90 opened this issue Mar 11, 2022 · 2 comments
Open

Same Value Of 2 Rectangle = No Results #35

arncode90 opened this issue Mar 11, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@arncode90
Copy link

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
Copy link
Author

arncode90 commented Mar 11, 2022

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

@kotarot
Copy link
Owner

kotarot commented Mar 12, 2022

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

@kotarot kotarot self-assigned this Mar 12, 2022
@kotarot kotarot added the bug Something isn't working label Mar 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants