highs-js API reference
    Preparing search index...

    Type Alias Highs

    Highs: LegacyHighs & {
        constants: HighsConstants;
        errors: HighsErrorConstructors;
        infinity: number;
        intBits: number;
        intBytes: number;
        memoryBytes: number;
        raw: RawRuntimeApi;
        version: HighsVersion;
        createModel(source?: ModelData | EncodedModel): SymbolDisposable<Model>;
        withModel<Result>(
            operation: (model: SymbolDisposable<Model>) => PromiseLike<Result>,
        ): Promise<Result>;
        withModel<Result>(
            operation: (model: SymbolDisposable<Model>) => Result,
        ): Result;
        withModel<Result>(
            source: ModelData | EncodedModel,
            operation: (model: SymbolDisposable<Model>) => PromiseLike<Result>,
        ): Promise<Result>;
        withModel<Result>(
            source: ModelData | EncodedModel,
            operation: (model: SymbolDisposable<Model>) => Result,
        ): Result;
    }

    Loaded runtime combining the compatibility solver with persistent and raw APIs.

    Type Declaration

    • Readonlyconstants: HighsConstants

      Immutable numeric encodings accepted and returned by the API.

    • Readonlyerrors: HighsErrorConstructors

      Error classes used by throwing persistent wrappers.

    • Readonlyinfinity: number

      IEEE positive infinity returned by this build of HiGHS.

    • ReadonlyintBits: number

      Width of native HighsInt; indices must fit this signed width.

    • ReadonlyintBytes: number

      Native HighsInt width in bytes.

    • ReadonlymemoryBytes: number

      Current Wasm linear-memory capacity, not the amount of live allocation.

    • Readonlyraw: RawRuntimeApi

      Status-preserving APIs corresponding closely to the stable C API.

    • Readonlyversion: HighsVersion

      Immutable version metadata for the loaded Wasm build.

    • createModel: function
    • withModel: function