package lp-glpk-js
LP and MIP modeling in OCaml (glpk.js interface)
Install
Dune Dependency
Authors
Maintainers
Sources
0.5.0.tar.gz
md5=5e9ec847f25fb939b3c68ae99244cfac
sha512=336c007cc2a26eebbe0027ed43a853518182589e6fa56b127aee33e268cfdc0d147f0bf0280df80bb172aa3a672349f59adf1f5675d4f8f5dfdcfa427558dd34
doc/lp-glpk-js/Lp_glpk_js/index.html
Module Lp_glpk_js
Source
Interface 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();
Source
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)"
>