package lp-glpk-js
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Interface to GLPK via glpk.js.
class type var = object ... end
JS type for variable
class type row_bound = object ... end
JS type for row (constraint) bound
class type col_bound = object ... end
JS type for column (variable) bound
class type objective = object ... end
JS type for objective
class type options = object ... end
JS type for solver options
class type cnstr = object ... end
JS type for constraints
class type prob = object ... end
JS type for problem
class type res = object ... end
JS type for result content
class type result = object ... end
JS type for optimization result
class type glpk = object ... end
main glpk.js interface object
val require_glpk : string -> glpk Js_of_ocaml.Js.t
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
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>