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

gurobi license expired #7

Open
kvaDrug opened this issue Dec 17, 2024 · 1 comment
Open

gurobi license expired #7

kvaDrug opened this issue Dec 17, 2024 · 1 comment

Comments

@kvaDrug
Copy link

kvaDrug commented Dec 17, 2024

I wanted to organize my shelves and order some boxes, I asked chat GPT about fitting algorithm, expecting a simple answer. To my surprise it said that the problem is NP-Hard. After reading wiki article, I started looking for existing optimal solutions, that brought me here.

Installing this project on Mac, wasn't simple, since python version isn't specified here and some dependencies doesn't support M2 Chip.

This setup worked for me:

python3.10

numpy==1.26.4
pandas==1.5.3

(other requirements stay the same).

Finally when I run BinPackingBranchAndCutSolver I got this error:
gurobipy.GurobiError: License expired 2023-10-25

What are the next steps? Should I buy a license to myself, or maybe replace gurobi with smth less efficient yet free?

@ktnr
Copy link
Owner

ktnr commented Dec 17, 2024

Thanks for posting a M2-compatible configuration.

Gurobi offers free academic licenses if you just want to play around a bit. If you want to use it commercially, you could switch to an open-source solver. It just needs to provide the ability for callbacks to implement the branch-and-cut algorithm.

You need not use the B&C algorithm that uses Gurobi as a MIP solver. Instead, you could also just use the CP model as a standalone solver for the BPP or OPP. The CP model uses OR-tools, which is open-source and free.

Alternatively, there are plenty solver-free packing libraries, e.g., the ones from https://github.com/fontanf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants