Code Monkey home page Code Monkey logo

Comments (5)

 avatar commented on June 20, 2024

And other addition, it looks like it is more of an issue when the constraints are large (35k+). When they're low (<=20k), then all works fine, and it's relatively quick.

I'm using master version btw.

from jslpsolver.

lvenerosy avatar lvenerosy commented on June 20, 2024

Hi, I am not sure I understand about this point :

Other times, if the constraints are a little different, it will solve it within 4 seconds; however, if I run again, it will go into an infinite loop (or so it appears).

Does the same model gives different runtime behaviours from one execution to another ? Since the solver is deterministic it would be really puzzling.

Concerning your JSON model I get this result :

in 5.775604776 s
11609 'iterations'
feasible? true
result? 114850
{ Motorcycles: 44, Cars: 63, Aircrafts: 52, Tanks: 35, Horses: 2 }

If you have a model that you think fell into an infinite loop I'd be glad to examine it.

from jslpsolver.

 avatar commented on June 20, 2024

Thanks for the reply!

This is the exact model that falls into the infinite loop. If I try to run it again, it will take > 5 mins, again will much longer. I'm doing this in Chrome, if that helps.

from jslpsolver.

lvenerosy avatar lvenerosy commented on June 20, 2024

I created a node server then I loaded the JSON and solved the model in an HTML file that I launched in Chrome :

solving: 6648.551ms
11609 "iterations"
feasible? true
result? 114850
Object {Motorcycles: 44, Cars: 63, Aircrafts: 52, Tanks: 35, Horses: 2}

Could you give me the files necessary to recreate your problem ?

from jslpsolver.

 avatar commented on June 20, 2024

It's odd, but I cannot reproduce the issue now. Perhaps there was a browser bug that it stumbled upon. Thanks for your responses! Amazing work too!

from jslpsolver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.