Skip to content

Instantly share code, notes, and snippets.

@samirsaci
Created November 9, 2025 13:38
Show Gist options
  • Select an option

  • Save samirsaci/7ff688d2fb5716bb116b191f3c83c92e to your computer and use it in GitHub Desktop.

Select an option

Save samirsaci/7ff688d2fb5716bb116b191f3c83c92e to your computer and use it in GitHub Desktop.
MCP Server Supply Chain Optimisation - Doc String Describe Input
"""
INPUT (LaunchParamsNetwork)
---------------------------
- objective: str (default "Production Cost")
One of {"Production Cost", "CO2 Emissions", "Water Usage", "Energy Usage"}.
Sets the optimization objective.
- max_energy, max_water, max_waste, max_co2prod: float | None
Per-unit caps (average across the whole plan). If omitted, service defaults
from your config are used. Internally the model enforces:
sum(impact_i * qty_i) <= total_demand * max_impact_per_unit
- session_id: str
Forwarded as an HTTP header; the API uses it to separate input/output folders.
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment