Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
/ DWaveNeal.jl Public archive

๐ŸŒŠ D-Wave Neal Simulated Annealing Interface for JuMP

License

Notifications You must be signed in to change notification settings

JuliaQUBO/DWaveNeal.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

36 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

DWaveNeal.jl

โš ๏ธ Warning This package was archived. Consider using DWave.jl instead.

DOI QUBODRIVERS

D-Wave Neal Simulated Annealing Interface for JuMP

Installation

julia> import Pkg; Pkg.add("DWaveNeal")

julia> using DWaveNeal

Getting started

using JuMP
using DWaveNeal

model = Model(DWaveNeal.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

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

Note: If you are using DWaveNeal.jl in your project, we recommend you to include the .CondaPkg entry in your .gitignore file. The PythonCall module will place a lot of files in this folder when building its Python environment.