interface QueuedSolveListeners {
    failure(data): void;
    notification(data): void;
    outcome(data): void;
}

Methods

  • The solve failed

    Parameters

    • data: {
          error: {
              code?: string;
              message: string;
              tags?: {
                  [key: string]: unknown;
              };
          };
          status: "UNKNOWN" | "ABORTED" | "INTERNAL" | "UNIMPLEMENTED" | "UNAVAILABLE" | "DEADLINE_EXCEEDED" | "INVALID_ARGUMENT" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "ALREADY_EXISTS" | "FAILED_PRECONDITION" | "RESOURCE_EXHAUSTED" | "CANCELLED";
      }
      • Readonly error: {
            code?: string;
            message: string;
            tags?: {
                [key: string]: unknown;
            };
        }
        • Optional Readonly code?: string
        • Readonly message: string
        • Optional Readonly tags?: {
              [key: string]: unknown;
          }
          • [key: string]: unknown
      • Readonly status: "UNKNOWN" | "ABORTED" | "INTERNAL" | "UNIMPLEMENTED" | "UNAVAILABLE" | "DEADLINE_EXCEEDED" | "INVALID_ARGUMENT" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "ALREADY_EXISTS" | "FAILED_PRECONDITION" | "RESOURCE_EXHAUSTED" | "CANCELLED"

    Returns void

  • The solve is still pending, with current status as reported in the argument notification.

    Parameters

    • data: FullSolveNotificationFragment

    Returns void

  • The solve completed with the given outcome. Once this event is emitted, no more events will be emitted on this tracker instance.

    Parameters

    • data: {
          objectiveValue?: number;
          relativeGap?: number | "Infinity" | "-Infinity";
          status: "UNKNOWN" | "INFEASIBLE" | "UNBOUNDED" | "FEASIBLE" | "OPTIMAL" | "ABORTED";
          [key: string]: unknown;
      }
      • [key: string]: unknown
      • Optional Readonly objectiveValue?: number
      • Optional Readonly relativeGap?: number | "Infinity" | "-Infinity"
      • Readonly status: "UNKNOWN" | "INFEASIBLE" | "UNBOUNDED" | "FEASIBLE" | "OPTIMAL" | "ABORTED"

    Returns void