highs-js API reference
    Preparing search index...

    Function default

    • Loads and instantiates the Wasm runtime asynchronously; solver calls thereafter block synchronously.

      The loader fetches highs.wasm from the same location as the JavaScript module by default. Bundlers that cannot resolve the .wasm asset (or that rewrite asset URLs) will cause initialization to fail; in those cases pass InitOptions with locateFile, wasmBinary, or wasmModule to supply the binary explicitly. Browser applications should run non-trivial solves in a Web Worker.

      Parameters

      Returns Promise<Highs>