Skip to content

/optimize endpoint requires an unused forecasting config #11

Description

@chripiermarini

POST /optimize in src/api/app.py constructs a PerDestinationConfig(model_names=["naive_forecaster"]) purely to satisfy LogisticsAPI.__init__, which requires a PerDestinationConfig even though optimize() never uses the forecasting config. This is functionally harmless but misleading — it looks like /optimize cares about forecaster selection when it doesn't.

Tasks:

  • Consider decoupling optimize() from requiring a PerDestinationConfig at construction time (e.g. a separate constructor path, or making optimize independent of forecasting config).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions