🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

opvious

Package Overview
Dependencies
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opvious

Opvious SDK

beta
alpha
latest
Source
npmnpm
Version
0.12.1
Version published
Maintainers
1
Created
Source

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}]`);
  });

Keywords

opvious

FAQs

Package last updated on 18 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts