dwavesystems / dwavesystems/dimod

TypeError in division over Integer variable

Open
#1,190 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
143
Forks
91
Avg merge
1h 24m
Merged PRs (30d)
3

Description

I'm trying to divide my objective over an Integer variable, but I get the following error :
:
TypeError: unsupported operand type(s) for /: 'int' and 'QuadraticModel'

Below is how I defined my variable :
k_i = {i: Integer('k_{}'.format(i), lower_bound=0, upper_bound=38) for i in range(M)}

How can I resolve this or reform my implementation for the same effect?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.