From 03bda3018d834b06524585b5d222f2d54fe0fd99 Mon Sep 17 00:00:00 2001 From: Joshua Fogg Date: Thu, 18 Jul 2024 14:32:01 +0100 Subject: [PATCH] Added build file --- examples/README.md | 10 +++++----- pyproject.toml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 5 deletions(-) create mode 100644 pyproject.toml diff --git a/examples/README.md b/examples/README.md index 4c36ea2..c64685c 100644 --- a/examples/README.md +++ b/examples/README.md @@ -21,11 +21,11 @@ _Note: this is an unedited version of Gregor's description of the files._ To give an idea of how the methods available scale with dimension, the table below times each for four example problems of increasing size. -| $n$ | Gurobi (standard) | HiGHS (standard) | Gurobi (conic) | Gurobi (SQP) | HiGHS (SQP) | -| ----: | ----------------: | ---------------: | -------------: | -----------: | ----------: | -| 4 | 2.95e-3 | 4.78e-4 | 4.71e-3 | 1.74e-2 | 5.98e-3 | -| 50 | 4.46e-3 | 1.02e-3 | 1.02e-2 | 5.52e-2 | 1.84e-2 | -| 1000 | 6.76e-1 | 2.04e-1 | 2.75e+0 | 2.64e+1 | 1.68e+0 | +| $n$ | Gurobi (standard) | HiGHS (standard) | Gurobi (conic) | Gurobi (SQP) | HiGHS (SQP) | +| -----: | ----------------: | ---------------: | -------------: | -----------: | ----------: | +| 4 | 2.95e-3 | 4.78e-4 | 4.71e-3 | 1.74e-2 | 5.98e-3 | +| 50 | 4.46e-3 | 1.02e-3 | 1.02e-2 | 5.52e-2 | 1.84e-2 | +| 1000 | 6.76e-1 | 2.04e-1 | 2.75e+0 | 2.64e+1 | 1.68e+0 | | 10000¹ | 8.63e+1 | 2.58e+1 | DNF² | 1.56e+3 | 1.06e+2 | _1: This repository doesn't contain the data files due to storage limitations. Contact the authors for access._ diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..fcf96b8 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,30 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "robustocs" +version = "0.0.1" +dependencies = [ + "numpy >= 1.21, < 2.0.0", + "scipy >= 1.8.0", + "gurobipy >= 11.0.0", + "highspy >= 1.7.2", +] +requires-python = ">=3.10" +authors = [ + { name="Josh Fogg", email="j.fogg@ed.ac.uk" }, +] +description = "Tools for solving robust optimal contribution selection problems" +readme = "README.md" +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Development Status :: 3 - Alpha", +] + +[project.urls] +Homepage = "https://github.com/Foggalong/RobustOCS" +Documentation = "https://github.com/Foggalong/RobustOCS/wiki" +Issues = "https://github.com/Foggalong/RobustOCS/issues" \ No newline at end of file