Private
constructorWhether the client was created with an API token.
Base API endpoint.
Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
variables: Exact<{ Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
variables: Exact<{ Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
variables: Exact<{ Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
variables: Exact<{ Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
variables: Exact<{ Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
variables: Exact<{ Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
variables: Exact<{ Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Readonly
apiBase API endpoint.
Readonly
authenticatedWhether the client was created with an API token.
Private
Readonly
graphqlOptional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
variables: Exact<{ Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
variables: Exact<{ Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
variables: Exact<{ Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
variables: Exact<{ Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
variables: Exact<{ Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
variables: Exact<{ Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
variables: Exact<{ Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Optional
options: RequestOptions<((url, init?) => Promise<Response>)>Private
Readonly
sdkOptional
init: RequestInitPrivate
Readonly
telemetryFetches an attempt's inputs from its UUID.
Fetches an attempt's outputs from its UUID. This method will returned
undefined
if the attempt was not feasible.
Returns an optimization model's underlying instructions.
Readonly
problem: { Readonly
formulation: { Readonly
inputs: { Optional
Readonly
dimensions?: readonly { Readonly
parameters: readonly { Optional
Readonly
options?: { Optional
Readonly
absoluteAbsolute gap threshold at which to consider a solution optimal
Optional
Readonly
freePositive magnitude used to decide whether a bound is free. This value should typically be slightly smaller to the infinity value threshold to allow for small offsets to infinite values. The default is 1e12.
Optional
Readonly
infinityPositive magnitude used to cap all input values. It is illegal for the reified problem to include coefficients higher or equal to this value so the input needs to be such that they are masked out during reification. The default is 1e13.
Optional
Readonly
relativeRelative gap threshold at which to consider a solution optimal
Optional
Readonly
timeoutUpper bound on solving time. Note that the overall attempt time may be greater due to processing outside of the solve itself.
Optional
Readonly
zeroPositive magnitude below which values will be assumed equal to zero. This is also used on solution results, causing values to be omitted from the solution if their dual value is also absent. It is finally used as threshold for rounding integral variables to the nearest integer. The default is 1e-6.
Optional
Readonly
strategy?: { Optional
Readonly
epsilonReadonly
isReadonly
target: { Readonly
weights: readonly { Optional
Readonly
transformations?: readonly ({ Paginates available attempts.
Paginates available specification tags for a formulation.
Paginates available formulations.
Parses and validates a formulation's sources.
Optional
Readonly
includeReadonly
sources: readonly string[]Starts a new attempt. The attempt will run asynchronously; use the returned
UUID to wait for its outcome (via waitForOutcome
), fetch its inputs and
outputs, etc.
Readonly
problem: { Readonly
formulation: { Readonly
inputs: { Optional
Readonly
dimensions?: readonly { Readonly
parameters: readonly { Optional
Readonly
options?: { Optional
Readonly
absoluteAbsolute gap threshold at which to consider a solution optimal
Optional
Readonly
freePositive magnitude used to decide whether a bound is free. This value should typically be slightly smaller to the infinity value threshold to allow for small offsets to infinite values. The default is 1e12.
Optional
Readonly
infinityPositive magnitude used to cap all input values. It is illegal for the reified problem to include coefficients higher or equal to this value so the input needs to be such that they are masked out during reification. The default is 1e13.
Optional
Readonly
relativeRelative gap threshold at which to consider a solution optimal
Optional
Readonly
timeoutUpper bound on solving time. Note that the overall attempt time may be greater due to processing outside of the solve itself.
Optional
Readonly
zeroPositive magnitude below which values will be assumed equal to zero. This is also used on solution results, causing values to be omitted from the solution if their dual value is also absent. It is finally used as threshold for rounding integral variables to the nearest integer. The default is 1e-6.
Optional
Readonly
strategy?: { Optional
Readonly
epsilonReadonly
isReadonly
target: { Readonly
weights: readonly { Optional
Readonly
transformations?: readonly ({ Solves an optimization model.
Readonly
problem: { Readonly
formulation: { Readonly
inputs: { Optional
Readonly
dimensions?: readonly { Readonly
parameters: readonly { Optional
Readonly
options?: { Optional
Readonly
absoluteAbsolute gap threshold at which to consider a solution optimal
Optional
Readonly
freePositive magnitude used to decide whether a bound is free. This value should typically be slightly smaller to the infinity value threshold to allow for small offsets to infinite values. The default is 1e12.
Optional
Readonly
infinityPositive magnitude used to cap all input values. It is illegal for the reified problem to include coefficients higher or equal to this value so the input needs to be such that they are masked out during reification. The default is 1e13.
Optional
Readonly
relativeRelative gap threshold at which to consider a solution optimal
Optional
Readonly
timeoutUpper bound on solving time. Note that the overall attempt time may be greater due to processing outside of the solve itself.
Optional
Readonly
zeroPositive magnitude below which values will be assumed equal to zero. This is also used on solution results, causing values to be omitted from the solution if their dual value is also absent. It is finally used as threshold for rounding integral variables to the nearest integer. The default is 1e-6.
Optional
Readonly
strategy?: { Optional
Readonly
epsilonReadonly
isReadonly
target: { Readonly
weights: readonly { Optional
Readonly
transformations?: readonly ({ Tracks a queued solve until its outcome is decided, emitting it as
'outcome'
. 'notification'
events will periodically be emitted
containing the attempt's latest progress. If the attempt faile , the event
emitter will emit an error.
Convenience method which resolves when the attempt is solved. Consider
using trackSolve
to get access to progress notifications and other
statuses.
Static
createCreates a new client.
Optional
opts: OpviousClientOptions
Opvious API client.