This script implements the generator of symmetric BQP instances described in Section 5.1 of [1].
Let
Let
Let
Let
Let
The BQP instances of interest match the following program:
Where
The script uses essentially Numpy [2] to code the generator.
python3 bqp_generator.py <instance_size> <minimum_partition_element_size>
E.g.: python3 bqp_generator.py 15 5.
The instances can be solved using the auxiliary file bqp.mod, where the program above is coded in AMPL [3].
A ".dat" file for each BQP instance created.
[1]: Gustavo Dias, Leo Liberti. Exploiting Symmetries in Mathematical Programming via Orbital Independence. Annals of Operations Research, Vol 298, Number 1, pg 149–182, March 2021. DOI: https://doi.org/10.1007/s10479-019-03145-x
[2]: Numpy. URL: https://numpy.org/
[3]: AMPL. URL: https://ampl.com