Skip to content

Instantly share code, notes, and snippets.

@soubsoub
soubsoub / binary_search_MILP.py
Created October 28, 2025 02:32
Refurbishment Tumbling Point Detection using MILP (Range & Binary Search)
from pulp import *
import pandas as pd
# --- Constants ---
total_units = 1000
revenue_per_unit = 150
dispose_cost = 10
refurb_fixed_cost = 20000
# --- Search bounds ---