https://github.com/cvxgrp/resalloc
Efficient allocation of fungible resources
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.5%) to scientific vocabulary
Repository
Efficient allocation of fungible resources
Basic Info
- Host: GitHub
- Owner: cvxgrp
- License: apache-2.0
- Language: Jupyter Notebook
- Default Branch: main
- Size: 450 KB
Statistics
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Resource allocation
This repo accompanies the paper Allocation of Fungible Resources via a Fast, Scalable Price Discovery Method.
To get started with the code, clone this repo, run
python setup.py install
in a virtual environment of your choice, and try out the notebooks, which reproduce the examples from the paper.
Example
The resalloc package exports one main class representing a resource allocation problem, called AllocationProblem. It also exports a number of utility functions.
Here is a code example showing how to set up and solve a simple problem.
```python3 import torch from resalloc.fungible import AllocationProblem, utilites
njobs, nresources = int(1e6), 4 throughputmatrix = torch.rand((njobs, nresources)) resourcelimits = torch.rand(nresoures) * njobs + 1e3
problem = AllocationProblem( throughputmatrix=throughputmatrix, resourcelimits=resourcelimits, utility_function=utilities.Log() )
problem.solve(verbose=True)
X is the optimal allocation
print(problem.X)
prices are the optimal prices
print(problem.prices) ```
For more details about the available utilities, and how to customize the solve method with optional arguments, please consult the source code.
Owner
- Name: Stanford University Convex Optimization Group
- Login: cvxgrp
- Kind: organization
- Location: Stanford, CA
- Website: www.stanford.edu/~boyd
- Repositories: 102
- Profile: https://github.com/cvxgrp
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0