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

Stack overflow on adding objective function #42

Closed
PierreHenry63 opened this issue Dec 8, 2019 · 4 comments
Closed

Stack overflow on adding objective function #42

PierreHenry63 opened this issue Dec 8, 2019 · 4 comments

Comments

@PierreHenry63
Copy link

Hi,

Many thanks for the great work on the crate! I am trying to use lp-modeler for a discrete optimisation course, and I am looking at a warehouse location problem. For small problem instances I have been able to successfully use lp-modeler with Cbc.

However for larger instances, I am getting a stack overflow when trying to set the objective function. In this case I have 1275 variables (25 facilities and 50 customers, perhaps the model itself could be improved too I'm not sure...).

Is it possible to use lp-modeler for this number of variables, and if so how?

Many thanks for your help,
Pierre Henry

@zappolowski
Copy link
Contributor

You could try to increase the stack limit as described in #37.

@jcavat
Copy link
Collaborator

jcavat commented Dec 10, 2019

Yes, it should works. I will update the AST to have something more flattened soon.

@PierreHenry63
Copy link
Author

thanks a lot! apologies for not having seen the previous answer

@jcavat
Copy link
Collaborator

jcavat commented Feb 11, 2021

It should be fixed by #48 and #68

@jcavat jcavat closed this as completed Feb 11, 2021
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

3 participants