dwave.optimization.model.Model.list#

Model.list(n: int)#

Create a list symbol as a decision variable.

Parameters:

n – Values in the list are permutations of range(n).

Returns:

A list symbol.

Examples

This example creates a list symbol of 200 elements.

>>> from dwave.optimization.model import Model
>>> model = Model()
>>> routes = model.list(200)