This directory provides an implementation of the algorithms for dynamic assortment optimization under the Multinomial logit choice model.
The package dependencies of the code are latest versions of the following packages:
numpy
pandas
gurobipy
scipy
numba
The object constructed with Numerical()
instanciates the random generator of the simulation.
- The method
refresh_data()
samples new inputs, - The method
sample_revenue()
uses a sampling-based estimator for the expected revenue, - Several algorithmic methods are implemented: our constant-factor approximation
algorithm()
, a discrete greedy heuristicgreedy()
, a greedy local search methodlocal_search()
, a gradient-descent with regards to the Lovasz extension of the expected revenue functionlovasz_greedy()
, a dynamic programming-based relaxationrelaxation_topaloglu()
, an MIP-based deterministic relaxationrelaxation_deterministic()
. - Other functions are auxiliary and need not be referenced in running the code.
The file Numericals.py()
can be run as a script to replicate the computational results in the paper Greedy-Like Algorithms for Dynamic Assortment Planning Under Multinomial Logit Preferences, A. Aouad, R. Levi and D. Segev (2018) that appeared in Operations Research.
A work-in-progress implementation of a polynomial-time approximation scheme is provided in the file Ptas.py
.