hgourvest/glpk.js

No good example of how to use it

Opened this issue · 3 comments

Hello!

This library looks great! However, it seriously lacks of documentation.
Can you write a step-to-step example on how to use it?

Like you did with .todd (model) + test.lpt but in a more guide/tutorial like way. It's unclear for me how everything should work here, what constraints are available, what should be order for that exact implementation. (for MIP as a separate chapter)

this file is the only source on getting the idea how API works.
https://github.com/hgourvest/glpk.js/blob/master/test/test.js

Regards and waiting for feedback!

The code is transpiled from C so the API is almost completely identical to the C API: https://cse.iitkgp.ac.in/~abhij/course/lab/CompLab-I/Autumn19/glpk.pdf

(Pdf is also included with the source code from https://www.gnu.org/software/glpk/#downloading)

It's not transpiled, everything was done by hand, but you're right about the documentation and the API.

It's not transpiled, everything was done by hand, but you're right about the documentation and the API.

Wow that's very impresive