This is a minimal end-to-end demo showing a "smart" data pipeline for a cost-minimization model in Julia using JuMP.
- CSV inputs for cost, cap, demand, arcs
- YAML config for scenarios (baseline, optimistic)
- Clean module layout:
src/withbuild_model.jl,solve_report.jl - One command to run and auto-install dependencies
- Install Julia (>= 1.10).
- In a terminal:
cd jump-demo
julia run_demo.jl baseline
# or
julia run_demo.jl optimisticThis script will:
- create/activate a local environment,
- install JuMP/HiGHS/CSV/DataFrames/YAML if needed,
- build & solve the model,
- write results to
./results/:flows.csvopen_plants.csvobjective.csv
data/— CSV tables (tidy)config/model.yml— scenario file paths and solver time limitsrc/— model coderun_demo.jl— entry point
- Add time periods
tcolumns to CSVs, then index Dicts by(i,j,t). - Add more constraints in
build_model.jlfollowing the same pattern. - Swap solver: change
HiGHS.OptimizertoGurobi.Optimizer(and add Gurobi package).