Lp_glpk_jsInterface to GLPK via glpk.js.
class type var = object ... endJS type for variable
class type row_bound = object ... endJS type for row (constraint) bound
class type col_bound = object ... endJS type for column (variable) bound
class type objective = object ... endJS type for objective
class type options = object ... endJS type for solver options
class type cnstr = object ... endJS type for constraints
class type prob = object ... endJS type for problem
class type res = object ... endJS type for result content
class type result = object ... endJS type for optimization result
class type glpk = object ... endmain glpk.js interface object
val require_glpk : string -> glpk Js_of_ocaml.Js.trequire and instantiate glpk.js interface given by a string identifier. let glpk = require_glpk "glpk.js" is roughly equivalent to following JS.
var GLPK = require("glpk.js");
var glpk = GLPK();val solve :
?term_output:bool ->
glpk Js_of_ocaml.Js.t ->
Lp.Problem.t ->
(float * float Lp.PMap.t, string) Stdlib.resultSolve the problem using GLPK via glpk.js. GLPK can solve only linear problems (LP or MILP). glpk.js interface object (glpk Js.t) must be given, that can be built with require_glpk.