srikumarks / FD.js

Finite domain constraint programming library in JS
62 stars 6 forks source link

FD.js and NoFlo #4

Open bergie opened 10 years ago

bergie commented 10 years ago

This isn't really a bug report, more of a heads-up :-)

With component #2 and Node.js #3 packaging, it was quite easy to wrap FD.js into a set of NoFlo components: https://github.com/noflo/noflo-finitedomain

While we still need to expose a bit more of the APIs as components, this already allows visual experimentation with finite domain constrain solving:

screenshot 2014-03-01 at 18 46 29

srikumarks commented 10 years ago

(This is a personal opinion and I haven't used NoFlo yet.)

I'm unsure what advantage such a graphical visualization of the constraint script provides over plain code. On the other hand, checkout the Search Tree Visualization project which helps you explore the search space visually ... which imho is way more useful to explore a problem.

bergie commented 10 years ago

@srikumarks yeah, I agree that a flow graph isn't the optimal way to visualize solver state (though you could reuse the graph format to show the search tree). However, the good thing here is making FD.js (and constraint solving in general) part of the larger Flowhub toolset.