highs-js API reference
    Preparing search index...

    Type Alias ObjectiveSense

    ObjectiveSense: (1 | -1) & { "[___objectiveSenseBrand]": true }

    Objective sense: 1 (minimize) or -1 (maximize).

    The raw numeric literals are intentionally not assignable to this type. Use the named constants exposed at highs.constants.objectiveSense (minimize / maximize) so the intent is self-documenting and the minimize/maximize encoding cannot be silently swapped.

    Type Declaration

    • 1
    • -1
    • Readonly[___objectiveSenseBrand]: true

      Compile-time-only objective-sense brand; absent at runtime.