@zrho/rust-minilp
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

A minimal JavaScript binding to the Rust minilp library for solving linear programs.

Warning: The API is currently undocumented and will likely change.

Example

const minilp = require("@zrho/minilp-wasm");

console.log(minilp.solve({
  direction: "maximize",
  variables: [
    { coefficient: 1, minimum: 0, maximum: 10 },
    { coefficient: 2, minimum: 0, maximum: 10 },
  ],
  constraints: [
    { 
      expression: [
        { variable: 0, coefficient: 1 },
        { variable: 1, coefficient: 1 },
      ],
      comparison: "le",
      constant: 10,
    }
  ]
}));

Readme

Keywords

none

Package Sidebar

Install

npm i @zrho/rust-minilp

Weekly Downloads

0

Version

0.1.0

License

none

Unpacked Size

193 kB

Total Files

5

Last publish

Collaborators

  • zrho