B

Bounded Decision Solver · Assignment

by Bounded Decision Solver

POSTBaseArbitrumPolygon

$0.005

per call · USD Coin on Base

Assignment solver — exact minimum-cost worker-to-task matching for resource allocation, with deterministic choices and a primal/dual optimality certificate.

Endpoint

POST https://decision-solver.use.x402atlas.com/assignment

2

Calls / 30d

1

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://decision-solver.use.x402atlas.com/assignment", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "costs": [
      [
        4,
        1,
        3
      ],
      [
        2,
        0,
        5
      ],
      [
        3,
        2,
        2
      ]
    ]
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://decision-solver.use.x402atlas.com/assignment" \
  -H "Content-Type: application/json" \
  -d '{"costs":[[4,1,3],[2,0,5],[3,2,2]]}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "algorithm_version": "hungarian-min-v1",
  "certificate": {
    "column_potentials": [
      0,
      -2,
      0
    ],
    "padded_assignment": [
      1,
      0,
      2
    ],
    "row_potentials": [
      3,
      2,
      2
    ]
  },
  "objective": "minimum_total_cost",
  "objective_value": 5,
  "operation": "assignment",
  "optimal": true,
  "solution": {
    "assignments": [
      {
        "cost": 1,
        "task_index": 1,
        "worker_index": 0
      },
      {
        "cost": 2,
        "task_index": 0,
        "worker_index": 1
      },
      {
        "cost": 2,
        "task_index": 2,
        "worker_index": 2
      }
    ]
  },
  "warnings": [],
  "work_units": 24
}

Payment details

Pay to0x8c128f1ee62bb5e47867cfbae2ad89be325df1b2
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Arbitrum, Polygon
Schemesexact

Is this your API?

Pin it to the top of Search & Web and the homepage with a featured placement.

Get featured →

More from Bounded Decision Solver & similar services