OptionalprintReceives normal native output synchronously; output is suppressed when omitted.
OptionalprintReceives native diagnostics synchronously; diagnostics are suppressed when omitted.
OptionalwasmPreloaded Wasm bytes; the loader does not take ownership of the supplied
buffer. Useful with bundlers that can import the binary as a URL or
Uint8Array but cannot serve it at a fetchable URL.
OptionalwasmPrecompiled module, avoiding compilation of wasmBinary or the located
file. Prefer this in long-lived processes that create many solver
instances, since each loadHighs() call otherwise recompiles the binary.
OptionallocateReturns the URL or environment path for an Emscripten asset, notably
highs.wasm. Override this when a bundler cannot resolve the Wasm asset
alongside the loader, or when the binary is served from a different path
(a CDN, a versioned assets directory, a data: URL, etc.).
Loader configuration. Inputs are read during asynchronous module initialization.
The Wasm binary (
highs.wasm) is normally fetched from the same location as the JavaScript loader. Bundlers that do not recognize the.wasmasset, or that rewriteimport/fetchURLs, can break this lookup; in those cases uselocateFileto return the correct URL, or supply the binary directly viawasmBinaryorwasmModule.