-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
48 lines (45 loc) · 1.97 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
from glob import glob
from setuptools import setup, Extension
import numpy
description = """
Python interface to the MQLib, a C++ library of heuristics for Max-Cut
and Quadratic Unconstrained Binary Optimization (QUBO). Also includes a
hyperheuristic, which uses machine learning to predict the best-performing
heuristic for a given problem instance and then runs that heuristic.
This library and the related systematic heuristic evaluation strategy are described in [the paper](https://github.com/MQLib/MQLib/blob/master/paper/SECM_final.pdf). To cite the MQLib, please use:
```
@article{DunningEtAl2018,
title={What Works Best When? A Systematic Evaluation of Heuristics for Max-Cut and {QUBO}},
author={Dunning, Iain and Gupta, Swati and Silberholz, John},
year={2018},
journal={{INFORMS} Journal on Computing},
volume={30},
number={3}
}
```
"""
setup(name = "MQLib",
version = "0.1",
author = "Iain Dunning, Swati Gupta, and John Silberholz",
author_email = "[email protected]",
description = "Heuristics for the Max-cut and QUBO combinatorial optimization problems",
long_description = description,
long_description_content_type="text/markdown",
url = "https://github.com/MQLib/MQLib",
ext_modules = [Extension("_MQLib", glob("src/**/*.cpp", recursive=True),
include_dirs = ["include", numpy.get_include()],
extra_compile_args=['-std=c++0x', '-O2'])],
packages = ["MQLib"],
package_data = {"": ["**/*.rf"]},
install_requires = ['numpy', 'scipy', 'networkx==2.4'],
python_requires='>=3.5',
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: C++",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
)