Giter VIP home page Giter VIP logo

contextual-robust-optimisation-with-uq's Introduction

Code for the experiments in the paper "Contextual Robust Optimisation with Uncertainty Quantification"

This paper was accepted to the short paper track at CPAIOR 2023. The core ambition was to develop pipelines that exploit covariate information to construct more appropriate ambiguity/uncertainty sets. On the flip side, this enables us to achieve a degree of decision robustness with respect to the prediction model, reducing the risk that overfitting in the prediction model leads to severely suboptimal decisions.

Abstract

We propose two pipelines for convex optimisation problems with uncertain parameters that aim to improve decision robustness by addressing the sensitivity of optimisation to parameter estimation. This is achieved by integrating uncertainty quantification (UQ) methods for supervised learning into the ambiguity sets for distributionally robust optimisation (DRO). The pipelines leverage learning to produce contextual/conditional ambiguity sets from side-information. The two pipelines correspond to different UQ approaches: i) explicitly predicting the conditional covariance matrix using deep ensembles (DEs) and Gaussian processes (GPs), and ii) sampling using Monte Carlo dropout, DEs, and GPs. We use i) to construct an ambiguity set by defining an uncertainty around the estimated moments to achieve robustness with respect to the prediction model. UQ ii) is used as an empirical reference distribution of a Wasserstein ball to enhance out of sample performance. DRO problems constrained with either ambiguity set are tractable for a range of convex optimisation problems. We propose data-driven ways of setting DRO robustness parameters motivated by either coverage or out of sample performance. These parameters provide a useful yardstick in comparing the quality of UQ between prediction models. The pipelines are computationally evaluated and compared with deterministic and unconditional approaches on simulated and real-world portfolio optimisation problems.

Repository comments

I apologise if the code is confusing or not particularly well organised.

There are two testing files, one associated with generated data: test_UMO_WASS_CVAR_gen.py which generates its own data, and test_UMO_WASS_CVAR_real.py which takes data from here (the unzipped folder should be in the top folder). These test files contain the implemented prediction to optimisation pipelines, the predictive models are in predictive_models.py, the functions for the optimisation models and the algorithms to find robustness parameters are in utils_optimisation.py, and the data generation and objects are in data.py. The multivariate_laplace.py file is an implementation of the namesake distribution, but was not used the experiments that made it into the paper.

contextual-robust-optimisation-with-uq's People

Contributors

egoper avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.