package lp-glpk-js

  1. Overview
  2. Docs
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_jsSource

Interface to GLPK via glpk.js.

Sourceclass type var = object ... end

JS type for variable

Sourceclass type row_bound = object ... end

JS type for row (constraint) bound

Sourceclass type col_bound = object ... end

JS type for column (variable) bound

Sourceclass type objective = object ... end

JS type for objective

Sourceclass type options = object ... end

JS type for solver options

Sourceclass type cnstr = object ... end

JS type for constraints

Sourceclass type prob = object ... end

JS type for problem

Sourceclass type res = object ... end

JS type for result content

Sourceclass type result = object ... end

JS type for optimization result

Sourceclass type glpk = object ... end

main glpk.js interface object

Sourceval 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();
Sourceval 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.

OCaml

Innovation. Community. Security.