help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] Node.js native module


From: Heinrich Schuchardt
Subject: Re: [Help-glpk] Node.js native module
Date: Fri, 29 May 2015 23:07:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0

I have created a page for the Node.js module in the GLPK WikiBook:
https://en.wikibooks.org/wiki/GLPK/NodeJS

Please, add what is missing.

Best regards

Heinrich Schuchardt

On 27.05.2015 19:35, Henri Gourvest wrote:
> Hi,
> 
> This is a native module for GLPK.
> You now can run GLPK on server side, or just make scripts.
> Working on Windows, Linux and Mac.
> It is also a good opportunity to create a crossplatform IDE using
> node-webkit.
> 
> https://github.com/hgourvest/node-glpk
> 
> *Install*
> 
> npm install glpk
> 
> *Example*
> 
> var glp = require("glpk");
> var prob = new glp.Problem();
> prob.readLp("todd.lpt");
> prob.scale(glp.SF_AUTO);
> prob.simplex({presolve: glp.ON});
> if (prob.getNumInt() > 0){
>   function callback(tree){
>     if (tree.reason() == glp.IBINGO){
>       // ...
>     }
>   }
>   prob.intopt({cbFunc: callback});
> }
> prob.delete();
> 
> 
> _______________________________________________
> Help-glpk mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-glpk
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]