File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,29 +10,13 @@ uv: ## Create a virtual environment using uv
1010 # Download and install uv package manager
1111 @curl -LsSf https://astral.sh/uv/install.sh | sh
1212
13- .PHONY : install
14- install : uv # # Install a virtual environment
15- # Create a virtual environment
16- @uv venv
17- # Upgrade pip to the latest version
18- @uv pip install --upgrade pip
19- # Install dependencies from requirements.txt
20- @uv pip install -r requirements.txt
21-
2213# #@ Code Quality
2314
2415.PHONY : fmt
2516fmt : uv # # Run autoformatting and linting
2617 # Run all pre-commit hooks on all files
2718 @uvx run pre-commit run --all-files
2819
29- # #@ Dependencies
30-
31- .PHONY : freeze
32- freeze : install # # Freeze all requirements
33- # Create a frozen requirements file with exact versions
34- @uv pip freeze > requirements_frozen.txt
35-
3620# #@ Cleanup
3721
3822.PHONY : clean
@@ -43,9 +27,9 @@ clean: ## Clean up caches and build artifacts
4327# #@ Experiments
4428
4529.PHONY : experiments
46- experiments : install # # Run all experiment
30+ experiments : uv # # Run all experiment
4731 # Execute the experiments script
48- @uv run python experiments.py
32+ @uv run experiments.py
4933
5034# #@ Help
5135
Original file line number Diff line number Diff line change @@ -13,18 +13,29 @@ Please run all experiments using
1313make experiments
1414```
1515
16- This first replicates the virtual environment defined in 'requirements.txt'
17- locally and then runs the experiments defined in 'experiments.py'.
16+ This first installs uv on the fly and then creates and replicates the
17+ environment defined in the script section of the 'experiments.py' file
18+ as described in the [ documentation of uv run] ( https://docs.astral.sh/uv/guides/scripts/#declaring-script-dependencies )
1819
19- ## Reproducibility
20+ The script section is as of today
2021
21- The main packages used are specified in 'requirements.txt', with a frozen
22- version of all packages and their sub-dependencies in 'requirements_frozen.txt'.
23- We used Python 3.10.13 to run the experiments.
22+ ``` python
23+ # /// script
24+ # requires-python = ">=3.11"
25+ # dependencies = [
26+ # "mosek==11.0.27",
27+ # "loguru==0.7.3",
28+ # "numpy==2.3.2",
29+ # "pandas[output-formatting]==2.3.1",
30+ # "matplotlib==3.10.5",
31+ # "cvxpy-base==1.7.1",
32+ # "clarabel==0.11.1"
33+ # ]
34+ # ///
35+ ```
2436
2537A large fraction of our experiments have been performed
2638using [ MOSEK] ( https://www.mosek.com/ ) as the underlying solver.
27- A recent version of it is listed in 'requirements.txt'.
2839We assume a valid license for MOSEK is installed. If not,
2940you may want to apply for a [ Trial License] ( https://www.mosek.com/try/ )
3041
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments