{
  "capability_id": "math.numerical.optimize_1d",
  "tool_id": "one-dimensional-optimization",
  "engine": "one-dimensional-optimization",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-19T02:14:29.321Z",
  "engine_build": "2026-09-19",
  "test_count": 11,
  "passed": 11,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 3,
      "passed": 3
    },
    "boundary": {
      "total": 2,
      "passed": 2
    },
    "property": {
      "total": 6,
      "passed": 6
    }
  },
  "engine_tested": true,
  "expert_reviewed": false,
  "internally_reviewed": false,
  "review_kind": null,
  "source_checked": true,
  "reviewed_by": null,
  "reviewer_role": null,
  "last_reviewed": null,
  "expert_review": {
    "status": "optional_not_performed",
    "reviewer": null,
    "scope": [
      "formula",
      "input semantics",
      "assumptions",
      "limitations",
      "sources",
      "tests"
    ],
    "note": "Domain expert review is optional under CVP (CVP-EXP-01). Absence does not block CVP Verified. See Review policy for supplemental domain assurance."
  },
  "internal_review": {
    "status": "not_applicable",
    "reviewer": null
  },
  "page": "https://www.calculatorx.com/calc/math/one-dimensional-optimization",
  "api": "https://www.calculatorx.com/api/v1/calc/one-dimensional-optimization",
  "schema_input": "https://www.calculatorx.com/schemas/math.numerical.optimize_1d.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/math.numerical.optimize_1d.output.json",
  "assumptions": [
    "Minimize only; f treated as unimodal on [a, b]",
    "Not multivariate and not CAS",
    "Polynomial degree ≤ 8"
  ],
  "limitations": [
    "Not multivariate / Nelder–Mead / gradient descent",
    "Not maximization (min only)",
    "a ≥ b → INVALID_INPUT",
    "Polynomial degree ≤ 8",
    "Not a CAS"
  ],
  "boundary_conditions": [
    "a ≥ b → INVALID_INPUT",
    "tol ≤ 0 → VALUE_MUST_BE_POSITIVE",
    "unknown method (including nelder) → INVALID_MODE"
  ],
  "sources": [
    "ISO 80000-2:2019 Quantities and units — Mathematics"
  ],
  "methods": [],
  "fingerprint": "sha256:166f7a18078f6c958bdda6bd86054d3af99e726cef52674f8f0b19e33725406d",
  "tests": [
    {
      "id": "golden-x2",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "method": "golden",
        "integrand": "poly",
        "coeffs": [
          0,
          0,
          1
        ],
        "a": -1,
        "b": 2
      },
      "expect": {
        "exact_xmin": 0,
        "exact_fmin": 0
      },
      "expectWarning": null,
      "actual": {
        "method": "golden",
        "integrand": "poly",
        "a": -1,
        "b": 2,
        "xmin": -3.18796831533e-10,
        "fmin": 0,
        "iterations": 41,
        "n_eval": 44,
        "tol": 1e-8,
        "formula": "golden-section search, φ−1 = (√5−1)/2",
        "exact_xmin": 0,
        "exact_fmin": 0,
        "abs_err_x": -3.18796831533e-10,
        "abs_err_f": 0
      },
      "tol": 0.000001
    },
    {
      "id": "golden-sin",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "method": "golden",
        "integrand": "sin",
        "a": 3.141592653589793,
        "b": 6.283185307179586
      },
      "expect": {
        "exact_xmin": 4.71238898038469,
        "exact_fmin": -1
      },
      "expectWarning": null,
      "actual": {
        "method": "golden",
        "integrand": "sin",
        "a": 3.141592653589793,
        "b": 6.283185307179586,
        "xmin": 4.71238898725,
        "fmin": -1,
        "iterations": 41,
        "n_eval": 44,
        "tol": 1e-8,
        "formula": "golden-section search, φ−1 = (√5−1)/2",
        "exact_xmin": 4.71238898038,
        "exact_fmin": -1,
        "abs_err_x": 6.86458712096e-9,
        "abs_err_f": 0
      },
      "tol": 0.000001
    },
    {
      "id": "golden-brent-x2",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "method": "brent",
        "integrand": "poly",
        "coeffs": [
          0,
          0,
          1
        ],
        "a": -1,
        "b": 2
      },
      "expect": {
        "exact_xmin": 0,
        "exact_fmin": 0
      },
      "expectWarning": null,
      "actual": {
        "method": "brent",
        "integrand": "poly",
        "a": -1,
        "b": 2,
        "xmin": 0,
        "fmin": 0,
        "iterations": 5,
        "n_eval": 6,
        "tol": 1e-8,
        "formula": "Brent (golden section + inverse parabolic interpolation)",
        "exact_xmin": 0,
        "exact_fmin": 0,
        "abs_err_x": 0,
        "abs_err_f": 0
      },
      "tol": 1e-8
    },
    {
      "id": "boundary-nelder",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "method": "nelder",
        "integrand": "poly",
        "coeffs": [
          0,
          0,
          1
        ],
        "a": -1,
        "b": 1
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "method must be golden or brent."
    },
    {
      "id": "boundary-interval",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "method": "golden",
        "integrand": "poly",
        "coeffs": [
          0,
          0,
          1
        ],
        "a": 1,
        "b": 1
      },
      "expectError": "INVALID_INPUT",
      "code": "INVALID_INPUT",
      "error": "a must be strictly less than b."
    },
    {
      "id": "property-opt-x2",
      "ok": true,
      "kind": "property",
      "detail": "min x² at 0",
      "expect": 0,
      "actual": -3.18796831533e-10
    },
    {
      "id": "property-opt-x2-f",
      "ok": true,
      "kind": "property",
      "detail": "min x² f=0",
      "expect": 0,
      "actual": 0
    },
    {
      "id": "property-opt-shift",
      "ok": true,
      "kind": "property",
      "detail": "min (x−1)² at 1",
      "expect": 1,
      "actual": 1
    },
    {
      "id": "property-opt-sin",
      "ok": true,
      "kind": "property",
      "detail": "min sin on [π,2π]",
      "expect": 4.71238898038469,
      "actual": 4.71238898038
    },
    {
      "id": "property-opt-exp",
      "ok": true,
      "kind": "property",
      "detail": "min eˣ on [0,1] at 0",
      "expect": 0,
      "actual": 3.53550971203e-9
    },
    {
      "id": "property-opt-lin",
      "ok": true,
      "kind": "property",
      "detail": "min 1+2x at left end",
      "expect": 0,
      "actual": 3.73768598536e-9
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 11,
      "total": 11,
      "golden": 3,
      "boundary": 2,
      "property": 6
    },
    "contract_checks": {
      "passed": 2,
      "total": 2
    }
  },
  "evidence_core_generated_at": "2026-09-19T02:09:40.933Z",
  "rendered_at": "2026-09-19T02:14:29.321Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.0.0",
    "artifacts": {
      "engine": "1.0.0",
      "page": "1.0.0",
      "capability": "1.0.0",
      "evidence": "1.0.0",
      "input_schema": "1.0.0",
      "output_schema": "1.0.0",
      "mcp_contract": "1.0.0"
    },
    "digests": {
      "input_schema_sha256": "054bcf7bdce29f2d27436749efabac89d72b99ac5288263fe6215c049207dc33",
      "output_schema_sha256": "3001316ee8d423d444434b0562895d683f1457f75074dd025a90e50282b5b783",
      "evidence_sha256": "9bcf1d11d819e6a6477fb26223c83a1171b4789ac0afb8bfabce7340cb464651",
      "evidence_core_sha256": "9bcf1d11d819e6a6477fb26223c83a1171b4789ac0afb8bfabce7340cb464651",
      "capability_sha256": "95741bd4dd4c4c203a4b3b48dd9228d31f37bbea140298e06c280d61527b9636",
      "engine_sha256": "e2db0a7325e87d733eee5491a146d870677fe7b2ccb5d15ba36a8b5afbb17247",
      "mcp_contract_sha256": "312c860acede70764ad49c5e6180292fe8086ed8874884b9239465a80766d858"
    },
    "contract_checks": {
      "total": 2,
      "passed": 2,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.0"
        },
        {
          "id": "schema-rejects-incomplete-input",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
