Skip to content

About

Implementation of "A Quantile Neural Network Framework for Two-stage Stochastic Optimization"

Resources

Stars

7 stars

Watchers

2 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

Quantile2SP

This repository includes examples for the implementation of "A Quantile Neural Network Framework for Two-stage Stochastic Optimization" (https://arxiv.org/abs/2403.11707)

Content

  • NN_training.py: uses the utils file to train a Quantile Neural Network with and without an Incremental output layer.
  • QNN_embedding.py: example of the representation of the QNN as a mixed-integer set of constraints.
  • IQNN_embedding.py: example of the representation of the QNN with Incremental output layer as a mixed-integer set of constraints.
  • Opt_problems folder: includes a Facility Location Problem example from the paper (extending it for risk-aversion settings), where we embed an IQNN as a surrogate model for the second stage.

Notes

Pytorch is used for the NN training and Gurobipy for solving the resulting optimization problems.

We thank the authors from Neur2SP (https://github.com/khalil-research/Neur2SP) for providing the original code of the optimization problems. The data in the Opt_problems folder is generated using their repository.

Reference

If you find this work or code useful for your research, please cite our paper:

@article{alcantara2024quantile,
  title={A Quantile Neural Network Framework for Two-stage Stochastic Optimization},
  author={Alc{\'a}ntara, Antonio and Ruiz, Carlos and Tsay, Calvin},
  journal={arXiv preprint arXiv:2403.11707},
  year={2024}
}

About

Implementation of "A Quantile Neural Network Framework for Two-stage Stochastic Optimization"

Resources

Stars

7 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages