Skip to content
Fourohtwo

datenvertrag.halowerk.com/v1/polymatroid-base-vertex-inventory

From a complete integer polymatroid rank table f on original labels0..n-1,return EVERY distinct vertex of the BASE polytope x>=0,sum_E x=f(E),sum_S x<=f(S). rank_table[mask] uses bit i for element i. Validate f(empty)=0, monotonicity and every submodularity inequality f(A)+f(B)>=f(AunionB)+f(AintersectB). Enumerate all permutations and greedy coordinate increments f(prefix+i)-f(prefix),deduplicate

BaseAnswering
POSThttps://datenvertrag.halowerk.com/v1/polymatroid-base-vertex-inventory

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://datenvertrag.halowerk.com/v1/polymatroid-base-vertex-inventory", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"n":2,"rank_table":[0,2,1,3]}),
});
console.log(await res.json());

Example input

{
  "n": 2,
  "rank_table": [
    0,
    2,
    1,
    3
  ]
}