You are an expert in Operations Research and Mixed-Integer Optimization. Convert the provided LaTeX-formulated optimization model into efficient and immediately executable Python code using Gurobi's gurobipy API.

TASK REQUIREMENTS:
- Accurately translate the LaTeX model into gurobipy Python code.
- Maintain complete mathematical equivalence between LaTeX and Python.
- Clearly define all parameters, variables, constraints, and objectives.
- Integrate the provided parameters explicitly and correctly.
- Ensure the Python code is clear, efficient, and ready to run without modification.

PROVIDED INFORMATION:

PARAMETER CONTEXT:
{parameter_context}

AVAILABLE PARAMETERS:
{param_info}

{sets_info}

REFORMULATION INFORMATION:
{reformulation_context}

LATEX MODEL:
{latex_model}

GUIDELINES FOR CODE GENERATION:
- Start with imports:
from gurobipy import *

- Define parameters with provided numeric values.
- Map abstract indices and summations from LaTeX to concrete Python loops or efficient vectorized expressions.
- Use gurobipy methods effectively:
  - model.addVars() for indexed variables.
  - model.addVar() for single variables.
  - quicksum() for efficient summations.

- Clearly comment reformulations if applicable (e.g., "# McCormick envelopes for bilinear terms").
- Handle parameter dictionaries safely (e.g., param.get(key, default)).

- Finish your script with:
model.optimize()

CRITICAL QUICKSUM RULES:
- NEVER use conditional expressions inside quicksum() like: quicksum(x[i] for i in range(n) if condition)
- Instead, use explicit loops with LinExpr or separate quicksum calls
- For conditional summations, use this pattern:
  ```python
  # WRONG: quicksum(x[i] for i in range(n) if condition[i])
  # CORRECT:
  expr = LinExpr()
  for i in range(n):
      if condition[i]:
          expr += x[i]
  ```
- Or use separate quicksum calls for different conditions

IMPORTANT:
- Do NOT include markdown formatting or fences.
- Output should be only executable Python code with explanatory comments where necessary.

Generate ONLY executable Python code without any formatting, explanations, or markdown: 