Knapsack: minor correction to docs; update docstrings

This commit is contained in:
2020-01-31 10:34:04 -06:00
parent 7b4437f2ab
commit 46e19eed1b
2 changed files with 4 additions and 2 deletions

View File

@@ -130,7 +130,6 @@ class MultiKnapsackGenerator:
from w[i,j], as long as u and K are not constants, the generated instances will still not
be completely identical.
If a probability distribution w_jitter is provided, then item weights will be set to
w[i,j] + gamma[i,j] where gamma[i,j] is sampled from w_jitter. When combined with
fix_w=True, this argument may be used to generate instances where the weight of each item
@@ -138,6 +137,9 @@ class MultiKnapsackGenerator:
items and the capacities of the knapsacks will be calculated as above, but using these
perturbed weights instead.
By default, all generated prices, weights and capacities are rounded to the nearest integer
number. If `round=False` is provided, this rounding will be disabled.
Parameters
----------
n: rv_discrete