# GOFIBER Linear Program Solver

> GOFIBER Linear Program Solver is a paid API for AI agents from gofiber.hr, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-22).

Solves linear programming (LP) and mixed-integer programming (MIP) optimization problems, returning the optimal variable values and objective value.

## Facts

- Endpoint: POST https://gofiber.hr/x402/math/linear-program?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gofiber-linear-program-solver-77421ac7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MQ-LwIW54uscVR3-vorhv

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability gofiber-linear-program-solver-77421ac7 -d '<json body>'
```

Example prompt: Solve this linear program for me: maximize 3x + 2y, subject to x + y ≤ 4 and x + 3y ≤ 6, with both variables ≥ 0.

## When to prefer this

Choose this endpoint when you need to solve continuous linear programs or mixed-integer linear programs with up to 500 variables and 500 constraints, and want an independently verified result with full audit trail (SHA-256 hashes, solver metadata). Useful for production optimization, resource allocation, scheduling, and any scenario requiring a provably correct LP/MIP solution via a pay-per-use micropayment API.

## Known failure modes

- Infeasible problem: constraints contradict each other, solver returns INFEASIBLE status
- Unbounded problem: objective can grow without limit, returns UNBOUNDED status
- Dimension mismatch: coefficients array length doesn't match number of variables
- Too many variables or constraints: exceeds 500-item limits
- Invalid constraint operator: only <=, >=, == are supported
- Malformed bounds array: bounds must be pairs of [lower, upper] or null for unbounded
- Payment failure: x402 micropayment of $0.05 USDC not completed

## How this service works

GOFIBER d.o.o. iz Petrinje izvodi elektroinstalacije, strukturno mrežno kabliranje, videonadzor i WAGO PLC automatizaciju u Sisačko-moslavačkoj županiji i šire. Brza ponuda.

## Output

Returns a job result containing: optimal variable values array (x), objective value, solver status (e.g. OPTIMAL), number of variables, optimization sense, execution time in milliseconds, a verification report from an independent solver (scipy HiGHS), input and result SHA-256 hashes, tool version metadata, and constraint violation checks. The result is independently verified for correctness.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "sense": {
   "enum": [
    "minimize",
    "maximize"
   ],
   "type": "string",
   "title": "Sense",
   "default": "maximize",
   "example": "maximize",
   "examples": [
    "maximize"
   ]
  },
  "bounds": {
   "anyOf": [
    {
     "type": "array",
     "items": {
      "type": "array",
      "items": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"
        }
       ]
      }
     },
     "maxItems": 500
    },
    {
     "type": "null"
    }
   ],
   "title": "Bounds",
   "default": [
    [
     0,
     null
    ],
    [
     0,
     null
    ]
   ],
   "example": [
    [
     0,
     null
    ],
    [
     0,
     null
    ]
   ],
   "examples": [
    [
     [
      0,
      null
     ],
     [
      0,
      null
     ]
    ]
   ]
  },
  "objective": {
   "type": "array",
   "items": {
    "type": "number",
    "default": 3,
    "example": 3,
    "examples": [
     3
    ]
   },
   "title": "Objective",
   "default": [
    3,
    2
   ],
   "example": [
    3,
    2
   ],
   "examples": [
    [
     3,
     2
    ]
   ],
   "maxItems": 500,
   "minItems": 1
  },
  "constraints": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "LinearConstraint",
    "default": {
     "op": "<=",
     "rhs": 4,
     "coefficients": [
      1,
      1
     ]
    },
    "example": {
     "op": "<=",
     "rhs": 4,
     "coefficients": [
      1,
      1
     ]
    },
    "examples": [
     {
      "op": "<=",
      "rhs": 4,
      "coefficients": [
       1,
       1
      ]
     }
    ],
    "required": [
     "coefficients",
     "rhs"
    ],
    "properties": {
     "op": {
      "enum": [
       "<=",
       ">=",
       "=="
      ],
      "type": "string",
      "title": "Op",
      "default": "<=",
      "example": "<=",
      "examples": [
       "<="
      ]
     },
     "rhs": {
      "type": "number",
      "title": "Rhs",
      "default": 4,
      "example": 4,
      "examples": [
       4
      ]
     },
     "coefficients": {
      "type": "array",
      "items": {
       "type": "number",
       "default": 1,
       "example": 1,
       "examples": [
        1
       ]
      },
      "title": "Coefficients",
      "default": [
       1,
       1
      ],
      "example": [
       1,
       1
      ],
      "examples": [
       [
        1,
        1
       ]
      ],
      "maxItems": 500,
      "minItems": 1
     }
    },
    "additionalPro
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "job_id": "3f2a9c8e7b6d5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d9c8b7a6f5e4d3c2b1a09",
  "result": {
   "tool": "linear_optimizer",
   "result": {
    "x": [
     4,
     0
    ],
    "kind": "LP",
    "status": "OPTIMAL",
    "objective": 12,
    "variables": 2,
    "objective_sense": "maximize"
   },
   "status": "ok",
   "rendered": null,
   "verified": true,
   "warnings": [],
   "request_id": "27c18c6b0a714152b16575b4e3c85b43",
   "execution_ms": 24.925,
   "input_sha256": "106821473b3096dbb61e159249da4fe206f158e8290552008d21136b646eaf30",
   "tool_version": {
    "tool": "linear_optimizer",
    "digest": "386013b1aa45ec65149534a3818dd74799a673216db34a43293aa4ee6880116b",
    "params": {
     "kind": "LP",
     "sense": "maximize",
     "tolerance": 0.000001,
     "variables": 2,
     "node_limit": 10000,
     "constraints": 2,
     "max_iterations": 2000,
     "integrality_tolerance": 0.000001
    },
    "environment": {
     "blas": "scipy-openblas",
     "python": "3.12.13",
     "system": "Linux",
     "machine": "x86_64",
     "libraries": {
      "numpy": "2.2.1",
      "scipy": "1.15.0",
      "sympy": "1.14.0",
      "ortools": "9.11.4210",
      "networkx": "3.4.2"
     },
     "blas_version": "0.3.28",
     "implementation": "CPython"
    },
    "tool_impl_version": "1.0.0"
   },
   "verification": {
    "solver": "scipy.linprog/highs",
    "message": "Optimization terminated successfully. (HiGHS Status 7: Optimal)",
    "tolerance": 0.000001,
    "comparison": "numerical_equivalence",
    "iterations": 2,
    "claim_scope": "independent_feasibility_and_objective_check",
    "bounds_valid": true,
    "constraint_count": 2,
    "integrality_valid": true,
    "solver_status_code": 0,
    "max_bounds_violation": 0,
    "objective_recomputed": -12,
    "integrality_tolerance": 0.000001,
    "max_integrality_error": 0,
    "objective_discrepancy": 0,
    "max_constraint_violation": 0
   },
   "result_sha256": "d52eccf35cd9e4ed60b4ed8a1da0a08421c5bb612118b5a63d203c31a85591e8",
   "schema_version": 1,
   "non_finite_fields": [],
   "non_finite_detected": false
  },
  "status": "FULFILLED",
  "result_url": "https://gofiber.hr/x402/jobs/3f2a9c8e7b6d5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d9c8b7a6f5e4d3c2b1a09/result",
  "status_url": "https://gofiber.hr/x402/jobs/3f2a9c8e7b6d5a4f3e2d1c0b9a8f7e6d5c4b3a2f1e0d9c8b7a6f5e4d3c2b1a09"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gofiber-linear-program-solver-77421ac7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gofiber.hr](https://www.zero.xyz/host/gofiber.hr/llms.txt)
