Skip to content

Add offset to dqm#838

Merged
arcondello merged 15 commits into
dwavesystems:mainfrom
hbarovertwo:add_offset_to_dqm
Jun 11, 2021
Merged

Add offset to dqm#838
arcondello merged 15 commits into
dwavesystems:mainfrom
hbarovertwo:add_offset_to_dqm

Conversation

@hbarovertwo

@hbarovertwo hbarovertwo commented Jun 9, 2021

Copy link
Copy Markdown
Member

Note: Publishing before it's ready to merge to get eyes on it.

Implement offset in DQM object via underlying cyDiscreteQuadraticModel object.
Update methods in backwards compatibility safe way.
Add new tests and update existing tests to reflect offset.

Closes #744

@arcondello arcondello self-requested a review June 9, 2021 21:16
@arcondello arcondello added the enhancement New feature or request label Jun 9, 2021
Comment thread dimod/discrete/discrete_quadratic_model.py Outdated
Comment thread dimod/discrete/discrete_quadratic_model.py Outdated
Comment thread dimod/discrete/discrete_quadratic_model.py Outdated
Comment thread dimod/discrete/discrete_quadratic_model.py Outdated
Comment thread dimod/discrete/cydiscrete_quadratic_model.pyx Outdated
Comment thread dimod/discrete/cydiscrete_quadratic_model.pxd Outdated
Comment thread dimod/discrete/discrete_quadratic_model.py Outdated
Comment thread tests/test_discrete_quadratic_model.py Outdated
Comment thread dimod/discrete/discrete_quadratic_model.py
@codecov-commenter

codecov-commenter commented Jun 10, 2021

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.28%. Comparing base (a4bca10) to head (db6e873).
Report is 1471 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #838      +/-   ##
==========================================
+ Coverage   88.26%   88.28%   +0.02%     
==========================================
  Files          70       70              
  Lines        5862     5874      +12     
==========================================
+ Hits         5174     5186      +12     
  Misses        688      688              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@arcondello arcondello requested a review from hsadeghidw June 11, 2021 19:42
@arcondello arcondello merged commit 282e96d into dwavesystems:main Jun 11, 2021
arcondello added a commit that referenced this pull request Jun 11, 2021
New Features
------------

* Add `add_bqm` method to C++ BinaryQuadraticModel #821, #823
* Add `Structured.valid_bqm_graph` method for verifying input problem structure #832
* Reimplement `BinaryQuadraticModel` to use new C++ code #828
* `BinaryQuadraticModel` can now be manipulated symbolically #834
* `load` function can now load all model types #841, #843
* `DiscreteQuadraticModel` now has an `.offset` attribute #838
* Add `ConstrainedQuadraticModel` class #839

Fix
---
* Fix type promotions in binary quadratic models with object biases #836
@hbarovertwo hbarovertwo deleted the add_offset_to_dqm branch June 15, 2021 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add_offset for DQM

4 participants