Skip to content

ddolab/DFSM-for-MILPs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DFSM-for-MILPs

This repository contains code files and the instructions on running them for the Decision-Focused Surrogate Modeling for Mixed-Integer Linear Optimization paper.

Data generation and DFSM training

For the hybrid vehicle control case study, the data file generates and solves 700 MILP instances for a horizon length of T=30, the cost vector and the function used to generate the problem specific parameters can be modified as needed.

For the production scheduling case study, the data file generates and solves 700 MILP instances for a horizon length of H=40 and I=13 batches, M=4 machines and T=8 time slots, the production running costs and the functions used to generate processing times, residence times and due times can be modified as needed.

For training the surrogate models, adjust the number of training data points (K) and the number of added cuts (V) as needed.

Training neural networks based optimization proxies

For all three optimization proxies discussed—feedforward neural networks (NNs), augmented Lagrangian dual-based NNs, and graph neural networks (GNNs)—the feasibility restoration file is executed and should include the destination of the optimization proxy file on the "include" line. Within each optimization proxy file, the destination of the corresponding data file must also be specified on the "include" line. This way, when the feasibility restoration file is run, it first trains the selected optimization proxy based on the chosen method and input file, and then prints the decision prediction errors (discrete and continuous) and optimality gaps for different training data points.

The code also plots the training loss over the number of epochs for these training data points.

For all three optimization proxy methods, the model architectures, learning rates, optimizers, and number of epochs can be modified as needed. For the GNN case, the embedding size and the number of message-passing layers can also be modified as needed.

Citation

@article{
dixit2025decisionfocused,
title={Decision-Focused Surrogate Modeling for Mixed-Integer Linear Optimization},
author={Shivi Dixit and Rishabh Gupta and Qi Zhang},
journal={Transactions on Machine Learning Research},
issn={2835-8856},
year={2025},
url={https://openreview.net/forum?id=A6tOXkkE4Z},
note={}
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages