Closed danvanorden closed 5 years ago
@bchevalier @lvenerosy any idea what's happening here? I'm get the same results.
Thanks, -JWW
Checking it today.
This is a problem with the MIR cuts. Inside src/Model.js in the constructor Model, you can change this.useMIRCuts = true;
to false.
I am not sure of when I will be able to patch it though.
Thanks for your insight and engagement on the issue. I'm using @lvenerosy's suggested workaround for now.
Sorry for the long delay. I removed some code, and I think it should work now like you're expecting. Can you re-test and if satisfied; close this? Thanks!
I'm think I got this cleaned up and am going to close. Feel free to re-open if I missed something.
The following model generates an unexpected result:
The result I get is:
What I'm trying to do is find the minimum number of panel lengths required to cover at least the minimum overall required length (the length of a building) while minimizing final cost of the panels. I believe this is a variation of of the cutting stock problem. In this case, the minimum required length is 25. I would expect the solver to return a result of "26": 1 rather than "36": 1. The cost in that case would be 90 rather than 120.
I'm assuming I constructed the model incorrectly somehow. Is it possible to achieve my intended result with a modification to the model?