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

Adding optional variable to the model solver #18

Open
Tyler0Akers opened this issue Oct 26, 2022 · 1 comment
Open

Adding optional variable to the model solver #18

Tyler0Akers opened this issue Oct 26, 2022 · 1 comment

Comments

@Tyler0Akers
Copy link

Hello Emad,

Thank you for putting this together - and introducing me to Serge Kruk's book, it's been extremely helpful on a current project.

One question I'm exploring, is how to add optional variable inputs (optional constraints) to the solver, i.e., a second input list of Size(s), setting these to optional, and letting the solver increase the quantity until a certain condition is met?

For example, add rolls of a size to minimize waste up to a set maximum # of rolls? I have a rough idea, but wondering if this has already been thought out.

@emadehsan
Copy link
Owner

@Tyler0Akers sorry for late response. I did do experiements and tried to extend it to 2D but could not come up with a perfect plan for 2D CSP (in my case).

I would really recommend the ortools guide, it is more explanatory than I expected when I was learning ortools. Asking your question (ideally with some code) on StackOverflow sometimes attracts the author of ortools to answer

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