Skip to content

Commit

Permalink
Merge pull request #124 from arcondello/deprecate-library
Browse files Browse the repository at this point in the history
Deprecate dwavebinarycsp
  • Loading branch information
arcondello authored Nov 27, 2024
2 parents edef6e2 + 7d6bff5 commit 26770c1
Show file tree
Hide file tree
Showing 11 changed files with 77 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
:warning: *dwavebinarycsp* is deprecated. For solving problems with constraints,
we recommend using the hybrid solvers in the Leap :tm: service. You can find
documentation for the hybrid solvers at https://docs.ocean.dwavesys.com.

.. image:: https://img.shields.io/pypi/v/dwavebinarycsp.svg
:target: https://pypi.org/project/dwavebinarycsp

.. image:: https://ci.appveyor.com/api/projects/status/b99rhw0l6ljsgw5t?svg=true
:target: https://ci.appveyor.com/project/dwave-adtt/dwavebinarycsp

.. image:: https://codecov.io/gh/dwavesystems/dwavebinarycsp/branch/master/graph/badge.svg
:target: https://codecov.io/gh/dwavesystems/dwavebinarycsp

Expand Down
7 changes: 7 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
D-Wave Binary CSP
=================

.. deprecated:: 0.3.1

``dwavebinarycsp`` is deprecated and will be removed in Ocean 10.
For solving problems with constraints, we recommand using the hybrid
solvers in the Leap service.
You can find documentation for the hybrid solvers at :ref:`using_hybrid`.

.. include:: README.rst
:start-after: index-start-marker
:end-before: index-end-marker
Expand Down
7 changes: 7 additions & 0 deletions docs/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
Introduction
============

.. deprecated:: 0.3.1

``dwavebinarycsp`` is deprecated and will be removed in Ocean 10.
For solving problems with constraints, we recommand using the hybrid
solvers in the Leap service.
You can find documentation for the hybrid solvers at :ref:`using_hybrid`.

`dwavebinarycsp` is a library to construct a binary quadratic :term:`model` from a constraint
satisfaction problem (CSP) with small constraints over binary variables (represented
as either binary values {0, 1} or spin values {-1, 1}).
Expand Down
7 changes: 7 additions & 0 deletions docs/reference/compilers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
Converting to a Binary Quadratic Model
======================================

.. deprecated:: 0.3.1

``dwavebinarycsp`` is deprecated and will be removed in Ocean 10.
For solving problems with constraints, we recommand using the hybrid
solvers in the Leap service.
You can find documentation for the hybrid solvers at :ref:`using_hybrid`.

Constraint satisfaction problems can be converted to binary quadratic models to be solved
on samplers such as the D-Wave system.

Expand Down
7 changes: 7 additions & 0 deletions docs/reference/constraint.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
Defining Constraints
====================

.. deprecated:: 0.3.1

``dwavebinarycsp`` is deprecated and will be removed in Ocean 10.
For solving problems with constraints, we recommand using the hybrid
solvers in the Leap service.
You can find documentation for the hybrid solvers at :ref:`using_hybrid`.

.. automodule:: dwavebinarycsp.core.constraint

Class
Expand Down
7 changes: 7 additions & 0 deletions docs/reference/csp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
Defining Constraint Satisfaction Problems
=========================================

.. deprecated:: 0.3.1

``dwavebinarycsp`` is deprecated and will be removed in Ocean 10.
For solving problems with constraints, we recommand using the hybrid
solvers in the Leap service.
You can find documentation for the hybrid solvers at :ref:`using_hybrid`.

.. automodule:: dwavebinarycsp.core.csp

Class
Expand Down
7 changes: 7 additions & 0 deletions docs/reference/factory_constraints.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
Factories
=========

.. deprecated:: 0.3.1

``dwavebinarycsp`` is deprecated and will be removed in Ocean 10.
For solving problems with constraints, we recommand using the hybrid
solvers in the Leap service.
You can find documentation for the hybrid solvers at :ref:`using_hybrid`.

`dwavebinarycsp` currently provides factories for constraints representing
Boolean gates and satisfiability problems and CSPs for circuits and satisfiability
problems.
Expand Down
7 changes: 7 additions & 0 deletions docs/reference/loading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
Other CSP Formats
=================

.. deprecated:: 0.3.1

``dwavebinarycsp`` is deprecated and will be removed in Ocean 10.
For solving problems with constraints, we recommand using the hybrid
solvers in the Leap service.
You can find documentation for the hybrid solvers at :ref:`using_hybrid`.

DIMACS
======

Expand Down
7 changes: 7 additions & 0 deletions docs/reference/reduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
Reducing Constraints
====================

.. deprecated:: 0.3.1

``dwavebinarycsp`` is deprecated and will be removed in Ocean 10.
For solving problems with constraints, we recommand using the hybrid
solvers in the Leap service.
You can find documentation for the hybrid solvers at :ref:`using_hybrid`.

.. automodule:: dwavebinarycsp.reduction
.. currentmodule:: dwavebinarycsp

Expand Down
7 changes: 7 additions & 0 deletions docs/sdk_index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
dwavebinarycsp
==============

.. deprecated:: 0.3.1

``dwavebinarycsp`` is deprecated and will be removed in Ocean 10.
For solving problems with constraints, we recommand using the hybrid
solvers in the Leap service.
You can find documentation for the hybrid solvers at :ref:`using_hybrid`.

.. include:: README.rst
:start-after: index-start-marker
:end-before: index-end-marker
Expand Down
10 changes: 10 additions & 0 deletions dwavebinarycsp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from warnings import warn as _warn # so it doesn't get pulled in by import *

__version__ = '0.3.0'

from dwavebinarycsp.compilers import *
Expand Down Expand Up @@ -41,3 +43,11 @@
def assert_penaltymodel_factory_available():
"""Legacy - does nothing."""
pass


_warn("dwavebinarycsp is deprecated and will be removed in Ocean 10. "
"For solving problems with constraints, "
"we recommend using the hybrid solvers in the Leap service. "
"You can find documentation for the hybrid solvers at https://docs.ocean.dwavesys.com.",
category=DeprecationWarning,
stacklevel=2)

0 comments on commit 26770c1

Please sign in to comment.