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.
Loads and instantiates the Wasm runtime asynchronously; solver calls thereafter block synchronously.
The loader fetches
highs.wasmfrom the same location as the JavaScript module by default. Bundlers that cannot resolve the.wasmasset (or that rewrite asset URLs) will cause initialization to fail; in those cases pass InitOptions withlocateFile,wasmBinary, orwasmModuleto supply the binary explicitly. Browser applications should run non-trivial solves in a Web Worker.