Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Lp_glpk_js
SourceInterface to GLPK via glpk.js.
require 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) result
Solve 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
.