Created
November 9, 2025 13:23
-
-
Save samirsaci/6a034cb197178c9d8777f0cd85ba9186 to your computer and use it in GitHub Desktop.
MCP Server Supply Chain Optimization - Models
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pydantic import BaseModel | |
| from typing import Optional | |
| from app.utils.config_loader import load_config | |
| config = load_config() | |
| class LaunchParamsNetwork(BaseModel): | |
| objective: Optional[str] = 'Production Cost' | |
| max_energy: Optional[float] = config["network_analysis"]["params_mapping"]["max_energy"] | |
| max_water: Optional[float] = config["network_analysis"]["params_mapping"]["max_water"] | |
| max_waste: Optional[float] = config["network_analysis"]["params_mapping"]["max_waste"] | |
| max_co2prod: Optional[float] = config["network_analysis"]["params_mapping"]["max_co2prod"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment