Tool for solving Network Utility Maximization problems
Project description
# Network Utility Maximization Solver
A tool for solving [Network Utility Maximization](http://www.ifp.illinois.edu/~srikant/ECE567/Fall09/lecture2-num-primal.pdf) problems.
` $ pip install num_solver `
## Example
` $ python Python 2.7.11 (default, Jan 22 2016, 08:29:18) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import num_solver >>> import numpy as np >>> utility = lambda x: np.sum(np.ma.log(x)) >>> R = np.array([[1., 1.]]) >>> capacity = np.array([10.]) >>> num_solver.solve_num_problem(utility, R, capacity) array([ 5., 5.]) `
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for num_solver-0.1.7-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 082bc2770378db5805a34be40b66c2a9b129fe5859bdc38bdcbc6ce2fc518b0d |
|
MD5 | cb8aa1b6ac1f31fcea7e173edf511612 |
|
BLAKE2b-256 | b5980e3a474f86ac65a3a5b0d03ee0ce0c3bcfbbfc840713c7a4149f7709d615 |