Core app & interfaces
HOTS – application main process.
HOTS core interfaces: plugin base classes.
- class hots.core.interfaces.OptimizationPlugin[source]
Bases:
ABCInterface for optimization backends (Pyomo, OR-Tools, …).
- class hots.core.interfaces.ProblemPlugin[source]
Bases:
ABCInterface for domain‑specific problem plugins (placement, allocation, etc.).
- abstract adjust(solution: Any, **kwargs) Any[source]
Given an optimization solution (and any auxiliary data), return an adjusted solution.
- abstract initial(labels: Series, df_indiv: DataFrame, df_host: DataFrame) list[dict[str, Any]][source]
Produce the initial problem solution if needed.
- Parameters:
labels – cluster labels from initial clustering
df_indiv – individual‐level data
df_host – host‐level data
- Returns:
list of move dicts to apply