opvious

0.12.1 • Public • Published

Opvious SDK NPM version

npm i opvious

This package exposes a typesafe SDK for the Opvious API.

Quickstart

import {OpviousClient} from 'opvious';

// Generates a client using the access token stored in the `OPVIOUS_TOKEN`
// environment variable, if any. You can also pass one explicitly via the
// `token` option.
const client = OpviousClient.create();

// Solves an optimization problem
client.runSolve({/* Input data */})
  .on('solving', (progress) => {
    console.log(`Solving... [gap=${progress.relativeGap}]`);
  })
  .on('solved', (outcome) => {
    console.log(`${outcome.status} solve. [value=${outcome.objectiveValue}]`);
  });

Readme

Keywords

Package Sidebar

Install

npm i opvious

Weekly Downloads

0

Version

0.12.1

License

Apache-2.0

Unpacked Size

55.2 kB

Total Files

19

Last publish

Collaborators

  • opvious-eng