Skip to content

JuliaQUBO/DWaveNeal.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DWaveNeal.jl

⚠️ Deprecated compatibility package. New code should use DWave.jl and DWave.Neal.Optimizer directly.

DOI QUBODRIVERS

D-Wave Neal compatibility layer for JuMP.

Installation

julia> import Pkg

julia> Pkg.add("DWave")

julia> using DWave

For existing environments that still depend on DWaveNeal, the compatibility package remains available:

julia> import Pkg

julia> Pkg.add("DWaveNeal")

julia> using DWaveNeal

DWaveNeal.Optimizer is an alias for DWave.Neal.Optimizer and will emit a deprecation warning on load.

Getting started

using JuMP
using DWave

model = Model(DWave.Neal.Optimizer)

n = 3
Q = [ -1  2  2
       2 -1  2
       2  2 -1 ]

@variable(model, x[1:n], Bin)
@objective(model, Min, x' * Q * x)

optimize!(model)

for i = 1:result_count(model)
    xi = value.(model[:x]; result = i)
    yi = objective_value(model; result = i)

    println("[$i] f($(xi)) = $(yi)")
end

Legacy code that still does Model(DWaveNeal.Optimizer) should continue to work after upgrading to this package version.

Note: The D-Wave Julia wrappers are not officially supported by D-Wave Systems. If you are a commercial customer interested in official support for Julia from D-Wave, let them know.

About

Deprecated compatibility shim for DWave.Neal in DWave.jl

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages