Alexander Condello

Results 257 comments of Alexander Condello

Hi @qinmaomao, we don't currently support `!=` constraints, although that it something that we're looking into for future releases. For now, if your domain is small, you could use a...

> I am thinking about making all the operations keep the polynomials zero free That would be a backwards compatibility break. I am not opposed philosophically, but it would need...

Strictly speaking ```python In [3]: p = dimod.BinaryPolynomial({}, 'BINARY') In [4]: p['abc'] = 0 In [5]: p Out[5]: BinaryPolynomial({frozenset({'b', 'c', 'a'}): 0}, 'BINARY') In [6]: list(p) Out[6]: [frozenset({'a', 'b', 'c'})]...

Got it, we have something like this embedded in the `to_file()` methods ([example](https://github.com/dwavesystems/dimod/blob/a0a9e23ff6dffacb64b7e73f52d28358b877d74e/dimod/binary/binary_quadratic_model.py#L1650)), but we could probably expose them as a method. Maybe something like `bqm.metadata()` or `bqm.get_metadata()`. You can...

So looking at what info is actually in the headers at the moment, it's ``` data = dict(shape=self.shape, dtype=self.dtype.name, itype=self.data.index_dtype.name, type=type(self).__name__, variables=not self.variables._is_range(), ) ``` for [quadratic model](https://github.com/dwavesystems/dimod/blob/a0a9e23ff6dffacb64b7e73f52d28358b877d74e/dimod/quadratic/quadratic_model.py#L734) ``` data...

Hi @filipceglik , thanks for the PR. I think we definitely want to support networkx graphs created this way, but I am worried that the current solution will have unintended...

Hi @filipceglik , thanks! I actually meant an example of a dotfile, I am not familiar with that format. Sorry for the confusion! Agree that we should get this working.

Hi @filipceglik , does your program look something like ``` G = nx.drawing.nx_agraph.read_dot(dotfile) bqm = dimod.BQM.from_networkx_graph(G) ``` or are you constructing the BQM some other way?

Linking https://github.com/dwavesystems/dimod/issues/988#issuecomment-914477913 for cross reference.

So I think there are a few cases that we should distinguish: 1) quadratic constraints - not currently supported by `cqm_to_bqm` :heavy_check_mark: 2) linear inequality constraints - it would be...