qncmpopmix
Return the set of population mixes for a closed multiclass queueing
network with exactly k customers. Specifically, given a
closed multiclass QN with customer classes, where there
are N(c)
class requests,
a -mix is a vector of length with the following
properties:
In other words, a -mix is an allocation of
requests to classes such that the number of requests
assigned to class does not exceed the maximum value
N(c)
.
pop_mix is a matrix with columns, such that each row represents a valid mix.
INPUTS
k
Size of the requested mix (scalar, k ≥ 0
).
N(c)
number of class requests (k ≤ sum(N)
).
OUTPUTS
pop_mix(i,c)
number of class requests in the -th population
mix. The number of mixes is rows(pop_mix)
.
If you are interested in the number of -mixes only, you can
use the funcion qnmvapop
.
REFERENCES
The slightly different problem of enumerating all tuples such that and , for a given has been described in S. Santini, Computing the Indices for a Complex Summation, unpublished report, available at http://arantxa.ii.uam.es/~ssantini/writing/notes/s668_summation.pdf
See also: qncmnpop
N = [2 3]; mix = qncmpopmix(3, N) mix = 2 1 1 2 0 3 |