Optimizing workforce distribution using Discrete Quadratic Models (DQM) on D-Wave Systems.
from dimod import DiscreteQuadraticModel
dqm = DiscreteQuadraticModel()
for name in employees:
dqm.add_variable(num_shifts, label=name)
dqm.set_linear("Anna", [1,2,3,4])
dqm.set_linear("Bill", [3,2,1,4])
dqm.set_linear("Chris", [4,2,3,1])
dqm.set_linear("Diane", [4,1,2,3])
python main.py