little note about 'csp' documentation

Hi there

Looks like the 'csp' documentation (see link below) needs an update.

If you run the given example (of that page) using the given code :

import dwavebinarycsp.factories.constraint.sat as sat
csp = sat.random_2in4sat(6, 2)
 

That gives an error "AttributeError: 'module' object has no attribute 'random_2in4sat'". Change it to the following:

 

import dwavebinarycsp.factories as sat
csp = sat.random_2in4sat(6, 2)

 

 

https://docs.ocean.dwavesys.com/projects/binarycsp/en/latest/reference/generated/dwavebinarycsp.factories.csp.sat.random_2in4sat.html?highlight=random_2in4sat

0

Comments

1 comment
  • Hello Ahmed,

    Thank you for pointing this out. I will pass the comments along to our tools documentation team.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Didn't find what you were looking for?

New post