licenses
sequencelengths 1
3
| version
stringclasses 677
values | tree_hash
stringlengths 40
40
| path
stringclasses 1
value | type
stringclasses 2
values | size
stringlengths 2
8
| text
stringlengths 25
67.1M
| package_name
stringlengths 2
41
| repo
stringlengths 33
86
|
---|---|---|---|---|---|---|---|---|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 1426 | export extract_con_headers
"""
extract_con_headers(con::SeisCon, keys::Array{String,1}, blocks::Array{Int,1};
prealloc_traces::Int = 50000)
Read `keys` from `blocks` in `con`. Skips all data and only reads and returns headers in an array.
This method is similar to `read_con_headers`, except the data is returned
# Examples
h = extract_con_headers(s, ["SourceX"; "SourceY"], Array(1:11))
"""
function extract_con_headers(con::SeisCon, keys::Array{String,1}, blocks::Vector;
f_map::Function = pmap)
nblocks = length(blocks)
h = f_map(x -> extractor(con, keys, x), blocks)
return vcat(h...)
end
function extract_con_headers(con::SeisCon, keys::Array{String,1}, blocks::Vector, reducer::Function;
f_map::Function = pmap)
nblocks = length(blocks)
h = f_map(x -> reducer(extractor(con, keys, x)), blocks)
return vcat(h...)
end
function extractor(con, keys, block)
println("Extracting ... $block")
headers = read_con_headers(con, copy(keys), block, prealloc_traces = 10000000)
ntraces = length(headers)
nkeys = length(keys)
header_array = Array{Int32, 2}(undef, ntraces, nkeys)
for cur_key in 1:nkeys
header_array[:,cur_key] = get_header(headers, Symbol(keys[cur_key]), scale=false)
end
return header_array
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 1110 | export read_block!
function read_block!(b::BlockScan, ns::Int, dsf::Int, tmp_data, tmp_headers)
read_block!(b, th_keys(), ns, dsf, tmp_data, tmp_headers)
end
function read_block!(b::BlockScan, keys::Array{String, 1}, ns::Int, dsf::Int, tmp_data, tmp_headers)
f = open(b.file)
seek(f, b.startbyte)
brange = b.endbyte - b.startbyte
s = IOBuffer(read(f, brange))
trace_size = (240 + ns*4)
ntraces = Int((brange)/trace_size)
fh = FileHeader()
fh.bfh.ns = ns; fh.bfh.DataSampleFormat = dsf
# Check dsf
datatype = Float32
if fh.bfh.DataSampleFormat == 1
datatype = IBMFloat32
elseif fh.bfh.DataSampleFormat != 5
@error "Data type not supported ($(fh.bfh.DataSampleFormat))"
end
th_b2s = th_byte2sample()
# Read each trace
for trace in 1:TRACE_CHUNKSIZE:ntraces
tracee = min(trace + TRACE_CHUNKSIZE - 1, ntraces)
chunk = length(trace:tracee)*trace_size
sloc = IOBuffer(read(s, chunk))
read_traces!(sloc, view(tmp_headers, trace:tracee), view(tmp_data, :, trace:tracee), keys, th_b2s)
end
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 1500 | export read_block_headers!
function read_block_headers!(b::BlockScan, keys::Array{String, 1}, ns::Int, dsf::Int, headers)
f = open(b.file)
seek(f, b.startbyte)
brange = b.endbyte - b.startbyte
s = IOBuffer(read(f, brange))
ntraces = Int((brange)/(240 + ns*4))
fh = FileHeader()
fh.bfh.ns = ns
fh.bfh.DataSampleFormat = dsf
# Check dsf
datatype = Float32
if fh.bfh.DataSampleFormat == 1
datatype = IBMFloat32
elseif fh.bfh.DataSampleFormat != 5
@error "Data type not supported ($(fh.bfh.DataSampleFormat))"
end
th_b2s = th_byte2sample()
tmph = zeros(UInt8, 240)
# Read each traceheader
for trace in 1:ntraces
read_traceheader!(s, keys, th_b2s, headers[trace]; th=tmph)
skip(s, ns*4)
end
end
function read_block_headers!(b::BlockScan, ns::Int, dsf::Int, headers)
f = open(b.file)
seek(f, b.startbyte)
brange = b.endbyte - b.startbyte
s = IOBuffer(read(f, brange))
ntraces = Int((brange)/(240 + ns*4))
fh = FileHeader()
fh.bfh.ns = ns; fh.bfh.DataSampleFormat = dsf
# Check dsf
datatype = Float32
if fh.bfh.DataSampleFormat == 1
datatype = IBMFloat32
elseif fh.bfh.DataSampleFormat != 5
@error "Data type not supported ($(fh.bfh.DataSampleFormat))"
end
th_b2s = th_byte2sample()
# Read each traceheader
for trace in 1:ntraces
read_traceheader!(s, th_b2s, headers[trace])
skip(s, ns*4)
end
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 4506 | export read_con
"""
Use: read_con(con::SeisCon;
blocks::Array{Int,1} = Array(1:length(con)),
prealloc_traces::Int = 50000)
Read 'blocks' out of 'con' into a preallocated array of size (ns x prealloc_traces).
If preallocated memory fills, it will be expanded again by 'prealloc_traces'.
"""
function read_con(con::SeisCon, blocks::Array{Int,1};
prealloc_traces::Int = 50000)
nblocks = length(blocks)
if maximum(blocks)>length(con) @error "Call for block $(maximum(blocks)) in a container with $(length(con)) blocks." end
# Check dsf
datatype = Float32
if con.dsf == 1
datatype = IBMFloat32
elseif con.dsf != 5
@error "Data type not supported ($(fh.bfh.DataSampleFormat))"
end
# Pre-allocate
data = Array{datatype,2}(undef, con.ns, prealloc_traces)
headers = zeros(BinaryTraceHeader, prealloc_traces)
fh = read_fileheader(con.blocks[1].file)
trace_count = 0
# Read all blocks
for block in blocks
# Check size of next block and pass view to pre-alloc
brange = con.blocks[block].endbyte - con.blocks[block].startbyte
ntraces = Int((brange)/(240 + con.ns*4))
# Check if there is room in pre-alloc'd mem
isroom = (trace_count + ntraces) <= length(headers)
if ~isroom
println("Expanding preallocated memory")
prealloc_traces *= 2
data = hcat(data, Array{datatype,2}(undef, con.ns, ntraces+prealloc_traces))
append!(headers, zeros(BinaryTraceHeader, ntraces+prealloc_traces))
end
tmp_data = view(data, :,(trace_count+1):(trace_count+ntraces))
tmp_headers = view(headers, (trace_count+1):(trace_count+ntraces))
# Read the next block
read_block!(con.blocks[block], con.ns, con.dsf, tmp_data, tmp_headers)
trace_count += ntraces
end
return SeisBlock{datatype}(fh, headers[1:trace_count], data[:,1:trace_count])
end
function read_con(con::SeisCon, keys::Array{String,1}, blocks::Array{Int,1};
prealloc_traces::Int = 50000)
nblocks = length(blocks)
# Check dsf
datatype = Float32
if con.dsf == 1
datatype = IBMFloat32
elseif con.dsf != 5
@error "Data type not supported ($(fh.bfh.DataSampleFormat))"
end
# Check for RecSrcScalar
in("RecSourceScalar", keys) ? nothing : push!(keys, "RecSourceScalar")
# Pre-allocate
data = Array{datatype,2}(undef, con.ns, prealloc_traces)
headers = zeros(BinaryTraceHeader, prealloc_traces)
fh = read_fileheader(con.blocks[1].file)
trace_count = 0
# Read all blocks
for block in blocks
# Check size of next block and pass view to pre-alloc
brange = con.blocks[block].endbyte - con.blocks[block].startbyte
ntraces = Int((brange)/(240 + con.ns*4))
# Check if there is room in pre-alloc'd mem
isroom = (trace_count + ntraces) <= length(headers)
if ~isroom
println("Expanding preallocated memory")
data = hcat(data, Array{datatype,2}(undef, con.ns, ntraces+prealloc_traces))
append!(headers, zeros(BinaryTraceHeader, ntraces+prealloc_traces))
prealloc_traces *= 2
end
tmp_data = view(data, :,(trace_count+1):(trace_count+ntraces))
tmp_headers = view(headers, (trace_count+1):(trace_count+ntraces))
# Read the next block
read_block!(con.blocks[block], keys, con.ns, con.dsf, tmp_data, tmp_headers)
trace_count += ntraces
end
return SeisBlock{datatype}(fh, headers[1:trace_count], data[:,1:trace_count])
end
# RANGES & INT
function read_con(con::SeisCon, blocks::TR;
prealloc_traces::Int = 50000) where {TR<:AbstractRange}
read_con(con, Array(blocks), prealloc_traces = prealloc_traces)
end
function read_con(con::SeisCon, blocks::Integer;
prealloc_traces::Int = 50000)
read_con(con, [blocks], prealloc_traces = prealloc_traces)
end
function read_con(con::SeisCon, keys::Array{String,1}, blocks::TR;
prealloc_traces::Int = 50000) where {TR<:AbstractRange}
read_con(con, keys, Array(blocks), prealloc_traces = prealloc_traces)
end
function read_con(con::SeisCon, keys::Array{String,1}, blocks::Integer;
prealloc_traces::Int = 50000)
read_con(con, keys, [blocks], prealloc_traces = prealloc_traces)
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 4428 | export read_con_headers
"""
read_con_headers(con::SeisCon, keys::Array{String,1}, blocks::Array{Int,1};
prealloc_traces::Int = 50000)
Read `keys` from `blocks` in `con`. Skips all data and only reads and returns headers.
# Examples
h = read_con_headers(s, ["SourceX"; "SourceY"], Array(1:11))
"""
function read_con_headers(con::SeisCon, keys::Array{String,1}, blocks::Array{Int,1};
prealloc_traces::Int = 50000)
nblocks = length(blocks)
# Check dsf
datatype = Float32
if con.dsf == 1
datatype = IBMFloat32
elseif con.dsf != 5
@error "Data type not supported ($(fh.bfh.DataSampleFormat))"
end
# Check for RecSrcScalar
in("RecSourceScalar", keys) ? nothing : push!(keys, "RecSourceScalar")
in("ElevationScalar", keys) ? nothing : push!(keys, "ElevationScalar")
# Pre-allocate
headers = zeros(BinaryTraceHeader, prealloc_traces)
fh = FileHeader()
set_fileheader!(fh.bfh, :ns, con.ns)
set_fileheader!(fh.bfh, :DataSampleFormat, con.dsf)
# Read all blocks
trace_count = 0
for block in blocks
# Check size of next block and pass view to pre-alloc
brange = con.blocks[block].endbyte - con.blocks[block].startbyte
ntraces = Int((brange)/(240 + con.ns*4))
# Check if there is room in pre-alloc'd mem
isroom = (trace_count + ntraces) <= length(headers)
if ~isroom
println("Expanding preallocated memory")
prealloc_traces *= 2
prealloc_traces += ntraces
prealloc_headers = zeros(BinaryTraceHeader, ntraces+prealloc_traces)
append!(headers, prealloc_headers)
end
tmp_headers = view(headers, (trace_count+1):(trace_count+ntraces))
# Read the next block
read_block_headers!(con.blocks[block], keys, con.ns, con.dsf, tmp_headers)
trace_count += ntraces
end
return SeisBlock{datatype}(fh, headers[1:trace_count], Array{datatype,2}(undef,0,0))
end
function read_con_headers(con::SeisCon, blocks::Array{Int,1};
prealloc_traces::Int = 50000)
nblocks = length(blocks)
# Check dsf
datatype = Float32
if con.dsf == 1
datatype = IBMFloat32
elseif con.dsf != 5
@error "Data type not supported ($(fh.bfh.DataSampleFormat))"
end
# Pre-allocate
headers = Array{BinaryTraceHeader,1}(undef, prealloc_traces)
fh = FileHeader(); set_fileheader!(fh.bfh, :ns, con.ns)
set_fileheader!(fh.bfh, :DataSampleFormat, con.dsf)
# Read all blocks
trace_count = 0
for block in blocks
# Check size of next block and pass view to pre-alloc
brange = con.blocks[block].endbyte - con.blocks[block].startbyte
ntraces = Int((brange)/(240 + con.ns*4))
# Check if there is room in pre-alloc'd mem
isroom = (trace_count + ntraces) <= length(headers)
if ~isroom
println("Expanding preallocated memory")
prealloc_traces *= 2
prealloc_traces += ntraces
append!(headers, Array{BinaryTraceHeader,1}(undef, ntraces+prealloc_traces))
end
tmp_headers = view(headers, (trace_count+1):(trace_count+ntraces))
# Read the next block
read_block_headers!(con.blocks[block], con.ns, con.dsf, tmp_headers)
trace_count += ntraces
end
return SeisBlock{datatype}(fh, headers[1:trace_count], Array{datatype,2}(undef,0,0))
end
function read_con_headers(con::SeisCon, blocks::TR;
prealloc_traces::Int = 50000) where {TR<:AbstractRange}
read_con_headers(con, Array(blocks), prealloc_traces = prealloc_traces)
end
function read_con_headers(con::SeisCon, blocks::Integer;
prealloc_traces::Int = 50000)
read_con_headers(con, [blocks], prealloc_traces = prealloc_traces)
end
function read_con_headers(con::SeisCon, keys::Array{String,1}, blocks::TR;
prealloc_traces::Int = 50000) where {TR<:AbstractRange}
read_con_headers(con, keys, Array(blocks), prealloc_traces = prealloc_traces)
end
function read_con_headers(con::SeisCon, keys::Array{String,1}, blocks::Integer;
prealloc_traces::Int = 50000)
read_con_headers(con, keys, [blocks], prealloc_traces = prealloc_traces)
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 1813 | export read_file
"""
read_file(s)
Read entire SEGY file from stream 's'.
"""
function read_file(s::IO, warn_user::Bool; start_byte::Int = 3600,
end_byte::Int = position(seekend(s)))
# Read with all keys
return read_file(s, th_keys(), warn_user; start_byte=start_byte, end_byte=end_byte)
end
"""
read_file(s, keys)
Read entire SEGY file from stream 's', only reading the header values in 'keys'.
"""
function read_file(s::IO, keys::Array{String, 1}, warn_user::Bool;
start_byte::Int = 3600, end_byte::Int = position(seekend(s)))
# Read File Header
fh = read_fileheader(s)
# Move to start of block
seek(s, start_byte)
# Check datatype of file
datatype = Float32
if fh.bfh.DataSampleFormat == 1
datatype = IBMFloat32
elseif fh.bfh.DataSampleFormat != 5
@error "Data type not supported ($(fh.bfh.DataSampleFormat))"
end
# Check fixed length trace flag
(fh.bfh.FixedLengthTraceFlag!=1 & warn_user) && @warn "Fixed length trace flag set in stream: $s"
## Check for extended text header
# Read traces
trace_size = (240 + fh.bfh.ns*4)
ntraces = Int((end_byte - start_byte)/trace_size)
# Preallocate memory
headers = zeros(BinaryTraceHeader, ntraces)
data = Array{datatype, 2}(undef, fh.bfh.ns, ntraces)
th_b2s = th_byte2sample()
# Read each trace
ref = position(s)
for trace in 1:TRACE_CHUNKSIZE:ntraces
seek(s, (trace - 1) * trace_size + ref)
tracee = min(trace + TRACE_CHUNKSIZE - 1, ntraces)
chunk = length(trace:tracee)*trace_size
sloc = IOBuffer(read(s, chunk))
read_traces!(sloc, view(headers, trace:tracee), view(data, :, trace:tracee), keys, th_b2s)
end
return SeisBlock(fh, headers, data)
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 2464 | # Return the binary header from a SEGY file
export read_fileheader
"""
# Info
Use: fileheader = read_fileheader(s::IO; bigendian::Bool = true)
Returns a binary file header formed using bytes 3200-3600 from the stream 's'.
"""
function read_fileheader(s::IO; bigendian::Bool = true)
return read_fileheader(s, fh_keys(); bigendian=bigendian)
end
"""
Use: fileheader = read_fileheader(s::IO, keys::Array{String,1}; bigendian::Bool = true)
Return a fileheader from stream 's' with the fields defined in 'keys'.
# Examples
Read the entire file header.
julia> s = open("data/testdata.segy")
IO(<file data/testdata.segy>)
julia> fh = SegyIO.read_fileheader(s)
SegyIO.BinaryFileHeader(9999, 9999, 1, 400, 0, 4000, 4000, 560, 560, 1, -13922, 4, 1, 0,
0, 0, 0, 0, 0, 0, 0, 2, 1, 4, 2, 0, 0, 0, 0, 0, Dict("expf"=>3226,"sfe"=>3234,
"rgc"=>3250,"jobid"=>3200,"dt"=>3216,"nsfr"=>3222,"slen"=>3236,"vpol"=>3258,"renum"=>3208,
"dsf"=>3224…))
Read only the sample interval and number of traces from the file header.
julia> s = open("data/testdata.segy")
IO(<file data/testdata.segy>)
julia> fh = SegyIO.read_fileheader(s, ["dt"; "ns"])
SegyIO.BinaryFileHeader(0, 0, 0, 0, 0, 4000, 0, 560, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Dict("expf"=>3226,"sfe"=>3234,"rgc"=>3250,"jobid"=>3200,
"dt"=>3216,"nsfr"=>3222,"slen"=>3236,"vpol"=>3258,"renum"=>3208,"dsf"=>3224…))
"""
function read_fileheader(s::IO, keys::Array{String,1}; bigendian::Bool = true)
# Return to start of stream
seekstart(s)
# Read text header
th = read(s, 3600)
# Initialize binary file header
bfh = BinaryFileHeader()
fh_b2s = fh_byte2sample()
swp(x) = bigendian ? bswap(x) : x
for k in keys
# Read into file header
sym = Symbol(k)
nb = sizeof(getfield(bfh, sym))-1
bst = fh_b2s[k]+1
val = swp(reinterpret(typeof(getfield(bfh, sym)), th[bst:bst+nb])[1])
setfield!(bfh, sym, val)
end
seek(s, 3600)
return FileHeader(String(th[1:3200]), bfh)
end
"""
# Info
Use: fileheader = read_fileheader(s::String; bigendian::Bool = true)
Returns a binary file header formed using bytes 3200-3600 from the stream 's' that is
automatically opened then closed
"""
function read_fileheader(s::String; bigendian::Bool = true)
open(s) do file
fh = read_fileheader(file; bigendian=bigendian)
return fh
end
end | SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 1913 | export read_trace
"""
Use: read_trace!(s::IO,
fh::BinaryFileHeader,
datatype::Type,
headers::AbstractArray{BinaryTraceHeader,1},
data::AbstractArray{<:Union{IBMFloat32, Float32}, 2},
trace::Int,
th_byte2sample::Dict{String,Int32})
Reads 'trace' from the current position of stream 's' into 'headers' and
'data'.
"""
function read_traces!(s::IO, headers::AbstractVector{BinaryTraceHeader},
data::AbstractMatrix{<:Union{IBMFloat32, Float32}},
th_byte2sample::Dict{String,Int32})
return read_traces!(s, headers, data, collect(keys(th_byte2sample)), th_byte2sample)
end
"""
Use: read_trace!(s::IO,
fh::BinaryFileHeader,
datatype::Type,
headers::AbstractArray{BinaryTraceHeader,1},
data::AbstractArray{<:Union{IBMFloat32, Float32}, 2},
trace::Int,
keys::Array{String,1},
th_byte2sample::Dict{String,Int32})
Reads 'trace' from the current position of stream 's' into 'headers' and
'data'. Only the header values in 'keys' and read.
"""
function read_traces!(s::IO, headers::AbstractVector{BinaryTraceHeader},
data::AbstractMatrix{DT}, keys::Array{String,1},
th_byte2sample::Dict{String,Int32}) where {DT<:Union{IBMFloat32, Float32}}
ntrace = size(data, 2)
ntrace == 0 && return
swp = swp_func(DT)
tmph = zeros(UInt8, 240)
for trace_loc=0:ntrace-1
# Read trace header
read_traceheader!(s, keys, th_byte2sample, headers[trace_loc+1]; th=tmph)
# Read trace
read!(s, view(data, :, trace_loc+1))
end
map!(swp, data, data)
nothing
end
swp_func(::Type{Float32}) = bswap
swp_func(::Any) = x -> x
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 1777 | export read_traceheader
"""
# Info
Use: fileheader = read_fileheader(s::IO; bigendian::Bool = true)
Returns a binary trace header formed from the current position in the stream 's'.
"""
function read_traceheader(s::IO, th_byte2sample::Dict{String,Int32}; bigendian::Bool=true, th=zeros(UInt8, 240))
return read_traceheader(s, collect(keys(th_byte2sample)), th_byte2sample; bigendian=bigendian, th=th)
end
"""
Use: fileheader = read_traceheader(s::IO, keys = Array{String,1}; bigendian::Bool = true)
Returns a binary trace header formed from the current position in the stream 's', only reading
header values denoted in 'keys'.
"""
function read_traceheader(s::IO, keys::Array{String,1}, th_byte2sample::Dict{String, Int32};
bigendian::Bool = true, th=zeros(UInt8, 240))
# Initialize binary file header
traceheader = BinaryTraceHeader()
read_traceheader!(s, keys, th_byte2sample, traceheader; bigendian=bigendian, th=th)
return traceheader
end
function read_traceheader!(s::IO, keys::Array{String,1}, th_byte2sample::Dict{String, Int32}, hdr::BinaryTraceHeader;
bigendian::Bool = true, th=zeros(UInt8, 240))
# read full trace header then split
read!(s, th)
# Read all header values and put in fileheader
for k in keys
sym = Symbol(k)
nb = sizeof(getfield(hdr, sym)) - 1
bst = th_byte2sample[k]+1
val = reinterpret(typeof(getfield(hdr, sym)), th[bst:bst+nb])[1]
bigendian && (val = bswap(val))
setfield!(hdr, sym, val)
end
nothing
end
read_traceheader!(s::IO, thb::Dict{String, Int32}, hdr::BinaryTraceHeader; be::Bool = true, th=zeros(UInt8, 240)) =
read_traceheader!(s, collect(keys(thb)), thb, hdr; be=be, th=th) | SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 581 | export segy_read
"""
block = segy_read(file::String)
"""
function segy_read(file::AbstractString; buffer::Bool = true, warn_user::Bool = true)
if buffer
s = IOBuffer(read(open(file)))
else
s = open(file)
end
read_file(s, warn_user)
end
"""
block = segy_read(file::String, keys::Array{String,1})
"""
function segy_read(file::AbstractString, keys::Array{String,1}; buffer::Bool = true, warn_user::Bool = true)
if buffer
s = IOBuffer(read(open(file)))
else
s = open(file)
end
read_file(s, keys, warn_user)
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 1084 | export delim_vector
"""
Use: delim_vector(x::AbstractVector, probe_length::Int)
Return the indicies of the first element for each homogenous section in `x`.
# Example
```
julia> x = vec([1.0 1.0 1.0 2.0 2.0 2.0 2.0 3.0 3.0 3.0 3.0]);
julia> delim_vector(x, 1)
3-element Array{Int64,1}:
1
4
8
```
`probe_length` sets the intial guess for the section length. Choosing `probe_length` close the the true length of the section provides modest performance benefits, however simply setting the length to 1 is not a huge hit.
```
julia> @btime delim_vector(x,1)
1.169 μs (3 allocations: 176 bytes)
4-element Array{Int64,1}:
1
100001
100003
200003
julia> @btime delim_vector(x,100000)
945.615 ns (3 allocations: 176 bytes)
4-element Array{Int64,1}:
1
100001
100003
200003
```
"""
function delim_vector(x::AbstractVector, probe_length::Int)
delims = Array{Int,1}(undef, 1)
delims[1] = 1
n = length(x)
while true
j = find_next_delim(x, delims[end], probe_length)
(j < n) ? (push!(delims, j)) : (return delims)
end
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 1635 | export find_next_delim
"""
Use: find_next_delim(x::AbstractVector, i::Int, probe_length::Int)
From starting index `i`, return the index of the next element in the vector that holds a different value.
# EXAMPLE
```
julia> x = vec([1 1 1 2 2 2 2 3 3 3 3]);
julia> find_next_delim(x, 1, 1)
4
julia> find_next_delim(x, 4, 1)
8
```
"""
function find_next_delim(x::AbstractVector, i::Int, probe_length::Int)
# Setup
j_prev = i
j = j_prev + probe_length
undershoot_counter = 0
end_counter = 0
n = length(x)
probed_end_flag = false
# Evaluate probe and update
while true
# Check inbounds, and update values
if j <= n
val = x[j_prev]
probed_val = x[j]
# Undershoot delim
if val == probed_val
j_prev = j
j += probe_length
undershoot_counter += 1
# If keep undershooting, extend probe unless at end of x
if (undershoot_counter >= 10) & ~probed_end_flag
probe_length *= 10
undershoot_counter = 0
end
# Delim found
elseif j_prev + 1 == j
return j
# Overshoot delim
else
j = j_prev
probe_length = max(1,floor(Int, probe_length/2))
end
# Probed out of bounds
else
j = n
probe_length = 1
probed_end_flag = true
(end_counter>10) ? (return j) : (end_counter += 1)
end
end
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 1061 | export scan_block
function scan_block(buf::IO, mem_block::Int, mem_trace::Int, keys::Array{String,1},
chunk_start::Int, file::String, th_byte2sample::Dict{String, Int32})
# Calc info about this block
startbyte = position(buf) + chunk_start
ntraces_block = Int(mem_block/mem_trace)
headers = zeros(BinaryTraceHeader, ntraces_block)
count = 0
# Read all headers and record end byte
while !eof(buf) && count<ntraces_block
count += 1
read_traceheader!(buf, keys, th_byte2sample, headers[count] )
skip(buf, mem_trace-240)
end
endbyte = position(buf) + chunk_start
headers_block = view(headers,1:count)
# Parse headers for min/max
summary = Dict{String, Array{Int32,1}}()
for k in keys
tmp = Int32.([getfield((headers_block[i]), Symbol(k)) for i in 1:count])
summary["$k"] = [minimum(tmp); maximum(tmp)]
end # k
# Collect in BlockScan and return
scan = BlockScan(file, startbyte, endbyte, summary)
return scan
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 743 | export scan_chunk
function scan_chunk!(s::IO, max_blocks_per_chunk::Int, mem_block::Int, mem_trace::Int,
keys::Array{String,1}, file::String, scan::Array{BlockScan,1}, count::Int)
# Load chunk into memory and get nblocks in this chunk
chunk_start = position(s)
buf = IOBuffer(read(s, max_blocks_per_chunk*mem_block))
buf_size = position(seekend(buf))
seekstart(buf)
nblocks_chunk = Int(ceil(buf_size/mem_block))
th_byte2sample = SegyIO.th_byte2sample()
# Scan all blocks in this chunk
for b in 1:nblocks_chunk
scan[count] = scan_block(buf, mem_block, mem_trace, keys, chunk_start, file, th_byte2sample)
count += 1
end # b
close(buf)
return count
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 3091 | export scan_file
"""
scan_file(file::String, keys::Array{String, 1}, blocksize::Int;
chunksize::Int = CHUNKSIZE,
verbosity::Int = 1)
Scan `file` for header fields in `keys`, and return a SeisCon object containing
the metadata summaries in `blocksize` groups of traces. Load `chunksize` MB of `file`
into memory at a time.
If the number of traces in `file` are not divisible by `blocksize`, the last block will
summarize the remaining traces.
`verbosity` set to 0 silences updates on the current file being scanned.
# Example
s = scan_file('testdata.segy', ["SourceX", "SourceY"], 300)
"""
function scan_file(file::AbstractString, keys::Array{String, 1}, blocksize::Int;
chunksize::Int = CHUNKSIZE,
verbosity::Int = 1)
# Put fileheader in memory and read
verbosity==1 && println("Scanning ... $file")
s = open(file)
fh = read_fileheader(s)
# Calc number of blocks
fsize = position(seekend(s))
mem_trace = 240 + fh.bfh.ns*4
mem_block = min(fsize, blocksize*mem_trace)
ntraces_file = Int((fsize - 3600)/mem_trace)
nblocks_file = max(1, Int(ceil(ntraces_file/blocksize)))
scan = Array{BlockScan,1}(undef, nblocks_file)
count = 1
# Blocks to load per chunk
max_blocks_per_chunk = max(1, Int(floor(chunksize*MB2B/mem_block)))
# Read at most one full chunk into buffer
seek(s, 3600)
# For each chunk
for c in 1:max_blocks_per_chunk:nblocks_file
count = scan_chunk!(s, max_blocks_per_chunk, mem_block, mem_trace,
keys, file, scan, count)
end # c
return SeisCon(fh.bfh.ns, fh.bfh.DataSampleFormat, scan)
end
"""
scan_file(file::String, keys::Array{String, 1};
chunksize::Int = CHUNKSIZE,
verbosity::Int = 1)
Scan `file` for header fields in `keys`, and return a SeisCon object containing
the metadata summaries in single-source groups of traces. Load `chunksize` MB of `file`
into memory at a time.
# Example
s = scan_file('testdata.segy', ["SourceX", "SourceY"])
"""
function scan_file(file::AbstractString, keys::Array{String, 1};
chunksize::Int = 10*CHUNKSIZE,
verbosity::Int = 1)
# Put fileheader in memory and read
verbosity==1 && println("Scanning ... $file")
s = open(file)
fh = read_fileheader(s)
# Add src keys if necessary
"SourceX" in keys ? nothing : push!(keys, "SourceX")
"SourceY" in keys ? nothing : push!(keys, "SourceY")
# Calc number of blocks
fsize = filesize(file)
mem_trace = 240 + fh.bfh.ns*4
scan = Array{BlockScan,1}(undef, 0)
seek(s, 3600)
ntraces = Int((fsize - 3600)/mem_trace)
traces_per_chunk = min(ntraces, Int(floor(chunksize*MB2B/mem_trace)))
mem_chunk = traces_per_chunk*mem_trace
fl_eof = false
while !eof(s)
scan_shots!(s, mem_chunk, mem_trace, keys, file, scan, fl_eof)
end
close(s)
return SeisCon(fh.bfh.ns, fh.bfh.DataSampleFormat, scan[1:end])
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 1755 | export scan_shots
function scan_shots!(s::IO, mem_chunk::Int, mem_trace::Int,
keys::Array{String,1}, file::AbstractString, scan::Array{BlockScan,1}, fl_eof::Bool)
# Load chunk into memory
chunk_start = position(s)
buf = IOBuffer(read(s, mem_chunk))
eof(s) ? (fl_eof=true) : nothing
buf_size = position(seekend(buf)); seekstart(buf)
ntraces = Int(floor(buf_size/mem_trace))
headers = zeros(BinaryTraceHeader, ntraces)
# Get headers from chunk
th = zeros(UInt8, 240)
for i in 1:ntraces
read_traceheader!(buf, keys, SegyIO.th_b2s, headers[i]; th=th)
skip(buf, mem_trace-240)
end
# Get all requested header vectors
vals = Dict{String, Array{Int32,1}}()
for k in keys
tmp = Int32.([getfield((headers[i]), Symbol(k)) for i in 1:ntraces])
vals["$k"] = tmp
end # k
# Deliminate to find shots
sx = vals["SourceX"]
sy = vals["SourceY"]
#combo = [[view(sx,i) view(sy,i)] for i in 1:ntraces]
combo = [[sx[i] sy[i]] for i in 1:ntraces]
part = delim_vector(combo, 1)
fl_eof ? push!(part, length(combo) + 1) : push!(part, ntraces + 1)
# Summarise each shot
for shot in 1:length(part)-1
start_trace = part[shot]
end_trace = part[shot + 1]-1
start_byte = mem_trace*(start_trace-1) + chunk_start
end_byte = mem_trace*(end_trace) + chunk_start
summary = Dict{String, Array{Int32,1}}()
for k in keys
tmp = vals[k][start_trace:end_trace]
summary["$k"] = [minimum(tmp); maximum(tmp)]
end
push!(scan, BlockScan(file, start_byte, end_byte, summary))
end
seek(s, scan[end].endbyte)
close(buf)
nothing
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 4791 | export segy_scan
"""
segy_scan(dir::String, filt::String, keys::Array{String,1}, blocksize::Int;
chunksize::Int = CHUNKSIZE,
pool::WorkerPool = WorkerPool(workers()),
verbosity::Int = 1)
returns: SeisCon
Scan header fields `keys` of files in `dir` matching the filter `filt` in blocks
containing `blocksize` continguous traces. The scanning of files is distributed to workers
in `pool`, the default pool is all workers.
`chunksize` determines how many MB of data will be loaded into memory at a time.
`CHUNKSIZE` defaults to 2048MB.
`verbosity` set to 0 silences updates on the current file being scanned.
"""
function segy_scan(dir::AbstractString, filt::Union{String, Regex}, keys::Array{String,1}, blocksize::Int;
chunksize::Int = CHUNKSIZE,
pool::WorkerPool = WorkerPool(workers()),
verbosity::Int = 1,
filter::Bool = true)
endswith(dir, "/") ? nothing : dir *= "/"
filter ? (filenames = searchdir(dir, filt)) : (filenames = [filt])
files = map(x -> dir*x, filenames)
files_sort = files[sortperm(filesize.(files), rev = true)]
run_scan(f) = scan_file(f, keys, blocksize, chunksize=chunksize, verbosity=verbosity)
s = pmap(run_scan, pool, files_sort)
return merge(s)
end
"""
segy_scan(dirs::Array{String,1}, filt::String, keys::Array{String,1}, blocksize::Int;
chunksize::Int = CHUNKSIZE,
pool::WorkerPool = WorkerPool(workers()),
verbosity::Int = 1)
Scans all files whose name contains `filt` in each directory of `dirs` using `blocksize`.
"""
function segy_scan(dirs::Array{<:AbstractString,1}, filt::Union{String, Regex}, keys::Array{String,1}, blocksize::Int;
chunksize::Int = CHUNKSIZE,
pool::WorkerPool = WorkerPool(workers()),
verbosity::Int = 1,
filter::Bool = true)
files = Array{supertype(typeof(dirs[1]*"")), 1}()
for dir in dirs
endswith(dir, "/") ? nothing : dir *= "/"
filter ? (filenames = searchdir(dir, filt)) : (filenames = [filt])
append!(files, map(x -> dir*x, filenames))
end
files_sort = files[sortperm(filesize.(files), rev = true)]
run_scan(f) = scan_file(f, keys, blocksize, chunksize=chunksize, verbosity=verbosity)
s = pmap(run_scan, pool, files_sort)
return merge(s)
end
"""
segy_scan(dir::String, filt::String, keys::Array{String,1},
chunksize::Int = CHUNKSIZE,
pool::WorkerPool = WorkerPool(workers()),
verbosity::Int = 1)
If no `blocksize` is specified, the scanner automatically detects source locations and returns
blocks of continguous traces for each source location, but each block no larger then CHUNKSIZE.
"""
function segy_scan(dir::AbstractString, filt::Union{String, Regex}, keys::Array{String,1};
chunksize::Int = CHUNKSIZE,
pool::WorkerPool = WorkerPool(workers()),
verbosity::Int = 1,
filter::Bool = true)
endswith(dir, "/") ? nothing : dir *= "/"
filter ? (filenames = searchdir(dir, filt)) : (filenames = [filt])
files = map(x -> dir*x, filenames)
files_sort = files[sortperm(filesize.(files), rev = true)]
run_scan(f) = scan_file(f, keys, chunksize=chunksize, verbosity=verbosity)
s = pmap(run_scan, pool, files_sort)
return merge(s)
end
"""
segy_scan(dirs::Array{String,1}, filt::String, keys::Array{String,1},
chunksize::Int = CHUNKSIZE,
pool::WorkerPool = WorkerPool(workers()),
verbosity::Int = 1)
Scans all files whose name contains `filt` in each directory of `dirs`.
"""
function segy_scan(dirs::Array{<:AbstractString,1}, filt::Union{String, Regex}, keys::Array{String,1};
chunksize::Int = CHUNKSIZE,
pool::WorkerPool = WorkerPool(workers()),
verbosity::Int = 1,
filter::Bool = true)
files = Array{supertype(typeof(dirs[1]*"")), 1}()
for dir in dirs
endswith(dir, "/") ? nothing : dir *= "/"
filter ? (filenames = searchdir(dir, filt)) : (filenames = [filt])
append!(files, map(x -> dir*x, filenames))
end
files_sort = files[sortperm(filesize.(files), rev = true)]
run_scan(f) = scan_file(f, keys, chunksize=chunksize, verbosity=verbosity)
s = pmap(run_scan, pool, files_sort)
return merge(s)
end
function searchdir(path, filt::String)
filt = Regex(replace(filt, "*" => ".*."))
filter!(x->occursin(filt, x),readdir(path))
end
function searchdir(path, filt::Regex)
filter!(x->occursin(filt, x),readdir(path))
end | SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 3704 | import Base.show
export BinaryFileHeader, fh_byte2sample, show
mutable struct BinaryFileHeader
Job :: Int32
Line :: Int32
Reel :: Int32
DataTracePerEnsemble :: Int16
AuxiliaryTracePerEnsemble :: Int16
dt :: Int16
dtOrig :: Int16
ns :: Int16
nsOrig :: Int16
DataSampleFormat :: Int16
EnsembleFold :: Int16
TraceSorting :: Int16
VerticalSumCode :: Int16
SweepFrequencyStart :: Int16
SweepFrequencyEnd :: Int16
SweepLength :: Int16
SweepType :: Int16
SweepChannel :: Int16
SweepTaperlengthStart :: Int16
SweepTaperLengthEnd :: Int16
TaperType :: Int16
CorrelatedDataTraces :: Int16
BinaryGain :: Int16
AmplitudeRecoveryMethod :: Int16
MeasurementSystem :: Int16
ImpulseSignalPolarity :: Int16
VibratoryPolarityCode :: Int16
SegyFormatRevisionNumber :: Int16
FixedLengthTraceFlag :: Int16
NumberOfExtTextualHeaders :: Int16
end
function BinaryFileHeader()
BinaryFileHeader(0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0)
end
function fh_byte2sample()
Dict{String, Int32}(
"Job" => 3200,
"Line" => 3204,
"Reel" => 3208,
"DataTracePerEnsemble" => 3212,
"AuxiliaryTracePerEnsemble" => 3214,
"dt" => 3216,
"dtOrig" => 3218,
"ns" => 3220,
"nsOrig" => 3222,
"DataSampleFormat" => 3224,
"EnsembleFold" => 3226,
"TraceSorting" => 3228,
"VerticalSumCode" => 3230,
"SweepFrequencyStart" => 3232,
"SweepFrequencyEnd" => 3234,
"SweepLength" => 3236,
"SweepType" => 3238,
"SweepChannel" => 3240,
"SweepTaperlengthStart" => 3242,
"SweepTaperLengthEnd" => 3244,
"TaperType" => 3246,
"CorrelatedDataTraces" => 3248,
"BinaryGain" => 3250,
"AmplitudeRecoveryMethod" => 3252,
"MeasurementSystem" => 3254,
"ImpulseSignalPolarity" => 3256,
"VibratoryPolarityCode" => 3258,
"SegyFormatRevisionNumber" => 3500,
"FixedLengthTraceFlag" => 3502,
"NumberOfExtTextualHeaders" => 3504)
end
fh_keys() = collect(keys(fh_byte2sample()))
function show(io::IO, bfh::BinaryFileHeader)
println("BinaryFileHeader:")
for field in fieldnames(BinaryFileHeader)
s = @sprintf " %30s: %9d" String(field) getfield(bfh, field)
println(s)
end
println("\n")
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 10558 | export BinaryTraceHeader, th_byte2sample
mutable struct BinaryTraceHeader
TraceNumWithinLine ::Int32
TraceNumWithinFile ::Int32
FieldRecord ::Int32
TraceNumber ::Int32
EnergySourcePoint ::Int32
CDP ::Int32
CDPTrace ::Int32
TraceIDCode ::Int16
NSummedTraces ::Int16
NStackedTraces ::Int16
DataUse ::Int16
Offset ::Int32
RecGroupElevation ::Int32
SourceSurfaceElevation ::Int32
SourceDepth ::Int32
RecDatumElevation ::Int32
SourceDatumElevation ::Int32
SourceWaterDepth ::Int32
GroupWaterDepth ::Int32
ElevationScalar ::Int16
RecSourceScalar ::Int16
SourceX ::Int32
SourceY ::Int32
GroupX ::Int32
GroupY ::Int32
CoordUnits ::Int16
WeatheringVelocity ::Int16
SubWeatheringVelocity ::Int16
UpholeTimeSource ::Int16
UpholeTimeGroup ::Int16
StaticCorrectionSource ::Int16
StaticCorrectionGroup ::Int16
TotalStaticApplied ::Int16
LagTimeA ::Int16
LagTimeB ::Int16
DelayRecordingTime ::Int16
MuteTimeStart ::Int16
MuteTimeEnd ::Int16
ns ::Int16
dt ::Int16
GainType ::Int16
InstrumentGainConstant ::Int16
InstrumntInitialGain ::Int16
Correlated ::Int16
SweepFrequencyStart ::Int16
SweepFrequencyEnd ::Int16
SweepLength ::Int16
SweepType ::Int16
SweepTraceTaperLengthStart ::Int16
SweepTraceTaperLengthEnd ::Int16
TaperType ::Int16
AliasFilterFrequency ::Int16
AliasFilterSlope ::Int16
NotchFilterFrequency ::Int16
NotchFilterSlope ::Int16
LowCutFrequency ::Int16
HighCutFrequency ::Int16
LowCutSlope ::Int16
HighCutSlope ::Int16
Year ::Int16
DayOfYear ::Int16
HourOfDay ::Int16
MinuteOfHour ::Int16
SecondOfMinute ::Int16
TimeCode ::Int16
TraceWeightingFactor ::Int16
GeophoneGroupNumberRoll ::Int16
GeophoneGroupNumberTraceStart ::Int16
GeophoneGroupNumberTraceEnd ::Int16
GapSize ::Int16
OverTravel ::Int16
CDPX ::Int32
CDPY ::Int32
Inline3D ::Int32
Crossline3D ::Int32
ShotPoint ::Int32
ShotPointScalar ::Int16
TraceValueMeasurmentUnit ::Int16
TransductionConstnatMantissa ::Int32
TransductionConstantPower ::Int16
TransductionUnit ::Int16
TraceIdentifier ::Int16
ScalarTraceHeader ::Int16
SourceType ::Int16
SourceEnergyDirectionMantissa ::Int32
SourceEnergyDirectionExponent ::Int16
SourceMeasurmentMantissa ::Int32
SourceMeasurementExponent ::Int16
SourceMeasurmentUnit ::Int16
Unassigned1 ::Int32
Unassigned2 ::Int32
end
function th_byte2sample()
Dict{String, Int32}(
"TraceNumWithinLine" => 1 -1,
"TraceNumWithinFile" => 5 -1,
"FieldRecord" => 9 -1,
"TraceNumber" => 13 -1,
"EnergySourcePoint" => 17 -1,
"CDP" => 21 -1,
"CDPTrace" => 25 -1,
"TraceIDCode" => 29 -1,
"NSummedTraces" => 31 -1,
"NStackedTraces" => 33 -1,
"DataUse" => 35 -1,
"Offset" => 37 -1,
"RecGroupElevation" => 41 -1,
"SourceSurfaceElevation" => 45 -1,
"SourceDepth" => 49 -1,
"RecDatumElevation" => 53 -1,
"SourceDatumElevation" => 57 -1,
"SourceWaterDepth" => 61 -1,
"GroupWaterDepth" => 65 -1,
"ElevationScalar" => 69 -1,
"RecSourceScalar" => 71 -1,
"SourceX" => 73 -1,
"SourceY" => 77 -1,
"GroupX" => 81 -1,
"GroupY" => 85 -1,
"CoordUnits" => 89 -1,
"WeatheringVelocity" => 91 -1,
"SubWeatheringVelocity" => 93 -1,
"UpholeTimeSource" => 95 -1,
"UpholeTimeGroup" => 97 -1,
"StaticCorrectionSource" => 99 -1,
"StaticCorrectionGroup" => 101-1,
"TotalStaticApplied" => 103-1,
"LagTimeA" => 105-1,
"LagTimeB" => 107-1,
"DelayRecordingTime" => 109-1,
"MuteTimeStart" => 111-1,
"MuteTimeEnd" => 113-1,
"ns" => 115-1,
"dt" => 117-1,
"GainType" => 119-1,
"InstrumentGainConstant" => 121-1,
"InstrumntInitialGain" => 123-1,
"Correlated" => 125-1,
"SweepFrequencyStart" => 127-1,
"SweepFrequencyEnd" => 129-1,
"SweepLength" => 131-1,
"SweepType" => 133-1,
"SweepTraceTaperLengthStart" => 135-1,
"SweepTraceTaperLengthEnd" => 137-1,
"TaperType" => 139-1,
"AliasFilterFrequency" => 141-1,
"AliasFilterSlope" => 143-1,
"NotchFilterFrequency" => 145-1,
"NotchFilterSlope" => 147-1,
"LowCutFrequency" => 149-1,
"HighCutFrequency" => 151-1,
"LowCutSlope" => 153-1,
"HighCutSlope" => 155-1,
"Year" => 157-1,
"DayOfYear" => 159-1,
"HourOfDay" => 161-1,
"MinuteOfHour" => 163-1,
"SecondOfMinute" => 165-1,
"TimeCode" => 167-1,
"TraceWeightingFactor" => 169-1,
"GeophoneGroupNumberRoll" => 171-1,
"GeophoneGroupNumberTraceStart" => 173-1,
"GeophoneGroupNumberTraceEnd" => 175-1,
"GapSize" => 177-1,
"OverTravel" => 179-1,
"CDPX" => 181-1,
"CDPY" => 185-1,
"Inline3D" => 189-1,
"Crossline3D" => 193-1,
"ShotPoint" => 197-1,
"ShotPointScalar" => 201-1,
"TraceValueMeasurmentUnit" => 203-1,
"TransductionConstnatMantissa" => 205-1,
"TransductionConstantPower" => 209-1,
"TransductionUnit" => 211-1,
"TraceIdentifier" => 213-1,
"ScalarTraceHeader" => 215-1,
"SourceType" => 217-1,
"SourceEnergyDirectionMantissa" => 219-1,
"SourceEnergyDirectionExponent" => 223-1,
"SourceMeasurmentMantissa" => 225-1,
"SourceMeasurementExponent" => 229-1,
"SourceMeasurmentUnit" => 231-1,
"Unassigned1" => 233-1,
"Unassigned2" => 237-1)
end
th_keys() = collect(keys(th_byte2sample()))
function BinaryTraceHeader()
BinaryTraceHeader(0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0)
end
Base.zeros(::Type{BinaryTraceHeader}, n::Integer) = [BinaryTraceHeader() for _=1:n]
function show(io::IO, bth::BinaryTraceHeader)
println("BinaryTraceHeader:")
for field in fieldnames(BinaryTraceHeader)
s = @sprintf " %30s: %9d" String(field) getfield(bth, field)
println(s)
end
println("\n")
end
function show(io::IO, Abth::Array{BinaryTraceHeader,1})
if length(Abth) == 0
println("Empty Traceheaders")
else
# Show first
println("BinaryTraceHeader 1:")
for field in fieldnames(BinaryTraceHeader)
s = @sprintf " %30s: %9d" String(field) getfield(Abth[1], field)
println(s)
end
println("\n ... \n")
# Show last
println("BinaryTraceHeader $(length(Abth)):")
for field in fieldnames(BinaryTraceHeader)
s = @sprintf " %30s: %9d" String(field) getfield(Abth[end], field)
println(s)
end
end
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 243 | import Base.copy
export BlockScan
mutable struct BlockScan
file::AbstractString
startbyte::Int
endbyte::Int
summary::Dict{String, Array{Int32, 1}}
end
copy(b::BlockScan) = BlockScan(b.file, b.startbyte, b.endbyte, b.summary) | SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 199 | export FileHeader
struct FileHeader
th::String
bfh::BinaryFileHeader
end
function show(io::IO, fh::FileHeader)
show(fh.bfh)
end
FileHeader() = FileHeader(" "^3200, BinaryFileHeader())
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 1055 | ## From JuliaSeis
primitive type IBMFloat32 32 end
ieeeOfPieces(fr::UInt32, exp::Int32, sgn::UInt32) =
reinterpret(Float32, convert(UInt32,fr >>> 9) | convert(UInt32,exp << 23) | sgn) :: Float32
import Base.convert, Base.Float32
function convert(::Type{Float32}, ibm::IBMFloat32)
local fr::UInt32 = ntoh(reinterpret(UInt32, ibm))
local sgn::UInt32 = fr & 0x80000000 # save sign
fr <<= 1 # shift sign out
local exp::Int32 = convert(Int32,fr >>> 25) # save exponent
fr <<= 7 # shift exponent out
if (fr == convert(UInt32,0))
zero(Float32)
else
# normalize the signficand
local norm::UInt32 = leading_zeros(fr)
fr <<= norm
exp = (exp << 2) - 130 - norm
# exp <= 0 --> ieee(0,0,sgn)
# exp >= 255 --> ieee(0,255,sgn)
# else -> ieee(fr<<1, exp, sgn)
local clexp::Int32 = exp & convert(Int32,0xFF)
ieeeOfPieces(clexp == exp ? fr << 1 : convert(UInt32,0), clexp, sgn)
end
end
Float32(ibm::IBMFloat32) = convert(Float32,ibm)
## From JuliaSeis
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 979 | import Base.size, Base.length
export SeisBlock, set_header!, set_traceheader!, set_fileheader!
mutable struct SeisBlock{DT<:Union{IBMFloat32, Float32}}
fileheader::FileHeader
traceheaders::AbstractArray{BinaryTraceHeader, 1}
data::AbstractArray{DT,2}
end
size(block::SeisBlock) = size(block.data)
length(block::SeisBlock) = length(block.traceheaders)
function SeisBlock(data::Matrix{DT}) where {DT<:Union{Float32, IBMFloat32}}
# Construct FileHeader
ns, ntraces = size(data)
fh = FileHeader()
fh.bfh.ns = ns
DT==Float32 ? fh.bfh.DataSampleFormat=5 : fh.bfh.DataSampleFormat=1
# Construct TraceHeaders
traceheaders = zeros(BinaryTraceHeader, ntraces)
set_traceheader!(traceheaders, :ns, ns*ones(Int16, ntraces))
# Construct Block
block = SeisBlock(fh, traceheaders, data)
return block
end
function SeisBlock(data::Vector{DT}) where {DT<:Union{Float32, IBMFloat32}}
return SeisBlock(reshape(data, :, 1))
end | SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 2703 | # SeisCon type definition and methods
import Base.size, Base.length, Base.getindex, Base.show, Base.copy
export SeisCon, size, getindex, merge_con, split_con, show
struct SeisCon
ns::Int
dsf::Int
blocks::Array{BlockScan,1}
end
size(con::SeisCon) = size(con.blocks)
length(con::SeisCon) = length(con.blocks)
function getindex(con::SeisCon, a::TA) where {TA<:Union{Array{<:Integer,1}, AbstractRange, Integer}}
read_con(con, a)
end
function getindex(con::SeisCon, a::Colon)
read_con(con, 1:length(con))
end
copy(s::SeisCon) = SeisCon(s.ns, s.dsf, copy.(s.blocks))
#=
function show(s::SeisCon)
nblocks = length(s)
for block in in 1:n_blocks
#file = s.blocks[block].file
#file_short = "$(file[1:8]) ... $(file[end-16 : end])"
# BlockID | File | StartByte | EndByte
s = @sprintf "%6s %9d" String(field) getfield(bth, field)
println(s)
end
println("\n")
end
=#
### DEPRECATED ### 09/15/2017
"""
merge_cons(cons::Array{SeisCon,1})
Merge `con`, a vector of SeisCon objects, into one SeisCon object.
"""
function merge_con(cons::Array{SeisCon,1})
@warn "merge_con is deprecated, use merge"
# Check similar metadata
ns = get_confield(cons, :ns)
dsf = get_confield(cons, :dsf)
if all(ns.==ns[1]) && all(dsf.==dsf[1])
d = [cons[i].blocks for i in 1:length(cons)]
return SeisCon(ns[1], dsf[1], vcat(d...))
else
@error "Dissimilar metadata, cannot merge"
end
end
"""
merge_con(a::SeisCon, b::SeisCon)
Merge two SeisCon objects together
"""
merge_con(a::SeisCon, b::SeisCon) = merge_con([a; b])
"""
get_confield(cons::Array{SeisCon,1}, name::Symbol)
Returns an Array{Int32,1} containing the value in `name` field of each SeisCon object.
"""
function get_confield(cons::Array{SeisCon,1}, name::Symbol)
ncons = length(cons)
out = zeros(Int64, ncons)
for i in 1:ncons
out[i] = getfield(cons[i], name)
end
return out
end
"""
c = split_con(s::SeisCon, inds)
Creates a new SeisCon object `c` without copying by referencing `s.blocks[inds]`
`inds` can be an array of indicies, a range, or a scalar.
# Example
```julia-repl
julia> b = split_con(s, 1:10);
julia> c = split_con(b, [1; 7; 9]);
julia> d = split_con(c, 1);
```
And we can confirm that `d` and `s` reference the same place in memory.
```julia-repl
julia> s.blocks[1] === d.blocks[1]
true
```
"""
function split_con(s::SeisCon, inds::Union{Vector{Ti}, AbstractRange{Ti}}) where {Ti<:Integer}
@warn "split_con is deprecated, use split"
c = SeisCon(s.ns, s.dsf, view(s.blocks, inds))
end
split_con(s::SeisCon, inds::Integer) = split_con(s, [inds])
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 722 | export check_fileheader
function check_fileheader(s::IO, fh_new::FileHeader)
# Check text header length
if sizeof(fh_new.th) > 3200 @error "Text Header longer than 3200 bytes" end
# Check dsf
if fh_new.bfh.DataSampleFormat != 5
@warn "DataSampleFormat not supported for writing. Attempting to convert to IEEE Float32"
fh_new.bfh.DataSampleFormat = 5
end
# read fileheader of the existing file
fh = read_fileheader(s)
# Check first section of assigned values
for field in fieldnames(typeof(fh.bfh))[1:end]
if(getfield(fh.bfh, field) != getfield(fh_new.bfh, field)) @error "The existing fileheaders are different from the new SeisBlock" end
end
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 399 | export segy_write
function segy_write(file::String, block::SeisBlock)
# Open buffer for writing
s = open(file, "w")
segy_write(s, block)
close(s)
end
function segy_write(s::IO, block::SeisBlock)
# Write FileHeader
write_fileheader(s, block.fileheader)
# Write Data
ns, ntraces = size(block.data)
for t in 1:ntraces
write_trace(s, block, t)
end
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 343 | export segy_write_append
function segy_write_append(file::String, block::SeisBlock)
# Open buffer for writing
s = open(file, "r+")
# Write FileHeader
check_fileheader(s, block.fileheader)
# Write Data
ns,ntraces = size(block.data)
for t in 1:ntraces
write_trace(seekend(s), block, t)
end
close(s)
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 1119 | export write_fileheader
function write_fileheader(s::IO, fh::FileHeader)
# Check text header length
if sizeof(fh.th) > 3200 @error "Text Header longer than 3200 bytes" end
# Check dsf
if fh.bfh.DataSampleFormat != 5
@warn "DataSampleFormat not supported for writing. Attempting to convert to IEEE Float32"
fh.bfh.DataSampleFormat = 5
end
##0000
# Write Text header #DEVNOTE# Big Endian?
th_length = write(s, fh.th)
# If too short, pad with blanks
if th_length < 3200
pad = 3200 - th_length
write(s, " "^pad)
end
##3200
# Write first section of assigned values
for field in fieldnames(typeof(fh.bfh))[1:27]
write(s, bswap(getfield(fh.bfh, field)))
end
##3260
# Skip to next block
write(s, Array{UInt8,1}(undef,240))
##3500
# Write second section of assigned values
for field in fieldnames(typeof(fh.bfh))[28:end]
write(s, bswap(getfield(fh.bfh, field)))
end
##3506
# Skip to end
write(s, Array{UInt8,1}(undef,94))
##3600
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 320 | export write_trace
function write_trace(s::IO, block::SeisBlock, t::Int)
##000
# Write Header
for field in fieldnames(typeof(block.traceheaders[t]))
write(s, bswap(getfield(block.traceheaders[t], field)))
end
##240
# Write trace
write(s, bswap.(Float32.(block.data[:,t])))
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 130 | using SegyIO
using Test
include("test_read.jl")
include("test_SeisBlock.jl")
include("test_SeisCon.jl")
include("test_write.jl")
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 1592 | # Test SeisBlock type and methods
@testset "SeisBlock" begin
@testset "Constructor" begin
b = SeisBlock(rand(Float32,10,10))
@test b.fileheader.bfh.ns == 10
@test b.fileheader.bfh.DataSampleFormat == 5
vec_ = rand(Float32,10)
c = SeisBlock(vec_)
mat_ = reshape(vec_,10,1)
d = SeisBlock(mat_)
@test c.data == d.data
end
@testset "Methods" begin
b = SeisBlock(rand(Float32,10,10))
@test size(b) == (10,10)
end
@testset "set_traceheader" begin
b = SeisBlock(rand(Float32,10,10))
set_traceheader!(b.traceheaders, :SourceX, 102*ones(Int32, 10))
@test b.traceheaders[3].SourceX == 102
end
@testset "set_fileheader" begin
b = SeisBlock(rand(Float32,10,10))
set_fileheader!(b.fileheader.bfh, :ns, 12)
@test b.fileheader.bfh.ns == 12
end
@testset "set_header" begin
b = SeisBlock(rand(Float32,10,10))
set_header!(b, :ns, 12)
@test b.fileheader.bfh.ns == 12
@test b.traceheaders[1].ns == 12
set_header!(b, "ns", 13)
@test b.fileheader.bfh.ns == 13
@test b.traceheaders[1].ns == 13
set_header!(b, :SourceX, 12)
@test b.traceheaders[1].SourceX == 12
set_header!(b, "SourceY", 13)
@test b.traceheaders[1].SourceY == 13
set_header!(b, :GroupY, 14*ones(Int32, 10))
@test b.traceheaders[1].GroupY == 14
set_header!(b, "GroupX", 15*ones(Int32, 10))
@test b.traceheaders[1].GroupX == 15
end
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 1266 | @testset "SeisCon" begin
global s = segy_scan(joinpath(SegyIO.myRoot,"data/"), "overthrust", ["GroupX"; "GroupY"], verbosity = 0)
@testset "Constructor" begin
@test typeof(s) == SeisCon
@test length(s) == 97
@test size(s) == (97,)
@test s.ns == 751
@test s.dsf == 1
end
@testset "Indexing" begin
@test typeof(s[1]) <: SeisBlock
@test typeof(s[1:10]) <: SeisBlock
@test typeof(s[1:10:20]) <: SeisBlock
@test typeof(s[:]) <: SeisBlock
@test typeof(s[[1; 4; 8; 12]]) <: SeisBlock
end
@testset "get_header" begin
@test size(get_header(s, "GroupX")) == (97, 2)
@test get_header(s, "GroupX")[1] == 2400
@test get_header(s, "GroupX")[end] == 19900
end
@testset "get_sources" begin
@test size(get_sources(s)) == (97, 2)
@test get_sources(s)[1] == 8400
@test get_sources(s)[end] == 0
end
@testset "merge" begin
b = merge(s, s)
@test b.ns == s.ns
@test b.dsf == s.dsf
@test length(b) == 194
end
@testset "split" begin
b = split(s, 1:10);
c = split(b, [1; 7; 9]);
d = split(c, 1);
@test s.blocks[1] === d.blocks[1]
end
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 2672 | # Test reading component of SegyIO
global s = IOBuffer(read(joinpath(SegyIO.myRoot,"data/overthrust_2D_shot_1_20.segy")))
@testset "read" begin
##0000
@testset "read_fileheader" begin
fh = read_fileheader(s)
@test typeof(fh) == SegyIO.FileHeader
@test sizeof(fh.th) == 3200
@test fh.bfh.ns == 751
@test fh.bfh.Job == 1
fh = read_fileheader(s, ["ns"; "Job"])
@test typeof(fh) == SegyIO.FileHeader
@test sizeof(fh.th) == 3200
@test fh.bfh.ns == 751
@test fh.bfh.Job == 1
fh = read_fileheader(s, bigendian = false )
@test typeof(fh) == SegyIO.FileHeader
@test sizeof(fh.th) == 3200
@test fh.bfh.ns == -4350
@test fh.bfh.Job == 16777216
fh = read_fileheader(s, ["ns"; "Job"], bigendian = false )
@test typeof(fh) == SegyIO.FileHeader
@test sizeof(fh.th) == 3200
@test fh.bfh.ns == -4350
@test fh.bfh.Job == 16777216
end
println(" ")
##3600
@testset "read_traceheader" begin
seek(s, 3600)
th_b2s = th_byte2sample()
th = read_traceheader(s, th_b2s)
@test typeof(th) == BinaryTraceHeader
@test th.ns == 751
@test th.SourceX == 400
@test th.GroupX == 100
seek(s, 3600)
th = read_traceheader(s, ["ns", "SourceX", "GroupX"], th_b2s)
@test typeof(th) == BinaryTraceHeader
@test th.ns == 751
@test th.SourceX == 400
@test th.GroupX == 100
seek(s, 3600)
th = read_traceheader(s, th_b2s, bigendian = false)
@test typeof(th) == BinaryTraceHeader
@test th.ns == -4350
@test th.SourceX == -1878982656
seek(s, 3600)
th = read_traceheader(s, ["ns", "SourceX", "GroupX"], th_b2s, bigendian = false)
@test typeof(th) == BinaryTraceHeader
@test th.ns == -4350
@test th.SourceX == -1878982656
end
##0000
@testset "read_file" begin
b = read_file(s, false)
@test typeof(b) == SegyIO.SeisBlock{SegyIO.IBMFloat32}
@test b.fileheader.bfh.ns == 751
@test b.traceheaders[1].ns == 751
@test size(b.data) == (751, 3300)
@test length(b.traceheaders) == 3300
@test Float32(b.data[100]) == -2.2972927f0
b = read_file(s, ["ns"], false)
@test typeof(b) == SegyIO.SeisBlock{SegyIO.IBMFloat32}
@test b.fileheader.bfh.ns == 751
@test b.traceheaders[1].ns == 751
@test size(b.data) == (751, 3300)
@test length(b.traceheaders) == 3300
@test Float32(b.data[100]) == -2.2972927f0
end
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | code | 1997 | # Test writing component of SegyIO
global key = ["GroupX";"GroupY";"SourceX";"SourceY"]
global dir = "../data/"
global file_filter = "test_write"
@testset "write" begin
@testset "segy_write" begin
block = SeisBlock(rand(Float32,10,10));
set_header!(block, "dt", 6000);
set_header!(block, :SourceX, 4000);
set_header!(block, :SourceY, 4500);
set_header!(block, :GroupX, 8000);
set_header!(block, :GroupY, 8500);
segy_write("../data/test_write.segy", block)
s = segy_scan(dir,file_filter,key)
@test size(s[1].data) == (10,10)
@test get_header(s, "SourceX")[1] == 4000
@test get_header(s, "SourceY")[1] == 4500
@test get_header(s, "GroupX")[1] == 8000
@test get_header(s, "GroupY")[1] == 8500
@test get_header(s, "SourceX")[end] == 4000
@test get_header(s, "SourceY")[end] == 4500
@test get_header(s, "GroupX")[end] == 8000
@test get_header(s, "GroupY")[end] == 8500
end
@testset "segy_write_append" begin
block_append = SeisBlock(rand(Float32,10,10));
set_header!(block_append, "dt", 6000);
set_header!(block_append, :SourceX, 4000);
set_header!(block_append, :SourceY, 4500);
set_header!(block_append, :GroupX, 8000);
set_header!(block_append, :GroupY, 9000);
segy_write_append("../data/test_write.segy", block_append)
s = segy_scan(dir,file_filter,key)
@test size(s[1].data) == (10,20)
@test get_header(s, "SourceX")[1] == 4000
@test get_header(s, "SourceY")[1] == 4500
@test get_header(s, "GroupX")[1] == 8000
@test get_header(s, "GroupY")[1] == 8500
@test get_header(s, "SourceX")[end] == 4000
@test get_header(s, "SourceY")[end] == 4500
@test get_header(s, "GroupX")[end] == 8000
@test get_header(s, "GroupY")[end] == 9000
end
end
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | docs | 935 | # SegyIO.jl
SegyIO is a Julia package for reading and writing SEGY Rev 1 files. In addition to providing tools for reading/writing entire files, SegyIO provides a parallel scanner that reduces any number of files into a single object with direct out-of-core access to the underlying data.
[](https://github.com/slimgroup/SegyIO.jl/actions?query=workflow%3ACI-tests)
A video demonstrating the package's capabilities [has been made available here.](https://www.youtube.com/watch?v=tx530QOPeZo&feature=youtu.be)
## INSTALLATION
SegyIO is a registered package and can be installed directly from the julia package manager (`]` in the julia REPL) :
```
add SegyIO
```
## Extension
SegyIO is implemented for POSIX systems. For Cloud storage, use [CloudSegyIO.jl](https://github.com/slimgroup/CloudSegyIO.jl), the Cloud storage extension of SegyIO.
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | docs | 4369 | # SegyIO Demo
---
#### The Dataset

- **13.3 TB** of real 3D marine data
- **155** files, ranging from **1 GB** to **380 GB**
- **920** square kilometer source region
- **191,019** shots, resulting in **~1,489,948,200** traces
#### Scanning
julia> using SegyIO, PyPlot, JLD
julia> s = segy_scan("/data/slim/data/WesternGeco/3D_Coil_data/common", "WG_Columbus_Geco_Eagle", ["GroupX"; "GroupY"], chunksize = 40*1024)
julia> s = load("/scratch/slim/shared/klensink/SegyIO/WG_scan.jld", "s");
julia> lookup_table_size = Base.summarysize(s)/1000^2
110.791044
- Takes **4** hours when distributed over **8** workers
- Lookup table is an **8 e-6** reduction in memory
#### Quick Source Geometry
Since source locations were tracked during scanning, they are stored in the container and are already in memory.
julia> srcs = get_sources(s)./100;
julia> figure(1); scatter(srcs[:,1], srcs[:,2], marker="."); xlim(extrema(srcs[:,1])); ylim(extrema(srcs[:,2] ))
PyObject <matplotlib.collections.PathCollection object at 0x7fff40ddb450>
#### Define a source region
We can use the scanned metadata stored in the container to find blocks of interest. In this example I'll pretend I am interested in all the shots that were fired within 100 meters of the center of the aquisition region.
First define this region, and a function that will determine whether a coordinate pair is within the region.
julia> center_x = mean(extrema(srcs[:,1]));
6.78304095e7
julia> center_y = mean(extrema(srcs[:,2]));
3.005502e8
julia> region_size = 100
100
julia> x_region = (center_x - region_size, center_x + region_size)
(6.77804095e7, 6.78804095e7)
julia> y_region = (center_y - region_size, center_y + region_size)
(3.005002e8, 3.006002e8)
julia> inregion(limx, limy, x, y) = (limx[1] < x < limx[2]) && (limy[1] < y < limy[2])
inregion (generic function with 1 method)
We can map this function to the source locations to find which blocks have sources within the region.
julia> blocks = find(map((x,y) -> inregion(x_region, y_region, x, y), srcs[:,1], srcs[:,2]))
figure(1); scatter(srcs[blocks,1], srcs[blocks,2], marker="x");
#### Out of Core Metadata Collection
Now that we have determined which blocks correspond to shots in the region, we can query the out of core data for traceheader fields. In the case below I am only collecting receiver locations from all the traces constrained by `blocks`.
julia> trace_headers = read_con_headers(s, ["GroupX"; "GroupY"], blocks, prealloc_traces = 1000000)
julia> rx = get_header(trace_headers, "GroupX");
julia> ry = get_header(trace_headers, "GroupY");
julia> figure(2); scatter(rx,ry, 0.1, marker=".");
julia> figure(2); scatter(srcs[blocks,1], srcs[blocks,2], marker="x")
#### Direct Out of Core Data Access
Indexing the container, `s`, loads the underlying data corresponding to the block index. Loading all of the traces associated with one of the shots in the region is as simple as indexing with that shot number.
julia> shot = s[blocks[1]]
The data is brought into memory as an array, so any method applicable to the data type can be used. Below I am plotting the data, and highlighting the receiver locations in the acquistion map.
julia> shot_src = srcs[blocks[1],:]
julia> shot_rx = get_header(shot, "GroupX");
julia> shot_ry = get_header(shot, "GroupY");
julia> figure(3); imshow(Float32.(shot.data), vmin = -1, vmax = 1, cmap = "binary")
julia> figure(2); scatter(shot_src[1], shot_src[2],100, marker="x", color = "k");
julia> figure(3); scatter(shot_rx, shot_ry, 1, marker="o")
The ability to navigate or sort the dataset as if it is a Julia object means it's easy to load arbitrarily complex subsets of the data set.
julia> radius = 5000; offset = 1000
julia> incircle(x0, y0, radius, x, y) = sqrt((x - x0)^2 + (y - y0)^2) <= radius
julia> blocks = find(map((x,y) -> incircle(center_x, center_y, radius, x, y) &&
~incircle(center_x+offset, center_y+offset, radius, x, y), srcs[:,1], srcs[:,1]))
julia> figure(1); scatter(srcs[blocks,1], srcs[blocks,2], marker="x")
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 0.8.5 | 0fc24db28695a80aa59c179372b11165d371188a | docs | 15275 | # SegyIO.jl
## Purpose
SegyIO is a Julia package for reading and writing SEGY Rev 1 files. In addition to providing tools for reading/writing entire files, SegyIO provides a parallel scanner that reduces any number of files into a single object with direct out-of-core access to the underlying data. The `SeisCon` object created from a scan tracks trace locations and metadata, allowing you to use the SEGY files as a database without any modification.
The package's three goals are too:
* Read and write SEGY data, and provide an easy to use container for the data in the Julia environment.
* Out of core scanning capabilities to allow working with files and/or datasets that are too large for memory.
* Lightweight and fast enough that the same code works for large and small datasets.
## Design
The package naturally splits into three parts: reading, writing, and scanning
### Reading
A working knowledge of the the [SEGY format](https://www.seg.org/Portals/0/SEG/News%20and%20Resources/Technical%20Standards/seg_y_rev1.pdf) will be necessary.
The package provides two avenues for reading data from a SEGY file. The first of which is reading directly from a file with no a priori information. The reader will use the metadata from the file header to decide how to interpret the rest of the file. This method requires reading each file individually and doesn't allow random access. The second method is to use a SeisCon object to read pre-determined blocks of data out of a file. Both methods make use of the same low level reading functions to interpret blocks of data into trace headers and traces, they just change how that block of data is found.
`segy_read` is the highest level reading function for reading directly from a file. This function is necessary because it decides whether the stream that will be read will be a file pointer or an IOBuffer. The use of IOBuffers are key to SegyIO's performance. A choice was made to favour performance when reading a sebset of the trace headers, which requires unordered reading. All of this jumping around is much faster when done with an IOBuffer. In almost all cases the IOBuffer should be used.
`read_file` and the downstream reading functions were carefully designed to be agnostic of the stream type, in the hopes that it would be easy in the future to plug in some other stream like an AWS bucket.
The design of the reader is simply:
* Read the file header to get the data sample format, check for the fixed length trace flag, and get the number of samples.
* Calculate the number of traces in the file
* Pre-allocate memory for the headers and for the data
* Get the trace header `bytes_to_samples` dict
* Read each trace
* Form and return a SeisBlock
* Hierarchy: `Read File < Read FileHeader & Read Trace < Read Trace Header & Trace Data`
A `SeisBlock` is an in core data container that contains the fileheader, trace headers, and data from a read. While trace headers are kept seperate, the data is returned as an array to make it easier to work with, since array operations are so common. Methods are provided to get metadata vectors out of the collection of trace headers.
Reading using a SeisCon object skips most of the steps above because all of the necessary information was collected during the scan and stored within the SeisCon object `s`. For example, say you have determined that you want to read the 10th block of data out of the SeisCon object. You can do this by simply calling `s[10]`, which is the same thing as `read_con(s, 10)`. This will use the 10th BlockScan in `s` to seek to the starting byte of the correct file, and read until the end byte of the block.
### Supported Data Types
DSF 5 are IEEE Float32s (Primitive type in Base Julia) so they are preffered.
DSF 1 are IBM Float32s, and are supported only for reading. A conversion was taken from Seismic.jl to convert IBM to IEEE. If for some reason you need to write IBM Float32s you should try to find a C function to do the converstion, I couldn't find anything in Julia.
### Writing
Most of the work for the writing is done by making use of the reading code. The writer is bare-bones and very simple. In order to achieve this, the writer is designed to take a `SeisBlock` as input, and write to disk. The SeisBlock type was designed during the reading stage to very closely resemble the SEGY format, so writing a `SeisBlock` instance to disk is trivial.
Because all of the work for the writer was offloaded to the construction of `SeisBlock` instances, a variety of methods are provided to facilitate creating `SeisBlock`s from generated data and populating the headers.
The created files have been tested to be compatible with SEGYMAT. We once sent some files to SLB and they had some troubles reading a few files out of the hundreds we sent. It was never really clear whether the problem was on our end or thiers, so if it is later found that SEGY files generated by SegyIO are incompatible with other readers, you are going to have to track down what the writer overlooks.
### Scanning
Scanning is what sets this package apart from other readers/writers. The scanner was added so that the data loading section of code doesn't need to be rewritten when scaling up. In order to do this the scanning needed to be seamlessly parallel and out of core. This would allow reading from any number of files, and impose no file size limit. Once a dataset has been scanned, the resulting `SeisCon` acts as a database that you can use to get out-of-core access the the underlying data in the SEGY files without duplicating any data.
In a similar style to `segy_read`, `segy_scan` is a high-level function that dispatches `scan_file` in parallel over all the matched files that will be scanned. Since `scan_file` handles the out of core aspect, this combination provides a parallel way to scan any number of files.
The option to specify a fixed block size is a legacy from the MATLAB version of the code, and is particularly useful when working with data where all shot gathers have the same number of traces, or your workflow doesn't require complete shot gathers. We quickly found that having a fixed block size doesn't really work with real data because you are very likely to have missing traces. Inorder to deal with this I added the automatic shot detection option that is now the default. This method is implemented at the chunk level by analysing the source location metadata of all traces in the chunk to find contiguous traces with the same source location. These are inferred to be a common shot gather, and are marked to be included in the same block. It would be possible at this point to give the user an option to group more than one shot into each block.
This feature is implemented by the `delim_vector` function when it is applied to a vector of the SourceX and SourceY values. The function works similarly to the bisection method for root finding, and is performant on vectors that include millions of sources.
### Out-of-Core Scanning
Chunk size, passing remaining traces, show some pictures
The chunk size keyword is used to determine how much of the file is loaded into the in memory IOBuffer at a time, and are processed sequentially for the entire file. For each chunk, block boundaries are determined, then each block is scanned sequentially. It can't really be known if the last block in a chunk is complete unless it is at the end of the file, so the remainder is always prepended to the next chunk.
There is a performance benefit to working with a larger chunk size, especially in highly parallel scans, but the main point of setting the chunk size is to cap the peak memory use of the scanner.
Hierarchy: `Scan File < Scan Chunk < Scan Block < Scan Trace`
### Parallelism
Files are scanned and read independently, so the natural choice for parallelism was to distribute over files. This has been implemented in both `extract_con_headers` and `segy_scan`, but not yet `segy_write` or `segy_read`. To implement it for `segy_read`, I would once again just distribute the reading task over all files, then collect the results on master and merge the returned blocks to form one final block that encompasses the entire data set. There is a use case for this, so it should be implemented at some point, but in most cases it would be simpler to just have the worker access the data it needs from a SeisCon.
In terms of the scanner, the obvious downside of distributing over files is that you cannot use more workers than there are files. This becomes more of a problem if the dataset you wish to work with consists of only a few files, but they are large. Assuming a fixed block size is chosen, and that the fixed length trace flag is set, it would be possible to break an individual file into chunks and scan each piece independantly. This would have to be added after the file header has been read, and you would need to be careful to ensure that the chunk boundaries you choose are some integer multiple of the block size, but it is a pretty simple extension. Nothing like this has been added so far because no one is using the fixed block size.
Automatic shot detection creates a few problems for scanning a single file in parallel. The method needs to be more flexible, so it makes some decisions on the fly. Until a chunk is read, there is no way of knowing where the last block will fall. It should be assumed that the chunk will not contain an integer multiple of blocks, so there are often some remaining traces at the end of a chunk that must be pushed to the start of the next chunk. As long as a single worker is scanning each file this isn't really a problem, but it starts to create a headache if there are multiple workers per file. A first implementation of this could try to pass any remaining traces to the worker processing the next chunk with the assumption that they are guaranteed to be the first traces from the next block. With careful book-keeping this should work, but you'll also need to consider the performance implications of accessing the same file from multiple workers. This should be less of a concern on the cloud assuming that the chunks are seperate buckets.
Scaling tests show that this process scales linearly.

---
## Future Work
* Check for extended textual headers after reading the first file header at the start of read_file, if found you will need to read_fileheader again and then modify `start_byte` to point to the end of the file headers.
* Support other revisions by just changing the `bytes_to_samples` dict. Possible solution was to use a global `SEGY_REVISION` variable that would decide which `bytes_to_sample` dict is used by the reader.
* If only reading a few headers, it would be more efficient NOT to use BinaryTraceHeaders and instead either return some other flexible structure or an array. The array method was used in `extract_con_headers`, but this could be better integrated into the rest of the code.
* Add ability to write to extended textual headers.
* Parallel `segy_read` and `segy_write`
* Support non-fixed trace length files by checking and updating `ns` after each trace read in the next trace's header.
* Provide a keyword option to scan more than one shot into a block.
## Transition to the Cloud
Eventually SegyIO needs to transition to working with data that is stored on the cloud rather than a file system. The current Local-Local setup was designed with this in mind, so in this section I am just going to try and summarize how I envisioned this transition happening. I am going to assume that the SEGY files are stored in AWS S3 buckets because that is what I am most familiar with, but I think this workflow should be provider agnostic.
### Reading
Reading data should be the simplest piece of the code to transition to the could. As it stands, everything down stream of `read_file` is setup to work on an in memory byte stream, so presumably all that would will need to figure out is how to get the SEGY file from an AWS bucket into an IOBuffer. If the entire file is stored in one bucket it should be as simple as something like `read_file(IOBuffer(S3.get_bucket(foo)), true)`.
If the file is in multiple buckets, you will need to create some routine to reconstruct the entire file, but AWS provides a service like this.
Without random access, the current method of extracting metadata without reading the traces on the cloud will not work. A possible solution is to store all or some of the metadata in seperate objects that can accessed more easily. A natural extension of this would be setting up some kind of database that stores all of the metadata, however this kind of gets away from the whole point of SegyIO, which was to turn the SEGY files themselves into a database.
### Writing
Similar to the reader, this should not be a difficult transition. In the current Local-Local setup the writer constructs creates the output as a byte stream and simply writes it to a file. In a Cloud-Cloud setup the writer should just dump this byte stream into S3 buckets, probably after breaking it up into manageable pieces.
### Scanning
Local-Local scanning is already covered, and while a solution for Cloud-Cloud should work for Local-Cloud, it hasn't been seriously considered because it would require streaming all of the data to the local machine. The Local-Local solution heavily depends on random access to the file, which will be a key hurdle to overcome when transitioning to the cloud. Not being able to skip reading the trace data and jump right to the next trace header would require streaming the entire dataset to complete a scan. At some point, the extra cost of storing the data on EFS may be worth the speedup for atleast scanning.
Assuming that you don't have random access to the data, individual buckets become the finest grain control you have for accessing the data. Creating these buckets to be as small as reasonably possible could still grant you some form of psuedo-random access. If that is the case, a file would be an ordered collection of buckets, and you could still parallelize over files by treating a group of buckets as a chunk. You could re-use the method from the "Reading" section above to collect a group of buckets into a memory buffer, and then process the data in memory.
The results from a scanned block would need to return a modified `BlockScan` object that contains information for which buckets need to be loaded to get the block. AWS S3 supports byte range requests so keeping track of the starting byte and bucket, the ending byte and bucket, and all the intermediate buckets you could read the data from the SeisCon just as it is setup in the Local-Local code.
An alternative method Henryk and I have discussed would be to save each block as a bucket, then the `BlockScan` object only needs to track the bucket. This would probably be more performant to use, and definitely more simple to implement, but it would require dublicating the dataset on the cloud. For very large datasets, the cost of this storage could make it unfeasible, however if it really is that much faster and the data is accessed often, it might make up for the CPU time wasted loading data with the slower method.
| SegyIO | https://github.com/slimgroup/SegyIO.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 4805 | # HalidePerovskites
# Uses the newly forked off FeynmanKadanoffOsakaHellwarth.jl package
# Codes by Jarvist Moore Frost, 2017
# These codes were developed with Julia 0.5.0, and requires the Optim and Plots packages.
# This file, is based on doing further calculations beyond:
# https://arxiv.org/abs/1704.05404
# Polaron mobility in halide perovskites
# Jarvist Moore Frost
# (Submitted on 18 Apr 2017 [v1])
push!(LOAD_PATH,"../src/") # load module from local directory
const T=300 # Standard temperature we will calculate for
using PolaronMobility
##### load in library routines... #####
# Plot figures with Plots, which defaults to Pyplot backend
#using Plots
#pyplot()
#gr() # GR backend to Plots
#default(grid=false) # No silly dotted grid lines
#default(size=(400,300)) # Small, for two-column output (i.e. PDF/EPS for article)
#default(size=(800,600)) # Good size for small-ish PNGs for slides
# Physical constants
const hbar = const ħ = 1.05457162825e-34; # kg m2 / s
const eV = const q = const ElectronVolt = 1.602176487e-19; # kg m2 / s2
const me=MassElectron = 9.10938188e-31; # kg
const Boltzmann = const kB = 1.3806504e-23; # kg m2 / K s2
const ε_0 = 8.854E-12 #Units: C2N−1m−2, permittivity of free space
# Hold my beer, I'm going to use a Macro.
macro showprint(ex)
println("Executing: ",ex)
return :( $ex )
end
polaronmobility(x...) = PolaronMobility.polaronmobility(x..., verbose=true)
#####
# Call simulation
# CsSnX3 X={Cl,Br,I}
# L. Huang, W.Lambrecht - PRB 88, 165203 (2013)
# Dielectric consts, from TABLE VII
# Effective masses from TABLE VI, mh*
const cm1=2.997e10 # cm-1 to Herz
@showprint CsSnCl=polaronmobility(T, 4.80, 29.4, 243cm1, 0.140) # alpha= 1.386311
@showprint CsSnBr=polaronmobility(T, 5.35, 32.4, 183cm1, 0.082) # alpha= 1.094468
@showprint CsSnI= polaronmobility(T, 6.05, 48.2, 152cm1, 0.069) # alpha= 1.020355
# Ts, βreds, Kμs, Hμs, FHIPμs, vs, ws, ks, Ms, As, Bs, Cs, Fs, Taus
# CsSnBr3.dat:300 0.877382 511.513 356.358 874.499 8.13686 7.31511 12.6976 0.23729 -3.78992 2.15682 0.84436 0.788735 0.185396
# CsSnCl3.dat:300 1.165048 212.034 147.36 272.993 6.50772 5.58522 11.1557 0.357614 -3.5556 2.42611 0.947833 0.181657 0.143969
# CsSnI3.dat:300 0.728755 703.502 487.085 1448.02 9.64022 8.80508 15.4044 0.198691 -4.01438 2.18761 0.859401 0.967371 0.207864
# So for CsSnSi3, a hole-mobility of 487(Hellwarth)-703(Kadanoff). Compares to expt. 400 (transport) - 585 (Hall effect). Ace!
#Ts,Kμs, Hμs, FHIPμs, ks, Ms, As, Bs, Cs, Fs, Taus
#effectivemass=0.12 # the bare-electron band effective-mass.
# --> 0.12 for electrons and 0.15 for holes, in MAPI. See 2014 PRB.
# MAPI 4.5, 24.1, 2.25THz - 75 cm^-1 ; α=
@showprint MAPIe=polaronmobility(T, 4.5, 24.1, 2.25E12, 0.12)
@showprint MAPIh=polaronmobility(T, 4.5, 24.1, 2.25E12, 0.15)
# CsPbI3: 3.82, 8.27, 2.83 THz (highest freq mode in cubic)
# ^-- v. quick Kmesh=3x3x3 PBESol Calc, JMF 2017-04-12. Files: jarvist@titanium:~/phonopy-work/2017-03-Scott-Distortions/1000-Dielectric/3x3x3-kmesh/
# Horribly non-converged!
# Kmesh=6x6x6; 7.2/12.1
# Kmesh=9x9x9x, Ediff=10^-9; 6.1/12.0, 2.57 THz
@showprint CsPbI=polaronmobility(T, 6.1,6.1+12.0, 2.57E12, 0.12)
function SendnerCrosscheck()
cm1=2.997e10 # cm-1 to Herz
# Rob's / Sendner's paper - values extracted form IR measures
# https://doi.org/10.1039%2Fc6mh00275g
#Ts,a,MAPI=polaronmobility("Rob-MAPI", 5.0, 33.5, 40*cm1, 0.104)
#Ts,a,MAPBr=polaronmobility("Rob-MAPBr", 4.7, 32.3, 51*cm1, 0.117)
#Ts,a,MAPCl=polaronmobility("Rob-MAPCl", 4.0, 29.8, 70*cm1, 0.2)
# Private communication. It is not well described in the paper but they
# used one the Hellwarth effective-mode method to reduce the observed IR
# oscillators down to a single mode. Rob provided these values by email (as
# below). The Effetive Masses and dielectric constants are from the paper.
# Combined, this reproduces their mobilities, and the internal w and
# v parameters (again, email from Rob).
# For omega we used: MAPbI/Br/Cl = 112.9/149.4/214.0
@showprint RobMAPI=polaronmobility(10:10:400, 5.0, 33.5, 112.9*cm1, 0.104)
@showprint RobMAPBr=polaronmobility(10:10:400, 4.7, 32.3,149.4*cm1, 0.117)
@showprint RobMAPCl=polaronmobility(10:10:400, 4.0, 29.8, 214.0*cm1, 0.2)
plot(RobMAPI.T,RobMAPI.Hμ,label="(Rob's values) MAPI",markersize=2,marker=:uptriangle,ylim=(0,400))
plot!(RobMAPBr.T,RobMAPBr.Hμ,label="(Rob's values) MAPBr",markersize=2,marker=:diamond)
plot!(RobMAPCl.T,RobMAPCl.Hμ,label="(Rob's values) MAPCl",markersize=2,marker=:diamond)
savefig("Rob-comparison.png")
# savefig("Rob-comparison.eps")
end
#SendnerCrosscheck()
println("That's me!")
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 10601 | # HalidePerovskites
# Uses the newly forked off FeynmanKadanoffOsakaHellwarth.jl package
# Codes by Jarvist Moore Frost, 2017
# These codes were developed with Julia 0.5.0, and requires the Optim and Plots packages.
# This file, when run under Julia, should regenerate all data (and plots) associated with Arxiv paper:
# https://arxiv.org/abs/1704.05404
# Polaron mobility in halide perovskites
# Jarvist Moore Frost
# (Submitted on 18 Apr 2017 [v1])
push!(LOAD_PATH,"../src/") # load module from local directory
using PolaronMobility
using PlotPolaron # Plots dependency
##### load in library routines... #####
#"Rob-MAPCl", Plot figures with Plots, which defaults to Pyplot backend
using Plots
pyplot()
default(grid=false) # No silly dotted grid lines
default(size=(400,250)) # A good small size for two-column EPS output
#default(size=(800,600)) # Nice size for small-ish PNGs for slides
# Physical constants
const hbar = const ħ = 1.05457162825e-34; # kg m2 / s
const eV = const q = const ElectronVolt = 1.602176487e-19; # kg m2 / s2
const me=MassElectron = 9.10938188e-31; # kg
const Boltzmann = const kB = 1.3806504e-23; # kg m2 / K s2
const ε_0 = 8.854E-12 #Units: C2N−1m−2, permittivity of free space
" Copy and pasted out of a Jupyter notebook; this calculates 'alpha' parameters
for various materials, as a comparison to the literature used when figuring out
the oft-quoted units. "
function checkalpha()
println(" Alpha-parameter, Cross check 'feynmanalpha()' fn vs. literature values.\n")
print("\t NaCl Frohlich paper α=",feynmanalpha(2.3, 5.6, (4.9E13/(2*pi)), 1.0))
println(" should be ~about 5 (Feynman1955)")
print("\t CdTe α=",feynmanalpha(7.1, 10.4, 5.08E12, 0.095))
println(" Stone 0.39 / Devreese 0.29 ")
print("\t GaAs α=",feynmanalpha(10.89, 12.9, 8.46E12, 0.063))
println(" Devreese 0.068 ")
println()
println("Guess at PCBM: 4.0, 6.0 ; α=",feynmanalpha(4.0,6.0, 1E12, 50))
println("MAPI:")
println("MAPI 4.5, 24.1, 9THz ; α=",feynmanalpha(4.5, 24.1, 9.0E12, 0.12))
println("MAPI 4.5, 24.1, 2.25THz - 75 cm^-1 ; α=",feynmanalpha(4.5, 24.1, 2.25E12, 0.12))
println("MAPI 6.0, 25.7, 9THz ; α=",feynmanalpha(6.0, 25.7, 9.0E12, 0.12))
println("MAPI 6.0, 36.0, 9THz ; α=",feynmanalpha(6.0, 36, 9.0E12, 0.12))
println("MAPI 6.0, 36.0, 1THz ; α=",feynmanalpha(6.0, 36, 1.0E12, 0.12))
end
checkalpha()
#####
# Call simulation
# CsSnX3 X={Cl,Br,I}
# L. Huang, W.Lambrecht - PRB 88, 165203 (2013)
# Dielectric consts, from TABLE VII
# Effective masses from TABLE VI, mh*
const cm1=2.997e10 # cm-1 to Herz
function CsSn()
CsSnCl3=polaronmobility(10:10:1000, 4.80, 29.4, 243cm1, 0.140, figures=true) # alpha= 1.386311
savepolaron("CsSnCl3",CsSnCl3)
CsSnBr3=polaronmobility(10:10:1000, 5.35, 32.4, 183cm1, 0.082, figures=true) # alpha= 1.094468
savepolaron("CsSnBr3",CsSnBr3)
CsSnI3=polaronmobility(10:10:1000, 6.05, 48.2, 152cm1, 0.069, figures=true) # alpha= 1.020355
savepolaron("CsSnI3",CsSnI3)
end
CsSn() # generate all that lovely tin data
# Ts, βreds, Kμs, Hμs, FHIPμs, vs, ws, ks, Ms, As, Bs, Cs, Fs, Taus
# CsSnBr3.dat:300 0.877382 511.513 356.358 874.499 8.13686 7.31511 12.6976 0.23729 -3.78992 2.15682 0.84436 0.788735 0.185396
# CsSnCl3.dat:300 1.165048 212.034 147.36 272.993 6.50772 5.58522 11.1557 0.357614 -3.5556 2.42611 0.947833 0.181657 0.143969
# CsSnI3.dat:300 0.728755 703.502 487.085 1448.02 9.64022 8.80508 15.4044 0.198691 -4.01438 2.18761 0.859401 0.967371 0.207864
# So for CsSnSi3, a hole-mobility of 487(Hellwarth)-703(Kadanoff). Compares to expt. 400 (transport) - 585 (Hall effect). Ace!
#Ts,Kμs, Hμs, FHIPμs, ks, Ms, As, Bs, Cs, Fs, Taus
#effectivemass=0.12 # the bare-electron band effective-mass.
# --> 0.12 for electrons and 0.15 for holes, in MAPI. See 2014 PRB.
# MAPI 4.5, 24.1, 2.25THz - 75 cm^-1 ; α=
# MAPI 4.5, 24.1, 2.25THz - 75 cm^-1 ; α=
MAPIe=polaronmobility(10:10:1000, 4.5, 24.1, 2.25E12, 0.12)
plotpolaron("MAPI-electron", MAPIe)
savepolaron("MAPI-electron",MAPIe)
MAPIh=polaronmobility(10:10:1000, 4.5, 24.1, 2.25E12, 0.15)
plotpolaron("MAPI-hole", MAPIh)
savepolaron("MAPI-hole",MAPIh)
# PCBM: 4.0, 5.0, 2.25Thz, effective-mass=1.0
#polaronmobility(4.0, 5.0, 2.25E12, 1.00)
# CsPbI3: 3.82, 8.27, 2.83 THz (highest freq mode in cubic)
# ^-- v. quick Kmesh=3x3x3 PBESol Calc, JMF 2017-04-12. Files: jarvist@titanium:~/phonopy-work/2017-03-Scott-Distortions/1000-Dielectric/3x3x3-kmesh/
# Horribly non-converged!
# Kmesh=6x6x6; 7.2/12.1
# Kmesh=9x9x9x, Ediff=10^-9; 6.1/12.0, 2.57 THz
function CsPbI()
CsPbI=polaronmobility(10:10:1000, 6.1,6.1+12.0, 2.57E12, 0.12)
plotpolaron("CsPbI3-electron",CsPbI)
savepolaron("CsPbI3-electron",CsPbI)
end
CsPbI() # generate CsPbI3 data for later plotting
function SendnerCrosscheck()
const cm1=2.997e10 # cm-1 to Herz
# Rob's / Sendner's paper - values extracted form IR measures
# https://doi.org/10.1039%2Fc6mh00275g
# These data mainly from Private communication.
# It is not well described in the paper but they
# used one the Hellwarth effective-mode method to reduce the observed IR
# oscillators down to a single mode. Rob provided these values by email (as
# below). The Effetive Masses and dielectric constants are from the paper.
# Combined, this reproduces their mobilities, and the internal w and
# v parameters (again, data from email from Rob):
# Paper: "For omega we used: MAPbI/Br/Cl = 112.9/149.4/214.0"
RobMAPI =polaronmobility(10:10:400, 5.0, 33.5, 112.9*cm1, 0.104)
RobMAPBr=polaronmobility(10:10:400, 4.7, 32.3,149.4*cm1, 0.117)
RobMAPCl=polaronmobility(10:10:400, 4.0, 29.8, 214.0*cm1, 0.2)
savepolaron("Rob-MAPI",RobMAPI)
savepolaron("Rob-MAPBr",RobMAPBr)
savepolaron("Rob-MAPCl",RobMAPCl)
plot(RobMAPI.T,RobMAPI.Hμ,label="(Rob's values) MAPI",markersize=2,marker=:uptriangle,ylim=(0,400))
plot!(RobMAPBr.T,RobMAPBr.Hμ,label="(Rob's values) MAPBr",markersize=2,marker=:diamond)
plot!(RobMAPCl.T,RobMAPCl.Hμ,label="(Rob's values) MAPCl",markersize=2,marker=:diamond)
savefig("Rob-comparison.png")
# savefig("Rob-comparison.eps")
end
SendnerCrosscheck() # cross-check data for Rob
#####
## Expt. data to compare against
# Milot/Herz 2015 Time-Resolved-Microwave-Conductivity mobilities
# Data from table in SI of: DOI: 10.1002/adfm.201502340
# Absolute values possibly dodge due to unknown yield of charge carriers; but hopefully trend A.OK!
Milot= [
8 184
40 321
80 143
120 62
140 40
160 52
180 44
205 41
230 39
265 26
295 35
310 24
320 24
330 19
340 16
355 15
]
# IV estimated mobilities (?!) from large single crystals, assumed ambient T
# Nature Communications 6, Article number: 7586 (2015)
# doi:10.1038/ncomms8586
Saidaminov =
[ 300 67.2 ]
#Semonin2016,
# doi = {10.1021/acs.jpclett.6b01308},
Semonin =
[ 300 115 ] # +- 15 cm^2/Vs, holes+electrons
#####
## Calculated mobilities vs. expt
plot(Milot[:,1],Milot[:,2],label="Milot T-dep TRMC Polycrystal",marker=:hexagon,markersize=3,
xlab="Temperature (K)",ylab="Mobility (cm\$^2\$/Vs)", ylims=(0,400) )
plot!(Saidaminov[:,1],Saidaminov[:,2],label="",markersize=6,marker=:utriangle)
plot!(Semonin[:,1],Semonin[:,2],label="",markersize=6,marker=:square)
#plot!(Saidaminov[:,1],Saidaminov[:,2],label="Saidaminov JV Single Crystal", markersize=6,marker=:utriangle)
#plot!(Semonin[:,1],Semonin[:,2],label="Semonin Single Crystal TRMC", markersize=6,marker=:hexagon)
#plot!(MAPIe.T,MAPIe.Kμs,label="(electrons) Kadanoff Polaron mobility",marker=2)
#plot!(Ts,hHμs,label="Calculated (hole) mobility",markersize=3,marker=:dtriangle)
plot!(MAPIe.T,MAPIe.Hμ,label="Calculated (electron) mobility",markersize=3,marker=:dtriangle)
plot!(MAPIh.T,MAPIh.Hμ,label="Calculated (hole) mobility",markersize=3,marker=:utriangle)
savefig("MAPI-eh-mobility-calculated-experimental.png")
savefig("MAPI-eh-mobility-calculated-experimental.eps")
plot!(ylims=(),yscale=:log10)
plot!(ylims=(),xscale=:log10) # on log-log axes; powerlaw becomes straight
plot!(x->1e5*x^(-3/2),20:1000,yscale=:log10) # Trend line for the T^-3/2 powerlaw
savefig("MAPI-eh-mobility-calculated-experimental-log10.png")
savefig("MAPI-eh-mobility-calculated-experimental-log10.eps")
# OK; fit some stuff.
using LsqFit # Least squares fit, orig from Optim package.
function fitPowerLaw()
model(x,p)=p[1]*x.^(p[2])
p0=[1.0,-3.0/2]
# Data we're fitting against
plot(MAPIe.T,MAPIe.Hμ,label="Calculated (electron) mobility",markersize=3,marker=:dtriangle,ylims=(1,400))
# They're nasty 'Any' data types; force to Float64
T=convert(Array{Float64},MAPIe.T)
μ=convert(Array{Float64},MAPIe.Hμ)
# Ta da! Least squares fit.
fit=curve_fit(model,T,μ,p0)
p=fit.param
#plot!(T,model(T,p))
# Fit just from 100K onwards
fit=curve_fit(model,T[10:end],μ[10:end],p0)
p=fit.param
plot!(T[10:end],model(T[10:end],p), label="Calc [10:end] Powerlaw: $p")
# Fit all from 50K onwards - very dubious of quality of fit
#fit=curve_fit(model,T[5:end],μ[5:end],p0)
#p=fit.param
#plot!(T[5:end],model(T[5:end],p), label="Calc [5:end] Powerlaw: $p")
# TRMC Polycrystal data for comparison
plot!(Milot[:,1],Milot[:,2],label="Milot T-dep TRMC Polycrystal",marker=:hexagon,markersize=3,
xlab="Temperature (K)",ylab="Mobility (cm\$^2\$/Vs)", ylims=(0,400) )
# Fit all data points except for spurious first one
MT=convert(Array{Float64},Milot[2:end,1])
Mu=convert(Array{Float64},Milot[2:end,2])
fit=curve_fit(model,MT,Mu,p)
p=fit.param
plot!(T[5:end], model(T[5:end],p), label="Milot Powerlaw Fit 2:end: $p")
# Fit only sensible data points > 120 K and up
MT=convert(Array{Float64},Milot[4:end,1])
Mu=convert(Array{Float64},Milot[4:end,2])
fit=curve_fit(model,MT,Mu,p)
p=fit.param
plot!(T[5:end], model(T[5:end],p), label="Milot Powerlaw Fit 4:end: $p")
savefig("MAPI-fit-lin.png")
savefig("MAPI-fit-lin.pdf")
plot!(ylims=(1,), yscale=:log10)# log-log; power-law --> straight line
plot!(xlims=(1,), xscale=:log10)
savefig("MAPI-fit-log.png")
plot!(legend=false) # no key
savefig("MAPI-fit-log.pdf")
end
fitPowerLaw()
#plot!(RobMAPI.T,RobMAPI.Hμ,label="(Rob's values) MAPI",markersize=2,marker=:rect)
#savefig("MAPI-eh-mobility-calculated-experimental-Rob.png")
#savefig("MAPI-eh-mobility-calculated-experimental-Rob.eps")
println("That's me!")
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 2419 | # HalidePerovskites
# Uses the newly forked off FeynmanKadanoffOsakaHellwarth.jl package
# Codes by Jarvist Moore Frost, 2017
# These codes were developed with Julia 0.5.0, and requires the Optim and Plots packages.
# This file, when run under Julia, should regenerate all data (and plots) associated with Arxiv paper:
# https://arxiv.org/abs/1704.05404
# Polaron mobility in halide perovskites
# Jarvist Moore Frost
# (Submitted on 18 Apr 2017 [v1])
push!(LOAD_PATH,"../src/") # load module from local directory
using PolaronMobility
##### load in library routines... #####
# Plot figures with Plots, which defaults to Pyplot backend
using Plots
#pyplot()
gr()
#default(grid=false) # No silly dotted grid lines
#default(size=(400,300)) # A good small size for two-column EPS output
#gr()
#default(size=(800,600)) # Nice size for small-ish PNGs for slides
# Physical constants
const hbar = const ħ = 1.05457162825e-34; # kg m2 / s
const eV = const q = const ElectronVolt = 1.602176487e-19; # kg m2 / s2
const me=MassElectron = 9.10938188e-31; # kg
const Boltzmann = const kB = 1.3806504e-23; # kg m2 / K s2
const ε_0 = 8.854E-12 #Units: C2N−1m−2, permittivity of free space
#####
# Call simulation
# CsSnX3 X={Cl,Br,I}
# L. Huang, W.Lambrecht - PRB 88, 165203 (2013)
# Dielectric consts, from TABLE VII
# Effective masses from TABLE VI, mh*
const cm1=2.997e10 # cm-1 to Herz
#Ts,Kμs, Hμs, FHIPμs, ks, Ms, As, Bs, Cs, Fs, Taus
#effectivemass=0.12 # the bare-electron band effective-mass.
# --> 0.12 for electrons and 0.15 for holes, in MAPI. See 2014 PRB.
# MAPI 4.5, 24.1, 2.25THz - 75 cm^-1 ; α=
println("OK, solving Polaron problem...")
MAPIe = polaronmobility("MAPI-electron", [150,300], 4.5, 24.1, 2.25E12, 0.12; verbose=true, figures=false)
MAPIh = polaronmobility("MAPI-hole", [150,300], 4.5, 24.1, 2.25E12, 0.15; verbose=true, figures=false)
MAPIe = polaronmobility("MAPI-electron", [150,300], 4.5, 24.1, 1.25E12, 0.12; verbose=true, figures=false)
s=ImX(0.1:0.1:6,MAPIe.v[2],MAPIe.w[2],MAPIe.βred[2], MAPIe.α[1],MAPIe.ω[1],MAPIe.mb[1])
plot( s.nu,s.ImX,label="ImX",
markersize=3,marker=:downtriangle, xlab="nu (units Omega)",ylab="ImX")
savefig("MAPIe-ImX.png")
plot( s.nu,s.μ,label="mu",
markersize=3,marker=:uptriangle, xlab="nu (units Omega)",ylab="Mob")
savefig("MAPIe-mu.png")
println("That's me!")
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 6670 | # HellwarthEffectiveFrequency.jl
# - use Hellwarth et al. 1999 PRB method to reduce multiple phonon modes to a single effective frequency
push!(LOAD_PATH,"../src/") # load module from local directory
using PolaronMobility
# ((freq THz)) ((IR Activity / e^2 amu^-1))
# These data from MAPbI3-Cubic_PeakTable.csv
# https://github.com/WMD-group/Phonons/tree/master/2015_MAPbI3/SimulatedSpectra
# Data published in Brivio2015 (PRB)
# https://doi.org/10.1103/PhysRevB.92.144308
MAPI= [
96.20813558773261 0.4996300522819191
93.13630357703363 1.7139631746083817
92.87834578121567 0.60108592692181
92.4847918585963 0.0058228799414729
92.26701437594754 0.100590086574602
89.43972834606603 0.006278895133832249
46.89209141511332 0.2460894564364346
46.420949316788 0.14174282581124137
44.0380222871706 0.1987196948553428
42.89702947649343 0.011159939465770681
42.67180170168193 0.02557751102757614
41.46971205834201 0.012555230726601503
37.08982543385215 0.00107488277468418
36.53555265689563 0.02126940080871224
30.20608114002676 0.009019481779712388
27.374810898415028 0.03994453721421388
26.363055017011728 0.05011922682554448
9.522966890022039 0.00075631870522737
4.016471586720514 0.08168931020200264
3.887605410774121 0.006311654262282101
3.5313112232401513 0.05353548710183397
2.755392921480459 0.021303020776321225
2.4380741812443247 0.23162784335484837
2.2490917637719408 0.2622203718355982
2.079632190634424 0.23382298607799906
2.0336707697261187 0.0623239656843172
1.5673011873879714 0.0367465760261409
1.0188379384951798 0.0126328938653956
1.0022960504442775 0.006817361620021601
0.9970130778462072 0.0103757951973341
0.9201781906386209 0.01095811116040592
0.800604081794174 0.0016830270365341532
0.5738689505255512 0.00646428491253749
#0.022939578929507105 8.355742795827834e-05 # Acoustic modes!
#0.04882611767873102 8.309858592685e-06
#0.07575149723846182 2.778248540373041e-05
]
MAPbBr3 = [
#v / THz IR Activity / e^2 amu^-1
96.25494581101505 0.4856105419754306
93.36827101597564 1.5237045178260684
93.19828072025739 0.54951133126244
92.59570097621418 0.0017497942636829
92.36075758752216 0.054483693922451705
89.49998024367731 0.003950754031148851
47.175408954380885 0.21156964115237242
46.57576693654983 0.11627478349663156
44.3361503231313 0.19163912283684897
42.967352451897554 0.011987727827091217
42.71066583604171 0.027797225985699996
41.490751582679316 0.01234463397562453
37.22033177431264 0.001649578352399309
36.57010484641483 0.019161684306162618
30.438999700507342 0.007365167772350685
27.625465570185764 0.035161502048866464
26.458785163031635 0.038174133532805965
9.947074760143552 0.0012355225072173002
4.493935108724231 0.07714630445769342
4.215763207131703 0.01724042408702847
4.021795301113039 0.06167913225780508
3.2393471899404047 0.040335730459227545
2.914057478007975 0.27361583921530497
2.6223962950449407 0.23493646364819373
2.400751729577614 0.2753271857365242
2.370809478597967 0.04428317547154772
2.0388405406936783 0.0517120158657721
1.4017373572275915 0.0046510016948825
1.3634089519825427 0.0018248126743814707
1.336413930635821 0.009190430969212338
1.2144969737450764 0.013885351107636132
1.0763905048534899 0.0014676450708402083
0.7427782546143306 0.008829646844819504
#0.012830037764855392 6.62960832415985e-06
#0.02156203260482768 4.708045983230229e-05
#0.05156888885824344 2.602755859934495e-05
]
MAPbCl3= [
#v / THz IR Activity / e^2 amu^-1
96.65380905798915 0.4542931751264273
93.30434573145013 1.4046841552487999
93.27126600254645 0.5286008698609284
92.719992888923 0.0015896642905404556
92.45885414527524 0.0866990370170258
89.61967951587117 0.0031392395308660263
47.44029120639781 0.18901278025443116
46.764089990499585 0.09717407330258415
44.60198174803584 0.19436643102794884
43.04971569182655 0.012986533289171532
42.7637228646608 0.02998334671150052
41.49924134521671 0.010714577213688365
37.34275112339727 0.0028788161278648656
36.62941263763097 0.018016387094969555
30.651112964494686 0.006550727272302003
27.89469865012452 0.03515737503204058
26.603746656189923 0.03497660426639104
10.493140658721968 9.69032373922839e-05
5.242459815070028 0.12301715153349158
4.8348539006445845 0.11307729502447525
4.633936235943856 0.009371996258413128
4.1582548301810665 0.08368265471427451
3.9021555976797266 0.44406366947684967
3.3808364269416287 0.3379317982808455
3.099250159114845 0.38405867852912545
2.8466202448045217 0.025463767673713028
2.5900539956188333 0.07754012506771049
2.0931563078880493 0.008533555182635471
1.869999049657922 0.011347668353507898
1.8382471614901006 0.0005371757988
1.829843559303894 0.019270325513936128
1.6503257694697964 0.000950380841742176
1.0962868606064022 0.018510433944796113
#0.032159306112378404 2.774125107895896e-05 #Acoustic
#0.04846756590412458 7.796048392205337e-05
#0.05253089286287104 2.8730156133e-06
]
MAPI_low=MAPI[19:33,:] # Just inorganic components, everything below 10THz; modes 3-18
println("\n\nMAPI: BScheme (athermal)")
println("\t MAPI: (all values)")
HellwarthBScheme(MAPI)
println("\t MAPI: (low-frequency, non molecular IR, only)")
HellwarthBScheme(MAPI_low)
println("\nMAPI: AScheme (thermal)")
println("\t MAPI: (all values)")
HellwarthAScheme(MAPI)
println("\t MAPI: (low-frequency, non molecular IR)")
HellwarthAScheme(MAPI_low)
println("\n\n> MAPI/MAPbBr3/MAPbCl3 - with simple B-scheme...")
for LOs in [MAPI, MAPbBr3, MAPbCl3]
println("All modes...")
HellwarthBScheme(LOs)
println("Low frequency (cage modes only)...")
HellwarthBScheme(LOs[19:33,:])
println()
end
println("\n Test summation of Lorentz oscillators to get to static dielectric constant from i.r. modes.")
# Integrate through Lorentz oscillators to get dielectric fn
# Should give 'extra' contribution from these modes, extrapolated to zero omega
function integrate_dielectric(LO,V0)
summate=sum( (LO[:,2])./(LO[:,1].^2) )
# summate*4*π/V0
summate*ε0/V0
end
const Å=1E-10 # angstrom in metres
const r=6.29Å # Sensible cubic cell size
const V0=(r)^3
println("volume: $V0")
const amu=1.66054e-27
const ε0=8.854187817E-12
const eV = const q = const ElectronVolt = 1.602176487e-19; # kg m2 / s2
# Change to SI; not actually needed as units cancel everywhere (?)
MAPI_SI = [ MAPI[:,1].*10^12*2*π MAPI[:,2]./(q^2/amu) ]
println(" MAPI: ",integrate_dielectric(MAPI,1.0))
println(" MAPI_low: ",integrate_dielectric(MAPI_low,1.0))
println(" MAPI_SI: ",integrate_dielectric(MAPI_SI,V0))
println(" MAPI_SI: fudged epislon0 ",integrate_dielectric(MAPI_SI,V0)*ε0/(4*π))
println(" MAPI_SI_low: fudged epislon0 ",integrate_dielectric(MAPI_SI[19:33,:],V0)*ε0/(4*π))
println()
#println("From ε_S-ε_Inf, expect this to be: ",ε_S-ε_Inf)
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 2631 | # HalidePerovskites
# Uses the newly forked off FeynmanKadanoffOsakaHellwarth.jl package
# Codes by Jarvist Moore Frost, 2017
# These codes were developed with Julia 0.5.0, and requires the Optim and Plots packages.
# This file, when run under Julia, should regenerate polaron data associated with Arxiv paper:
# https://arxiv.org/abs/1708.04158
# Slow cooling of hot polarons in halide perovskite solar cells
# Jarvist Moore Frost, Lucy D. Whalley and Aron Walsh
# (Submitted on 14 Aug 2017 [v1])
push!(LOAD_PATH,"../src/") # load module from local directory
using PolaronMobility
using PlotPolaron # Plots dependency
##### load in library routines... #####
# Plot figures with Plots, which defaults to Pyplot backend
using Plots
pyplot() # PyPlot (matplotlib) backend, to Plots
#gr() # GR backend, to Plots
default(grid=false) # No silly dotted grid lines
default(size=(400,300)) # A good small size for two-column EPS output
#default(size=(800,600)) # Nice size for small-ish PNGs for slides
# Physical constants
const hbar = const ħ = 1.05457162825e-34; # kg m2 / s
const eV = const q = const ElectronVolt = 1.602176487e-19; # kg m2 / s2
const me=MassElectron = 9.10938188e-31; # kg
const Boltzmann = const kB = 1.3806504e-23; # kg m2 / K s2
const ε_0 = 8.854E-12 #Units: C2N−1m−2, permittivity of free space
# Units
Å=1E-10
# --> 0.12 for electrons and 0.15 for holes, in MAPI. See 2014 PRB.
# MAPI 4.5, 24.1, 2.25THz - 75 cm^-1 ; α=
MAPIe=polaronmobility(10:20:1000, 4.5, 24.1, 2.25E12, 0.12)
savepolaron("MAPI-electron",MAPIe)
plotpolaron("MAPI-electron", MAPIe)
MAPIh=polaronmobility(10:20:1000, 4.5, 24.1, 2.25E12, 0.15)
plotpolaron("MAPI-hole", MAPIh)
savepolaron("MAPI-hole",MAPIh)
## Polaron radius vs. Temperature
# More complex figure for the Thermal Pathways paper;
# https://github.com/WMD-group/2017-03-ThermalPathways/
p=MAPIe
plot(p.T,p.rfsi./Å, markersize=2,marker=:rect,
label="Polaron radius",xlab="Temperature (K)",ylab="Polaron Radius (Angstrom)",ylims=(0,Inf))
plot!(p.T,p.rfsmallalpha./Å,label="T=0 Schultz small alpha polaron radius")
savefig("ThermalPathways-radius.png")
savefig("ThermalPathways-radius.pdf")
plot(p.T,p.v./p.w,label="v/w",markersize=2,marker=:circle,
xlab="Temperature (K)", ylab="\hbar\omega")
savefig("ThermalPathways-vwratio.png")
savefig("ThermalPathways-vwratio.pdf")
plot!(p.T,p.v,label="v",markersize=2,marker=:uptriangle)
plot!(p.T,p.w,label="w",markersize=2,marker=:downtriangle)
savefig("ThermalPathways-vw.png")
savefig("ThermalPathways-vw.pdf")
println("That's me!")
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 5713 | # arb_hypgeom.jl
module arb_hypgeom
export one_f_two_fast, one_f_two
using ArbNumerics
"""
Implementation of the hypergeometric function 1F2 using the expansion:
1F2(a1; {b1, b2}; z) = ∑_{k=0}^∞ (a1)_k z^k / ((b1)_k ⋅ (b2)_k ⋅ k!)
where (x)_k is the Pochhammer rising factorial = Γ(x+k)/Γ(x) with Γ(x) the Gamma function.
"""
function one_f_two(a, b, x; prec = 64) # z > 0 & n >= 0
# Initialise precision of ArbReal to prec.
setextrabits(0)
setprecision(ArbReal, prec + 8)
a = ArbReal("$a")
b = (ArbReal("$i") for i in b)
x = ArbReal("$x")
k = ArbReal("0")
result = ArbReal("0.0")
err = eps(result) # Machine accuracy of specified precision prec.
risingfact(w, n) = ArbReal(ArbNumerics.gamma(w + n) / ArbNumerics.gamma(w))
while true
term = ArbReal(risingfact(a, k) * x^k / (prod(risingfact.(b, k)) * ArbNumerics.gamma(k + 1)))
# Break loop if term smaller than accuracy of result.
if abs(term) < err
break
end
result += term
k += ArbReal("1")
# Double precision if rounding error in result exceeds accuracy specified by prec.
if ball(result)[2] > err
setprecision(ArbReal, precision(result) * 2)
k = ArbReal("0")
a = ArbReal("$a")
b = (ArbReal("$i") for i in b)
x = ArbReal("$x")
result = ArbReal("0.0")
end
end
ArbReal(result, bits = prec + 8)
end
"""
Implementation of specific 1F2 hypergeometric function used for integrals:
∫_0^1 cosh(zx) x^{2m} dx = 1F2(m+1/2; {1/2, m+3/2}; z^2/4)/(2m+1)
= ∑_{t=0}^∞ z^{2t} / ((2t+2m+1)⋅(2t)!)
∫_0^1 sinh(zx) x^{2m} dx = z ⋅ 1F2(m+1; {3/2, m+2}; z^2/4)/(2m+2)
= ∑_{t=0}^∞ z^{2t+1} / ((2t+2m+2)⋅(2t+1)!)
which we can combine into a generic summation:
∑_{t=0}^∞ z^{2t+h} / ((2t+2m+1+h)⋅(2t+h)!)
which gives the cosh version for h=0 and the sinh version for h=1. This specialised 1F2 converges faster than generic 1F2 algorithm, one_f_two.
"""
function one_f_two_fast(x, m, h; prec = 64) # z > 0 & n >= 0
# Initialise precision of ArbReal to prec.
p = prec
setextrabits(0)
setprecision(ArbReal, p)
x = ArbReal("$x")
m = ArbReal("$m")
h = ArbReal("$h")
k = ArbReal("0")
result = ArbReal("0.0")
term = ArbReal("1.0")
err = eps(result) # Machine accuracy of specified precision prec.
while abs(midpoint(term)) > err * abs(midpoint(result))
term = ArbReal(x^(2 * k + h) / ((2 * k + 2 * m + 1 + h) * ArbNumerics.gamma(2 * k + 1 + h)))
result += term
# println("term: k = ", k, "\nterm value: ", ball(ArbReal(term, bits = prec)), "\ncumulant result: ", ball(ArbReal(result, bits = prec)), "\n")
k += 1
# Double precision if rounding error in result exceeds accuracy specified by prec.
if radius(result) > err * abs(midpoint(result))
p *= 2
setprecision(ArbReal, p)
# println("Not precise enough. Error = ", abs(radius(result)/midpoint(result)), " > ", err, ". Increasing precision to ", p, " bits.\n")
x = ArbReal("$x")
m = ArbReal("$m")
h = ArbReal("$h")
k = ArbReal("0")
result = ArbReal("0.0")
term = ArbReal("1.0")
end
end
# println("x: ", ArbReal(x, bits = prec), ". Final result: ", ArbReal(result, bits = prec))
ArbReal(result, bits = prec)
end
# β = ArbReal("2.0")
# α = ArbReal("7.0")
# v = ArbReal("5.8")
# w = ArbReal("1.6")
# R = ArbReal((v^2 - w^2) / (w^2 * v))
# a = ArbReal(sqrt(β^2 / 4 + R * β * coth(β * v / 2)))
# z = ArbReal("90.61")
# m = ArbReal("1.0")
# @time c = one_f_two_fast(z, m, 0; prec = 64)
# @show(c)
end # end module
################################################################################
"""
Some plots and tests of the above functions to check that they produce the correct values to the specified precision.
"""
# using Plots
# using QuadGK
# plotly()
# Plots.PlotlyBackend()
#
# cosh_integral(z, m) = quadgk(t -> (m + 1) * cosh(z * t) * t^m, BigFloat(0), BigFloat(1))[1]
#
# # x_range = 0:200
# # m = 1
# # @time I = [cosh_integral(x, m) for x in x_range]
# # @time F = abs.([arb_hypgeom_1f2(m / 2 + 1 / 2, (1 / 2, m / 2 + 3/2), x^2 / 4.0; prec = 128) for x in x_range])
# # p = plot(x_range, F, yaxis=:log)
# # plot!(x_range, I)
# # display(p)
# # @show(I, F)
# # println(m / 2 + 1 / 2, (1 / 2, m / 2 + 3/2), x_range^2 / 4.0)
#
# """
# Conclusion: The integral is a bit faster than the hypergeometric function, but not as accurate. So, probably use 1F2 since the time difference doesn't seem to be major!
# """
#
# # @time F_test = arb_hypgeom_1f2(1/2, (1/2, 1/2), 1/2; prec = 512)
# # setprecision(BigFloat, 512)
# # t_test = parse(BigFloat, "2.17818355660857086398922206782012528343129403292165693281081574094992093930206091916837394310903919052930938811320102906774905335969974706202490049810447181898779259195640840870264051023127290510625691429186995752638681515944856002645204867940492548077249544")
# # @show(F_test, t_test)
# # @show(isequal("$F_test"[end-1], "$t_test"[end-1]))
#
# """
# The 1F2 function above can accurate produce high precision values as shown in the above test. But it can be simplified and optimized mathematically initially as shown below.
# """
#
# x_range = 0:200
# m = 1
# h = 0
# @time L = abs.([arb_hypergeom_1f2_fast(x, m, h; prec = 128) for x in x_range])
# # @time F = abs.([arb_hypgeom_1f2(m + 1 / 2, (1 / 2, m + 3/2), x^2 / 4.0; prec = 128) / (2 * m + 1) for x in x_range])
# p = plot(x_range, L, yaxis=:log)
# # plot!(x_range, F)
# display(p)
# @show(L)
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 3661 | # bessel_minus_struve.jl
module bessel_minus_struve
export BesselI_minus_StruveL
using ArbNumerics
"""
Implementation of I[n, z] - L[-n, z] where I[n, z] is the modified Bessel function of the first kind, and L[-n, z] is the modified Struve function. n is an integer ≥ 0 and the order of the functions, and z∈ℜ>0 a positive real argument. Notice the order are opposite signs.
The expansion of the BesselI and StruveL functions are:
I[n, z] = ∑_{k=0}^∞ (z/2)^{2k+n} / (Γ(k+1)⋅Γ(k+n+1))
L[-n, z] = ∑_{k=0}^∞ (z/2)^{2k-n+1} / (Γ(k+3/2)⋅Γ(k-n+3/2))
with Γ(x) the Gamma function. The values of I[n, z] and L[-n, z] can be incredibly close, so ArbReal types are used as they allow for accurate arbitrary precision floats so that the difference, I[n, z] - L[-n, z], can be distinguished. ArbReal types are faster than BigFloat types, and the error of a float can be tracked using ball(::ArbReal)[2].
Unfortunately, as ArbReal(bits = 64) * ArbReal(bits = 128) = ArbReal(bits = 64), if the starting precision is too small to accurately produce I[n, z] - L[-n, z], then the entire summation has to be restarted at a higher precision otherwise rounding errors will be too large, which slows the algorithm sometimes. Therefore, if the precision is found to be too low, the precision is just doubled (rather than increased by some set amount) to reach a required precision quickly.
The general structure of this arbitrary precision summation algorithm is used elsewhere too since you just change the arguments and term appropriately.
"""
function BesselI_minus_StruveL(n, z, a; prec = 64) # z > 0 & n >= 0
# Initialise precision of ArbReal to prec.
p = prec
setextrabits(0)
setprecision(ArbReal, p) # ArbReal(bit = 64 + 8) has same precision as Float64 (which is why we add 8 bits).
n = ArbReal("$n")
z = ArbReal("$z")
a = ArbReal("$a")
k = ArbReal("0.0")
result = ArbReal("0.0")
term = ArbReal("1.0")
err = eps(result) # Machine accuracy of specified precision = prec.
while abs(midpoint(term)) > err * abs(midpoint(result))
term = ArbReal((abs(z) * a / 2)^(2 * k + n + 1) / (ArbNumerics.gamma(k + 1) * ArbNumerics.gamma(k + n + 2)) - (abs(z) * a / 2)^(2 * k - n) / (ArbNumerics.gamma(k + 3//2) * ArbNumerics.gamma(k - n + 1//2)))
result += term
# println("term: k = ", k, "\nterm value: ", ball(term), "\ncumulant result: ", ball(result), "\n")
k += 1
# Double precision if rounding error in result exceeds accuracy specified by prec.
while radius(result) > err * abs(midpoint(result))
p *= 2
setprecision(ArbReal, p)
# variables have to be re-parsed into the higher precision ArbReal type.
# println("Not precise enough. Error = ", radius(result), " > ", ArbReal("$err"), ". Increasing precision to ", p, " bits.\n")
n = ArbReal("$n")
z = ArbReal("$z")
a = ArbReal("$a")
k = ArbReal("0")
result = ArbReal("0.0")
term = ArbReal("1.0")
end
end
# println("z: ", ArbReal(z, bits = prec), ". Final result: ", ArbReal(result, bits = prec))
ArbReal(result * √π * ArbNumerics.gamma(-n - 1/2) * (abs(z) / 2)^n * z / 2, bits = prec) # return to specified precision.
end
# @time bsi = BesselI_minus_StruveL(3, 55, 1)
# @show(bsi)
# β = ArbReal("2.0")
# α = ArbReal("7.0")
# v = ArbReal("5.8")
# w = ArbReal("1.6")
# R = ArbReal((v^2 - w^2) / (w^2 * v))
# a = ArbReal(sqrt(β^2 / 4 + R * β * coth(β * v / 2)))
# z = ArbReal("90.61")
# n = ArbReal("12.0")
# c = BesselI_minus_StruveL(n, z, a; prec = 24)
end # end of module
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 2949 | # hyperbolic_expansion.jl
module hypergeometric_expansion
export hypergeom_exp
include("arb_hypgeom.jl")
import .arb_hypgeom
using ArbNumerics
function arb_binomial(x, y; prec = 64)
setextrabits(0)
setprecision(ArbReal, prec)
x = ArbReal("$x")
y = ArbReal("$y")
one = ArbReal("1")
ArbNumerics.gamma(x + one) / (ArbNumerics.gamma(y + one) * ArbNumerics.gamma(x - y + one))
end
"""
This function implements the binomial expansion of the denominator of the integrals:
∫_0^1 cosh(zt) / (4a^2/β^2 - t^2)^(n+3/2) dt
∫_0^1 sinh(zt) / (4a^2/β^2 - t^2)^(n+3/2) dt
which is:
∑_{m=0}^∞ C(-n-3/2, m) (-1)^m (β/2a)^{2n+2m+3} ∫_0^1 cosh(zt) t^{2m} dt
∑_{m=0}^∞ C(-n-3/2, m) (-1)^m (β/2a)^{2n+2m+3} ∫_0^1 sinh(zt) t^{2m} dt.
and also substitutes the integrals for:
∫_0^1 cosh(zt) t^{2m} dt = ∑_{t=0}^∞ z^{2t} / ((2t+2m+1)⋅(2t)!)
∫_0^1 sinh(zt) t^{2m} dt = ∑_{t=0}^∞ z^{2t+1} / ((2t+2m+2)⋅(2t+1)!)
by replacing those integrals with one_F_two_fast() from arb_hypgeom.jl. h=0 gives cosh version, h=1 gives sinh version.
"""
function hypergeom_exp(z, n, β, a, h; prec = 64)
# h = 0 gives cosh, h = 1 gives sinh.
# Initialise precision of ArbReal to prec.
p = prec
setextrabits(0)
setprecision(ArbReal, p)
z = ArbReal("$z")
n = ArbReal("$n")
β = ArbReal("$β")
a = ArbReal("$a")
m = ArbReal("0")
result = ArbReal("0.0")
term = ArbReal("1.0")
err = eps(result) # Machine accuracy of specified precision prec.
while abs(midpoint(term)) > err * abs(midpoint(result))
term = ArbReal(β * arb_binomial(-n - 3/2, m; prec = p) * (-1)^m * (β / (2 * a))^(2 * m) * arb_hypgeom.one_f_two_fast(z, m, h; prec = p) / a^(n + 2))
result += term
# println("term: m = ", m, "\nterm value: ", ball(ArbReal(term, bits = prec)), "\ncumulant result: ", ball(ArbReal(result, bits = prec)), "\n")
m += ArbReal("1")
# Double precision if rounding error in result exceeds accuracy specified by prec.
if radius(result) > err * abs(midpoint(result))
p *= 2
setprecision(ArbReal, p)
# println("Not precise enough. Error = ", abs(radius(result)/midpoint(result)), " > ", err, ". Increasing precision to ", p, " bits.\n")
n = ArbReal("$n")
z = ArbReal("$z")
β = ArbReal("$β")
a = ArbReal("$a")
m = ArbReal("0")
result = ArbReal("0.0")
term = ArbReal("1.0")
end
end
# println("z: ", ArbReal(z, bits = prec), ". Final result: ", ArbReal(result, bits = prec))
ArbReal(result, bits = prec)
end
# β = ArbReal("2.0")
# α = ArbReal("7.0")
# v = ArbReal("5.8")
# w = ArbReal("1.6")
# R = ArbReal((v^2 - w^2) / (w^2 * v))
# a = ArbReal(sqrt(β^2 / 4 + R * β * coth(β * v / 2)))
# z = ArbReal("90.61")
# n = ArbReal("12.0")
# @time c = hypergeom_exp(z, n, β, a, 0; prec = 64)
# @show(c)
end # end module
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 17977 | # check_hyperbolic_integrals.jl
# module check_hyperbolic_integral
# export hyperbolic_integral_one, hyperbolic_integral_two, hyperbolic_integral_three, hyperbolic_integral_four, hyperbolic_integralfive, hyperbolic_integral_six
using QuadGK
using Plots
using SpecialFunctions
plotly()
Plots.PlotlyBackend()
"""
This file tests a mathematical expansion of the integral:
∫_0^{β/2} (1 - cosh(Ω * x)) * cosh(x - β / 2) / (a^2 - β^2 / 4 + x * (β - x) - b * cosh(v * (x - β / 2)))^(3 / 2) dx
using some change of variables, two binomial expansions, a product of coshines expansion, and an identity that relates simpler resultant integrals to 1F2(a, {b1, b2}; z) hypergeometric functions.
Code is far from tidy or efficient. It is more a proof of implementation.
"""
"""
Original integral:
∫_0^{β/2} (1 - cosh(Ω * x)) * cosh(x - β / 2) / (a^2 - β^2 / 4 + x * (β - x) - b * cosh(v * (x - β / 2)))^(3 / 2) dx
"""
function hyperbolic_integral_one(Ω, β, α, v, w)
# Initialise constants.
R = (v^2 - w^2) / (w^2 * v)
a = sqrt(β^2 / 4 + R * β * coth(β * v / 2))
b = R * β / sinh(β * v / 2)
coefficient = 2 * α * β^(3 / 2) * v^3 / (3 * sqrt(π) * sinh(β / 2) * w^3)
integrand(x) = (1 - cosh(Ω * x)) * cosh(x - β / 2) / (a^2 - β^2 / 4 + x * (β - x) - b * cosh(v * (x - β / 2)))^(3 / 2)
integral = quadgk(x -> integrand(x), 0, β / 2)
return coefficient * integral[1]
end
"""
Transform integral to limits (0, 1):
β/2 ∫_0^1 (1 - cosh(Ωβ(1-x)/2)) cosh(xβ/2) / (a^2 - β^2 x^2/4 - bcosh(vβx/2))^{3/2} dx
"""
function hyperbolic_integral_two(Ω, β, α, v, w)
# Initialise constants.
R = (v^2 - w^2) / (w^2 * v)
a = sqrt(β^2 / 4 + R * β * coth(β * v / 2))
b = R * β / sinh(β * v / 2)
coefficient = 2 * α * β^(3 / 2) * v^3 / (3 * sqrt(π) * sinh(β / 2) * w^3)
integrand(x) = (1 - cosh(Ω * β * (1 - x) / 2)) * cosh(x * β / 2) / (a^2 - β^2 * x^2 / 4 - b * cosh(v * β * x / 2))^(3 / 2)
integral = quadgk(x -> integrand(x), 0, 1)
return coefficient * β * integral[1] / 2
end
"""
First binomial expansion of denominator in integrand:
∑_{n=0}^∞ C(-3/2, n) (2/β)^{2n + 2} (-b)^n ∫_0^1 (1 - cosh(Ωβ(1-x)/2)) cosh(βx/2) cosh^n(βvx/2) / (4a^2/β^2 - x^2)^{n + 3/2} dx.
C(n, k) are binomial coefficients.
"""
function hyperbolic_integral_three(Ω, β, α, v, w)
# Initialise constants.
R = (v^2 - w^2) / (w^2 * v)
a = sqrt(β^2 / 4 + R * β * coth(β * v / 2))
b = R * β / sinh(β * v / 2)
coefficient = 2 * α * β^(3 / 2) * v^3 / (3 * sqrt(π) * sinh(β / 2) * w^3)
integrand(x, n) = (1 - cosh(Ω * β * (1 - x) / 2)) * cosh(x * β / 2) * cosh(β * v * x / 2)^n / (1 - x^2 + 4 * R * coth(β * v / 2) / β)^(n + 3 / 2)
n_binomial_coeff(n) = -2 * √π / (gamma(-n - 1 / 2) * gamma(n + 1))
n_coefficient(n) = n_binomial_coeff(n) * (2 / β)^(2 * n + 2) * (-b)^n
total_sum = 0.0
for n in 0:8 # Seems to converge very quickly.
integral = quadgk(x -> integrand(x, n), 0, 1)[1]
total_sum += n_coefficient(n) * integral
end
return coefficient * total_sum
end
"""
Second binomial expansion of the denominator in the integrand:
∑_{n=0}^∞ C(-3/2, n) (2/β)^{2n + 2} (-b)^n ∑_{m=0}^∞ C(-n-3/2, m) (-1)^m (β/2a)^{2n+2m+3} ∫_0^1 (1 - cosh(Ωβ(1-x)/2)) cosh(βx/2) cosh^n(βvx/2) x^{2m} dx
"""
function hyperbolic_integral_four(Ω, β, α, v, w)
# Initialise constants.
R = (v^2 - w^2) / (w^2 * v)
a = sqrt(β^2 / 4 + R * β * coth(β * v / 2))
b = R * β / sinh(β * v / 2)
coefficient = 2 * α * β^(3 / 2) * v^3 / (3 * sqrt(π) * sinh(β / 2) * w^3)
integrand(x, n, m) = (1 - cosh(Ω * β * (1 - x) / 2)) * cosh(x * β / 2) * cosh(β * v * x / 2)^n * (x^2)^m
n_binomial_coeff(n) = -2 * √π / (gamma(-n - 1 / 2) * gamma(n + 1))
m_binomial_coeff(n, m) = gamma(-n - 1 / 2) / (gamma(m + 1) * gamma(-m - n - 1 / 2))
n_coefficient(n) = n_binomial_coeff(n) * (2 / β)^(2 * n + 2) * (-b)^n
m_coefficient(n, m) = m_binomial_coeff(n, m) * (-1)^m * (β / (2 * a))^(2 * n + 2 * m + 3)
total_sum_n = 0.0
for n in 0:8
total_sum_m = 0.0
for m in 0:10
integral = quadgk(x -> integrand(x, n, m), 0, 1)[1]
total_sum_m += m_coefficient(n, m) * integral
end
total_sum_n += n_coefficient(n) * total_sum_m
end
return coefficient * total_sum_n
end
"""
Expand product of coshines in the integrand:
∑_{n=0}^∞ C(-3/2, n) (2/β)^{2n + 2} (-b/2)^n ∑_{m=0}^∞ C(-n-3/2, m) (-1)^m (β/2a)^{2n+2m+3} {
C(n, n/2)(1 - nmod2)[∫_0^1 cosh(βx/2) x^{2m} dx - (1/2) ∑_{z_2} (cosh(Ωβ/2) ∫_0^1 cosh(βx(z_2)/2) x^{2m} dx - sinh(Ωβ/2) ∫_0^1 sinh(βx(z_2)/2) x^{2m} dx)]
+ ∑_{k=0}^{floor(n/2-1/2)} C(n, k) [∑_{z_3} ∫_0^1 cosh(βx(z_3)/2) x^{2m} dx - (1/2) ∑_{z_4} (cosh(Ωβ/2) ∫_0^1 cosh(βx(z_4)/2) x^{2m} dx - sinh(Ωβ/2) ∫_0^1 sinh(βx(z_4)/2) x^{2m} dx)]
}
where:
z_2 ∈ {Ω + 1, Ω - 1}
z_3 ∈ {1 + v(n - 2k), 1 - v(n - 2k)}
z_4 ∈ {Ω + 1 + v(n - 2k), Ω - 1 + v(n - 2k), Ω + 1 - v(n - 2k), Ω - 1 - v(n - 2k)}.
"""
function hyperbolic_integral_five(Ω, β, α, v, w)
# Initialise constants.
R = (v^2 - w^2) / (w^2 * v)
a = sqrt(β^2 / 4 + R * β * coth(β * v / 2))
b = R * β / sinh(β * v / 2)
coefficient = 2 * α * β^(3 / 2) * v^3 / (3 * sqrt(π) * sinh(β / 2) * w^3)
n_binomial_coeff_one(n) = -2 * √π / (gamma(-n - 1 / 2) * gamma(n + 1))
m_binomial_coeff(n, m) = gamma(-n - 1 / 2) / (gamma(m + 1) * gamma(-m - n - 1 / 2))
n_coefficient(n) = n_binomial_coeff_one(n) * (2 / β)^(2 * n + 2) * (-b)^n
m_coefficient(n, m) = m_binomial_coeff(n, m) * (-1)^m * (β / (2 * a))^(2 * n + 2 * m + 3)
############################################################################
cosh_integral(z, m) = quadgk(x -> cosh(β * x * z / 2) * (x^2)^m, 0, 1)[1]
cosh_sinh_integral(z, m) = cosh(Ω * β / 2) * quadgk(x -> cosh(β * x * z / 2) * (x^2)^m, 0, 1)[1] - sinh(Ω * β / 2) * quadgk(x -> sinh(β * x * z / 2) * (x^2)^m, 0, 1)[1]
k_binomial_coeff(n, k) = gamma(n + 1) / (gamma(k + 1) * gamma(n - k + 1))
n_binomial_coeff_two(n) = 2^n * gamma((n + 1) / 2) / (√π * gamma(n / 2 + 1))
z_1_args = 1
z_2_args = [Ω + 1, Ω - 1]
z_3_args(n, k) = [1 + v * (n - 2 * k), 1 - v * (n - 2 * k)]
z_4_args(n, k) = [Ω + 1 + v * (n - 2 * k), Ω - 1 + v * (n - 2 * k), Ω + 1 - v * (n - 2 * k), Ω - 1 - v * (n - 2 * k)]
############################################################################
total_sum = 0.0
for n in 0:8
n_coeff = n_coefficient(n)
for k in 0:Int64(floor((n - 1) / 2))
k_coeff = k_binomial_coeff(n, k)
z_3, z_4 = z_3_args(n, k), z_4_args(n, k)
for m in 0:10
integral_3 = sum([cosh_integral(z, m) for z in z_3])
integral_4 = sum([cosh_sinh_integral(z, m) for z in z_4])
total_sum += n_coeff * m_coefficient(n, m) * k_coeff * (integral_3 - integral_4 / 2) / 2^n
end
end
n_bin_coeff_2 = n_binomial_coeff_two(n)
if mod(n, 2) == 0
for m in 0:10
integral_1 = cosh_integral(z_1_args, m)
integral_2 = sum([cosh_sinh_integral(z, m) for z in z_2_args])
total_sum += n_coeff * m_coefficient(n, m) * n_bin_coeff_2 * (integral_1 - integral_2 / 2) / 2^n
end
end
end
return coefficient * total_sum
end
"""
Substitute remaining integrals for equivalent summations and extract exponential term:
e^{Ωβ/2}/2 ∑_{n=0}^∞ C(-3/2, n) (2/β)^{2n + 2} (-b/2)^n ∑_{m=0}^∞ C(-n-3/2, m) (-1)^m (β/2a)^{2n+2m+3} {
C(n, n/2)(1 - nmod2)[2e^{-Ωβ/2} J(1, 2t, 0) - (1/2) ∑_{z_2} (J(z_2, 2t, 1) - J(z_2, 2t+1, -1))]
+ ∑_{k=0}^{floor(n/2-1/2)} C(n, k) [2e^{-Ωβ/2} ∑_{z_3} J(z_3, 2t, 0) - (1/2) ∑_{z_4} (J(z_4, 2t, 1) - J(z_4, 2t+1, -1))]
}
where:
z_2 ∈ {Ω + 1, Ω - 1}
z_3 ∈ {1 + v(n - 2k), 1 - v(n - 2k)}
z_4 ∈ {Ω + 1 + v(n - 2k), Ω - 1 + v(n - 2k), Ω + 1 - v(n - 2k), Ω - 1 - v(n - 2k)}
and:
J(z, t, c) ≡ ∑_{t=0}^∞ (βz/2)^t (1-c⋅e^{-Ωβ}) / ((2m + t + 1)⋅(t!)).
The integral identities are:
∫_0^1 cosh(zx) x^{2m} dx = 1F2(m+1/2; {1/2, m+3/2}; z^2/4)/(2m+1)
= ∑_{t=0}^∞ z^{2t} / ((2t+2m+1)⋅(2t)!)
∫_0^1 sinh(zx) x^{2m} dx = z ⋅ 1F2(m+1; {3/2, m+2}; z^2/4)/(2m+2)
= ∑_{t=0}^∞ z^{2t+1} / ((2t+2m+2)⋅(2t+1)!)
where 1F2 is the hypergeometric function pFq with p = 1 and q = 2.
"""
function hyperbolic_integral_six(Ω, β, α, v, w; prec = 64)
setprecision(BigFloat, prec)
Ω = BigFloat("$Ω")
β = BigFloat("$β")
α = BigFloat("$α")
v = BigFloat("$v")
w = BigFloat("$w")
# Initialise constants.
R = (v^2 - w^2) / (w^2 * v)
a = sqrt(β^2 / 4 + R * β * coth(β * v / 2))
b = R * β / sinh(β * v / 2)
coefficient = 2 * α * β^(3 / 2) * v^3 / (3 * sqrt(π) * sinh(β / 2) * w^3)
n_binomial_coeff_one(n) = -2 * √π / (gamma(-n - 1 / 2) * gamma(n + 1))
m_binomial_coeff(n, m) = gamma(-n - 1 / 2) / (gamma(m + 1) * gamma(-m - n - 1 / 2))
n_coefficient(n) = n_binomial_coeff_one(n) * (2 / β)^(2 * n + 2) * (-b)^n
m_coefficient(n, m) = m_binomial_coeff(n, m) * (-1)^m * (β / (2 * a))^(2 * n + 2 * m + 3)
k_binomial_coeff(n, k) = gamma(n + 1) / (gamma(k + 1) * gamma(n - k + 1))
n_binomial_coeff_two(n) = 2^n * gamma((n + 1) / 2) / (√π * gamma(n / 2 + 1))
z_1_args = 1
z_2_args = [Ω + 1, Ω - 1]
z_3_args(n, k) = [1 + v * (n - 2 * k), 1 - v * (n - 2 * k)]
z_4_args(n, k) = [Ω + 1 + v * (n - 2 * k), Ω - 1 + v * (n - 2 * k), Ω + 1 - v * (n - 2 * k), Ω - 1 - v * (n - 2 * k)]
J(z, t, c, m) = (β * z / 2)^t * (1 + c * exp(-Ω * β)) / ((2 * m + t + 1) * gamma(t + 1))
total_sum = 0.0
for n in 0:3, m in 0:3, t in 0:100
n_coeff = n_coefficient(n)
m_coeff = m_coefficient(n, m)
for k in 0:Int64(floor((n - 1) / 2))
k_coeff = k_binomial_coeff(n, k)
z_3, z_4 = z_3_args(n, k), z_4_args(n, k)
integral_3 = sum([2 * J(z, 2 * t, 0, m) * exp(-Ω * β / 2) for z in z_3])
integral_4 = sum([J(z, 2 * t, 1, m) - J(z, 2 * t + 1, -1, m) for z in z_4])
total_sum += n_coeff * m_coeff * k_coeff * (integral_3 - integral_4 / 2) / 2^n
end
n_bin_coeff_2 = n_binomial_coeff_two(n)
if mod(n, 2) == 0
integral_1 = 2 * J(z_1_args, 2 * t, 0, m) * exp(-Ω * β / 2)
integral_2 = sum([J(z, 2 * t, 1, m) - J(z, 2 * t + 1, -1, m) for z in z_2_args])
total_sum += n_coeff * m_coeff * n_bin_coeff_2 * (integral_1 - integral_2 / 2) / 2^n
end
end
return coefficient * total_sum * exp(Ω * β / 2) / 2
end
# end # end of module
"""
Plotting of the above six functions to compare them. They should all produce the same graph (which they do).
"""
Ω_range = 0.01:0.1:20
@time hyper_int_1 = [hyperbolic_integral_one(Ω, 10, 7, 5.8, 1.6) for Ω in Ω_range]
@time hyper_int_2 = [hyperbolic_integral_two(Ω, 10, 7, 5.8, 1.6) for Ω in Ω_range]
@time hyper_int_3 = [hyperbolic_integral_three(Ω, 10, 7, 5.8, 1.6) for Ω in Ω_range]
@time hyper_int_4 = [hyperbolic_integral_four(Ω, 10, 7, 5.8, 1.6) for Ω in Ω_range]
@time hyper_int_5 = [hyperbolic_integral_five(Ω, 10, 7, 5.8, 1.6) for Ω in Ω_range]
@time hyper_int_6 = [hyperbolic_integral_six(Ω, 10, 7, 5.8, 1.6) for Ω in Ω_range]
p = plot(Ω_range, abs.(hyper_int_1), yaxis=:log, label = "hyper_int_1")
plot!(Ω_range, abs.(hyper_int_2), label = "hyper_int_2")
plot!(Ω_range, abs.(hyper_int_3), label = "hyper_int_3")
plot!(Ω_range, abs.(hyper_int_4), label = "hyper_int_4")
plot!(Ω_range, abs.(hyper_int_5), label = "hyper_int_5")
plot!(Ω_range, abs.(hyper_int_6), label = "hyper_int_6")
display(p)
"""
Mini tests of some individual parts of the above six functions. Such as the coshine product expansion, the 1F2 hypergeometric function, etc.
"""
# function inner_hyp_integral(x, n, β, v, w)
#
# # Initialise constants.
# R = (v^2 - w^2) / (w^2 * v)
# a = sqrt(β^2 / 4 + R * β * coth(β * v / 2))
# b = R * β / sinh(β * v / 2)
#
# m_binomial_coeff(n, m) = gamma(-n - 1 / 2) / (gamma(m + 1) * gamma(-m - n - 1 / 2))
#
# normal_term = (4 * a^2 / β^2 - x^2)^(-n - 3 / 2)
#
# total_sum_m = 0.0
# for m in 0:120
# m_coefficient = m_binomial_coeff(n, m) * (-1)^m * (β / (2 * a))^(2 * n + 2 * m + 3)
# total_sum_m += x^(2 * m) * m_coefficient
# end
#
# return normal_term, total_sum_m
# end
#
# # m = inner_hyp_integral(0.99, 0, 200, 5.8, 1.6)
# # @show(m)
#
# function cosh_expansion(x, n)
#
# normal = cosh(x)^n
#
# k_binomial_coeff(n, k) = gamma(n + 1) / (gamma(k + 1) * gamma(n - k + 1))
#
# n_binomial_coeff_two(n) = 2^n * gamma((n + 1) / 2) / (√π * gamma(n / 2 + 1))
#
# total_sum_k = 0.0
# for k in 0:Int64(floor((n - 1) / 2))
#
# total_sum_k += n_binomial_coeff_two(n) * (1 - mod(n, 2)) / 2^n + k_binomial_coeff(n, k) * cosh(x * (n - 2 * k)) / 2^(n - 1)
# end
#
# return normal, total_sum_k
# end
#
# # x_range = 0.01:0.01:1.0
# # cosh_exp = [cosh_expansion(x, 2) for x in x_range]
# # cosh_exp_norm = [x[1] for x in cosh_exp]
# # cosh_exp_sum = [x[2] for x in cosh_exp]
# # p = plot(x_range, cosh_exp_norm, yaxis = :log, label = "cosh_exp_norm")
# # plot!(x_range, cosh_exp_sum, label = "cosh_exp_sum")
# # display(p)
#
# function hyperbolic_expansion_small(β, v, n, m)
#
# integrand(x, n, m) = cosh(x * β / 2) * cosh(β * v * x / 2)^n * (x^2)^m
# integral = quadgk(x -> integrand(x, n, m), 0, 1)[1]
#
# ##########################################################################
#
# z_3(n, k) = [1 + v * (n - 2 * k), 1 - v * (n - 2 * k)]
#
# cosh_integral(z, m) = quadgk(x -> cosh(β * x * z / 2) * (x^2)^m, 0, 1)[1]
#
# k_binomial_coeff(n, k) = gamma(n + 1) / (gamma(k + 1) * gamma(n - k + 1))
#
# n_binomial_coeff_two(n) = 2^n * gamma((n + 1) / 2) / (√π * gamma(n / 2 + 1))
#
# total_sum_k = 0.0
# for k in 0:Int64(floor((n - 1) / 2))
#
# integral_3 = sum([cosh_integral(z, m) for z in z_3(n, k)])
#
# total_sum_k += k_binomial_coeff(n, k) * integral_3
# end
#
# if mod(n, 2) == 0
#
# integral_1 = cosh_integral(1, m)
#
# total_sum_k += n_binomial_coeff_two(n) * integral_1
# end
#
# return integral, total_sum_k / 2^n
# end
#
# # β_range = 0.01:0.1:1
# # hyper_exp_s = [hyperbolic_expansion_small(β, 5.8, 1, 1) for β in β_range]
# # hyper_exp_s_int = [x[1] for x in hyper_exp_s]
# # hyper_exp_s_exp = [x[2] for x in hyper_exp_s]
# # p = plot(β_range, hyper_exp_s_int, yaxis = :log, label = "hyper_exp_s_int")
# # plot!(β_range, hyper_exp_s_exp, label = "hyper_exp_s_exp")
# # display(p)
#
# function hyperbolic_expansion_large(Ω, β, v, n, m)
#
# integrand(x, n, m) = cosh(Ω * β * (1 - x) / 2) * cosh(x * β / 2) * cosh(β * v * x / 2)^n * (x^2)^m
# integral = quadgk(x -> integrand(x, n, m), 0, 1)[1]
#
# ##########################################################################
#
# z_2 = [1 + Ω, -1 + Ω]
# z_4(n, k) = [1 + Ω + v * (n - 2 * k), -1 + Ω - v * (n - 2 * k), 1 + Ω - v * (n - 2 * k), -1 + Ω + v * (n - 2 * k)]
#
# cosh_sinh_integral(z, m) = cosh(Ω * β / 2) * quadgk(x -> cosh(β * x * z / 2) * (x^2)^m, 0, 1)[1] - sinh(Ω * β / 2) * quadgk(x -> sinh(β * x * z / 2) * (x^2)^m, 0, 1)[1]
#
# k_binomial_coeff(n, k) = gamma(n + 1) / (gamma(k + 1) * gamma(n - k + 1))
#
# n_binomial_coeff_two(n) = 2^n * gamma((n + 1) / 2) / (√π * gamma(n / 2 + 1))
#
# total_sum_k = 0.0
# for k in 0:Int64(floor((n - 1) / 2))
#
# integral_4 = sum([cosh_sinh_integral(z, m) for z in z_4(n, k)])
#
# total_sum_k += k_binomial_coeff(n, k) * integral_4
# end
#
# if mod(n, 2) == 0
#
# integral_2 = sum([cosh_sinh_integral(z, m) for z in z_2])
#
# total_sum_k += n_binomial_coeff_two(n) * integral_2
# end
#
# return integral, total_sum_k / 2^(n + 1)
# end
#
# # Ω_range = 0.01:0.1:1
# # hyper_exp_l = [hyperbolic_expansion_large(Ω, 2, 5.8, 1, 1) for Ω in Ω_range]
# # hyper_exp_l_int = [x[1] for x in hyper_exp_l]
# # hyper_exp_l_exp = [x[2] for x in hyper_exp_l]
# # p = plot(Ω_range, hyper_exp_l_int, label = "hyper_exp_l_int")
# # plot!(Ω_range, hyper_exp_l_exp, label = "hyper_exp_l_exp")
# # display(p)
#
# function final_cosh_expansion(z, β, m)
#
# cosh_integral = quadgk(x -> cosh(β * x * z / 2) * (x^2)^m, 0, 1)[1]
#
# ############################################################################
#
# J(z, t, c, m) = (β * z / 2)^t / ((2 * m + t + 1) * gamma(t + 1))
#
# total_sum = 0.0
# for t in 0:100
# total_sum += J(z, 2 * t, 0, m)
# end
#
# return cosh_integral, total_sum
# end
#
# # z_range = 0.01:0.1:10
# # f_cosh_exp = [final_cosh_expansion(z, 6, 0) for z in z_range]
# # f_cosh_exp_int = [x[1] for x in f_cosh_exp]
# # f_cosh_exp_exp = [x[2] for x in f_cosh_exp]
# # p = plot(z_range, f_cosh_exp_int, yaxis=:log, label = "f_int_exp_int")
# # plot!(z_range, f_cosh_exp_exp, label = "f_int_exp_exp")
# # display(p)
#
# function final_hyperbolic_expansion(Ω, z, β, m)
#
# cosh_sinh_integral = cosh(Ω * β / 2) * quadgk(x -> cosh(β * x * z / 2) * (x^2)^m, 0, 1)[1] - sinh(Ω * β / 2) * quadgk(x -> sinh(β * x * z / 2) * (x^2)^m, 0, 1)[1]
#
# ############################################################################
#
# J(z, t, c, m) = (β * z / 2)^t * (1 + c * exp(-Ω * β)) / ((2 * m + t + 1) * gamma(t + 1))
#
# total_sum = 0.0
# for t in 0:100
# total_sum += J(z, 2 * t, 1, m) - J(z, 2 * t + 1, -1, m)
# end
#
# return cosh_sinh_integral, total_sum * exp(Ω * β / 2) / 2
# end
#
# # Ω_range = 0.01:0.1:10
# # f_hyp_exp = [final_hyperbolic_expansion(Ω, 6, 6, 10) for Ω in Ω_range]
# # f_hyp_exp_int = [x[1] for x in f_hyp_exp]
# # f_hyp_exp_exp = [x[2] for x in f_hyp_exp]
# # p = plot(Ω_range, f_hyp_exp_int, yaxis=:log, label = "f_int_exp_int")
# # plot!(Ω_range, f_hyp_exp_exp, label = "f_int_exp_exp")
# # display(p)
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 11450 |
include("arb_hypgeom.jl")
import .arb_hypgeom
using ArbNumerics
using QuadGK
"""
This file checks the binomial expansion of the denominators of the integrals:
∫_0^1 cosh(zt) / (4a^2/β^2 - t^2)^(n+3/2) dt
∫_0^1 sinh(zt) / (4a^2/β^2 - t^2)^(n+3/2) dt
which should give:
∑_{m=0}^∞ C(-n-3/2, m) (-1)^m (β/2a)^{2n+2m+3} ∫_0^1 cosh(zt) t^{2m} dt
∑_{m=0}^∞ C(-n-3/2, m) (-1)^m (β/2a)^{2n+2m+3} ∫_0^1 sinh(zt) t^{2m} dt
These are terms in hyperbolic_integral_five() from check_hyperbolic_integral.jl that depend on the iterator m of the second binomial expansion in check_hyperbolic_integral.jl (the positive integer n is the iterator from the first binomial expansion). This is reproduced here as we then want to check if substituting:
∫_0^1 cosh(zt) t^{2m} dt = 1F2(m+1/2; {1/2, m+3/2}; z^2/4)/(2m+1)
= ∑_{t=0}^∞ z^{2t} / ((2t+2m+1)⋅(2t)!)
∫_0^1 sinh(zt) t^{2m} dt = z ⋅ 1F2(m+1; {3/2, m+2}; z^2/4)/(2m+2)
= ∑_{t=0}^∞ z^{2t+1} / ((2t+2m+2)⋅(2t+1)!)
i.e. one_f_two() or one_f_two_fast() from arb_hypgeom.jl, accurately numerically reproduces the top two integrals. The reason for doing this over the expansions already done in check_hyperbolic_integral.jl (which is only as accurate as Float64) is that we want to ensure these integrals are evaluated accurately to precisions greater than Float64 (beyond the first ~16 digits) using the ArbReal summation algorithm first used in bessel_minus_struve.jl, and to hopefully produce cleaner, more digestible code by separating out all these nested sums rather than writing them out explicitly as one massive confusing functions.
Also, one_f_two() versus one_f_two_fast() are compared for efficiency (@time) and accuracy to the top two integrals.
"""
"""
This function uses quadgk to evalulate the integrals:
∫_0^1 cosh(zt) / (4a^2/β^2 - t^2)^(n+3/2) dt
∫_0^1 sinh(zt) / (4a^2/β^2 - t^2)^(n+3/2) dt.
In this function, h=0 gives the cosh version and h=1 gives the sinh version.
"""
function hyperbolic_integral(z, n, β, a, h)
if h == 0
integrand = function (t)
cosh(z * t) / (4 * a^2 / β^2 - t^2)^(n + 3 // 2)
end
elseif h == 1
integrand = function (t)
sinh(z * t) / (4 * a^2 / β^2 - t^2)^(n + 3 // 2)
end
end
integral = quadgk(t -> integrand(t), 0, 1)[1]
end
"""
This function then implements the binomial expansion of the denominator of the integrals:
∫_0^1 cosh(zt) / (4a^2/β^2 - t^2)^(n+3/2) dt
∫_0^1 sinh(zt) / (4a^2/β^2 - t^2)^(n+3/2) dt
i.e.:
∑_{m=0}^∞ C(-n-3/2, m) (-1)^m (β/2a)^{2n+2m+3} ∫_0^1 cosh(zt) t^{2m} dt
∑_{m=0}^∞ C(-n-3/2, m) (-1)^m (β/2a)^{2n+2m+3} ∫_0^1 sinh(zt) t^{2m} dt.
Here h=0 is the cosh version, h=1 is the sinh version.
"""
function hyperbolic_integral_mexpansion(z, n, β, a, h; prec = 64)
# h = 0 gives cosh, h = 1 gives sinh.
# Initialise precision of ArbReal to prec.
setextrabits(0)
setprecision(ArbReal, prec + 8)
z = ArbReal("$z")
n = ArbReal("$n")
β = ArbReal("$β")
a = ArbReal("$a")
m = ArbReal("0")
result = ArbReal("0.0")
err = eps(result) # Machine accuracy of specified precision prec.
m_binomial_coeff(m) = ArbReal(ArbNumerics.gamma(-n - 1//2) / (ArbNumerics.gamma(m + 1) * ArbNumerics.gamma(-n - m - 1//2)))
if h == 0
integrand = function (m, t)
cosh(z * t) * t^(2 * m)
end
elseif h == 1
integrand = function (m, t)
sinh(z * t) * t^(2 * m)
end
end
integral(m) = ArbReal(quadgk(t -> integrand(m, t), 0, 1)[1])
while true
term = ArbReal(m_binomial_coeff(m) * (-1)^m * (β / (2 * a))^(2 * n + 2 * m + 3) * integral(m))
# Break loop if term smaller than accuracy of result.
if abs(term) < err
break
end
result += term
m += ArbReal("1")
# Double precision if rounding error in result exceeds accuracy specified by prec.
if ball(result)[2] > err
setprecision(ArbReal, precision(result) * 2)
n = ArbReal("$n")
z = ArbReal("$z")
β = ArbReal("$β")
a = ArbReal("$a")
m = ArbReal("0")
result = ArbReal("0.0")
m_binomial_coeff(m) = ArbReal(ArbNumerics.gamma(-n - 1//2) / (ArbNumerics.gamma(m + 1) * ArbNumerics.gamma(-n - m - 1//2)))
if h == 0
integrand = function (m, t)
cosh(z * t) * t^(2 * m)
end
elseif h == 1
integrand = function (m, t)
sinh(z * t) * t^(2 * m)
end
end
end
end
ArbReal(result, bits = prec + 8)
end
"""
This function then implements the binomial expansion of the denominator of the integrals:
∫_0^1 cosh(zt) / (4a^2/β^2 - t^2)^(n+3/2) dt
∫_0^1 sinh(zt) / (4a^2/β^2 - t^2)^(n+3/2) dt
i.e.:
∑_{m=0}^∞ C(-n-3/2, m) (-1)^m (β/2a)^{2n+2m+3} ∫_0^1 cosh(zt) t^{2m} dt
∑_{m=0}^∞ C(-n-3/2, m) (-1)^m (β/2a)^{2n+2m+3} ∫_0^1 sinh(zt) t^{2m} dt.
but also substitutes the integrals:
∫_0^1 cosh(zt) t^{2m} dt = ∑_{t=0}^∞ z^{2t} / ((2t+2m+1)⋅(2t)!)
∫_0^1 sinh(zt) t^{2m} dt = ∑_{t=0}^∞ z^{2t+1} / ((2t+2m+2)⋅(2t+1)!)
by replacing those integrals in the previous function with one_F_two_fast() from arb_hypgeom.jl. h=0 gives cosh version, h=1 gives sinh version.
"""
function hyperbolic_hypergeom_mexpansion(z, n, β, a, h; prec = 64)
# h = 0 gives cosh, h = 1 gives sinh.
# Initialise precision of ArbReal to prec.
setextrabits(0)
setprecision(ArbReal, prec + 8)
z = ArbReal("$z")
n = ArbReal("$n")
β = ArbReal("$β")
a = ArbReal("$a")
m_binomial_coeff(m) = ArbReal(ArbNumerics.gamma(-n - 1//2) / (ArbNumerics.gamma(m + 1) * ArbNumerics.gamma(-n - m - 1//2)))
S(m) = ArbReal(arb_hypgeom.one_f_two_fast(z, m, h; prec = prec))
m = ArbReal("0")
result = ArbReal("0.0")
err = eps(result) # Machine accuracy of specified precision prec.
while true
term = ArbReal(m_binomial_coeff(m) * (-1)^m * (β / (2 * a))^(2 * n + 2 * m + 3) * S(m))
# Break loop if term smaller than accuracy of result.
if abs(term) < err
break
end
result += term
m += ArbReal("1")
# Double precision if rounding error in result exceeds accuracy specified by prec.
if ball(result)[2] > err
setprecision(ArbReal, precision(result) * 2)
n = ArbReal("$n")
z = ArbReal("$z")
β = ArbReal("$β")
a = ArbReal("$a")
m = ArbReal("0")
result = ArbReal("0.0")
m_binomial_coeff(m) = ArbReal(ArbNumerics.gamma(-n - 1//2) / (ArbNumerics.gamma(m + 1) * ArbNumerics.gamma(-n - m - 1//2)))
S(m) = ArbReal(arb_hypgeom.one_f_two_fast(z, m, h; prec = precision(result)))
end
end
ArbReal(result, bits = prec + 8)
end
"""
This function then implements the binomial expansion of the denominator of the integrals:
∫_0^1 cosh(zt) / (4a^2/β^2 - t^2)^(n+3/2) dt
∫_0^1 sinh(zt) / (4a^2/β^2 - t^2)^(n+3/2) dt
i.e.:
∑_{m=0}^∞ C(-n-3/2, m) (-1)^m (β/2a)^{2n+2m+3} ∫_0^1 cosh(zt) t^{2m} dt
∑_{m=0}^∞ C(-n-3/2, m) (-1)^m (β/2a)^{2n+2m+3} ∫_0^1 sinh(zt) t^{2m} dt.
but also substitutes the integrals:
∫_0^1 cosh(zt) t^{2m} dt = 1F2(m+1/2; {1/2, m+3/2}; z^2/4)/(2m+1)
∫_0^1 sinh(zt) t^{2m} dt = z ⋅ 1F2(m+1; {3/2, m+2}; z^2/4)/(2m+2)
by replacing those integrals with one_F_two() from arb_hypgeom.jl. h=0 gives cosh version, h=1 gives sinh version.
"""
function hyperbolic_hypergeom_mexpansion2(z, n, β, a, h; prec = 64)
# h = 0 gives cosh, h = 1 gives sinh.
# Initialise precision of ArbReal to prec.
setextrabits(0)
setprecision(ArbReal, prec + 8)
z = ArbReal("$z")
n = ArbReal("$n")
β = ArbReal("$β")
a = ArbReal("$a")
m = ArbReal("0")
result = ArbReal("0.0")
err = eps(result) # Machine accuracy of specified precision prec.
m_binomial_coeff(m) = ArbReal(ArbNumerics.gamma(-n - 1//2) / (ArbNumerics.gamma(m + 1) * ArbNumerics.gamma(-n - m - 1//2)))
if h == 0
one_f_two = function (m)
ArbReal(arb_hypgeom.one_f_two(m + 1/2, (1/2, m + 3/2), (z / 2)^2; prec = prec) / (2 * m + 1))
end
elseif h == 1
one_f_two = function (m)
ArbReal(z * arb_hypgeom.one_f_two(m + 1, (3/2, m + 2), (z / 2)^2; prec = prec) / (2 * m + 2))
end
end
while true
term = ArbReal(m_binomial_coeff(m) * (-1)^m * (β / (2 * a))^(2 * n + 2 * m + 3) * one_f_two(m))
# Break loop if term smaller than accuracy of result.
if abs(term) < err
break
end
result += term
m += ArbReal("1")
# Double precision if rounding error in result exceeds accuracy specified by prec.
if ball(result)[2] > err
setprecision(ArbReal, precision(result) * 2)
n = ArbReal("$n")
z = ArbReal("$z")
β = ArbReal("$β")
a = ArbReal("$a")
m = ArbReal("0")
result = ArbReal("0.0")
m_binomial_coeff(m) = ArbReal(ArbNumerics.gamma(-n - 1//2) / (ArbNumerics.gamma(m + 1) * ArbNumerics.gamma(-n - m - 1//2)))
if h == 0
one_f_two = function (m)
ArbReal(arb_hypgeom.one_f_two(m + 1/2, (1/2, m + 3/2), (z / 2)^2; prec = precision(result)) / (2 * m + 1))
end
elseif h == 1
one_f_two = function (m)
ArbReal(z * arb_hypgeom.one_f_two(m + 1, (3/2, m + 2), (z / 2)^2; prec = precision(result)) / (2 * m + 2))
end
end
end
end
ArbReal(result, bits = prec + 8)
end
"""
Plot and time each of these stages/implementations of the integrals and compare.
"""
using Plots
plotly()
Plots.PlotlyBackend()
n = 3
a = 6.23
β = 3.2
z_range = 0.01:1:200 # z=0 diverges
h = 1
# For n=3, a=6.23, β=3.2, z_range=0.01:1:200, h=1 I get:
# 0.161909 seconds (564.27 k allocations: 23.958 MiB, 5.98% gc time) for me.
@time original_integral = [hyperbolic_integral(z, n, β, a, h) for z in z_range]
# 15.588500 seconds (69.64 M allocations: 3.085 GiB, 13.72% gc time) for me.
@time m_expansion = [hyperbolic_integral_mexpansion(z, n, β, a, h) for z in z_range]
# Below uses one_F_two_fast()
# 150.126938 seconds (652.59 M allocations: 28.175 GiB, 15.40% gc time) for me.
@time hypgeom_expansion = [hyperbolic_hypergeom_mexpansion(z, n, β, a, h; prec = 64) for z in z_range]
# Below uses one_F_two()
# 322.089672 seconds (988.47 M allocations: 66.587 GiB, 7.72% gc time) for me.
@time hypgeom_expansion2 = [hyperbolic_hypergeom_mexpansion2(z, n, β, a, h; prec = 64) for z in z_range]
p = plot(z_range, hypgeom_expansion, yaxis=:log, label="1f2 expansion")
plot!(z_range, m_expansion, label="m expansion")
plot!(z_range, original_integral, label="original")
display(p) # plots all look identical.
@show(original_integral, m_expansion, hypgeom_expansion, hypgeom_expansion2)
# original_integral: [2.839772599386279e-8 ... 4.443248342101801e78]
# m_expansion: ArbReal{72}[2.8397725993862784615e-8 ... 4.44324834210182985933e+78]
# hypgeom_expansion = ArbReal{72}[2.8397725993862784742e-8 ... 4.44324834210182176148e+78]
# hypgeom_expansion2 = ArbReal{72}[2.8397725993862784741e-8 ... 4.4432483421018217615e+78]
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 5387 | # hyperbolic_integral_expansion.jl
"""
Note: This is meant to be the full expansion for the hyperbolic integral using the correct arbitrary precision methods, but it currently does not converge to the correct values, so made a typo/error somewhere. It's not massively efficient either, so optimisation will be important!
"""
include("arb_hypgeom.jl")
import .one_F_two_fast
include("hypergeometric_expansion.jl")
import .hypergeom_exp
using ArbNumerics
using QuadGK
"""
Solving the hyperbolic integral with expansions and summations.
"""
function arb_binomial(x, y)
x = ArbReal("$x")
y = ArbReal("$y")
one = ArbReal("1")
ArbNumerics.gamma(x + one) / (ArbNumerics.gamma(y + one) * ArbNumerics.gamma(x - y + one))
end
function hyperbolic_expansion(Ω, β, α, v, w; prec = 64)
# Initialise precision of ArbReal to prec.
setextrabits(0)
setprecision(ArbReal, prec + 8)
Ω = ArbReal("$Ω")
β = ArbReal("$β")
α = ArbReal("$α")
v = ArbReal("$v")
w = ArbReal("$w")
R = ArbReal((v^2 - w^2) / (w^2 * v))
a = ArbReal(sqrt(β^2 / 4 + R * β * coth(β * v / 2)))
b = ArbReal(R * β / sinh(β * v / 2))
coefficient = ArbReal(α * β^(3/2) * v^3 / (3 * a * √π * w^3 * sinh(β / 2)))
M_c(z, n) = ArbReal(hypergeometric_expansion.hypergeom_exp(β * z / 2, n, β, a, 0; prec = prec))
M_s(z, n) = ArbReal(hypergeometric_expansion.hypergeom_exp(β * z / 2, n, β, a, 1; prec = prec))
c = ArbReal(cosh(Ω * β / 2))
s = ArbReal(sinh(Ω * β / 2))
n = ArbReal("0")
result = ArbReal("0.0")
err = eps(ArbReal(0, bits = prec)) # Machine accuracy of specified precision prec.
while true
previous_result = ArbReal("$result")
if mod(n, 2) == 0
even_term = ArbReal(arb_binomial(n, n/2) * M_c(1, n))
@fastmath @inbounds @simd for z in [ArbReal(Ω + 1), ArbReal(Ω - 1)]
even_term += ArbReal(arb_binomial(n, n/2) * (s * M_s(z, n) - c * M_c(z, n)) / 2)
end
else
even_term = ArbReal("0.0")
end
k_term = ArbReal("0.0")
@fastmath @inbounds @simd for k in ArbReal("0"):ArbReal(floor(n / 2 - 1 / 2))
@fastmath @inbounds @simd for z in [ArbReal(1 + v * (n - 2 * k)), ArbReal(1 - v * (n - 2 * k))]
k_term += ArbReal(arb_binomial(n, k) * M_c(z, n))
end
@fastmath @inbounds @simd for z in [ArbReal(Ω + 1 + v * (n - 2 * k)), ArbReal(Ω - 1 + v * (n - 2 * k)), ArbReal(Ω + 1 - v * (n - 2 * k)), ArbReal(Ω - 1 - v * (n - 2 * k))]
k_term += ArbReal(arb_binomial(n, k) * (s * M_s(z, n) - c * M_c(z, n)) / 2)
end
end
term = ArbReal(arb_binomial(-3/2, n) * (-b / (2 * a))^n * (even_term
+ k_term))
# Break loop if term smaller than accuracy of result.
if abs(term) < err
break
end
result += ArbReal(term)
println("term: n = ", n, "\nterm value: ", coefficient * term, "\ncurrent result: ", coefficient * result, "\n")
n += ArbReal("1")
# Double precision if rounding error in result exceeds accuracy specified by prec.
if ball(result)[2] > err
setprecision(ArbReal, precision(result) * 2)
println("Not precise enough. Required error < ", err, ". Increasing precision to ", precision(result) * 2, " bits.\n")
Ω = ArbReal("$Ω")
β = ArbReal("$β")
α = ArbReal("$α")
v = ArbReal("$v")
w = ArbReal("$w")
R = ArbReal((v^2 - w^2) / (w^2 * v))
a = ArbReal(sqrt(β^2 / 4 + R * β * coth(β * v / 2)))
b = ArbReal(R * β / sinh(β * v / 2))
coefficient = ArbReal(α * β^(3/2) * v^3 / (3 * a * √π * w^3 * sinh(β / 2)))
M_c(z, n) = ArbReal(hypergeometric_expansion.hypergeom_exp(β * z / 2, n, β, a, 0; prec = precision(result)))
M_s(z, n) = ArbReal(hypergeometric_expansion.hypergeom_exp(β * z / 2, n, β, a, 1; prec = precision(result)))
c = ArbReal(cosh(Ω * β / 2))
s = ArbReal(sinh(Ω * β / 2))
n = ArbReal("$(n - 1)")
result = ArbReal("$previous_result")
end
end
result *= ArbReal(coefficient)
println("Frequency: ", ArbReal(Ω, bits = prec + 8), ". Final result: ", ArbReal(result, bits = prec + 8))
ArbReal(result, bits = prec + 8)
end
"""
Solving the hyperbolic integral with quadgk
"""
function hyperbolic_integral(Ω, β, α, v, w)
# Initialise constants.
R = (v^2 - w^2) / (w^2 * v)
a = sqrt(β^2 / 4 + R * β * coth(β * v / 2))
b = R * β / sinh(β * v / 2)
coefficient = 2 * α * β^(3 / 2) * v^3 / (3 * sqrt(π) * sinh(β / 2) * w^3)
integrand(x) = (1 - cosh(Ω * x)) * cosh(x - β / 2) / (a^2 - β^2 / 4 + x * (β - x) - b * cosh(v * (x - β / 2)))^(3 / 2)
integral = quadgk(x -> integrand(x), 0, β / 2)
println(Ω, " ", coefficient * integral[1])
return coefficient * integral[1]
end
"""
Plot results for comparison.
"""
Ω_range = 7.01
β = 2.0
α = 7.0
v = 5.8
w = 1.6
R_int = [hyperbolic_integral(Ω, β, α, v, w) for Ω in Ω_range]
# R_osc = [oscillatory_integral_expansion(Ω, β, α, v, w; prec = 32) for Ω in Ω_range]
R_exp = [hyperbolic_expansion(Ω, β, α, v, w; prec = 32) for Ω in Ω_range]
# @show(R_exp)
# p = plot(Ω_range, abs.(R_exp), yaxis = :log)
# plot!(Ω_range, abs.(R_int))
# display(p)
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 5513 | """
So, ReX = oscillatory integral + hyperbolic integral. I expanded the first integral ages ago, but it was not an arbitrary precision algorithm. I tested solving ReX with this old expansion for the oscillatory integral added to the hyperbolic integral solved by arbitrary precision quadgk, and it still diverged when digits beyond Float64 became important. Thus, the oscillatory integral needs to be rewritten in the arbitrary precision summation algorithm (the algorithm I used for BesselI-StruveL). I will do this here and also test it against brute forcing the integral with arb. prec. quadgk provided quadgk manages to solve this!
"""
include("bessel_minus_struve.jl")
import .bessel_minus_struve
using QuadGK
using Plots
using ArbNumerics
plotly()
Plots.PlotlyBackend()
function oscillatory_integral(Ω, β, α, v, w)
R = (v^2 - w^2) / (w^2 * v)
a = sqrt(β^2 / 4 + R * β * coth(β * v / 2))
b = R * β / sinh(β * v / 2)
coefficient = 2 * α * β^(3 / 2) * v^3 * sinh(Ω * β / 2) / (3 * √π * w^3 * sinh(β / 2))
integrand(x) = (sin(Ω * x) * cos(x) / (x^2 + a^2 - b * cos(v * x))^(3 / 2))
integral = QuadGK.quadgk(x -> integrand(x), 0, Inf)[1]
@show(coefficient * integral)
BigFloat(coefficient * integral)
end
function arb_binomial(x, y)
x = ArbReal("$x")
y = ArbReal("$y")
one = ArbReal("1")
ArbNumerics.gamma(x + one) / (ArbNumerics.gamma(y + one) * ArbNumerics.gamma(x - y + one))
end
function oscillatory_integral_expansion(Ω, β, α, v, w; prec = 64)
# Initialise precision of ArbReal to prec.
setextrabits(0)
setprecision(ArbReal, prec + 8)
Ω = ArbReal("$Ω")
β = ArbReal("$β")
α = ArbReal("$α")
v = ArbReal("$v")
w = ArbReal("$w")
R = ArbReal((v^2 - w^2) / (w^2 * v))
a = ArbReal(sqrt(β^2 / 4 + R * β * coth(β * v / 2)))
b = ArbReal(R * β / sinh(β * v / 2))
coefficient = ArbReal(α * β^(3/2) * v^3 / (3 * a * √π * w^3 * sinh(β / 2)))
θ(z, n) = ArbReal(√π * ArbNumerics.gamma(-n - 1/2) * abs(z)^n * z * bessel_minus_struve.BesselI_minus_StruveL(n + 1, a * abs(z); prec = prec) / 2)
s = ArbReal(sinh(Ω * β / 2))
n = ArbReal("0")
result = ArbReal("0.0")
err = eps(ArbReal(0, bits = prec + 8)) # Machine accuracy of specified precision prec.
while true
previous_result = ArbReal("$result")
if mod(n, 2) == 0
even_term = ArbReal("0.0")
@fastmath @inbounds @simd for z in [ArbReal(Ω + 1), ArbReal(Ω - 1)]
even_term += ArbReal(arb_binomial(n, n/2) * s * θ(z, n) / 2)
end
else
even_term = ArbReal("0.0")
end
k_term = ArbReal("0.0")
@fastmath @inbounds @simd for k in ArbReal("0"):ArbReal(floor(n / 2 - 1 / 2))
k_coeff = ArbReal(arb_binomial(n, k))
@fastmath @inbounds @simd for z in [ArbReal(Ω + 1 + v * (n - 2 * k)), ArbReal(Ω - 1 + v * (n - 2 * k)), ArbReal(Ω + 1 - v * (n - 2 * k)), ArbReal(Ω - 1 - v * (n - 2 * k))]
k_term += ArbReal(k_coeff * s * θ(z, n) / 2)
end
end
term = ArbReal(arb_binomial(-3/2, n) * (-b / (4 * a))^n * (even_term
+ k_term))
# Break loop if term smaller than accuracy of result.
if abs(term) < err
break
end
result += ArbReal(term)
println("term: n = ", n, "\nterm value: ", coefficient * term, "\ncurrent result: ", coefficient * result, "\n")
n += ArbReal("1")
# Double precision if rounding error in result exceeds accuracy specified by prec.
if ball(result)[2] > err
setprecision(ArbReal, precision(result) + 8)
println("Not precise enough. Required error < ", err, ". Increasing precision to ", precision(result) + 8, " bits.\n")
Ω = ArbReal("$Ω")
β = ArbReal("$β")
α = ArbReal("$α")
v = ArbReal("$v")
w = ArbReal("$w")
R = ArbReal((v^2 - w^2) / (w^2 * v))
a = ArbReal(sqrt(β^2 / 4 + R * β * coth(β * v / 2)))
b = ArbReal(R * β / sinh(β * v / 2))
coefficient = ArbReal(α * β^(3/2) * v^3 / (3 * a * √π * w^3 * sinh(β / 2)))
θ(z, n) = ArbReal(√π * ArbNumerics.gamma(-n - 1/2) * abs(z)^n * z * bessel_minus_struve.BesselI_minus_StruveL(n + 1, a * abs(z); prec = precision(result)) / 2)
s = ArbReal(sinh(Ω * β / 2))
n = ArbReal("$(n - 1)")
result = ArbReal("$previous_result")
end
end
result *= ArbReal(coefficient)
println("Frequency: ", ArbReal(Ω, bits = prec + 8), ". Final result: ", ArbReal(result, bits = prec + 8))
ArbReal(result, bits = prec + 8)
end
Ω_range = 0.01:0.5:20.01
β = 2.0
α = 7.0
v = 5.8
w = 1.6
# For Ω_range = 3.1:
# 9.828299 seconds (46.17 M allocations: 1.859 GiB, 12.89% gc time)
@time oscill_expansion = [oscillatory_integral_expansion(Ω, β, α, v, w; prec = 64) for Ω in Ω_range]
# oscill_expansion = fill(36.009791933858445279331705890513148915488)
# @show(oscill_expansion)
# 273.411207 seconds (931.57 M allocations: 32.002 GiB, 5.19% gc time)
@time oscill_integral = [oscillatory_integral(Ω, β, α, v, w) for Ω in Ω_range]
diff = oscill_expansion .- oscill_integral
@show(diff)
# oscill_integral = fill(-5.81034244862553995092)
# @show(oscill_integral)
# p = plot(Ω_range, abs.(oscill_expansion), yaxis = :log, label = "Oscillatory", xlabel = "Ω", ylabel = "ReX")
# plot!(Ω_range, abs.(oscill_integral), label = "Integral")
# display(p)
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 4853 |
"""
This file checks whether QuadGK.quadgk() can integrate numerically to arbitrary precision using BigFloat types. To check, I look at the integral:
∫_0^1 cosh(xt) dt
which has a known closed analytic form:
sinh(x)/x, x!=0
which we can use for comparison. x has to be parsed as a BigFloat type using
BigFloat("\$x") (remove space in actual code) NOT BigFloat(x) which would just convert a Float64 type to a BigFloat (and so would only be accurate to 64 bits). To check that passing BigFloat("\$x") into sinh(x)/x gives an accurate arbitrary precision answer (and not plagued by rounding errors), I checked with wolframalpha answers which does produce arb. prec. answers and they matched and so passing BigFloat("\$x") into sinh(x)/x gives a good check of whether quadgk above works to arb. prec. too.
I confirmed that quadgk can give arb prec answers (I just using it incorrectly previously to give Float64 accurate results), so now using the correct method, I convert hyperbolic_integral_two() from check_hyperbolic_integral.jl:
β/2 ∫_0^1 (1 - cosh(Ωβ(1-x)/2)) cosh(xβ/2) / (a^2 - β^2 x^2/4 - bcosh(vβx/2))^{3/2} dx
into arb prec version and see what it gives. Spoilers: it's super slow, further confirmation that it's now arb prec.
"""
"""
This function just evaluates the integral:
∫_0^1 cosh(xt) dt
using quadgk. To make it arbitrary precision, the limits have to be parsed properly into a BigFloat type using BigFloat("#") and the absolute tolerance of the integration has to be set to the machine accuracy of your required precision. This is obtained using eps(x::BigFloat) (e.g. eps(Float64) ~ 2.22e-16) and set with atol = eps(x::BigFloat). The precision of the BigFloats can then be changed using setprecision(BigFloat, precision::Int) externally.
"""
function cosh_integral(x)
err = eps(x)
integrand(t) = cosh(x * t)
integral = quadgk(t -> integrand(t), BigFloat("0"), BigFloat("1"), atol = err)
end
"""
Just the exact closed analytic answer to the cosh integral used for comparison. x has to be parsed as a BigFloat("#") before passing into the function to evaluate it at higher precision properly.
"""
function exact_form(x)
sinh(x) / x
end
"""
Check outputs of the two above functions.
"""
setprecision(BigFloat, 128) # set the precision of the BigFloat types.
x_range = BigFloat("5")
# for bits = 128 and x_range = BigFloat("5") if get:
# 0.005659 seconds (13.49 k allocations: 768.068 KiB)
@time exact = [exact_form(x) for x in x_range]
# exact = fill(14.84064211555775179540189439921291311993)
@show(exact)
# 0.374177 seconds (1.00 M allocations: 46.879 MiB, 3.29% gc time)
@time integral = [cosh_integral(x) for x in x_range]
# fill((14.84064211555775179540189439921291311988, 2.350988701644575015937473074444491355637e-38))
@show(integral)
# Can see that the integral uses large memory allocations. Last two digits differing is common for BigFloat precisions (natural rounding error from float arithmatic) but we can see that the answers match to 128 bit precision.
"""
Using the arbitrary precision quadgk method used above, apply this to the hyperbolic integral I have been trying to solve i.e. hyperbolic_integral_one() in check_hyperbolic_integrals.jl. I actually use hyperbolic_integral_two() here as the change of variables to the limits [0,1] makes it easier for quadgk to evaluate at higher βs.
This allocates a lot of memory to evaluating the integral. So I did use @code_typewarn to check that there are no type-stabilities, but it did not find any so I think this large memory allocation is just a result of small atol set by the machine precision. For 128 bits this is atol ~ 1.93e-34.
"""
function hyperbolic_integral_two(Ω, β, α, v, w)
err = eps(Ω)
# Initialise constants.
R = (v^2 - w^2) / (w^2 * v)
a = sqrt(β^2 / 4 + R * β * coth(β * v / 2))
b = R * β / sinh(β * v / 2)
coefficient = 2 * α * β^(3 // 2) * v^3 / (3 * sqrt(π) * sinh(β / 2) * w^3)
integrand(x) = (1 - cosh(Ω * β * (1 - x) / 2)) * cosh(x * β / 2) / (a^2 - β^2 * x^2 / 4 - b * cosh(v * β * x / 2))^(3 // 2)
integral = quadgk(x -> integrand(x), BigFloat("0.0"), BigFloat("1.0"), atol = err)
return coefficient * β * integral[1] / 2
end
"""
Check output and timing of the above function.
"""
setprecision(BigFloat, 128)
Ω_range = [BigFloat("12.01")]
β = BigFloat("4.0")
α = BigFloat("7.0")
v = BigFloat("5.8")
w = BigFloat("1.6")
# For Ω_range = [BigFloat("12.01")], β = BigFloat("4.0"), α = BigFloat("7.0"), v = BigFloat("5.8"), w = BigFloat("1.6") I get:
# 209.267907 seconds (1.02 G allocations: 37.016 GiB, 5.82% gc time)
@time hyp = hyperbolic_integral_two.(Ω_range, β, α, v, w)
# hyp = BigFloat[-7.214150399279151977978320029665100466133e+09]
@show(hyp)
# This takes a LONG TIME to evaluate, with a massive 1.02 G allocations to allocate 37.016 GiB memory!
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 216 | push!(LOAD_PATH,"../src/") # load module from local directory
using PolaronMobility, Documenter
makedocs(sitename="PolaronMobility.jl documentation")
deploydocs(repo="github.com/jarvist/PolaronMobility.jl.git",)
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 1566 | # CheckAlpha.jl
# - check units in Frohlich / Feynman alpha, by testing against lit. values
push!(LOAD_PATH,"../src/") # load module from local directory
using PolaronMobility
" Copy and pasted out of a Jupyter notebook; this calculates 'alpha' parameters
for various materials, as a comparison to the literature used when figuring out
the oft-quoted units. "
function checkalpha()
println(" Alpha-parameter, Cross check 'frohlichalpha()' fn vs. literature values.\n")
println("NaCl Frohlich paper α=",frohlichalpha(2.3, 5.6, (4.9E13/(2*pi)), 1.0))
println(" \t should be ~about 5 (Feynman1955)")
println("CdTe α=",frohlichalpha(7.1, 10.4, 5.08E12, 0.095))
println("\t Stone 0.39 / Devreese 0.29 ")
println("GaAs α=",frohlichalpha(10.89, 12.9, 8.46E12, 0.063))
println("\t Devreese 0.068 ")
println()
println("Values which were once upon a time of interest, back in 2014 before we had good phonons. Still interesting for sensitivity analysis / scaling.")
println("Guess at PCBM: 4.0, 6.0 ; α=",frohlichalpha(4.0,6.0, 1E12, 50))
println("MAPI:")
println("MAPI 4.5, 24.1, 9THz ; α=",frohlichalpha(4.5, 24.1, 9.0E12, 0.12))
println("MAPI 4.5, 24.1, 2.25THz - 75 cm^-1 ; α=",frohlichalpha(4.5, 24.1, 2.25E12, 0.12))
println("MAPI 6.0, 25.7, 9THz ; α=",frohlichalpha(6.0, 25.7, 9.0E12, 0.12))
println("MAPI 6.0, 36.0, 9THz ; α=",frohlichalpha(6.0, 36, 9.0E12, 0.12))
println("MAPI 6.0, 36.0, 1THz ; α=",frohlichalpha(6.0, 36, 1.0E12, 0.12))
end
checkalpha()
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 2453 | # FeynmanAthermalAsymptoticComparison.jl - reproduce some 1950s numeric results
push!(LOAD_PATH,"../src/") # load module from local directory
using PolaronMobility
using Plots
# Here we collect all the data we need for plotting
αrange=0.2:0.1:10 # unstable below α=0.2
vs=[ feynmanvw(α)[1] for α in αrange] # takes a while; computes all vw
ws=[ feynmanvw(α)[2] for α in αrange]
# Urgh - can't seem to do this more elegantly; recalculating all the params just to strip the second component of the tuple
Es=map(F,vs,ws,αrange); # calculate polaron energy for these params
p=plot(xlim=αrange,ylim=(0,),
xlabel="α parameter", ylabel="Reduced polaron units",
title="Athermal (numeric, variational) v,w, and E for α" )
plot!(αrange,vs,label="v")
plot!(αrange,ws,label="w")
plot!(αrange,Es,label="E")
hline!([0.0],label="",color=:black)
# I like this plot!
# You can see how v=w=3 as α-->0.0
# w then tends down to 1.0 in a nice sigmoid form as α --> ~10+
# v increases monotonically
savefig("AthermalvwE.pdf")
# Feynman Stat Mech (1972), p. 240
smallαw(α)=3.0
P(α)=2/smallαw(α) * (sqrt(1+smallαw(α))-1) # Nb: error in Feynman Stat Mech: sqrt(1+W) , as in Feynman1955
smallαv(α)=3*(1 + 2*α*(1-P(α))/(3*smallαw(α)))
c=0.5772 # Euler Mascheroni constant
largeαw(α)=1.0
largeαv(α)=(4*α^2/9π) - (4*(log(2) + c/2)-1)
p=plot(xlim=αrange,ylim=(0,15), xlabel="α parameter", ylabel="v,w, Reduced polaron units", title="Asymtotic limits for v,w" )
plot!(αrange,α->smallαw(α),label="w, smallαw",style=:dash)
plot!(αrange,α->smallαv(α),label="v, smallαv",style=:solid)
plot!(αrange,α->largeαw(α),label="w, largeαw",style=:dash)
plot!(αrange,α->largeαv(α),label="v, largeαv",style=:solid)
plot!(αrange,vs,label="v, numeric",w=3,style=:solid)
plot!(αrange,ws,label="w, numeric",w=3,style=:dash)
savefig("AthermalvwAsymptotic.pdf")
smallαE(α)=-α-α^2/81
FeynmanStatMechlargeαE(α)=-α^2/(3π) - 3/2 *(2*log(2)+c)-3/4 # As in Feynman Stat Mech; with 2π corrected to 3π ...
Feynman1955largeαE(α)=-α^2/3π - 3*log(2) # as in Feynman I, 1955
p=plot(xlim=αrange,ylim=(-Inf,0), xlabel="α parameter", ylabel="Energy, Reduced polaron units", title="Asymtotic limits for E(α)" )
plot!(αrange,α->smallαE(α),label="smallαE")
plot!(αrange,α->FeynmanStatMechlargeαE(α),label="FeynmanStatMechlargeαE")
plot!(αrange,α->Feynman1955largeαE(α),label="Feynman1955largeαE")
plot!(αrange,Es,label="E (numeric integration)")
savefig("AthermalAsymptoticEnergy.pdf")
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 1671 | # FiniteTemperatures.jl
# Checks finite temperature algorithms for ImX and ReX with MAPI data.
include("../src/PolaronMobility.jl")
plotly()
Plots.PlotlyBackend()
struct susceptibility
nu
ImX
μ
end
Susceptibility()=susceptibility([],[],[])
# Physical constants
const T = 1
const hbar = const ħ = 1.05457162825e-34; # kg m2 / s
const eV = const q = const ElectronVolt = 1.602176487e-19; # kg m2 / s2
const me=MassElectron = 9.10938188e-31; # kg
const Boltzmann = const kB = 1.3806504e-23; # kg m2 / K s2
const ϵ_0 = 8.854E-12 #Units: C2N−1m−2, permittivity of free space
const amu = 1.660_539_066_60e-27 # kg
MAPIe = polaronmobility(T, 4.5, 24.1, 2.25E12, 0.12)
#MAPIh = polaronmobility(T, 4.5, 24.1, 2.25E12, 0.15)
s = Susceptibility()
# Yup, this is a bit horrid. Agreed?
v = MAPIe.v[1]
w = MAPIe.w[1]
βred = MAPIe.βred[1]
α = MAPIe.α[1]
ω = MAPIe.ω[1]
mb = MAPIe.mb[1]
@show(βred, v, w, α)
Ω_range = 1:0.5:50
println("Integrating Imχ for Ω = $Ω_range range...")
ImagX = [PolaronMobility.ℑχ(Ω, βred, α, v, w) for Ω in Ω_range]
μ = [x^-1 * (q) / (ω * mb) for x in ImagX]
# s = ImX(nu, v, w, βred,α,ω,mb)
append!(s.nu, Ω_range)
append!(s.ImX, ImagX)
append!(s.μ, μ)
println("Loading Plots for plotting...")
using Plots
p1 = plot(s.nu, s.ImX, label="ImX",
markersize=3,marker=:downtriangle, xlab="nu (units Omega)", ylab="ImX")
yaxis!(:log10)
display(p1)
# savefig("MAPIe-ImX.png")
p2 = plot(s.nu, s.μ, label="mu",
markersize=3,marker=:uptriangle, xlab="nu (units Omega)",ylab="Mob")
yaxis!(:log10)
display(p2)
# savefig("MAPIe-mu.png")
println("That's me!")
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 4657 | # HellwarthEffectiveFrequency.jl
# - use Hellwarth et al. 1999 PRB method to reduce multiple phonon modes to a single effective frequency
push!(LOAD_PATH,"../src/") # load module from local directory
using PolaronMobility
# ((freq THz)) ((IR Activity / e^2 amu^-1))
# These data from MAPbI3-Cubic_PeakTable.csv
# https://github.com/WMD-group/Phonons/tree/master/2015_MAPbI3/SimulatedSpectra
# Data published in Brivio2015 (PRB)
# https://doi.org/10.1103/PhysRevB.92.144308
MAPI= [
96.20813558773261 0.4996300522819191
93.13630357703363 1.7139631746083817
92.87834578121567 0.60108592692181
92.4847918585963 0.0058228799414729
92.26701437594754 0.100590086574602
89.43972834606603 0.006278895133832249
46.89209141511332 0.2460894564364346
46.420949316788 0.14174282581124137
44.0380222871706 0.1987196948553428
42.89702947649343 0.011159939465770681
42.67180170168193 0.02557751102757614
41.46971205834201 0.012555230726601503
37.08982543385215 0.00107488277468418
36.53555265689563 0.02126940080871224
30.20608114002676 0.009019481779712388
27.374810898415028 0.03994453721421388
26.363055017011728 0.05011922682554448
9.522966890022039 0.00075631870522737
4.016471586720514 0.08168931020200264
3.887605410774121 0.006311654262282101
3.5313112232401513 0.05353548710183397
2.755392921480459 0.021303020776321225
2.4380741812443247 0.23162784335484837
2.2490917637719408 0.2622203718355982
2.079632190634424 0.23382298607799906
2.0336707697261187 0.0623239656843172
1.5673011873879714 0.0367465760261409
1.0188379384951798 0.0126328938653956
1.0022960504442775 0.006817361620021601
0.9970130778462072 0.0103757951973341
0.9201781906386209 0.01095811116040592
0.800604081794174 0.0016830270365341532
0.5738689505255512 0.00646428491253749
#0.022939578929507105 8.355742795827834e-05 # Acoustic modes!
#0.04882611767873102 8.309858592685e-06
#0.07575149723846182 2.778248540373041e-05
]
# Change to SI, but not actually needed as units cancel everywhere
#MAPI_SI = [ MAPI_orig[:,1].*10^12*2*π MAPI_orig[:,2].*1 ]
# OK, black magic here - perhaps our units of oscillator strength are not what we need? maybe already effectively 'squared'?
#MAPI = [ MAPI[:,1] MAPI[:,2].^0.5]
MAPI_low=MAPI[19:33,:] # Just inorganic components, everything below 10THz; modes 3-18
# Hellwarth et al. PRB 1999 Table II - BiSiO frequencies and activities
HellwarthII = [
106.23 8.86
160.51 9.50
180.33 20.85
206.69 10.05
252.76 27.00
369.64 61.78
501.71 52.87
553.60 86.18
585.36 75.41
607.29 98.15
834.53 89.36
]
println("Attempting to reproduce Hellwarth et al.'s data.")
println("\nB scheme: (athermal)")
HellwarthBScheme(HellwarthII)
println(" ... should agree with values given in Hellwarth(60) W_e=196.9 cm^-1 and Hellwarth(61) Ω_e=500 cm^-1")
println("\nA Scheme: (thermal)")
HellwarthAScheme(HellwarthII)
const THzInCM1=0.02998
println("\nA Scheme, converting first to THz:")
omegathz=HellwarthAScheme( [HellwarthII[:,1].*THzInCM1 HellwarthII[:,2]] ) # convert data to Thz
@printf("Converted back %f cm^-1\n",omegathz/THzInCM1)
println(" ... should agree with values given in Hellwarth\n TableII: H50sum= 91.34 cm^-1, \n W_e=196.9 cm^-1 and Hellwarth(53) Ω_e=504 cm^-1")
println("\n\nMAPI: BScheme (athermal)")
println("\t MAPI: (all values)")
HellwarthBScheme(MAPI)
println("\t MAPI: (low-frequency, non molecular IR, only)")
HellwarthBScheme(MAPI_low)
println("\nMAPI: AScheme (thermal)")
println("\t MAPI: (all values)")
HellwarthAScheme(MAPI)
println("\t MAPI: (low-frequency, non molecular IR)")
HellwarthAScheme(MAPI_low)
println("\n Test summation of Lorentz oscillators to get to static dielectric constant from i.r. modes.")
# Integrate through Lorentz oscillators to get dielectric fn
# Should give 'extra' contribution from these modes, extrapolated to zero omega
function integrate_dielectric(LO,V0)
summate=sum( (LO[:,2])./(LO[:,1].^2) )
summate*4*π/V0
end
const Å=1E-10 # angstrom in metres
const r=6.29Å # Sensible cubic cell size
const V0=(r)^3
println("volume: $V0")
const amu=1.66054e-27
const ε0=8.854187817E-12
const eV = const q = const ElectronVolt = 1.602176487e-19; # kg m2 / s2
MAPI_SI = [ MAPI[:,1].*10^12*2*π MAPI[:,2]./(q^2/amu) ]
println(" MAPI: ",integrate_dielectric(MAPI,1.0))
println(" MAPI_low: ",integrate_dielectric(MAPI_low,1.0))
println(" MAPI_SI: ",integrate_dielectric(MAPI_SI,V0))
println(" MAPI_SI: fudged epislon0 ",integrate_dielectric(MAPI_SI,V0)*ε0/(4*π))
println(" MAPI_SI_low: fudged epislon0 ",integrate_dielectric(MAPI_SI[19:33,:],V0)*ε0/(4*π))
println()
#println("From ε_S-ε_Inf, expect this to be: ",ε_S-ε_Inf)
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 4985 | # Mishchenko2019.jl - reproducing Mishchenko et al. 2019 PRL, with the Feynman
# variational polaron technique
println("Loading PolaronMobility...")
using PolaronMobility
println("Loading Plots for plotting...")
using Plots
gr(size=(500,375))
using Printf
import QuadGK.quadgk # one ring to integrate them all...
#function ImX(nurange,v,w,βred,α,ω,mb)
function savefigs(name)
println("Saving PNG")
savefig("$(name).png")
println("Saving PDF")
savefig("$(name).pdf")
# high res conversion of vector PDF -> suitable, anti-aliased, PNG for slides
println("Convert PDF to high res PNG")
run(`convert -density 300 -resize 1600x $(name).pdf $(name).pdf.png`)
end
# Specify problem
βred=5 # temperature, in thermodynamic Beta units
mb=0.12*9.1093837015E-31
ω=1
const eV = const q = const ElectronVolt = 1.602176487e-19; # kg m2 / s2
const Boltzmann = const kB = 1.3806504e-23; # kg m2 / K s2
const hbar = const ħ = 1.05457162825e-34; # kg m2 / s
function FHIP1962_Fig2()
# FHIP1962 reproduction
# Fig 2 FHIP1962
α=5
#in [6] #1:1:10
v,w = feynmanvw(α)
println("α: $(α) v: $(v) w: $(w)")
nu=3.5:0.2:22
println("Integrating ImX for nu=$nu range...")
s=ImX(nu, v, w, βred,α,ω,mb)
plot( s.nu,s.ImX,label="ImX",
markersize=3,marker=:downtriangle, xlab="nu (units Omega)",ylab="ImX")
savefigs("FHIP1962_Fig2")
end
function FHIP1962_Fig3()
# Fig 3 FHIP1962
α=7
#in [6] #1:1:10
v,w = feynmanvw(α)
println("α: $(α) v: $(v) w: $(w)")
nu=3.5:0.2:28
println("Integrating ImX for nu=$nu range...")
s=ImX(nu, v, w, βred,α,ω,mb)
plot( s.nu,s.ImX,label="ImX",
markersize=3,marker=:downtriangle, xlab="nu (units Omega)",ylab="ImX")
end
# Athernmal Feynman variational technique, to compare best to the DiagMC
# results, though nb. they have some kind of T-dep in the diagrams
function Mishchenko_FigureFour()
# Specify problem
#mb=1
βred=8 # temperature, in thermodynamic Beta units
ω=1
nurange=0.0:0.05:20
Trange=[8,4,2,1,0.5,0.25,0.125]
#using Distributed
#addprocs(6)
#@distributed
for α in [1,2,3,4,5,6,7,8,9,10,12,15,20] #1:1:10
# athermal action
v,w = feynmanvw(α)
plot(xlab="nu (units Omega) alpha=$(α)",ylab="Mob", ylims=(0,1.0E12))
for T in Trange
βred=1/T
@time s=ImX(nurange, v, w, βred,α,ω,mb)
plot!( s.nu, s.μ, label="T=$(T)")
end
savefigs("Mishchenko-Fig4-AthermalAction_alpha_$(α)")
plot(xlab="nu (units Omega) alpha=$(α)",ylab="Mob", ylims=(0,3.0E12))
for T in Trange
βred=1/T
# Osaka finite temperature action
v,w=feynmanvw(α, βred, verbose=true) # temperature dependent Action
@time s=ImX(nurange, v, w, βred,α,ω,mb)
plot!( s.nu, s.μ, label="T=$(T) v=$(round(v,sigdigits=2)) w=$(round(w,sigdigits=2))")
end
savefigs("Mishchenko-Fig4-OsakaFiniteTemperatureAction_alpha_$(α)")
end
end
#wait()
function HellwarthMobility(v,w,βred, α, ω)
# Hellwarth1999 - directly do contour integration in Feynman1962, for
# finite temperature DC mobility
# Hellwarth1999 Eqn (2) and (1) - These are going back to the general
# (pre low-T limit) formulas in Feynman1962. to evaluate these, you
# need to do the explicit contour integration to get the polaron
# self-energy
R=(v^2-w^2)/(w^2*v) # inline, page 300 just after Eqn (2)
b=R*βred/sinh(βred*v/2) # Feynman1962 version; page 1010, Eqn (47b)
a=sqrt( (βred/2)^2 + R*βred*coth(βred*v/2))
k(u,a,b,v) = (u^2+a^2-b*cos(v*u))^(-3/2)*cos(u) # integrand in (2)
K=quadgk(u->k(u,a,b,v),0,Inf)[1] # numerical quadrature integration of (2)
#Right-hand-side of Eqn 1 in Hellwarth 1999 // Eqn (4) in Baggio1997
RHS= α/(3*sqrt(π)) * βred^(5/2) / sinh(βred/2) * (v^3/w^3) * K
#μ=RHS^-1 * (q)/(ω*mb)
#@printf("\n\tμ(Hellwarth1999)= %f m^2/Vs \t= %.2f cm^2/Vs",μ,μ*100^2)
RHS^-1
end
function Mischenko_MobilityComparison(α; Trange=0.1:0.01:25)
println("Mishchenko Feynman athermal Hellwarth explicit integration mobility with α= $(α)")
βred=8
ω=1 #(50*kB)/ħ # in artifical units of T
fout=open("MishchenkoMobility_$(α).dat","w")
@printf(fout,"# T v w mob(SI)")
for T in Trange
β=ω/T # ħ*ω/(kB*T)
# Athermal variational
v,w = feynmanvw(α)
μ=HellwarthMobility(v,w, β, α, ω)
@printf(fout,"%f %f %f %f ",T,v,w,μ)
# Thermal theory
v,w = feynmanvw(α, β)
μ=HellwarthMobility(v,w, β, α, ω)
@printf(fout,"%f %f %f ",v,w,μ)
@printf(fout,"\n")
end
close(fout)
end
for α in [2.4, 4, 6, 8, 10, 12, 14] # Mishchenko2019 Fig 2 and 3
Mischenko_MobilityComparison(α)
end
println("That's me!")
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 8119 | # Forked from Julia Jupyter notebook 2019-12-PolaronMultipleBranches.ipynb
using PolaronMobility
using Test
using Plots
using Printf
const hbar = const ħ = 1.05457162825e-34; # kg m2 / s
const Boltzmann = const kB = 1.3806504e-23; # kg m2 / K s2
const eV = const q = const ElectronVolt = 1.602176487e-19; # kg m2 / s2
const MassElectron = 9.10938188e-31; # kg
# ((freq THz)) ((IR Activity / e^2 amu^-1))
# These data from MAPbI3-Cubic_PeakTable.csv
# https://github.com/WMD-group/Phonons/tree/master/2015_MAPbI3/SimulatedSpectra
# Data published in Brivio2015 (PRB)
# https://doi.org/10.1103/PhysRevB.92.144308
MAPI= [
#96.20813558773261 0.4996300522819191
#93.13630357703363 1.7139631746083817
#92.87834578121567 0.60108592692181
#92.4847918585963 0.0058228799414729
#92.26701437594754 0.100590086574602
#89.43972834606603 0.006278895133832249
#46.89209141511332 0.2460894564364346
#46.420949316788 0.14174282581124137
#44.0380222871706 0.1987196948553428
#42.89702947649343 0.011159939465770681
#42.67180170168193 0.02557751102757614
#41.46971205834201 0.012555230726601503
#37.08982543385215 0.00107488277468418
#36.53555265689563 0.02126940080871224
#30.20608114002676 0.009019481779712388
#27.374810898415028 0.03994453721421388
#26.363055017011728 0.05011922682554448
#9.522966890022039 0.00075631870522737
4.016471586720514 0.08168931020200264
3.887605410774121 0.006311654262282101
3.5313112232401513 0.05353548710183397
2.755392921480459 0.021303020776321225
2.4380741812443247 0.23162784335484837
2.2490917637719408 0.2622203718355982
2.079632190634424 0.23382298607799906
2.0336707697261187 0.0623239656843172
1.5673011873879714 0.0367465760261409
1.0188379384951798 0.0126328938653956
1.0022960504442775 0.006817361620021601
0.9970130778462072 0.0103757951973341
0.9201781906386209 0.01095811116040592
0.800604081794174 0.0016830270365341532
0.5738689505255512 0.00646428491253749
#0.022939578929507105 8.355742795827834e-05 # Acoustic modes!
#0.04882611767873102 8.309858592685e-06
#0.07575149723846182 2.778248540373041e-05
]
vol=(6.29E-10)^3
ϵ_o=4.5
meff=0.12
mb=meff*MassElectron
ϵ_i=IRtoDielectric(MAPI,vol)
ϵ_s=sum(ϵ_i)+ϵ_o # total (static) dielectric = sum of ionic, and optical
IRtoalpha(MAPI, volume=vol, ϵ_o=ϵ_o, ϵ_s=ϵ_s, meff=meff)
ϵ_polar_modes=DielectricFromIRmode.(eachrow(MAPI), volume=vol)
f_dielectric=hcat( MAPI[:,1], ϵ_polar_modes)
alphas=frohlichPartial.(eachrow(f_dielectric), ϵ_o = ϵ_o, ϵ_s = ϵ_o+sum(ϵ_polar_modes), meff=meff)
# First idea: solve for each alpha_i as a separate variational problem, then
# aggregate solutions
function separate_variational_solutions(alphas, MAPI)
mobilityproblem=hcat(alphas, feynmanvw.(alphas), MAPI[:,1])
inverse_μ=Hellwarth1999mobilityRHS.(eachrow(mobilityproblem), meff, 300)
μ=sum(inverse_μ)^-1
@printf("\n\tμ(Hellwarth1999)= %f m^2/Vs \t= %.2f cm^2/Vs",μ,μ*100^2)
# as published in FrostPolaronMobility2017 PRB
polaronmobility(300, 4.5, 24.1, 2.25E12, 0.12)
# re-use these data, directly from the polaron problem
polaronmobility(300, ϵ_o, ϵ_s, 2.25E12, 0.12)
for T in 10:10:500
inverse_μ=Hellwarth1999mobilityRHS.(eachrow(mobilityproblem), meff, T)
μ=sum(inverse_μ)^-1
@printf("\nT %f \tμ(Hellwarth1999)= %f m^2/Vs \t= %.2f cm^2/Vs",T,μ,μ*100^2)
end
normal=polaronmobility(10:10:500, ϵ_o, ϵ_s, 2.25E12, 0.12)
hcat(normal.T, normal.Hμ)
# OK, we have a problem I think in that we are optimising different things here
end
# Second idea: solve for variational problem with explicit set of interacting
# modes in the 'B' component of the free energy
# copy + paste from the code
using QuadGK
# Define Osaka's free-energies (Hellwarth1999 version) as Julia functions
# Equation numbers follow above Hellwarth et al. 1999 PRB
# 62b
A(v,w,β)=3/β*( log(v/w) - 1/2*log(2*π*β) - log(sinh(v*β/2)/sinh(w*β/2)))
# 62d
Y(x,v,β)=1/(1-exp(-v*β))*(1+exp(-v*β)-exp(-v*x)-exp(v*(x-β)))
# 62c integrand
# Nb: Magic number 1e-10 adds stablity to optimisation; v,w never step -ve
f(x,v,w,β)=(exp(β-x)+exp(x))/sqrt(1e-10+ w^2*x*(1-x/β)+Y(x,v,β)*(v^2-w^2)/v)
# 62c
B(v,w,β,α) = α*v/(sqrt(π)*(exp(β)-1)) * quadgk(x->f(x,v,w,β),0,β/2)[1]
# 62e
C(v,w,β)=3/4*(v^2-w^2)/v * (coth(v*β/2)-2/(v*β))
# 62a
F(v,w,β,α)=-(A(v,w,β)+B(v,w,β,α)+C(v,w,β))
β(T,ω)=ħ*ω/(kB*T)
ω_hellwarth=2π*1E12*HellwarthBScheme(MAPI) # just low frequency branches, otherwise produces too high a value
F(v,w,ω_hellwarth,T,α_s,ω_s)=-(A(v,w,β(T,ω_hellwarth))+sum(B.(v,w,β.(T,ω_s),α_s))+C(v,w,β(T,ω_hellwarth)))
# OK, let's try this with a single value
@test F(7.6,6.5, ω_hellwarth, 300, 2.4, ω_hellwarth) ≈ F(7.6,6.5, β(300,ω_hellwarth), 2.4)
# And compare to the original route
# Split the strength, should still give same result
@test F(7.6,6.5, ω_hellwarth, 300, [1.2, 1.2], [ω_hellwarth, ω_hellwarth]) ≈ F(7.6,6.5, β(300,ω_hellwarth), 2.4)
# repack / rename variables from above
α_s=alphas
ω_s=2π*1E12*MAPI[:,1]
sum(α_s)
import PolaronMobility.feynmanvw
using Optim
function feynmanvw(T, ω_hellwarth, α_s, ω_s; v=7.1, w=6.5, verbose::Bool=true) # v,w defaults
# Initial v,w to use
initial=[v,w]
# Main use of these bounds is stopping v or w going negative, at which you get a NaN error as you are evaluating log(-ve Real)
lower=[0.1,0.1]
upper=[100.0,100.0]
myf(x) = F(x[1],x[2],ω_hellwarth, T, α_s, ω_s)
# Wraps the function so just the two variational params are exposed, so Optim can call it
# Now updated to use Optim > 0.15.0 call signature (Julia >0.6 only)
res=optimize(OnceDifferentiable(myf, initial; autodiff = :forward),
lower, upper, initial, Fminbox( BFGS() ))
# ,Optim.Options(g_tol=1e-15, allow_f_increases=true))
# specify Optim.jl optimizer. This is doing all the work.
if Optim.converged(res) == false
print("\tWARNING: Failed to converge to v,w soln? : ",Optim.converged(res) )
end
if verbose # pretty print Optim solution
println()
show(res)
end
v,w=Optim.minimizer(res)
return v,w
end
function HellwarthMobility(v,w,βred, α, ω)
# Hellwarth1999 - directly do contour integration in Feynman1962, for
# finite temperature DC mobility
# Hellwarth1999 Eqn (2) and (1) - These are going back to the general
# (pre low-T limit) formulas in Feynman1962. to evaluate these, you
# need to do the explicit contour integration to get the polaron
# self-energy
R=(v^2-w^2)/(w^2*v) # inline, page 300 just after Eqn (2)
#b=R*βred/sinh(b*βred*v/2) # This self-references b! What on Earth?
# OK! I now understand that there is a typo in Hellwarth1999 and
# Biaggio1997. They've introduced a spurious b on the R.H.S. compared to
# the original, Feynman1962:
b=R*βred/sinh(βred*v/2) # Feynman1962 version; page 1010, Eqn (47b)
a=sqrt( (βred/2)^2 + R*βred*coth(βred*v/2))
k(u,a,b,v) = (u^2+a^2-b*cos(v*u))^(-3/2)*cos(u) # integrand in (2)
K=quadgk(u->k(u,a,b,v),0,Inf)[1] # numerical quadrature integration of (2)
#Right-hand-side of Eqn 1 in Hellwarth 1999 // Eqn (4) in Baggio1997
RHS= α/(3*sqrt(π)) * βred^(5/2) / sinh(βred/2) * (v^3/w^3) * K
μ=RHS^-1 * (q)/(ω*mb)
@printf("\n\tμ(Hellwarth1999)= %f m^2/Vs \t= %.2f cm^2/Vs",μ,μ*100^2)
μ
end
fout=open("MultipleBranches-MAPI.dat","w")
@printf(fout,"T ExplicitBranches-v w mob HellwarthBScheme-v w mob")
Trange=10:1:500
for T in Trange
# With explicit modes
v,w=feynmanvw(T, ω_hellwarth, α_s, ω_s)
μ=HellwarthMobility(v,w, β(T, ω_hellwarth), 2.4, ω_hellwarth)
@printf(fout,"%d %f %f %f",T,v,w,10_000*μ)
# With Hellwarth effective mode frequency
v,w=feynmanvw(T, ω_hellwarth, 2.4, ω_hellwarth)
μ=HellwarthMobility(v,w, β(T, ω_hellwarth), 2.4, ω_hellwarth)
@printf(fout," %f %f %f\n",v,w,10_000*μ)
println("T: $(T) v: $(v) w:$(w)") # Just for STDOUT so you can monitor what's going on...
end
close(fout)
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 17524 | ### A Pluto.jl notebook ###
# v0.14.8
using Markdown
using InteractiveUtils
# ╔═╡ a6049db0-dd73-11eb-2757-05d672d68b4e
using Revise
# ╔═╡ 728b1147-6022-4787-9e75-0990b797a7a3
using PolaronMobility
# ╔═╡ 55073dc7-94dc-4e2f-ac15-a0a09bc8693b
using QuadGK
# ╔═╡ 51cc807b-cf2c-459c-a1b7-85c00f73b145
begin
ħ = 1.05457162825e-34
eV = 1.602176487e-19
me = 9.10938188e-31
kB = 1.3806504e-23
ϵ_0 = 8.854E-12
amu = 1.660_539_066_60e-27
Ha = 4.35974820e-18
Bohr = 5.29177249e-11
γ = 0.577215664901532
end
# ╔═╡ 13d580e2-2ab8-4bb3-b658-94ef8def4d6e
# Parameters
# ╔═╡ b8654fc8-0b81-4ee2-866d-bc88679028e0
data = [
"Material" "ϵ∞" "ϵ0" "m^*_⟂" "m^*_z" "ω_LO" "ZPR" "∂^2Σ/∂k_2⟂" "∂^2Σ/∂k_2z" "m^pol_⟂" "m^pol_z" "m^*_⟂/m^pol_⟂" "m^*_z/m^pol_z" "a_p" "a_p⟂" "a_pz";
"AlAs" 9.49 11.51 0.24276 0.89650 47.3 -8.8 -0.14802 -0.02315 0.25181 0.91550 0.96407 0.97925 105.67 123.26 77.68;
"AlP" 8.12 10.32 0.25190 0.80934 59.9 -14.0 -0.17791 -0.03398 0.26372 0.83222 0.95519 0.97250 88.57 101.64 67.26;
"AlSb" 12.02 13.35 0.22156 1.14183 39.8 -3.6 -0.08089 -0.00782 0.22561 1.15212 0.98208 0.99107 157.37 190.81 107.04;
"BAs" 9.81 9.89 0.21642 1.09408 84.4 -0.5 -0.00557 -0.00055 0.21668 1.09474 0.99879 0.99939 1665.87 2015.38 1138.17;
"BN" 4.52 6.69 0.29866 0.89524 161.0 -67.9 -0.26823 -0.05659 0.32467 0.94301 0.91989 0.94934 30.38 34.58 23.45;
"CdS" 6.21 10.24 0.11773 0.11773 34.4 -14.9 -0.61225 -0.61225 0.12688 0.12688 0.92792 0.92792 503.93 0.0 0.0;
"CdSe" 7.83 11.78 0.05115 0.05115 23.6 -5.5 -0.75785 -0.75785 0.05322 0.05322 0.96124 0.96123 1716.44 0.0 0.0;
"CdTe" 8.89 12.37 0.05178 0.05178 19.1 -3.7 -0.61860 -0.61860 0.05349 0.05349 0.96797 0.96797 2294.84 0.0 0.0;
"GaAs" 15.31 17.55 0.00912 0.00912 33.5 -0.5 -0.29326 -0.29326 0.00914 0.00914 0.99733 0.99733 49463.6 0.0 0.0;
"GaN" 6.13 11.00 0.14355 0.14355 86.0 -29.6 -0.39962 -0.39965 0.15229 0.15228 0.94263 0.94263 362.68 362.68 362.69;
"GaP" 10.50 12.53 0.22958 1.06158 48.6 -7.4 -0.13113 -0.01483 0.23670 1.07856 0.96990 0.98426 95.73 114.62 66.78;
"SiC" 6.97 10.30 0.22814 0.67709 117.0 -32.7 -0.23217 -0.04969 0.24090 0.70067 0.94703 0.96636 62.48 71.04 48.33;
"ZnS" 5.97 9.40 0.16715 0.16715 40.6 -18.6 -0.45614 -0.45614 0.18094 0.18094 0.92376 0.92376 368.04 0.0 0.0;
"ZnSe" 7.35 10.73 0.08932 0.08932 29.3 -8.1 -0.51498 -0.51498 0.09362 0.09362 0.95400 0.95400 982.25 0.0 0.0;
"ZnTe" 9.05 11.99 0.07644 0.07644 24.1 -4.3 -0.38801 -0.38801 0.07877 0.07877 0.97034 0.97034 1815.51 0.0 0.0;
"BaO" 4.21 92.43 0.38040 1.19717 47.3 -132.0 -1.40050 -0.27555 0.81412 1.78651 0.46725 0.67012 7.01 8.02 5.35;
"CaO" 3.77 16.67 0.44286 1.42415 66.8 -153.9 -0.99507 -0.18981 0.79178 1.95175 0.55932 0.72968 6.42 7.37 4.88;
"Li2O" 2.9 7.8 0.43735 0.84989 86.3 -171.7 -0.82404 -0.32275 0.68378 1.17113 0.63960 0.72570 13.49 14.59 11.53;
"MgO" 3.23 11.14 0.33954 0.33954 84.5 -137.3 -0.79790 -0.79790 0.46571 0.46571 0.72908 0.72908 50.37 0.0 0.0;
"SrO" 3.77 20.91 0.40701 1.22525 55.4 -141.0 -1.18792 -0.24910 0.78801 1.76349 0.51650 0.69479 7.31 8.33 5.64;
]
# ╔═╡ 3d1f6989-12f1-44ee-8dcb-8a06cc83f6b1
ϵ_optic = data[2:end, 2]
# ╔═╡ 4bb07926-4ed8-4f36-9d4e-561f3693a801
ϵ_static = data[2:end, 3]
# ╔═╡ 3f7c4d03-3f7a-4d7a-af1a-fed238ea4ce7
phonon_freqs = data[2:end, 6] ./ 1e3 .* eV ./ ħ ./ 2π # Hz
# ╔═╡ 7af80fc4-e2a9-433c-bc98-f2497045bf3e
m_perp = data[2:end, 4] ./ Ha ./ Bohr^2 .* ħ^2 ./ me # me
# ╔═╡ 5cfd7351-ca1b-4757-8652-fc7147693101
m_z = data[2:end, 5] ./ Ha ./ Bohr^2 .* ħ^2 ./ me # me
# ╔═╡ 01eb80d6-8852-4ce3-a626-1ca4d1288520
# Alphas
# ╔═╡ 74598315-7ac3-4aa8-9e3c-f38bfe1e7205
α_perp = [frohlichalpha(ϵ∞, ϵ0, f, m) for (ϵ∞, ϵ0, f, m) in zip(ϵ_optic, ϵ_static, phonon_freqs, m_perp)]
# ╔═╡ 1b524ae3-60a4-47d6-8535-10e77abd2571
α_z = [frohlichalpha(ϵ∞, ϵ0, f, m) for (ϵ∞, ϵ0, f, m) in zip(ϵ_optic, ϵ_static, phonon_freqs, m_z)]
# ╔═╡ be0fd60e-633a-40e3-b07e-8bf98cd243f6
# Athermal Theory
# ╔═╡ 53103b1e-c993-480c-bcbc-004d6b56ac3a
begin
var_perp_athermal = feynmanvw.(α_perp)
v_perp_athermal = [i[1] for i in var_perp_athermal]
w_perp_athermal = [i[2] for i in var_perp_athermal]
end
# ╔═╡ a932ff04-a4d5-4cab-baf5-79c6a763a132
v_perp_athermal
# ╔═╡ 0e89abc0-9332-42df-aec9-77f94f07c241
w_perp_athermal
# ╔═╡ add797ac-99c9-4ea8-8fda-bff4524fb4e0
begin
var_z_athermal = feynmanvw.(α_z)
v_z_athermal = [i[1] for i in var_z_athermal]
w_z_athermal = [i[2] for i in var_z_athermal]
end
# ╔═╡ 64382d9f-2575-4521-9fb2-94bdef83833a
v_z_athermal
# ╔═╡ b5391e54-1b0f-4e73-9489-79c803f66acf
w_z_athermal
# ╔═╡ be65dc13-6c3b-4ecb-83d5-ed2f079b18c6
F_perp_athermal = F.(v_perp_athermal, w_perp_athermal, α_perp) .* 1e3 .* ħ .* 2π .* phonon_freqs ./ eV
# ╔═╡ b2e5b2d2-65bd-45e7-8f3f-ef82f343582b
F_z_athermal = F.(v_z_athermal, w_z_athermal, α_z) .* 1e3 .* ħ .* 2π .* phonon_freqs ./ eV
# ╔═╡ f8313eab-8792-4854-9288-f6f803e68e03
F_avg_athermal = (F_perp_athermal .* 2 .+ F_z_athermal) ./ 3
# ╔═╡ a5bce0fa-4df3-4e41-bd2f-8a221d1c808b
function feynamn_mass(α, v, w, m, ω)
j(τ) = 1 + (v * ω / w^2) * (1 - w^2 / v^2) * (1 - exp(-v * τ / ω)) / τ
integrand(τ) = exp(-τ) * τ^(1/2) * j(τ)^(-3/2)
return m * (1 + α * (v / w)^3 / (3 * π^(1/2)) * quadgk(τ -> integrand(τ), 0.0, Inf)[1])
end
# ╔═╡ 72e71b1b-ca34-4f64-a561-a4c3e5fcb758
m_pol_perp_athermal = feynamn_mass.(α_perp, v_perp_athermal, w_perp_athermal, m_perp, phonon_freqs .* 2π) .* Ha .* Bohr^2 ./ ħ^2 .* me
# ╔═╡ 0bcdc70b-e564-4874-94ea-c10b7e638522
m_pol_z_athermal = feynamn_mass.(α_z, v_z_athermal, w_z_athermal, m_z, phonon_freqs .* 2π) .* Ha .* Bohr^2 ./ ħ^2 .* me
# ╔═╡ 73b1fe6d-771e-4eed-be9d-cc8eee02a7e1
m_perp_athermal_ratio = m_perp ./ m_pol_perp_athermal
# ╔═╡ 9a5479da-addc-4d74-a546-36105778798c
m_z_athermal_ratio = m_z ./ m_pol_z_athermal
# ╔═╡ 13cb532e-8b90-4a77-a4fc-28e037e5b64b
begin
μ_perp = m_perp .* (m_pol_perp_athermal .- m_perp) ./ m_pol_perp_athermal
size_perp_athermal = sqrt.(3 ./ v_perp_athermal ./ μ_perp) ./ sqrt.(me .* m_perp .* 2π .* phonon_freqs ./ ħ) ./ 2 ./ Bohr
end
# ╔═╡ 0dea92e7-5743-488b-99ca-c34ee90f658f
begin
μ_z = m_z .* (m_pol_z_athermal .- m_z) ./ m_pol_z_athermal
size_z_athermal = sqrt.(3 / 2 ./ v_z_athermal ./ μ_z) ./ sqrt.(2 .* me .* m_z .* 2π .* phonon_freqs ./ ħ) ./ Bohr
end
# ╔═╡ a965eff9-e19e-46aa-bd20-f735429cd273
size_avg_athermal = (size_perp_athermal.^2 .* size_z_athermal).^(1/3)
# ╔═╡ db39c08a-341a-4dc6-a872-e67d24daf32f
# Weak coupling limit
# ╔═╡ 0888ccfd-34c9-472e-89c9-6f6964695cbe
# Feynman Weak Limit
# ╔═╡ a1fb81d1-e1f5-48fa-adcd-a923f8516566
w_z_athermal_weak = 3
# ╔═╡ ccef5927-04c0-4eed-bfa1-271b58c3c488
w_perp_athermal_weak = 3
# ╔═╡ b7ab04b4-7ddf-4c58-a876-2c39f755baaa
v_z_athermal_weak = 3 .+ 2.22 .* α_z ./ 10 .+ 1.97 .* (α_z ./ 10).^2
# ╔═╡ e9dc6720-6deb-49b1-ab79-ca77ec8f73b2
v_perp_athermal_weak = 3 .+ 2.22 .* α_perp ./ 10 .+ 1.97 .* (α_perp ./ 10).^2
# ╔═╡ 7fd68186-4423-4efe-9ad8-bcbbcd37e127
E_z_weak = (-α_z .- 0.0123 .* α_z.^2 .- 0.00064 .* α_z.^3) .* 1e3 .* ħ .* 2π .* phonon_freqs ./ eV
# ╔═╡ 70e3324b-3cd4-4675-bdb2-78a5b971d697
E_perp_weak = (-α_perp .- 0.0123 .* α_perp.^2 .- 0.00064 .* α_perp.^3) .* 1e3 .* ħ .* 2π .* phonon_freqs ./ eV
# ╔═╡ 0ebba711-5d5a-49b5-a158-c5396593708e
E_avg_weak = (2 .* E_perp_weak .+ E_z_weak) ./ 3
# ╔═╡ 29d7ad21-2aca-43d9-9357-e6efc0e22fa0
m_pol_z_athermal_weak = m_z .* (1 .+ α_z ./ 6 .+ 0.025 .* α_z.^2) .* Ha .* Bohr^2 ./ ħ^2 .* me
# ╔═╡ 1297f732-6a2f-4a00-8e1f-e68340564400
m_pol_perp_athermal_weak = m_perp .* (1 .+ α_perp ./ 6 .+ 0.025 .* α_z.^2) .* Ha .* Bohr^2 ./ ħ^2 .* me
# ╔═╡ 5c7a55b2-66c1-41cf-87ab-10da25d0ac74
size_z_athermal_weak = 3 .* sqrt.(6 .* ħ ./ (α_z .* m_z .* 2π .* phonon_freqs .* me)) ./ 4 ./ Bohr
# ╔═╡ d578cf35-9e3d-49fe-b69a-1fffd1fa34ce
size_perp_athermal_weak = 3 .* sqrt.(6 .* ħ ./ (α_perp .* m_perp .* 2π .* phonon_freqs .* me)) ./ 4 ./ Bohr
# ╔═╡ b0b563e3-7e38-46cd-a895-2ab8dbba11e1
# Frohlich Weak Limit
# ╔═╡ 2745e641-26b1-4c91-825b-104883070ef3
E_z_weak_fr = (.- α_z .- 0.0159196220 .* α_z.^2 .- 0.000806070048 .* α_z.^3) .* 1e3 .* ħ .* 2π .* phonon_freqs ./ eV
# ╔═╡ 0524d4fd-b5e0-4d79-b9f9-0c4a6cde38c5
E_perp_weak_fr = (.- α_perp .- 0.0159196220 .* α_perp.^2 .- 0.000806070048 .* α_perp.^3) .* 1e3 .* ħ .* 2π .* phonon_freqs ./ eV
# ╔═╡ 29819ac9-a201-490e-92c5-67ffeb3fbb49
E_avg_weak_fr = (E_z_weak_fr .+ 2 .* E_perp_weak_fr) ./ 3
# ╔═╡ 225aadee-461e-4703-b860-60b58d8f7d39
m_pol_z_athermal_weak_fr = m_z .* (1 .+ α_z ./ 6 .+ 0.02362763 .* α_z.^2) .* Ha .* Bohr^2 ./ ħ^2 .* me
# ╔═╡ b01ecad1-1840-4bc5-91ff-873ec28c7d2f
m_pol_perp_athermal_weak_fr = m_perp .* (1 .+ α_perp ./ 6 .+ 0.02362763 .* α_perp.^2) .* Ha .* Bohr^2 ./ ħ^2 .* me
# ╔═╡ 7f54b2d5-6435-4736-b51c-a8f00437ab1b
size_z_athermal_weak_fr = sqrt.(2 .* ħ ./ (m_z .* me .* phonon_freqs .* 2π)) ./ Bohr
# ╔═╡ 6fc88ab3-7a5a-4252-aa68-af3c68014435
size_perp_athermal_weak_fr = sqrt.(2 .* ħ ./ (m_perp .* me .* phonon_freqs .* 2π)) ./ Bohr
# ╔═╡ 8250b9b5-80c1-4650-b5e8-9eaea9a03a1e
size_avg_athermal_weak_fr = (size_perp_athermal_weak_fr.^2 .* size_z_athermal_weak_fr).^(1/3)
# ╔═╡ 9b0d8873-f451-410e-9771-d8bd5c67f53c
# Strong coupling limit
# ╔═╡ 66c7fe8b-901e-4af0-98c6-6bb97d61354f
# Feynman Strong Limit
# ╔═╡ f48c8862-35d4-4592-8e00-7b598325a150
w_z_athermal_strong = 1
# ╔═╡ 4d6523b0-4dbe-45ee-b8ee-518580dfdf03
w_perp_athermal_strong = 1
# ╔═╡ 21dcd3a6-f322-456e-ab8e-7121b72b3773
v_z_athermal_strong = 4 .* α_z.^2 ./ (9 * π) .- 4 * (log(2) - 1)
# ╔═╡ ed0aac01-6b96-4236-8d7f-976a4fa310a2
v_perp_athermal_strong = 4 .* α_perp.^2 ./ (9 * π) .- 4 * (log(2) - 1)
# ╔═╡ a3be76e3-6426-41ed-9596-e28249fbeaac
E_z_strong = (-0.106 .* α_z.^2 .- 2.83) .* 1e3 .* ħ .* 2π .* phonon_freqs ./ eV
# ╔═╡ 8f093305-6dfd-42c7-848a-beeb416bd681
E_perp_strong = (-0.106 .* α_perp.^2 .- 2.83) .* 1e3 .* ħ .* 2π .* phonon_freqs ./ eV
# ╔═╡ 0b173c0b-2c86-47b5-a823-a8ff0920953f
E_avg_strong = (E_z_strong .+ 2 .* E_perp_strong) ./ 3
# ╔═╡ bcb54f1d-9c36-4448-a212-33d3544a9a07
m_pol_z_athermal_strong = m_z .* (1 .+ α_z.^4 .* 0.0202) .* Ha .* Bohr^2 ./ ħ^2 .* me
# ╔═╡ 29549691-1673-4902-bcbb-f4f0e44190b7
m_pol_perp_athermal_strong = m_perp .* (1 .+ α_perp.^4 .* 0.0202) .* Ha .* Bohr^2 ./ ħ^2 .* me
# ╔═╡ 0e32dde6-f203-4aa1-9ede-9d01a56ce8ea
size_z_athermal_strong = 3 .* α_z .* sqrt.(π * ħ ./ (m_z .* me .* 2π .* phonon_freqs)) ./ 2 ./ Bohr
# ╔═╡ 6ba5d70f-2bd5-4594-a9ed-71923c5e39b0
size_perp_athermal_strong = 3 ./ α_perp .* sqrt.(π * ħ ./ (m_perp .* me .* 2π .* phonon_freqs)) ./ 2 ./ Bohr
# ╔═╡ 34ab5243-9f7c-4250-a698-b8c54b6bcf49
# Frohlich Strong Limit
# ╔═╡ 0d27d4dd-c7d2-4292-abf7-258783440089
E_z_strong_fr = (-0.108513 .* α_z.^2 .- 2.836) .* 1e3 .* ħ .* 2π .* phonon_freqs ./ eV
# ╔═╡ 3f85e0d0-0016-4333-ada3-171ac606560b
E_perp_strong_fr = (-0.108513 .* α_perp.^2 .- 2.836) .* 1e3 .* ħ .* 2π .* phonon_freqs ./ eV
# ╔═╡ 64cdc83a-54a1-413a-a525-6d68fd6cd0bc
E_avg_strong_fr = (E_z_strong_fr .+ 2 .* E_perp_strong_fr) ./ 3
# ╔═╡ d8e299ac-b788-4263-b828-8417a84684f7
m_pol_z_athermal_strong_fr = m_z .* (1 .+ 0.0227019 .* α_z.^4) .* Ha .* Bohr^2 ./ ħ^2 .* me
# ╔═╡ f933ff3a-7fa9-434d-a52f-83f95b765c3b
m_pol_perp_athermal_strong_fr = m_perp .* (1 .+ 0.0227019 .* α_perp.^4) .* Ha .* Bohr^2 ./ ħ^2 .* me
# ╔═╡ e1d32f2a-fb54-45e0-bd0b-1d86859c7bbb
size_z_athermal_strong_fr = 3 / 2 * √π ./ sqrt.(m_z .* me .* phonon_freqs .* 2π .* α_z.^2 ./ ħ) ./ Bohr
# ╔═╡ f69a2f23-b43f-4dc2-83ba-ae281ee86a83
size_perp_athermal_strong_fr = 3 / 2 * √π ./ sqrt.(m_perp .* me .* phonon_freqs .* 2π .* α_perp.^2 ./ ħ) ./ Bohr
# ╔═╡ b03bddfa-8586-468f-beb3-3dd3ef456711
size_avg_athermal_strong_fr = (size_perp_athermal_strong_fr.^2 .* size_z_athermal_strong_fr).^(1/3)
# ╔═╡ 411691a5-53c7-40e5-8115-6d0ed0be07cb
# Thermal Theory
# ╔═╡ 66d7a406-7061-4714-9197-c65db6ef75cf
T = 300 # K
# ╔═╡ 50c5c581-2500-4746-8554-a51598c7aeea
β_red = ħ * 2π / kB / T .* phonon_freqs
# ╔═╡ 8fd12478-4320-4ffd-b686-45ba77b13e87
begin
var_perp_thermal = feynmanvw.(α_perp, β_red)
v_perp_thermal = [i[1] for i in var_perp_thermal]
w_perp_thermal = [i[2] for i in var_perp_thermal]
end
# ╔═╡ 21ccb4da-ca25-4e50-9a3b-9eea67ff2699
begin
var_z_thermal = feynmanvw.(α_z, β_red)
v_z_thermal = [i[1] for i in var_z_thermal]
w_z_thermal = [i[2] for i in var_z_thermal]
end
# ╔═╡ e9aa5e25-9467-427e-bd4b-7ad7d4906c22
F_perp_thermal = F.(v_perp_thermal, w_perp_thermal, β_red, α_perp) .* 1e3 .* ħ .* 2π .* phonon_freqs ./ eV
# ╔═╡ aa91544c-f776-4e2f-8fcf-e8c821bf5ac8
F_z_thermal = F.(v_z_thermal, w_z_thermal, β_red, α_z) .* 1e3 .* ħ .* 2π .* phonon_freqs ./ eV
# ╔═╡ 76d164e5-0e87-4aea-a40b-5e329371e848
F_avg_thermal = (F_perp_thermal .* 2 .+ F_z_thermal) / 3
# ╔═╡ ece97292-8325-4bf6-a18b-16f0a5be4621
m_pol_perp_thermal = m_perp ./ (1 .+ (v_perp_thermal.^2 .- w_perp_thermal.^2) ./ w_perp_thermal.^2 .* Ha .* Bohr^2 ./ ħ^2 .* me)
# ╔═╡ 67d60382-30d6-4b7f-9774-76a4d05e2098
m_pol_z_thermal = m_z ./ (1 .+ (v_z_thermal.^2 .- w_z_thermal.^2) ./ w_z_thermal.^2 .* Ha .* Bohr^2 ./ ħ^2 .* me)
# ╔═╡ 16d1552c-a7fe-4775-ac98-f97add75d1e4
m_perp_thermal_ratio = m_perp ./ m_pol_perp_thermal
# ╔═╡ f84c0d7f-13f7-49a0-9943-4f5c56527368
m_z_thermal_ratio = m_z ./ m_pol_z_thermal
# ╔═╡ 1b0d8352-7384-4355-ad13-2aae6aa6cf87
size_perp_thermal = sqrt.(3 ./ me ./ m_perp ./ (v_perp_thermal.^2 - w_perp_thermal.^2) .* v_perp_thermal ./ 2π ./ phonon_freqs .* ħ) ./ Bohr ./ 2
# ╔═╡ c274dd67-7e0c-417a-a972-26886fd32573
size_z_thermal = sqrt.(3 ./ me ./ m_z ./ (v_z_thermal.^2 - w_z_thermal.^2) .* v_z_thermal ./ 2π ./ phonon_freqs .* ħ) ./ Bohr ./ 2
# ╔═╡ 7e3aac26-62bf-410c-981f-654d918624bd
size_avg_thermal = (size_perp_thermal.^2 .* size_z_thermal).^(1/3)
# ╔═╡ Cell order:
# ╠═a6049db0-dd73-11eb-2757-05d672d68b4e
# ╠═728b1147-6022-4787-9e75-0990b797a7a3
# ╠═55073dc7-94dc-4e2f-ac15-a0a09bc8693b
# ╠═51cc807b-cf2c-459c-a1b7-85c00f73b145
# ╠═13d580e2-2ab8-4bb3-b658-94ef8def4d6e
# ╠═b8654fc8-0b81-4ee2-866d-bc88679028e0
# ╠═3d1f6989-12f1-44ee-8dcb-8a06cc83f6b1
# ╠═4bb07926-4ed8-4f36-9d4e-561f3693a801
# ╠═3f7c4d03-3f7a-4d7a-af1a-fed238ea4ce7
# ╠═7af80fc4-e2a9-433c-bc98-f2497045bf3e
# ╠═5cfd7351-ca1b-4757-8652-fc7147693101
# ╠═01eb80d6-8852-4ce3-a626-1ca4d1288520
# ╠═74598315-7ac3-4aa8-9e3c-f38bfe1e7205
# ╠═1b524ae3-60a4-47d6-8535-10e77abd2571
# ╠═be0fd60e-633a-40e3-b07e-8bf98cd243f6
# ╠═53103b1e-c993-480c-bcbc-004d6b56ac3a
# ╠═a932ff04-a4d5-4cab-baf5-79c6a763a132
# ╠═0e89abc0-9332-42df-aec9-77f94f07c241
# ╠═add797ac-99c9-4ea8-8fda-bff4524fb4e0
# ╠═64382d9f-2575-4521-9fb2-94bdef83833a
# ╠═b5391e54-1b0f-4e73-9489-79c803f66acf
# ╠═be65dc13-6c3b-4ecb-83d5-ed2f079b18c6
# ╠═b2e5b2d2-65bd-45e7-8f3f-ef82f343582b
# ╠═f8313eab-8792-4854-9288-f6f803e68e03
# ╠═a5bce0fa-4df3-4e41-bd2f-8a221d1c808b
# ╠═72e71b1b-ca34-4f64-a561-a4c3e5fcb758
# ╠═0bcdc70b-e564-4874-94ea-c10b7e638522
# ╠═73b1fe6d-771e-4eed-be9d-cc8eee02a7e1
# ╠═9a5479da-addc-4d74-a546-36105778798c
# ╠═13cb532e-8b90-4a77-a4fc-28e037e5b64b
# ╠═0dea92e7-5743-488b-99ca-c34ee90f658f
# ╠═a965eff9-e19e-46aa-bd20-f735429cd273
# ╠═db39c08a-341a-4dc6-a872-e67d24daf32f
# ╠═0888ccfd-34c9-472e-89c9-6f6964695cbe
# ╠═a1fb81d1-e1f5-48fa-adcd-a923f8516566
# ╠═ccef5927-04c0-4eed-bfa1-271b58c3c488
# ╠═b7ab04b4-7ddf-4c58-a876-2c39f755baaa
# ╠═e9dc6720-6deb-49b1-ab79-ca77ec8f73b2
# ╠═7fd68186-4423-4efe-9ad8-bcbbcd37e127
# ╠═70e3324b-3cd4-4675-bdb2-78a5b971d697
# ╠═0ebba711-5d5a-49b5-a158-c5396593708e
# ╠═29d7ad21-2aca-43d9-9357-e6efc0e22fa0
# ╠═1297f732-6a2f-4a00-8e1f-e68340564400
# ╠═5c7a55b2-66c1-41cf-87ab-10da25d0ac74
# ╠═d578cf35-9e3d-49fe-b69a-1fffd1fa34ce
# ╠═b0b563e3-7e38-46cd-a895-2ab8dbba11e1
# ╠═2745e641-26b1-4c91-825b-104883070ef3
# ╠═0524d4fd-b5e0-4d79-b9f9-0c4a6cde38c5
# ╠═29819ac9-a201-490e-92c5-67ffeb3fbb49
# ╠═225aadee-461e-4703-b860-60b58d8f7d39
# ╠═b01ecad1-1840-4bc5-91ff-873ec28c7d2f
# ╠═7f54b2d5-6435-4736-b51c-a8f00437ab1b
# ╠═6fc88ab3-7a5a-4252-aa68-af3c68014435
# ╠═8250b9b5-80c1-4650-b5e8-9eaea9a03a1e
# ╠═9b0d8873-f451-410e-9771-d8bd5c67f53c
# ╠═66c7fe8b-901e-4af0-98c6-6bb97d61354f
# ╠═f48c8862-35d4-4592-8e00-7b598325a150
# ╠═4d6523b0-4dbe-45ee-b8ee-518580dfdf03
# ╠═21dcd3a6-f322-456e-ab8e-7121b72b3773
# ╠═ed0aac01-6b96-4236-8d7f-976a4fa310a2
# ╠═a3be76e3-6426-41ed-9596-e28249fbeaac
# ╠═8f093305-6dfd-42c7-848a-beeb416bd681
# ╠═0b173c0b-2c86-47b5-a823-a8ff0920953f
# ╠═bcb54f1d-9c36-4448-a212-33d3544a9a07
# ╠═29549691-1673-4902-bcbb-f4f0e44190b7
# ╠═0e32dde6-f203-4aa1-9ede-9d01a56ce8ea
# ╠═6ba5d70f-2bd5-4594-a9ed-71923c5e39b0
# ╠═34ab5243-9f7c-4250-a698-b8c54b6bcf49
# ╠═0d27d4dd-c7d2-4292-abf7-258783440089
# ╠═3f85e0d0-0016-4333-ada3-171ac606560b
# ╠═64cdc83a-54a1-413a-a525-6d68fd6cd0bc
# ╠═d8e299ac-b788-4263-b828-8417a84684f7
# ╠═f933ff3a-7fa9-434d-a52f-83f95b765c3b
# ╠═e1d32f2a-fb54-45e0-bd0b-1d86859c7bbb
# ╠═f69a2f23-b43f-4dc2-83ba-ae281ee86a83
# ╠═b03bddfa-8586-468f-beb3-3dd3ef456711
# ╠═411691a5-53c7-40e5-8115-6d0ed0be07cb
# ╠═66d7a406-7061-4714-9197-c65db6ef75cf
# ╠═50c5c581-2500-4746-8554-a51598c7aeea
# ╠═8fd12478-4320-4ffd-b686-45ba77b13e87
# ╠═21ccb4da-ca25-4e50-9a3b-9eea67ff2699
# ╠═e9aa5e25-9467-427e-bd4b-7ad7d4906c22
# ╠═aa91544c-f776-4e2f-8fcf-e8c821bf5ac8
# ╠═76d164e5-0e87-4aea-a40b-5e329371e848
# ╠═ece97292-8325-4bf6-a18b-16f0a5be4621
# ╠═67d60382-30d6-4b7f-9774-76a4d05e2098
# ╠═16d1552c-a7fe-4775-ac98-f97add75d1e4
# ╠═f84c0d7f-13f7-49a0-9943-4f5c56527368
# ╠═1b0d8352-7384-4355-ad13-2aae6aa6cf87
# ╠═c274dd67-7e0c-417a-a972-26886fd32573
# ╠═7e3aac26-62bf-410c-981f-654d918624bd
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 995 | # Organic materials - polaron mobility
push!(LOAD_PATH,"../src/") # load module from local directory
using PolaronMobility
##### load in library routines... #####
# Plot figures with Plots, which defaults to Pyplot backend
#using Plots
#default(grid=false) # No silly dotted grid lines
#default(size=(400,300)) # A good small size for two-column EPS output
#default(size=(800,600)) # Nice size for small-ish PNGs for slides
# Physical constants
const hbar = const ħ = 1.05457162825e-34; # kg m2 / s
const eV = const q = const ElectronVolt = 1.602176487e-19; # kg m2 / s2
const me=MassElectron = 9.10938188e-31; # kg
const Boltzmann = const kB = 1.3806504e-23; # kg m2 / K s2
const ε_0 = 8.854E-12 #Units: C2N−1m−2, permittivity of free space
#####
# Call simulation
# PCBM: 4.0, 5.0, ??? , effective-mass=1.0
PCBM=polaronmobility(300, 4.0, 5.0, 2.0E12, 1.00)
savepolaron("PCBM",PCBM)
println("That's me!")
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 851 | # Rubrene Ordejon
# Rubrene electron-phonon matrix elements
# Ordejón, P., Boskovic, D., Panhans, M., Ortmann, F., 2017. Ab initio study of
# electron-phonon coupling in rubrene. Phys. Rev. B 96, 035202.
# https://doi.org/10.1103/PhysRevB.96.035202
# Table II
# Units: cm^-1 meV
EffectiveH=(1208.9, 106.8)
EffectiveP=(117.9, 21.9)
EffectiveHGirlando=(1277, 99)
EffectivePGirlando=(77, 20)
# Table IV
# ωp ωpg0 ωpgi
# cm^-1 meV meV
PerModeOrdejon=
[57.8 -1.7 0.85
59.6 1.4 -0.83
89.0 1.6 -4.8
107.3 -0.14 2.8
139.1 -2.3 -3.7
639.1 -7.5 1.0
1011.2 -3.6 -0.04
1344.7 19.8 0.04
1593.3 -42.0 -0.12
]
PerModeGirlando =
[37.4 -0.9 3.4
66.6 1.6 -6.6
86.7 -0.6 -9.3
106.3 0 -4.4
125.1 1.4 -4.7
631.2 -10.8 1.3
1002.3 24.6 0
1348.6 49.9 0
1593.8 -45.6 1.6
]
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 9172 | ### A Pluto.jl notebook ###
# v0.18.1
using Markdown
using InteractiveUtils
# ╔═╡ 3df3da8e-2bc9-44f5-bbe0-2cabdf3a2a81
begin
import Pkg
# careful: this is _not_ a reproducible environment
# activate the global environment
Pkg.activate("../")
using PolaronMobility
using QuadGK
end
# ╔═╡ 69e7d9cd-7900-474d-aeba-06b38e62d756
using Gnuplot
# ╔═╡ 4df7f468-544d-11ec-06a3-0b757c39e918
# Rubrene Ordejon
# Rubrene electron-phonon matrix elements
# Ordejón, P., Boskovic, D., Panhans, M., Ortmann, F., 2017. Ab initio study of
# electron-phonon coupling in rubrene. Phys. Rev. B 96, 035202.
# https://doi.org/10.1103/PhysRevB.96.035202
# ╔═╡ 78d3ef38-fd4a-4957-bc9b-4523cb641df4
begin
CM1inTHz = 33.356
hbar=ħ=1.0545718E-34
q=1.6E-19
const Boltzmann = const kB = 1.3806504e-23
const me=MassElectron = 9.10938188e-31
end
# ╔═╡ c4d0bfad-d837-4814-aa60-d71bd41ce28b
# Table II
# Units: cm^-1 meV | convert to THz meV
EffectiveH=[1208.9 106.8] # Holstein
# ╔═╡ 43f24329-1a03-4012-9b31-cf72d273c3d6
cm1tomeV(cm1)=1000 * 2π* ħ*cm1/CM1inTHz*1E12 / q
# ╔═╡ 139b3aed-b4f8-4705-8eff-d1e0d6ea9d12
cm1tomeV(EffectiveH[1]) # I got 149.88 meV by hand
# ╔═╡ e1573de4-450a-4ed8-a9db-003fedcc9cc3
g0 = EffectiveH[2] / cm1tomeV(EffectiveH[1]) # I got 0.71 by hand
# ╔═╡ cc9153d2-86d6-4272-a266-053165197d99
EffectiveP=[117.9 21.9]
# ╔═╡ d303b91b-567c-4705-b51e-5f32c91b3d80
gi = EffectiveP[2] / cm1tomeV(EffectiveP[1])
# ╔═╡ f192deb9-5de9-40e1-959b-a518aee7a6a3
α=gi+g0 # I got 2.21 by hand; this is essentially the Frohlich alpha
# ╔═╡ b1c36a20-9c5b-4fc2-9907-8061ed78d88f
v,w=PolaronMobility.feynmanvw(α)
# ╔═╡ 7f6aedfa-700b-47b5-8030-14d1448c4737
# We've just solved the Feynman polaron theory!
# ╔═╡ 9829e516-9240-48b2-b4f6-9eff06bf5018
EffectiveFreq=(g0*EffectiveH[1] + gi*EffectiveP[1])/α
# ╔═╡ edacbf0c-959f-4a2e-b406-afe7fdfa98bc
ω=1E12 * EffectiveFreq / CM1inTHz
# ╔═╡ 6d6d286a-2f36-4762-803b-59299d7373a1
EffectiveMass(;a=1E-9, J=0.030q)=ħ^2/(2J*a^2)
# Tight-binding model, then cos(2θ) expansion around extremum
# ╔═╡ 88f68d4c-4782-47da-ab8f-6f7ea728f23c
# ╔═╡ 79c95049-89a3-42cc-962a-e5266d8902a1
# Rubrene crystals have an orthorhombic unit cell with lattice parameters a = 1.44 nm, b = 0.718 nm, and c = 2.69 nm.
# https://www.lehigh.edu/~inlo/rubrene.html#:~:text=Rubrene%20crystals%20have%20an%20orthorhombic,the%20a%20and%20c%20directions.
EffectiveMass(a=0.718E-9, J=0.134*q)/MassElectron
# ╔═╡ 58828fe1-12c4-499d-837d-ae45049758e7
mb = 0.88 * MassElectron
# ╔═╡ ac1f76d8-1cdd-4de3-b1e1-049ba33374d2
βred = (q/1000 * cm1tomeV(EffectiveFreq) ) / (kB*300)
# ╔═╡ 691ace17-eb19-444a-9807-887156a813aa
# ╔═╡ 5f62b499-3363-4d0f-8b70-6dabe5e579ed
cm1tomeV(EffectiveH[1])
# ╔═╡ 755da976-d29f-4c82-9645-7acef0a140c5
EffectiveH[1]
# ╔═╡ 78695321-c088-4e99-987c-fca646aa7af3
# Hellwarth1999 - directly do contour integration in Feynman1962, for
# finite temperature DC mobility
# Hellwarth1999 Eqn (2) and (1) - These are going back to the general
# (pre low-T limit) formulas in Feynman1962. to evaluate these, you
# need to do the explicit contour integration to get the polaron
# self-energy
R=(v^2-w^2)/(w^2*v) # inline, page 300 just after Eqn (2)
# ╔═╡ 76794859-df83-4c35-bb51-3f34774798e0
#b=R*βred/sinh(b*βred*v/2) # This self-references b! What on Earth?
# OK! I now understand that there is a typo in Hellwarth1999 and
# Biaggio1997. They've introduced a spurious b on the R.H.S. compared to
# the original, Feynman1962:
b=R*βred/sinh(βred*v/2) # Feynman1962 version; page 1010, Eqn (47b)
# ╔═╡ 10adfb5e-d9ed-4f5b-bc1e-98b8a452e886
a=sqrt( (βred/2)^2 + R*βred*coth(βred*v/2))
# ╔═╡ 1e2a33b0-624c-41a5-8c94-5f1f51fbe835
k(u,a,b,v) = (u^2+a^2-b*cos(v*u))^(-3/2)*cos(u) # integrand in (2)
# ╔═╡ 4a36c74a-d44d-4a92-9d24-35ec22d8ae57
K=quadgk(u->k(u,a,b,v),0,Inf)[1] # numerical quadrature integration of (2)
# ╔═╡ 6f49c66c-82b8-428c-8420-4646a6394a9e
#Right-hand-side of Eqn 1 in Hellwarth 1999 // Eqn (4) in Baggio1997
RHS= α/(3*sqrt(π)) * βred^(5/2) / sinh(βred/2) * (v^3/w^3) * K
# ╔═╡ 7255cc2c-4680-4cde-93da-1ba2154e2d22
μ=RHS^-1 * (q)/(ω*mb) #, "m^2/Vs"
# ╔═╡ e6fe559e-46f1-4336-9513-7306c32f2515
μ*100^2 , "cm^2/Vs"
# ╔═╡ ed7cb9bb-4b83-4ed6-a8fd-9936eb02643b
function FHIPmob(T; v=v, w=w, ω=ω)
#βred = (q/1000 * cm1tomeV(EffectiveP[1]) ) / (kB*T)
βred = ħ*ω / (kB*T)
R=(v^2-w^2)/(w^2*v) # inline, page 300 just after Eqn (2)
b=R*βred/sinh(βred*v/2) # Feynman1962 version; page 1010, Eqn (47b)
a=sqrt( (βred/2)^2 + R*βred*coth(βred*v/2))
k(u,a,b,v) = (u^2+a^2-b*cos(v*u))^(-3/2)*cos(u) # integrand in (2)
K=quadgk(u->k(u,a,b,v),0,Inf)[1] # numerical quadrature integration of (2)
#Right-hand-side of Eqn 1 in Hellwarth 1999 // Eqn (4) in Baggio1997
RHS= α/(3*sqrt(π)) * βred^(5/2) / sinh(βred/2) * (v^3/w^3) * K
μ=RHS^-1 * (q)/(ω*mb) #, "m^2/Vs"
μ=μ*100^2 # convert to cm^2/Vs, from SI
end
# ╔═╡ 084ac351-17e6-4916-b0b7-12aa593984b2
Trange=90:10:400
# ╔═╡ 322962f3-c1f5-47d1-882b-f4efed0c2fa0
mobs=[FHIPmob(T) for T=Trange]
# ╔═╡ 5e996c83-88dc-4569-a435-4d00684de2af
FHIPmob(300)
# ╔═╡ 19b69d34-367e-4794-abb1-3f76e1356561
begin
@gp Trange mobs " w lp title 'Rubrene - b axis'"
@gp :- "set yrange [0:]"
@gp :- "set xlabel 'Temperature (K)'"
@gp :- "set ylabel 'Mobility (cm^2/Vs)'"
end
# ╔═╡ bbe9a49b-6495-4c13-91d0-3a4dbd0a2800
begin
@gp Trange mobs " w lp title 'Rubrene - b axis'"
#@gp :- "set yrange [0:]"
@gp :- "set xlabel 'Temperature (K)'"
@gp :- "set ylabel 'Mobility (cm^2/Vs)'"
@gp :- "set logscale y"
end
# ╔═╡ 444d7454-48a9-44dd-87a3-f4cf1a495072
@printf("\n\tμ(Hellwarth1999)= %f m^2/Vs \t= %.2f cm^2/Vs",μ,μ*100^2)
# ╔═╡ b0f72692-d76c-44f1-91aa-2e9b7b882d1b
# Jan's COF
Jperylenecoff=0.204
# ╔═╡ 0c043a99-18bf-4b75-95fa-ce8aea8f8bef
relevantmode=200 #cm^-1
# ╔═╡ 06ccb204-694d-4c64-9ecd-742c009fb972
perylenecofmass=EffectiveMass(a=1.0E-9, J=Jperylenecoff*q)
# ╔═╡ 2ba19614-f2ef-4dca-9f61-b95908b7c81c
perylenecofmass/MassElectron
# ╔═╡ 27ee4adf-b7d9-41e0-b0a0-f414422b7b73
perylenecofg0 = 128 / cm1tomeV(relevantmode)
# ╔═╡ ed6d3a1a-3fcd-4ef1-a57f-a394895d4b29
pv,pw= feynmanvw(perylenecofg0)
# ╔═╡ fbee75ec-96f0-41b6-8c14-a724872476fb
FHIPmob(300; v=pv, w=pw, ω=relevantmode/CM1inTHz*1E12*2π)
# ╔═╡ 7d7d3ff6-30d4-477a-8f03-e4c08ac8a608
md"""
# Stuff below here for later
"""
# ╔═╡ ba64c0a2-8cd4-421a-b494-a70f1f92ca0f
EffectiveHGirlando=[1277 99]
# ╔═╡ d30b10f4-2c62-4596-aa73-e4f2796b0541
EffectivePGirlando=[77 20]
# ╔═╡ 04b0a526-b808-4c61-a565-6c60e12be2b7
# Table IV
# ωp ωpg0 ωpgi
# cm^-1 meV meV
PerModeOrdejon=
[57.8 -1.7 0.85
59.6 1.4 -0.83
89.0 1.6 -4.8
107.3 -0.14 2.8
139.1 -2.3 -3.7
639.1 -7.5 1.0
1011.2 -3.6 -0.04
1344.7 19.8 0.04
1593.3 -42.0 -0.12
] .* [1/CM1inTHz 1 1]
# ╔═╡ b38b707f-6b97-424a-a22a-cf2fdebcfb31
PerModeGirlando =
[37.4 -0.9 3.4
66.6 1.6 -6.6
86.7 -0.6 -9.3
106.3 0 -4.4
125.1 1.4 -4.7
631.2 -10.8 1.3
1002.3 24.6 0
1348.6 49.9 0
1593.8 -45.6 1.6
] .* [1/CM1inTHz 1 1]
# ╔═╡ Cell order:
# ╠═4df7f468-544d-11ec-06a3-0b757c39e918
# ╠═3df3da8e-2bc9-44f5-bbe0-2cabdf3a2a81
# ╠═78d3ef38-fd4a-4957-bc9b-4523cb641df4
# ╠═c4d0bfad-d837-4814-aa60-d71bd41ce28b
# ╠═43f24329-1a03-4012-9b31-cf72d273c3d6
# ╠═139b3aed-b4f8-4705-8eff-d1e0d6ea9d12
# ╠═e1573de4-450a-4ed8-a9db-003fedcc9cc3
# ╠═cc9153d2-86d6-4272-a266-053165197d99
# ╠═d303b91b-567c-4705-b51e-5f32c91b3d80
# ╠═f192deb9-5de9-40e1-959b-a518aee7a6a3
# ╠═b1c36a20-9c5b-4fc2-9907-8061ed78d88f
# ╠═7f6aedfa-700b-47b5-8030-14d1448c4737
# ╠═9829e516-9240-48b2-b4f6-9eff06bf5018
# ╠═edacbf0c-959f-4a2e-b406-afe7fdfa98bc
# ╠═6d6d286a-2f36-4762-803b-59299d7373a1
# ╠═88f68d4c-4782-47da-ab8f-6f7ea728f23c
# ╠═79c95049-89a3-42cc-962a-e5266d8902a1
# ╠═58828fe1-12c4-499d-837d-ae45049758e7
# ╠═ac1f76d8-1cdd-4de3-b1e1-049ba33374d2
# ╠═691ace17-eb19-444a-9807-887156a813aa
# ╠═5f62b499-3363-4d0f-8b70-6dabe5e579ed
# ╠═755da976-d29f-4c82-9645-7acef0a140c5
# ╠═78695321-c088-4e99-987c-fca646aa7af3
# ╠═76794859-df83-4c35-bb51-3f34774798e0
# ╠═10adfb5e-d9ed-4f5b-bc1e-98b8a452e886
# ╠═1e2a33b0-624c-41a5-8c94-5f1f51fbe835
# ╠═4a36c74a-d44d-4a92-9d24-35ec22d8ae57
# ╠═6f49c66c-82b8-428c-8420-4646a6394a9e
# ╠═7255cc2c-4680-4cde-93da-1ba2154e2d22
# ╠═e6fe559e-46f1-4336-9513-7306c32f2515
# ╠═ed7cb9bb-4b83-4ed6-a8fd-9936eb02643b
# ╠═084ac351-17e6-4916-b0b7-12aa593984b2
# ╠═322962f3-c1f5-47d1-882b-f4efed0c2fa0
# ╠═5e996c83-88dc-4569-a435-4d00684de2af
# ╠═69e7d9cd-7900-474d-aeba-06b38e62d756
# ╠═19b69d34-367e-4794-abb1-3f76e1356561
# ╠═bbe9a49b-6495-4c13-91d0-3a4dbd0a2800
# ╠═444d7454-48a9-44dd-87a3-f4cf1a495072
# ╠═b0f72692-d76c-44f1-91aa-2e9b7b882d1b
# ╠═0c043a99-18bf-4b75-95fa-ce8aea8f8bef
# ╠═06ccb204-694d-4c64-9ecd-742c009fb972
# ╠═2ba19614-f2ef-4dca-9f61-b95908b7c81c
# ╠═27ee4adf-b7d9-41e0-b0a0-f414422b7b73
# ╠═ed6d3a1a-3fcd-4ef1-a57f-a394895d4b29
# ╠═fbee75ec-96f0-41b6-8c14-a724872476fb
# ╠═7d7d3ff6-30d4-477a-8f03-e4c08ac8a608
# ╠═ba64c0a2-8cd4-421a-b494-a70f1f92ca0f
# ╠═d30b10f4-2c62-4596-aa73-e4f2796b0541
# ╠═04b0a526-b808-4c61-a565-6c60e12be2b7
# ╠═b38b707f-6b97-424a-a22a-cf2fdebcfb31
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 1148 | push!(LOAD_PATH,"../src/") # load module from local directory
using PolaronMobility
const T=300
#Ts,Kμs, Hμs, FHIPμs, ks, Ms, As, Bs, Cs, Fs, Taus
#effectivemass=0.12 # the bare-electron band effective-mass.
# --> 0.12 for electrons and 0.15 for holes, in MAPI. See 2014 PRB.
# MAPI 4.5, 24.1, 2.25THz - 75 cm^-1 ; α=
println("Calculating polaron for T=$T for MAPIe params...")
MAPIe=polaronmobility(T, 4.5, 24.1, 2.25E12, 0.12)
#MAPIh=polaronmobility(T, 4.5, 24.1, 2.25E12, 0.15)
#function ImX(nurange,v,w,βred,α,ω,mb)
# Yup, this is a bit horrid.
v=MAPIe.v[1]
w=MAPIe.w[1]
βred=MAPIe.βred[1]
α=MAPIe.α[1]
ω=MAPIe.ω[1]
mb=MAPIe.mb[1]
nu=0:0.1:40
println("Integrating ImX for nu=$nu range...")
s=PolaronMobility.ImX(nu, v, w, βred,α,ω,mb)
println("Loading Plots for plotting...")
using Plots
plot( s.nu,s.ImX,label="ImX",
markersize=3,marker=:downtriangle, xlab="nu (units Omega)",ylab="ImX")
xaxis!(:log10)
yaxis!(:log10)
savefig("MAPIe-ImX.png")
plot( s.nu,s.μ,label="mu",
markersize=3,marker=:uptriangle, xlab="nu (units Omega)",ylab="Mob")
xaxis!(:log10)
yaxis!(:log10)
savefig("MAPIe-mu.png")
println("That's me!")
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 3054 | # Titania - polaron mobility; for Titania and other corrosion relevant oxides
# Just an initial sketch - before getting the major-leagues (DFT calcs) out.
println(" My Oberon! what visions have I seen!")
println(" Methought I was enamour'd of an ass.")
push!(LOAD_PATH,"../src/") # load module from local directory
using PolaronMobility
##### load in library routines... #####
# Plot figures with Plots, which defaults to Pyplot backend
#using Plots
#default(grid=false) # No silly dotted grid lines
#default(size=(400,300)) # A good small size for two-column EPS output
#default(size=(800,600)) # Nice size for small-ish PNGs for slides
# Physical constants
const hbar = const ħ = 1.05457162825e-34; # kg m2 / s
const eV = const q = const ElectronVolt = 1.602176487e-19; # kg m2 / s2
const me=MassElectron = 9.10938188e-31; # kg
const Boltzmann = const kB = 1.3806504e-23; # kg m2 / K s2
const ε_0 = 8.854E-12 #Units: C2N−1m−2, permittivity of free space
#####
# Call simulation
Trange=100:50:600
# Rutile - spectra and effective mass from:
# Hendry et al. PRB 69, 081101 (2004)
# DOI: https://doi.org/10.1103/PhysRevB.69.081101
f=24E12 # p.3 LHS, 2nd para
meff=1.2 # ¬ - perpendicular # p.3 LHS, 4th para
#meff=0.6 # || - parallel
# F. A. GRANT
# Rev. Mod. Phys. 31, 646 – Published 1 July 1959
# DOI: https://doi.org/10.1103/RevModPhys.31.646
# Early paper --> some of this static dielectric will be free charges in the defective Titania
ϵ_static=173.0 # p. 650 LHS
ϵ_optic=8.4
# Optical dielectric constants via:
# https://www.azom.com/article.aspx?ArticleID=1179 - optical properties
ϵ_optic=2.49^2 # Anatase: 6.2
anatase=polaronmobility(Trange, ϵ_optic, ϵ_static, f, meff)
savepolaron("anatase",anatase)
ϵ_optic=2.903^2 # Rutile: 8.427
rutile=polaronmobility(Trange, ϵ_optic, ϵ_static, f, meff)
savepolaron("rutile",rutile)
# Mobility of Electronic Charge Carriers in Titanium Dioxide
# T. Bak, M. K. Nowotny, L. R. Sheppard, and J. Nowotny*
# J. Phys. Chem. C 2008, 112, 12981–12987
# DOI: https://doi.org/10.1021/jp801028j
# Lots of nice comparison; single crystal mobility data; Arrhenius plots etc.
# Materials Project DFT dielectric constants
# mp-554278 - Bg=2.677 eV
ϵ_optic=6.2
ϵ_static=35.47
rutilemp=polaronmobility(Trange, ϵ_optic, ϵ_static, f, meff)
savepolaron("rutile-mp",rutilemp)
# mp-52620 V2O5 - Bg=2.156 eV
ϵ_optic=4.88
ϵ_static=13.67
vanadium=polaronmobility(Trange, ϵ_optic, ϵ_static, f, meff)
savepolaron("vanadium",vanadium)
# mp-19399 Cr2O5 - Bg=2.437 eV
ϵ_optic=6.32
ϵ_static=11.05
chromium=polaronmobility(Trange, ϵ_optic, ϵ_static, f, meff)
savepolaron("chromium",chromium)
# mp-7048 Al2O3 - Bg=4.455
ϵ_optic=3.16
ϵ_static=8.98
alumina=polaronmobility(Trange, ϵ_optic, ϵ_static, f, meff)
savepolaron("alumina",alumina)
println("That's me!")
# Rather basic analysis via the shell:
# Extract 300 K data point:
# grep "^300" *.dat | awk '{print $1,$4}'
# Have a look at 'alpha' parameter'
# grep Alpha *.dat
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 14364 | ### A Pluto.jl notebook ###
# v0.14.8
using Markdown
using InteractiveUtils
# ╔═╡ d09dec61-ab12-4424-bfaf-30f155c90ef9
using Revise
# ╔═╡ 89fcb3a0-db48-11eb-30ac-b501d7fcd55f
using PolaronMobility
# ╔═╡ 4a7ed3cb-88e4-4e86-90c1-285849994ab9
using Plots
# ╔═╡ 8c54eedc-7c8f-4c5d-879e-62743e302801
using DataFrames
# ╔═╡ 3edfd42b-4b8a-4080-b617-740ef3fbf76b
using CSV
# ╔═╡ 27af9453-8044-4b1f-85fd-9e2c5dd104eb
using QuadGK
# ╔═╡ 97aa8c27-f2fe-418c-a662-906dbc126fb6
begin
ħ = 1.05457162825e-34
eV = 1.602176487e-19
me = 9.10938188e-31
kB = 1.3806504e-23
ϵ_0 = 8.854E-12
amu = 1.660_539_066_60e-27
Ha = 4.35974820e-18
Bohr = 5.29177249e-11
end
# ╔═╡ d08e66f9-636b-4377-b653-389ee7b78a24
T_range = 100:100:400
# ╔═╡ 50c1a877-807e-498e-87f9-0e909080a452
MAPI= [
# 96.20813558773261 0.4996300522819191
# 93.13630357703363 1.7139631746083817
# 92.87834578121567 0.60108592692181
# 92.4847918585963 0.0058228799414729
# 92.26701437594754 0.100590086574602
# 89.43972834606603 0.006278895133832249
# 46.89209141511332 0.2460894564364346
# 46.420949316788 0.14174282581124137
# 44.0380222871706 0.1987196948553428
# 42.89702947649343 0.011159939465770681
# 42.67180170168193 0.02557751102757614
# 41.46971205834201 0.012555230726601503
# 37.08982543385215 0.00107488277468418
# 36.53555265689563 0.02126940080871224
# 30.20608114002676 0.009019481779712388
# 27.374810898415028 0.03994453721421388
# 26.363055017011728 0.05011922682554448
# 9.522966890022039 0.00075631870522737
4.016471586720514 0.08168931020200264
3.887605410774121 0.006311654262282101
3.5313112232401513 0.05353548710183397
2.755392921480459 0.021303020776321225
2.4380741812443247 0.23162784335484837
2.2490917637719408 0.2622203718355982
2.079632190634424 0.23382298607799906
2.0336707697261187 0.0623239656843172
1.5673011873879714 0.0367465760261409
1.0188379384951798 0.0126328938653956
1.0022960504442775 0.006817361620021601
0.9970130778462072 0.0103757951973341
0.9201781906386209 0.01095811116040592
0.800604081794174 0.0016830270365341532
0.5738689505255512 0.00646428491253749
# 0.022939578929507105 8.355742795827834e-06 # Acoustic modes!
# 0.04882611767873102 8.309858592685e-06
# 0.07575149723846182 2.78248540373041e-05
]
# ╔═╡ e349bf0a-554f-46ae-8e88-8a7b80d0c4cd
# Multiple Phonon Theory
# ╔═╡ 4cd925a7-048a-4696-b2b9-6a6b394e0528
B_scheme = PolaronMobility.HellwarthBScheme(MAPI)
# ╔═╡ b04ccf74-853d-4ab2-886f-5b6c21cc9a51
phonon_mode_freqs = MAPI[:, 1]
# ╔═╡ 4e349b51-0590-4f98-b777-f13db8050b6d
ir_activities = MAPI[:, 2]
# ╔═╡ 1c6fff5f-839a-43e1-acfe-040df2ed4822
ϵ_ionic = [PolaronMobility.ϵ_ionic_mode(f, r, (6.29e-10)^3) for (f, r) in zip(phonon_mode_freqs, ir_activities)]
# ╔═╡ 2f524fa1-c08b-4c11-b05a-e2d016ce6ec0
ϵ_total = sum(ϵ_ionic)
# ╔═╡ 8510da63-37d7-45d0-9012-8dd17745a9e8
α_j = [PolaronMobility.frohlich_α_j(4.5, ϵ_i, ϵ_total, f, 0.12) for (ϵ_i, f) in zip(ϵ_ionic, phonon_mode_freqs)]
# ╔═╡ d9fca06f-ee9c-4790-a059-98667dcd8428
begin
multi_data = DataFrames.DataFrame(
alpha = α_j,
phonon_freqs = phonon_mode_freqs,
ir_activities = ir_activities,
ionic = ϵ_ionic
)
CSV.write("multi_data.csv", multi_data)
end
# ╔═╡ 04e16581-ca4f-4456-bea2-2e8bf44a08f8
α_eff = sum(α_j)
# ╔═╡ ba626ebc-d7da-4eca-8149-907d724a2ef5
var_params = [PolaronMobility.multi_variation(i, 4.5, 0.12, (6.29e-10)^3, MAPI; N = 1) for i in T_range]
# ╔═╡ af26a6c8-9c97-4130-bd54-c9fe40e58879
[var_params[i][1] for i in 1:length(T_range)]
# ╔═╡ dd41fbf9-b4b9-46b9-abbf-96eddf59b0ad
v_j = [var_params[i][1][j] for j in 1:length(MAPI[:, 1]), i in 1:length(T_range)]
# ╔═╡ 2975a6b8-bcec-4e4e-be94-5a3897c650db
begin
multi_v = DataFrames.DataFrame([[0.0, [i for i in T_range]...]'; [phonon_mode_freqs v_j]], :auto)
CSV.write("multi_v.csv", multi_v)
end
# ╔═╡ 748d6916-6125-4f9a-adbf-cee3b25dc3ba
w_j = [var_params[i][2][j] for j in 1:length(MAPI[:, 1]), i in 1:length(T_range)]
# ╔═╡ a304f008-b3fa-4a92-a8c1-9ce2f7b4b3df
begin
multi_w = DataFrames.DataFrame([[0.0, [i for i in T_range]...]'; [phonon_mode_freqs w_j]], :auto)
CSV.write("multi_w.csv", multi_w)
end
# ╔═╡ 5652b186-0e8d-469c-bfea-bf665f75c06a
F_j = [PolaronMobility.multi_free_energy(var_params[i][1][j, :], var_params[i][2][j, :], T_range[i], 4.5, 0.12, (6.29e-10)^3, MAPI, j) for j in 1:length(MAPI[:, 1]), i in 1:length(T_range)]
# ╔═╡ 2e0eb8f9-3b6b-4464-b715-258c96e22422
begin
multi_energy = DataFrames.DataFrame([[0.0, [i for i in T_range]...]'; [phonon_mode_freqs F_j]], :auto)
CSV.write("multi_energy.csv", multi_energy)
end
# ╔═╡ 143b1c45-ce4b-4f3c-9674-ff181c64fe90
F_total = [sum(F_j[:, i]) for i in 1:length(T_range)]
# ╔═╡ 3900999b-fdfa-48ae-afd4-bca5d03008e3
Ω_range = 0.01:0.1:20.01
# ╔═╡ 30d37afa-7b70-479f-8dcc-860af723a96e
β_red = [ħ / kB / T * f * 2π * 1e12 for f in MAPI[:, 1], T in T_range]
# ╔═╡ 9c140cb6-286b-4e25-a3dc-829b1eea9dfb
begin
multi_beta = DataFrames.DataFrame([[0.0, [i for i in T_range]...]'; [phonon_mode_freqs β_red]], :auto)
CSV.write("multi_beta.csv", multi_beta)
end
# ╔═╡ 65a76ecd-1dcd-4d5c-88be-1b57d31369da
function h_i(i, v, w) # some vector relating to harmonic eigenmodes
h = v[i]^2 - w[i]^2
if length(v) > 1
for j in 1:length(v)
if j != i
h *= (w[j]^2 - v[i]^2) / (v[j]^2 - v[i]^2)
end
end
end
return h
end
# ╔═╡ 6a793986-844a-4a82-84b0-b71a48aa8242
function D_j(τ, β, v, w) # log of dynamic structure factor for polaron
D = τ * (1 - τ / β)
for i in 1:length(v)
if v[i] != w[i]
D += (h_i(i, v, w) / v[i]^2) * (2 * sinh(v[i] * τ / 2) * sinh(v[i] * (β - τ) / 2) / (v[i] * sinh(v[i] * β / 2)) - τ * (1 - τ / β))
end
end
return D
end
# ╔═╡ 146bcc43-15fc-45de-bb9b-f16a68d84e41
function multi_memory_function(Ω, β, α, v, w, f, m_eff)
m_e = 9.10938188e-31; # Electron Mass (kg)
eV = 1.602176487e-19; # Electron Volt (kg m^2 s^{-2})
# FHIP1962, page 1009, eqn (36).
S(t, β_j, v_j, w_j) = cos(t - 1im * β_j / 2) / sinh(β_j / 2) / D_j(-1im * t, β_j, v_j, w_j)^(3 / 2)
# FHIP1962, page 1009, eqn (35a). Scale Frequency Ω by phonon branch frequency f_j.
integrand(t, β_j, v_j, w_j, Ω) = (1 - exp(-1im * Ω * t)) * imag(S(t, β_j, v_j, w_j))
impedence = 0.0
for j in 1:length(f) # sum over phonon branches
impedence += 1im * (Ω - 2 * α[j] * (f[j])^2 * quadgk(t -> integrand(t, β[j], v[j], w[j], Ω * 2π / f[j]), 0.0, Inf)[1] / (3 * √π * Ω))
end
return impedence / eV * m_eff * m_e * 1e12 / 100^2
end
# ╔═╡ 3c7564b0-b9fe-49e8-9ad7-eaa80e9841a7
begin
Z = Array{ComplexF64}(undef, length(Ω_range), length(T_range))
for j in 1:length(T_range), i in 1:length(Ω_range)
println("Ω: $(Ω_range[i]), T: $(T_range[j])")
Z[i, j] = multi_memory_function(Ω_range[i], β_red[:, j], α_j, var_params[j][1], var_params[j][2], [i for i in phonon_mode_freqs], 0.12)
CSV.write("multi_conductivity_data.csv", DataFrames.DataFrame([[0.0, [i for i in T_range]...]'; [Ω_range 1 ./ Z]], :auto))
end
end
# ╔═╡ 0c424ddb-aecd-4fc6-9f26-54bb1fc9f099
Z
# ╔═╡ fff9cb8d-00aa-426c-bb66-4b7b21871c36
Plots.plot(Ω_range, real.(1 ./ Z), minorgrid = true, label = hcat(["T = $i K" for i in T_range]...), yaxis = :log)
# ╔═╡ 8ace5afe-29da-4bd1-9599-b51c03b67b6e
Plots.plot(Ω_range, imag.(1 ./ Z), minorgrid = true, label = hcat(["T = $i K" for i in T_range]...))
# ╔═╡ fab3ad29-61f6-45dd-b63f-4ea40c960afb
Plots.plot(Ω_range, abs.(1 ./ Z), minorgrid = true, label = hcat(["T = $i K" for i in T_range]...))
# ╔═╡ 3fb0f337-c6dd-4f56-a694-00d1c2f403bd
# Hellwarth Theory
# ╔═╡ 53117290-63b5-469c-93a9-bab8a40b2658
# B Scheme
# ╔═╡ a6b7c896-04d8-4704-8173-e8895ff84cbd
α_hellwarth_B = PolaronMobility.frohlichalpha(4.5, 24.1, B_scheme * 1e12, 0.12)
# ╔═╡ 6d322516-d247-4bd0-bcd5-9b8371b47750
β_red_hellwarth_B = [ħ * 2π / kB / T * B_scheme * 1e12 for T in T_range]
# ╔═╡ ae756cc9-f4ca-4073-abff-c56ecd1fdade
var_B = PolaronMobility.feynmanvw.(α_hellwarth_B, β_red_hellwarth_B)
# ╔═╡ 4c90b122-1bb9-460e-ac68-608ca8074a50
v_B = [i[1] for i in var_B]
# ╔═╡ 83068836-36d9-42aa-9867-7555d89e0d42
w_B = [i[2] for i in var_B]
# ╔═╡ 8082688f-ae0f-4aad-9bb9-71852be0fe00
Hellwarth_energy_B = F.(v_B, w_B, β_red_hellwarth_B, α_hellwarth_B) .* 1e3 .* ħ .* 2π .* B_scheme .* 1e12 ./ eV
# ╔═╡ 466354b5-7d93-4e2b-ab6d-f7a01112fbfb
begin
B_data = DataFrames.DataFrame(
alpha = [α_hellwarth_B for i in 1:length(T_range)],
efffreq = [B_scheme for i in 1:length(T_range)],
temp = T_range,
beta = β_red_hellwarth_B,
v = v_B,
w = w_B,
F = Hellwarth_energy_B
)
CSV.write("B_data.csv", B_data)
end
# ╔═╡ b1cf4fe2-8dda-4882-b39f-f23adb2738d1
begin
ZB = Array{ComplexF64}(undef, length(Ω_range), length(T_range))
for j in 1:length(T_range), i in 1:length(Ω_range)
println("Ω: $(Ω_range[i]), T: $(T_range[j])")
ZB[i, j] = multi_memory_function(Ω_range[i], β_red_hellwarth_B[j], [α_hellwarth_B], v_B[j], w_B[j], [B_scheme / 2π], 0.12) * 2π
CSV.write("B_conductivity_data.csv", DataFrames.DataFrame([[0.0, [i for i in T_range]...]'; [Ω_range 1 ./ ZB]], :auto))
end
end
# ╔═╡ a15e4d30-9ed2-492a-bfa4-0608180738c1
ZB
# ╔═╡ 2015d16c-e9f8-4072-834b-a317223b854f
Plots.plot(Ω_range, real.(1 ./ ZB), minorgrid = true, label = hcat(["T = $i K" for i in T_range]...), yaxis = :log)
# ╔═╡ 313a5d22-9a70-4c20-acb2-402c1683fbf8
Plots.plot(Ω_range, imag.(1 ./ ZB), minorgrid = true, label = hcat(["T = $i K" for i in T_range]...))
# ╔═╡ b8061ceb-1610-481b-986b-c5b82b9678db
Plots.plot(Ω_range, abs.(1 ./ ZB), minorgrid = true, label = hcat(["T = $i K" for i in T_range]...))
# ╔═╡ c7cdee43-9ac6-490b-9466-367a1f136766
# A Scheme
# ╔═╡ bb33a5c2-555b-4078-b278-90e5ae864fed
A_scheme = reverse([PolaronMobility.HellwarthAScheme(MAPI, T = i) for i in T_range])
# ╔═╡ 44604f2b-e5fd-438d-87df-0f10f874d00d
α_hellwarth_A = PolaronMobility.frohlichalpha.(4.5, 24.1, A_scheme .* 1e12, 0.12)
# ╔═╡ e858791b-e869-490f-9af3-2826f480d722
β_red_hellwarth_A = [ħ * 2π / kB / T_range[i] * A_scheme[i] * 1e12 for i in 1:length(T_range)]
# ╔═╡ 1f47a9e8-c2de-4963-ad58-aca71dbbb2ac
var_A = PolaronMobility.feynmanvw.(α_hellwarth_A, β_red_hellwarth_A)
# ╔═╡ 105665d5-ba53-4ddd-86df-dc40d5fefa8f
v_A = [i[1] for i in var_A]
# ╔═╡ 4468bf47-7668-4309-8f67-59fee2a1cf43
w_A = [i[2] for i in var_A]
# ╔═╡ 4bae3659-666b-4ae7-924a-b20d98a43148
Hellwarth_energy_A = F.(v_A, w_A, β_red_hellwarth_A, α_hellwarth_A) .* 1e3 .* ħ .* 2π .* A_scheme .* 1e12 ./ eV
# ╔═╡ 6e03cbc9-c6cd-440b-8652-fa1be4d7934a
begin
A_data = DataFrames.DataFrame(
alpha = α_hellwarth_A,
efffreq = A_scheme,
temp = T_range,
beta = β_red_hellwarth_A,
v = v_A,
w = w_A,
F = Hellwarth_energy_A
)
CSV.write("A_data.csv", A_data)
end
# ╔═╡ 53ac6ee6-f5d1-4923-9352-9d1cd96817fc
begin
ZA = Array{ComplexF64}(undef, length(Ω_range), length(T_range))
for j in 1:length(T_range), i in 1:length(Ω_range)
println("Ω: $(Ω_range[i]), T: $(T_range[j])")
ZA[i, j] = multi_memory_function(Ω_range[i], β_red_hellwarth_A[j], α_hellwarth_A[j], v_A[j], w_A[j], A_scheme[j] / 2π, 0.12) * 2π
CSV.write("A_conductivity_data.csv", DataFrames.DataFrame([[0.0, [i for i in T_range]...]'; [Ω_range 1 ./ ZA]], :auto))
end
end
# ╔═╡ 9ec88954-f8a6-4ae0-a800-3723de537d10
ZA
# ╔═╡ e129c967-858e-46cb-b6ce-29c238f45277
Plots.plot(Ω_range, real.(1 ./ ZA), label = hcat(["T = $i K" for i in T_range]...), minorgrid = true)
# ╔═╡ c8cdaa0e-05cb-4b9a-99dc-6932312ec56e
Plots.plot(Ω_range, imag.(1 ./ ZA), label = hcat(["T = $i K" for i in T_range]...), minorgrid = true)
# ╔═╡ 0f1066e0-d13a-4e1d-b9c0-c51509f25eb6
Plots.plot(Ω_range, abs.(1 ./ ZA), label = hcat(["T = $i K" for i in T_range]...), minorgrid = true)
# ╔═╡ Cell order:
# ╠═d09dec61-ab12-4424-bfaf-30f155c90ef9
# ╠═89fcb3a0-db48-11eb-30ac-b501d7fcd55f
# ╠═4a7ed3cb-88e4-4e86-90c1-285849994ab9
# ╠═8c54eedc-7c8f-4c5d-879e-62743e302801
# ╠═3edfd42b-4b8a-4080-b617-740ef3fbf76b
# ╠═97aa8c27-f2fe-418c-a662-906dbc126fb6
# ╠═d08e66f9-636b-4377-b653-389ee7b78a24
# ╠═50c1a877-807e-498e-87f9-0e909080a452
# ╠═e349bf0a-554f-46ae-8e88-8a7b80d0c4cd
# ╠═4cd925a7-048a-4696-b2b9-6a6b394e0528
# ╠═b04ccf74-853d-4ab2-886f-5b6c21cc9a51
# ╠═4e349b51-0590-4f98-b777-f13db8050b6d
# ╠═1c6fff5f-839a-43e1-acfe-040df2ed4822
# ╠═2f524fa1-c08b-4c11-b05a-e2d016ce6ec0
# ╠═8510da63-37d7-45d0-9012-8dd17745a9e8
# ╠═d9fca06f-ee9c-4790-a059-98667dcd8428
# ╠═04e16581-ca4f-4456-bea2-2e8bf44a08f8
# ╠═ba626ebc-d7da-4eca-8149-907d724a2ef5
# ╠═af26a6c8-9c97-4130-bd54-c9fe40e58879
# ╠═dd41fbf9-b4b9-46b9-abbf-96eddf59b0ad
# ╠═2975a6b8-bcec-4e4e-be94-5a3897c650db
# ╠═748d6916-6125-4f9a-adbf-cee3b25dc3ba
# ╠═a304f008-b3fa-4a92-a8c1-9ce2f7b4b3df
# ╠═5652b186-0e8d-469c-bfea-bf665f75c06a
# ╠═2e0eb8f9-3b6b-4464-b715-258c96e22422
# ╠═143b1c45-ce4b-4f3c-9674-ff181c64fe90
# ╠═3900999b-fdfa-48ae-afd4-bca5d03008e3
# ╠═30d37afa-7b70-479f-8dcc-860af723a96e
# ╠═9c140cb6-286b-4e25-a3dc-829b1eea9dfb
# ╠═27af9453-8044-4b1f-85fd-9e2c5dd104eb
# ╠═65a76ecd-1dcd-4d5c-88be-1b57d31369da
# ╠═6a793986-844a-4a82-84b0-b71a48aa8242
# ╠═146bcc43-15fc-45de-bb9b-f16a68d84e41
# ╠═3c7564b0-b9fe-49e8-9ad7-eaa80e9841a7
# ╠═0c424ddb-aecd-4fc6-9f26-54bb1fc9f099
# ╠═fff9cb8d-00aa-426c-bb66-4b7b21871c36
# ╠═8ace5afe-29da-4bd1-9599-b51c03b67b6e
# ╠═fab3ad29-61f6-45dd-b63f-4ea40c960afb
# ╠═3fb0f337-c6dd-4f56-a694-00d1c2f403bd
# ╠═53117290-63b5-469c-93a9-bab8a40b2658
# ╠═a6b7c896-04d8-4704-8173-e8895ff84cbd
# ╠═6d322516-d247-4bd0-bcd5-9b8371b47750
# ╠═ae756cc9-f4ca-4073-abff-c56ecd1fdade
# ╠═4c90b122-1bb9-460e-ac68-608ca8074a50
# ╠═83068836-36d9-42aa-9867-7555d89e0d42
# ╠═8082688f-ae0f-4aad-9bb9-71852be0fe00
# ╠═466354b5-7d93-4e2b-ab6d-f7a01112fbfb
# ╠═b1cf4fe2-8dda-4882-b39f-f23adb2738d1
# ╠═a15e4d30-9ed2-492a-bfa4-0608180738c1
# ╠═2015d16c-e9f8-4072-834b-a317223b854f
# ╠═313a5d22-9a70-4c20-acb2-402c1683fbf8
# ╠═b8061ceb-1610-481b-986b-c5b82b9678db
# ╠═c7cdee43-9ac6-490b-9466-367a1f136766
# ╠═bb33a5c2-555b-4078-b278-90e5ae864fed
# ╠═44604f2b-e5fd-438d-87df-0f10f874d00d
# ╠═e858791b-e869-490f-9af3-2826f480d722
# ╠═1f47a9e8-c2de-4963-ad58-aca71dbbb2ac
# ╠═105665d5-ba53-4ddd-86df-dc40d5fefa8f
# ╠═4468bf47-7668-4309-8f67-59fee2a1cf43
# ╠═4bae3659-666b-4ae7-924a-b20d98a43148
# ╠═6e03cbc9-c6cd-440b-8652-fa1be4d7934a
# ╠═53ac6ee6-f5d1-4923-9352-9d1cd96817fc
# ╠═9ec88954-f8a6-4ae0-a800-3723de537d10
# ╠═e129c967-858e-46cb-b6ce-29c238f45277
# ╠═c8cdaa0e-05cb-4b9a-99dc-6932312ec56e
# ╠═0f1066e0-d13a-4e1d-b9c0-c51509f25eb6
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 12232 | ### A Pluto.jl notebook ###
# v0.14.8
using Markdown
using InteractiveUtils
# ╔═╡ 8336bf6e-0fa8-11eb-1f48-37cfe47a6d0f
using Pkg
# ╔═╡ 8ae04a5a-0fa8-11eb-2821-8dc46ee73269
Pkg.activate("../")
# ╔═╡ 66923a50-0fa8-11eb-1547-cf8e289818b0
using Revise
# ╔═╡ 3f9bdb02-7028-449b-93fc-01c4d3632db4
using PolaronMobility
# ╔═╡ 2024f235-aca8-427b-8579-2c869a0ba901
using QuadGK
# ╔═╡ f0529460-0fa8-11eb-1bec-1feb30645d42
using Plots
# ╔═╡ ffff1d5b-e9db-4da4-b01c-8c8075023997
using Gnuplot
# ╔═╡ d263806b-0851-4854-ba06-df1071b3d38b
const hbar = const ħ = 1.05457162825e-34; # kg m2 / s
# ╔═╡ c6606f73-3c31-4df8-8585-81698966008a
const Boltzmann = const kB = 1.3806504e-23; # kg m2 / K s2
# ╔═╡ 8b357378-449b-45cb-aa8e-fa2a5bf5feed
T=10
# ╔═╡ c3fd3779-7c5c-4370-8378-66c4b0d963af
MAPIe=polaronmobility(T, 4.5, 24.1, 2.25E12, 0.12)
# ╔═╡ 386fd0a4-0faa-11eb-14e3-a3cdf3f3cb5d
#α=5
α=MAPIe.α[1]
# ╔═╡ a86c04ae-0faa-11eb-3565-7bd3108906b2
#v,w=feynmanvw(α) # Variational solution, athermal (original) action
# ╔═╡ 4306f2f4-0faa-11eb-1d32-dd8ade1d930a
f=2.25E12
# ╔═╡ b9a25625-38bd-43d7-a4b7-5a0da5a28772
ω=2π*f
# ╔═╡ 947530ce-e248-47af-ae49-34d698312d12
βred=ħ*ω/(kB*T)
# ╔═╡ b3e10abe-0faa-11eb-308e-91c4c0886b8b
v,w=feynmanvw(α, βred) # Variational solution, thermal (Osaka) action
# ╔═╡ 4b26ec8c-0faa-11eb-2af1-e3f5e39fb358
meff=0.12
# ╔═╡ 34a7c84e-0faa-11eb-08b6-83f4ab86b689
nurange=0.0:0.1:3.5 #I know this says nu, but due to the rescaling below, this is actually THz
# ╔═╡ ad10a50c-0fa8-11eb-30a9-1b1bb4fc26b7
oldX=PolaronMobility.ImX(nurange,v,w,βred,α,ω,meff*PolaronMobility.MassElectron)
# ╔═╡ 9ca217bf-985f-48fc-8a35-913c18fd79fc
plot(oldX.nu, oldX.ImX, label="ImX")
# ╔═╡ e45514ef-e24f-46ed-9844-b525e1042a80
βred1=ħ*2π*1E12/(kB*T)
# ╔═╡ 6ffe0fba-4146-43d4-90bd-dc325da74482
feynmanvw(α,βred1)
# ╔═╡ 2f09ce0a-8243-4e3f-9a3a-48ddf0a5b12a
βred2=ħ*2π*2.25E12/(kB*T)
# ╔═╡ 172d0553-d260-491a-9b94-79b865e3ee9a
feynmanvw(α,βred2)
# ╔═╡ 28040f04-9d08-449d-bc6c-079fae287657
X=[PolaronMobility.χ(nu, βred, α, v,w) for nu in nurange]
# ╔═╡ d721c0a3-234d-4824-9619-8a8159be9220
begin
plot(nurange.*f/1E12, imag.(X), label="ImX")
plot!(nurange.*f/1E12, real.(X), label="ReX")
end
# ╔═╡ 73ac4039-4675-4dce-8eab-b6635481406e
begin
# re-scaling to frequency directly within the selection of nurange
# i.e. now nurange is in THz
X1=[PolaronMobility.χ(nu, βred1, α,feynmanvw(α,βred1)...)/nu for nu in nurange./(1.0)]
X2=[PolaronMobility.χ(nu, βred2, α,feynmanvw(α,βred2)...)/nu for nu in nurange./(2.25)]
end
# ╔═╡ 399bb77e-13a9-41dc-b432-a9bc605af25a
begin
plot(nurange, imag.(X1), label="ImX 1")
plot!(nurange, real.(X1), label="ReX 1")
plot!(nurange, imag.(X2), label="ImX 2")
plot!(nurange, real.(X2), label="ReX 2")
end
# ╔═╡ d33d2c9d-ac56-47ac-a0ad-b769c2fcf245
begin
plot(nurange, imag.(X1+1.5*X2), label="ImX")
plot!(nurange, real.(X1+1.5*X2), label="ReX")
xlabel!("Frequeny (THz)")
ylabel!("Χ(ν)/ν")
end
# ╔═╡ 3474df75-bd91-4803-acf3-bd6f697a6163
begin
@gp nurange imag.(0.4*X1+0.6*X2) "w l t 'Im'"
@gp :- nurange real.(0.4*X1+0.6*X2) "w l t 'Re'"
@gp :- "set xlabel 'Frequency (THz)' "
@gp :- "set ylabel 'Χ(ν)/ν' "
end
# ╔═╡ 04a89c80-7ecc-49fe-90f1-e1e081824d87
Gnuplot.save(term="pngcairo size 1024,768", output="~/tmp_plot.png")
# ╔═╡ 7e796fb8-1149-44fa-9076-9d7c2641be03
#Notable Mode f= 2.4380741812443247e12 α_partial=0.33509445526579384
#Notable Mode f= 2.249091763771941e12 α_partial=0.46413279655805495
#Notable Mode f= 2.0796321906344238e12 α_partial=0.5034016572517709
#Notable Mode f= 2.0336707697261187e12 α_partial=0.14188851068346853
#Notable Mode f= 1.5673011873879714e12 α_partial=0.16044621957165453
#Notable Mode f= 1.0188379384951798e12 α_partial=0.16189515169321733
#Notable Mode f= 9.970130778462072e11 α_partial=0.14036635422200763
#Notable Mode f= 9.20178190638621e11 α_partial=0.18115470952505333
#Notable Mode f= 5.738689505255511e11 α_partial=0.3479224374216951
#Sum alpha: 2.658367465100708
0.33509445526579384+0.46413279655805495+0.5034016572517709+0.14188851068346853
# ╔═╡ cafcff56-6e56-4b92-8ef0-87c5df309c7a
0.16044621957165453+0.16189515169321733+0.14036635422200763+0.18115470952505333+0.3479224374216951
# ╔═╡ 8530958f-7390-470a-9b61-ce88046bc084
1.5/2.5
# ╔═╡ 41398cba-bb88-4d4a-a817-1de8f551cc9c
function σ(χ)
ϵr=χ+1
n=√ϵr # assuming relative permeability of MAPI is 1...
σ=im*(1-n)
σ
end
# ╔═╡ c21ad7eb-9d9b-4202-b4ad-b1206dc94b3c
σ(1+0im)
# ╔═╡ 775c2be5-5aa4-41e2-9956-8e4131bff73b
σ(0+1im)
# ╔═╡ dab2fc71-d8d8-4e6d-9c43-d85688ca7558
σ1=σ.([PolaronMobility.χ(nu, βred1, α,feynmanvw(α,βred1)...)/nu for nu in nurange./(1.0)])
# ╔═╡ 9b8b2293-2395-4285-86fe-1b7fb7895297
σ2=σ.([PolaronMobility.χ(nu, βred2, α,feynmanvw(α,βred2)...)/nu for nu in nurange./(2.25)])
# ╔═╡ 53303534-308e-448f-9051-2bc3d859dc14
Gnuplot.options.mime
# ╔═╡ cdba35db-b258-433c-9387-42b505e2efb4
begin
@gp nurange imag.(0.4*σ1+0.6*σ2) "w lp t 'Im'"
@gp :- nurange real.(0.4*σ1+0.6*σ2) "w lp t 'Re'"
@gp :- "set xlabel 'Frequency (THz)' "
@gp :- "set ylabel 'σ' "
Gnuplot.save("~/complex_conductivity_MAPI.gp")
Gnuplot.save(term="pngcairo size 1024,768 fontscale 2 pointscale 2 linewidth 2", output="~/complex_conductivity_MAPI.png")
end
# ╔═╡ e0c76116-8c8a-4053-86c7-2f7c48f808bf
begin
@gp nurange imag.(σ1) "w lp t '1THz phonons Im'"
@gp :- nurange real.(σ1) "w lp t '1THz phonons Re'"
@gp :- nurange imag.(σ2) "w lp t '2.25THz phonons Im'"
@gp :- nurange real.(σ2) "w lp t '2.25THz phonons Re'"
@gp :- nurange imag.(0.4*σ1+0.6*σ2) "w lp t 'Combined Im'"
@gp :- nurange real.(0.4*σ1+0.6*σ2) "w lp t 'Combined Re'"
@gp :- "set xlabel 'Frequency (THz)' "
@gp :- "set ylabel 'σ' "
end
# ╔═╡ 1880d08f-f808-4690-8ad1-af1616cda0bf
# Multiple branch free energy optimisation
# ╔═╡ e39b7ce9-5396-4065-ba6a-eac83e626794
MAPI= [
# 96.20813558773261 0.4996300522819191
# 93.13630357703363 1.7139631746083817
# 92.87834578121567 0.60108592692181
# 92.4847918585963 0.0058228799414729
# 92.26701437594754 0.100590086574602
# 89.43972834606603 0.006278895133832249
# 46.89209141511332 0.2460894564364346
# 46.420949316788 0.14174282581124137
# 44.0380222871706 0.1987196948553428
# 42.89702947649343 0.011159939465770681
# 42.67180170168193 0.02557751102757614
# 41.46971205834201 0.012555230726601503
# 37.08982543385215 0.00107488277468418
# 36.53555265689563 0.02126940080871224
# 30.20608114002676 0.009019481779712388
# 27.374810898415028 0.03994453721421388
# 26.363055017011728 0.05011922682554448
# 9.522966890022039 0.00075631870522737
4.016471586720514 0.08168931020200264
3.887605410774121 0.006311654262282101
3.5313112232401513 0.05353548710183397
2.755392921480459 0.021303020776321225
2.4380741812443247 0.23162784335484837
2.2490917637719408 0.2622203718355982
2.079632190634424 0.23382298607799906
2.0336707697261187 0.0623239656843172
1.5673011873879714 0.0367465760261409
1.0188379384951798 0.0126328938653956
1.0022960504442775 0.006817361620021601
0.9970130778462072 0.0103757951973341
0.9201781906386209 0.01095811116040592
0.800604081794174 0.0016830270365341532
0.5738689505255512 0.00646428491253749
# 0.022939578929507105 8.355742795827834e-06 # Acoustic modes!
# 0.04882611767873102 8.309858592685e-06
# 0.07575149723846182 2.78248540373041e-05
]
# ╔═╡ 3f2969ce-53c4-44ce-b442-c6c1e4c8e63c
v_params, w_params = PolaronMobility.multi_variation(0.01, 4.5, 0.12, (6.29e-10)^3, MAPI; N = 1)
# ╔═╡ 9f8e375a-e45d-430e-89f0-e62573f2f45b
F_j = [PolaronMobility.multi_free_energy(v_params[j, :], w_params[j, :], 10, 4.5, 0.12, (6.29e-10)^3, MAPI, j) for j in 1:length(MAPI[:, 1])]
# ╔═╡ b0fc3a52-b4da-4ac4-a36e-e6229cd1f20e
F_total = sum(F_j)
# ╔═╡ d36a215e-9411-4332-82cf-caa87a56c7f4
# multiple branch susceptibility and conductivity
# ╔═╡ c2e007f4-dac0-4be5-ab55-10186fb34d61
phonon_mode_freqs = MAPI[:, 1]
# ╔═╡ ecd96809-9808-46fa-9405-884aeb8c7e6e
ir_activities = MAPI[:, 2]
# ╔═╡ f0d30402-ee5f-4cf9-b4bd-af35a102f71d
ϵ_ionic = [PolaronMobility.ϵ_ionic_mode(f, r, (6.29e-10)^3) for (f, r) in zip(phonon_mode_freqs, ir_activities)]
# ╔═╡ e2faa878-0ad1-42f7-99e8-53699c1c3468
ϵ_total = sum(ϵ_ionic)
# ╔═╡ 2d161b89-5594-4601-bb8e-c1748ade6269
α_j = [PolaronMobility.frohlich_α_j(4.5, ϵ_i, ϵ_total, f, 0.12) for (ϵ_i, f) in zip(ϵ_ionic, phonon_mode_freqs)]
# ╔═╡ 928e7f3b-6eab-4081-94bf-a4fa3a953f35
α_eff = sum(α_j)
# ╔═╡ 1dd3fcda-6818-4601-9fa4-7b75a07ee8d8
βr = [ħ * 2π * 1e12 * f / kB / 40 for f in phonon_mode_freqs]
# ╔═╡ 9b410a25-1c09-4bcb-b06d-63c928ab5bbc
Ω_range = 0.01:0.01:2.5
# ╔═╡ d20fd376-b5a6-48ce-9380-fccf420bdddd
Plots.PyPlotBackend()
# ╔═╡ c69faa18-759e-465c-b720-d8c6d429780d
χ = [PolaronMobility.multi_impedence(Ω, βr, α_j, v_params, w_params, phonon_mode_freqs, 0.12) for Ω in Ω_range]
# ╔═╡ e052454b-f885-4d76-8eb1-baedeff24e1e
begin
χ_plot = plot(Ω_range, (imag.(χ)), xlabel = "Frequency (THz)", ylabel = "z", label = "Imz", minorgrid = true, markershape = :circle)
plot!(χ_plot, Ω_range, (real.(χ)), label = "Rez", markershape = :circle)
end
# ╔═╡ dbe241ba-5b5c-45d0-9d63-3ccefc82766f
σ_new = PolaronMobility.multi_conductivity(Ω_range, χ)
# ╔═╡ ec793073-968b-447b-a445-9182f1cfdf0f
begin
σ_plot = plot(Ω_range, (real.(σ_new)), xlabel = "Frequency (THz)", ylabel = "σ", label = "Reσ", legend = :bottomright, minorgrid = true, markershape = :circle)
plot!(σ_plot, Ω_range, (imag.(σ_new)), label = "Imσ", markershape = :circle)
end
# ╔═╡ 36f09479-cf29-4a0f-9f97-81169abbcd9b
σ_abs_plot = plot(Ω_range, (sqrt.(abs.(σ_new))), xlabel = "Frequency (THz)", ylabel = "abs(σ)", legend = false, minorgrid = true, markershape = :circle)
# ╔═╡ Cell order:
# ╠═d263806b-0851-4854-ba06-df1071b3d38b
# ╠═c6606f73-3c31-4df8-8585-81698966008a
# ╠═66923a50-0fa8-11eb-1547-cf8e289818b0
# ╠═8336bf6e-0fa8-11eb-1f48-37cfe47a6d0f
# ╠═8ae04a5a-0fa8-11eb-2821-8dc46ee73269
# ╠═3f9bdb02-7028-449b-93fc-01c4d3632db4
# ╠═2024f235-aca8-427b-8579-2c869a0ba901
# ╠═8b357378-449b-45cb-aa8e-fa2a5bf5feed
# ╠═c3fd3779-7c5c-4370-8378-66c4b0d963af
# ╠═386fd0a4-0faa-11eb-14e3-a3cdf3f3cb5d
# ╠═a86c04ae-0faa-11eb-3565-7bd3108906b2
# ╠═947530ce-e248-47af-ae49-34d698312d12
# ╠═b3e10abe-0faa-11eb-308e-91c4c0886b8b
# ╠═4306f2f4-0faa-11eb-1d32-dd8ade1d930a
# ╠═b9a25625-38bd-43d7-a4b7-5a0da5a28772
# ╠═4b26ec8c-0faa-11eb-2af1-e3f5e39fb358
# ╠═34a7c84e-0faa-11eb-08b6-83f4ab86b689
# ╠═ad10a50c-0fa8-11eb-30a9-1b1bb4fc26b7
# ╠═f0529460-0fa8-11eb-1bec-1feb30645d42
# ╠═9ca217bf-985f-48fc-8a35-913c18fd79fc
# ╠═e45514ef-e24f-46ed-9844-b525e1042a80
# ╠═6ffe0fba-4146-43d4-90bd-dc325da74482
# ╠═2f09ce0a-8243-4e3f-9a3a-48ddf0a5b12a
# ╠═172d0553-d260-491a-9b94-79b865e3ee9a
# ╠═28040f04-9d08-449d-bc6c-079fae287657
# ╠═d721c0a3-234d-4824-9619-8a8159be9220
# ╠═73ac4039-4675-4dce-8eab-b6635481406e
# ╠═399bb77e-13a9-41dc-b432-a9bc605af25a
# ╠═d33d2c9d-ac56-47ac-a0ad-b769c2fcf245
# ╠═ffff1d5b-e9db-4da4-b01c-8c8075023997
# ╠═3474df75-bd91-4803-acf3-bd6f697a6163
# ╠═04a89c80-7ecc-49fe-90f1-e1e081824d87
# ╠═7e796fb8-1149-44fa-9076-9d7c2641be03
# ╠═cafcff56-6e56-4b92-8ef0-87c5df309c7a
# ╠═8530958f-7390-470a-9b61-ce88046bc084
# ╠═41398cba-bb88-4d4a-a817-1de8f551cc9c
# ╠═c21ad7eb-9d9b-4202-b4ad-b1206dc94b3c
# ╠═775c2be5-5aa4-41e2-9956-8e4131bff73b
# ╠═dab2fc71-d8d8-4e6d-9c43-d85688ca7558
# ╠═9b8b2293-2395-4285-86fe-1b7fb7895297
# ╠═53303534-308e-448f-9051-2bc3d859dc14
# ╠═cdba35db-b258-433c-9387-42b505e2efb4
# ╠═e0c76116-8c8a-4053-86c7-2f7c48f808bf
# ╠═1880d08f-f808-4690-8ad1-af1616cda0bf
# ╠═e39b7ce9-5396-4065-ba6a-eac83e626794
# ╠═3f2969ce-53c4-44ce-b442-c6c1e4c8e63c
# ╠═9f8e375a-e45d-430e-89f0-e62573f2f45b
# ╠═b0fc3a52-b4da-4ac4-a36e-e6229cd1f20e
# ╠═d36a215e-9411-4332-82cf-caa87a56c7f4
# ╠═c2e007f4-dac0-4be5-ab55-10186fb34d61
# ╠═ecd96809-9808-46fa-9405-884aeb8c7e6e
# ╠═f0d30402-ee5f-4cf9-b4bd-af35a102f71d
# ╠═e2faa878-0ad1-42f7-99e8-53699c1c3468
# ╠═2d161b89-5594-4601-bb8e-c1748ade6269
# ╠═928e7f3b-6eab-4081-94bf-a4fa3a953f35
# ╠═1dd3fcda-6818-4601-9fa4-7b75a07ee8d8
# ╠═9b410a25-1c09-4bcb-b06d-63c928ab5bbc
# ╠═d20fd376-b5a6-48ce-9380-fccf420bdddd
# ╠═c69faa18-759e-465c-b720-d8c6d429780d
# ╠═e052454b-f885-4d76-8eb1-baedeff24e1e
# ╠═dbe241ba-5b5c-45d0-9d63-3ccefc82766f
# ╠═ec793073-968b-447b-a445-9182f1cfdf0f
# ╠═36f09479-cf29-4a0f-9f97-81169abbcd9b
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 8364 | ### A Pluto.jl notebook ###
# v0.14.8
using Markdown
using InteractiveUtils
# ╔═╡ c14d5f69-8ed3-4ad7-b094-8de94394ad8e
using Revise
# ╔═╡ 3bbf5ec7-c772-4a1a-9eab-c0f26a99e94f
using PolaronMobility
# ╔═╡ f088c85f-4d12-4f4c-8e3e-318652b68a43
using Plots
# ╔═╡ 2b5f21a3-1130-47cd-9938-f49a60048e27
using DataFrames
# ╔═╡ b38c2c58-689b-48f9-b5b1-1499651e1928
using CSV
# ╔═╡ e9685260-9ece-4c3b-b110-096a7c39857b
using QuadGK
# ╔═╡ e495c578-ac0e-46c3-8f2f-aa0541cf3574
using Optim
# ╔═╡ 7f124d90-0430-11ec-129e-bf0ec7dbda06
# ESA Results
# ╔═╡ bf2bb3d0-6f5d-412a-8f9e-b10cb30560bd
begin
ħ = 1.05457162825e-34
eV = 1.602176487e-19
me = 9.10938188e-31
kB = 1.3806504e-23
ϵ_0 = 8.854E-12
amu = 1.660_539_066_60e-27
Ha = 4.35974820e-18
Bohr = 5.29177249e-11
c = 2.99792458e8
end
# ╔═╡ 802b2d3b-d1d8-40c7-9f34-407780385457
α_range = 1:12
# ╔═╡ 30fe032c-f911-4f7e-aa24-1fb473ecf9e0
β_range = vcat([i for i in 0.1:0.1:8.0], [100.0])
# ╔═╡ 71355321-bb21-42d5-9966-60a9438b762c
Ω_range = vcat([1e-200], [i for i in 0.01:0.1:20.01])
# ╔═╡ a1161327-a8e8-44a0-8af7-b14d437ae14c
ω = 1
# ╔═╡ f40b9810-6a0e-4627-a290-80a446d101c8
m = 1
# ╔═╡ 95538cd0-3588-423a-ab1a-95915ee60828
begin
# Equation 31: The <|X(t) - X(s)|^{-1}> * exp(-|t-w|) effective action.
A_integrand(x, v, w) = (w^2 * x + (v^2 - w^2) / v * (abs(1 - exp(-v * x))))^(-0.5) * exp(-x)
A(v, w, α) = π^(-0.5) * α * v * QuadGK.quadgk(x -> A_integrand(x, v, w), BigFloat(0.0), Inf)[1]
# Equation 33: Lowest Free energy E = -B - A where B = -3/(4v)*(v-w)^2.
free_energy(v, w, α) = (3 / (4 * v)) * (v - w)^2 - A(v, w, α)
end
# ╔═╡ 5eaec90c-f922-496e-a388-f40a49f38b26
begin
# Equation 62d in Hellwarth.
Y(x, v, β) = 1 / (1 - exp(-v * β)) * (1 + exp(-v * β) - exp(-v * x) - exp(v * (x - β)))
# Integrand of Equation 62c in Hellwarth.
A_integrand(x, v, w, β) = (exp(β - x) + exp(x)) / sqrt(1e-10 + abs(w^2 * x * (1 - x / β) + Y(x, v, β) * (v^2 - w^2) / v))
# Equation 62c in Hellwarth.
A(v, w, α, β) = α * v / (sqrt(π) * (exp(BigFloat(β)) - 1)) * QuadGK.quadgk(x -> A_integrand(x, v, w, β), BigFloat(0), BigFloat(β / 2))[1]
# Equation 62b in Hellwarth. Equation 20 in Osaka.
B(v, w, β) = 3 / β * (log(v / w) - 1 / 2 * log(2 * π * BigFloat(β)) - log(sinh(v * BigFloat(β) / 2) / sinh(w * BigFloat(β) / 2)))
# Equation 62e in Hellwarth. Equation 17 in Osaka.
C(v, w, β) = 3 / 4 * (v^2 - w^2) / v * (coth(v * BigFloat(β) / 2) - 2 / (v * β))
# Equation 62a in Hellwarth. In paragraph below Equation 22 in Osaka; has extra 1/ β due to different definition of A, B & C.
function free_energy(v, w, α, β)
setprecision(BigFloat, 32)
a = A(v, w, α, β)
b = B(v, w, β)
c = C(v, w, β)
-(a + b + c)
end
end
# ╔═╡ 5568b92e-5a20-4771-b440-4de309b6173c
function variation(α, β; v = 0.0, w = 0.0)
initial = [v, w]
# Limits of the optimisation.
lower = [1, 1]
upper = [200, 200]
# Osaka Free Energy function to minimise.
f(x) = free_energy(x[1], x[2], α, β)
# Use Optim to optimise the free energy function w.r.t v and w.
solution = Optim.optimize(
Optim.OnceDifferentiable(f, initial; autodiff = :forward),
lower,
upper,
initial,
Fminbox(BFGS()),
)
# Get v and w values that minimise the free energy.
v, w = Optim.minimizer(solution)
println("v: $v, w: $w")
# Return variational parameters that minimise the free energy.
return v, w
end
# ╔═╡ 6fc1e642-77ef-49bb-895d-a4006b563f5e
function feynamn_mass(α, v, w, m, ω)
j(τ) = 1 + (v * ω / w^2) * (1 - w^2 / v^2) * (1 - exp(-v * τ / ω)) / τ
integrand(τ) = exp(-τ) * τ^(1/2) * j(τ)^(-3/2)
return m * (1 + α * (v / w)^3 / (3 * π^(1/2)) * quadgk(τ -> integrand(τ), 0.0, Inf)[1])
end
# ╔═╡ ba42efa0-8f26-4ff1-a0ac-a56c626c7525
begin
v = Array{Float64}(undef, length(β_range), length(α_range))
w = Array{Float64}(undef, length(β_range), length(α_range))
FE = Array{Float64}(undef, length(β_range), length(α_range))
M = Array{Float64}(undef, length(β_range), length(α_range))
for α in 1:length(α_range), β in 1:length(β_range)
println("α: $(α_range[α]), β: $(β_range[β])")
if β == 1
v[β, α], w[β, α] = variation(α_range[α], β_range[β]; v = 4.0, w = 2.0)
else
v[β, α], w[β, α] = variation(α_range[α], β_range[β]; v = v[β-1, α], w = w[β-1, α])
end
FE[β, α] = free_energy(v[β, α], w[β, α], α_range[α], β_range[β])
M[β, α] = feynamn_mass(α_range[α], v[β, α], w[β, α], m, ω)
CSV.write("v_data.csv", DataFrames.DataFrame([[0.0, [i for i in α_range]...]'; [β_range v]], :auto))
CSV.write("w_data.csv", DataFrames.DataFrame([[0.0, [i for i in α_range]...]'; [β_range w]], :auto))
CSV.write("F_data.csv", DataFrames.DataFrame([[0.0, [i for i in α_range]...]'; [β_range FE]], :auto))
CSV.write("M_data.csv", DataFrames.DataFrame([[0.0, [i for i in α_range]...]'; [β_range M]], :auto))
end
end
# ╔═╡ c6a84269-a382-4fbd-a102-8a949fe531ec
v
# ╔═╡ 0e9a3b4a-4626-4efb-8925-f493f0ab5f34
w
# ╔═╡ 441cd179-c28f-4e23-ae23-e6a65d7edb46
FE
# ╔═╡ 3b93da85-80a2-466e-b28e-dcf22b4ff0fe
M
# ╔═╡ 2405eb4e-b81c-46fb-94a3-50456b4d7512
begin
# Integrand of (31) in Feynman I (Feynman 1955, Physical Review, "Slow electrons...")
fF(τ, v, w) = (abs(w^2 * τ + (v^2 - w^2) / v * (1 - exp(- v * τ))))^-0.5 * exp(-τ)
# (31) in Feynman I
AF(v,w,α) = π^(-0.5) * α * v * quadgk(τ -> fF(τ, v, w), 0, Inf)[1]
# (33) in Feynman I
F(v,w,α) = (3 / (4 * v)) * (v - w)^2 - AF(v, w, α)
end
# ╔═╡ ae352c06-69fe-41fa-ad4c-bafb23235012
function complex_conductivity(Ω, β, α, v, w)
println("α = $α, Ω = $Ω")
# FHIP1962, page 1011, eqn (47c).
R = (v^2 - w^2) / (w^2 * v)
# FHIP1962, page 1009, eqn (35c).
D(x) = w^2 / v^2 * (R * (1 - cos(v * x)) * coth(β * v / 2) + x^2 / β - 1im * (R * sin(v * x) + x))
# FHIP1962, page 1009, eqn (36).
S(x) = 2 * α / (3 * √π) * (exp(1im * x) + 2 * cos(x) / (exp(β) - 1)) / (D(x))^(3 / 2)
# FHIP1962, page 1009, eqn (35a).
integrand(x) = (1 - exp(1im * Ω * x)) * imag(S(x)) / Ω
1 / (-1im * Ω + 1im * QuadGK.quadgk(x -> integrand(x), 0.0, Inf)[1])
end
# ╔═╡ 6d015de5-3c44-400c-ba60-80d645a2789c
begin
σ = Array{ComplexF64}(undef, length(Ω_range), length(β_range))
for α in 1:length(α_range)
for β in 1:length(β_range), Ω in 1:length(Ω_range)
println("α: $(α_range[α]), β: $(β_range[β]), Ω: $(Ω_range[Ω])")
σ[Ω, β] = complex_conductivity(Ω_range[Ω], β_range[β], α_range[α], v[β, α], w[β, α])
end
CSV.write("conductivity_data_$α.csv", DataFrames.DataFrame([[0.0, [i for i in β_range]...]'; [Ω_range σ]], :auto))
end
end
# ╔═╡ 8f052fb6-65bd-4c5f-b931-af616548fb79
σ
# ╔═╡ 38f4dfbc-9a01-494c-8674-0d1b1cc324d3
contour_real = Plots.contourf(Ω_range, β_range, log.(abs.(real.(σ)))', xlabel = "Ω (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12)
# ╔═╡ 22c03bea-a0d5-4291-a568-f29c21d46443
begin
plot(β_range[1:end-1], v[1:end-1])
plot!(β_range[1:end-1], w[1:end-1])
end
# ╔═╡ 35d0a3c8-025c-4e63-a65d-0010baf5b61c
plot(β_range[1:end-1], M[1:end-1])
# ╔═╡ Cell order:
# ╠═7f124d90-0430-11ec-129e-bf0ec7dbda06
# ╠═c14d5f69-8ed3-4ad7-b094-8de94394ad8e
# ╠═3bbf5ec7-c772-4a1a-9eab-c0f26a99e94f
# ╠═f088c85f-4d12-4f4c-8e3e-318652b68a43
# ╠═2b5f21a3-1130-47cd-9938-f49a60048e27
# ╠═b38c2c58-689b-48f9-b5b1-1499651e1928
# ╠═e9685260-9ece-4c3b-b110-096a7c39857b
# ╠═e495c578-ac0e-46c3-8f2f-aa0541cf3574
# ╠═bf2bb3d0-6f5d-412a-8f9e-b10cb30560bd
# ╠═802b2d3b-d1d8-40c7-9f34-407780385457
# ╠═30fe032c-f911-4f7e-aa24-1fb473ecf9e0
# ╠═71355321-bb21-42d5-9966-60a9438b762c
# ╠═a1161327-a8e8-44a0-8af7-b14d437ae14c
# ╠═f40b9810-6a0e-4627-a290-80a446d101c8
# ╠═95538cd0-3588-423a-ab1a-95915ee60828
# ╠═5568b92e-5a20-4771-b440-4de309b6173c
# ╠═5eaec90c-f922-496e-a388-f40a49f38b26
# ╠═6fc1e642-77ef-49bb-895d-a4006b563f5e
# ╠═ba42efa0-8f26-4ff1-a0ac-a56c626c7525
# ╠═c6a84269-a382-4fbd-a102-8a949fe531ec
# ╠═0e9a3b4a-4626-4efb-8925-f493f0ab5f34
# ╠═441cd179-c28f-4e23-ae23-e6a65d7edb46
# ╠═3b93da85-80a2-466e-b28e-dcf22b4ff0fe
# ╠═2405eb4e-b81c-46fb-94a3-50456b4d7512
# ╠═ae352c06-69fe-41fa-ad4c-bafb23235012
# ╠═6d015de5-3c44-400c-ba60-80d645a2789c
# ╠═8f052fb6-65bd-4c5f-b931-af616548fb79
# ╠═38f4dfbc-9a01-494c-8674-0d1b1cc324d3
# ╠═22c03bea-a0d5-4291-a568-f29c21d46443
# ╠═35d0a3c8-025c-4e63-a65d-0010baf5b61c
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 17103 | ### A Pluto.jl notebook ###
# v0.14.8
using Markdown
using InteractiveUtils
# ╔═╡ ec4e1740-0b51-11ec-3fa2-d3c1d67f4572
using Revise
# ╔═╡ 9e67b5cd-f084-4bd4-9eb0-b94311184197
using CSV
# ╔═╡ b2a2fdb9-949a-498c-ac19-dab106582558
using DataFrames
# ╔═╡ 72553f5c-276d-4256-8354-04154017d346
using Plots
# ╔═╡ 67b93cb9-6335-448e-a09e-ead44db9d5c3
using LaTeXStrings
# ╔═╡ d20b171e-1bd3-44aa-b067-7bf1a3c0227e
Ω = real.(parse.(ComplexF64, (CSV.File("conductivity_data_6.csv") |> Tables.matrix)[3:end, 1]))
# ╔═╡ 8c909d72-7f28-49ed-9f6f-6b7f77e4e984
β = real.(parse.(ComplexF64, (CSV.File("conductivity_data_6.csv") |> Tables.matrix)[1, 2:end-1]))
# ╔═╡ 2980129c-4be6-4928-8bfe-b6b13eb0d50a
T = 1 ./ β
# ╔═╡ 29d4a2e3-692b-48b3-9ce0-fca83b55e8d3
v = real.((CSV.File("v_data.csv") |> Tables.matrix)[2:end-1, 2:end])
# ╔═╡ eab11453-2f25-493a-84e4-307231496653
v_0 = real.((CSV.File("v_data.csv") |> Tables.matrix)[end, 2:end])
# ╔═╡ 136a409d-9ea0-40ab-998a-f5bf954315ca
α = 1:12
# ╔═╡ a1bef2ba-0fb0-4a43-a09d-4e2e5ab6e069
w = real.((CSV.File("w_data.csv") |> Tables.matrix)[2:end-1, 2:end])
# ╔═╡ 671bed0e-082a-4b3a-9467-7be0ee2327df
w_0 = real.((CSV.File("w_data.csv") |> Tables.matrix)[end, 2:end])
# ╔═╡ a7431fd9-588a-41f1-b3d8-ef15837ccf75
F = real.((CSV.File("F_data.csv") |> Tables.matrix)[2:end-1, 2:end])
# ╔═╡ f7746913-7afa-4bce-b261-9532bd6f27cb
F_0 = real.((CSV.File("F_data.csv") |> Tables.matrix)[end, 2:end])
# ╔═╡ 780dd0f5-b922-4691-94b5-fa9881381c07
M = real.((CSV.File("M_data.csv") |> Tables.matrix)[2:end-1, 2:end])
# ╔═╡ d3f88ec2-6f32-4429-a34b-4db33fc55433
M_0 = real.((CSV.File("M_data.csv") |> Tables.matrix)[end, 2:end])
# ╔═╡ 39cff408-72c6-42ea-8172-d9d0fb9e94fc
σ = [parse.(ComplexF64, (CSV.File("conductivity_data_$i.csv") |> Tables.matrix)[3:end, 2:end-1]) for i in α]
# ╔═╡ 8e432e19-984e-4727-ab9c-25894e2585d8
σ_0 = hcat([parse.(ComplexF64, (CSV.File("conductivity_data_$i.csv") |> Tables.matrix)[3:end, end]) for i in α]...)
# ╔═╡ 83972098-4232-437e-9d2d-7620c17672f0
σ_0_dc = hcat([parse.(ComplexF64, (CSV.File("conductivity_data_$i.csv") |> Tables.matrix)[2, end]) for i in α]...)
# ╔═╡ d8762608-09eb-4ea0-9a84-5f46673a619d
σ_dc = hcat([parse.(ComplexF64, (CSV.File("conductivity_data_$i.csv") |> Tables.matrix)[2, 2:end-1]) for i in α]...)
# ╔═╡ 9ab20c3a-a0f5-4938-9339-720630fbd48b
dc_σ_real = Plots.contourf(α, reverse(T), reverse(log.(real.(σ_dc)), dims = 1), xlabel = "α", ylabel = "T / ω", fill = cgrad(:thermal, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, xticks = (1:12, hcat(["$i" for i in 1:12]...)), yticks = ([0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0], hcat([0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0]...)), yaxis = :log, right_margin = 4Plots.mm)
# ╔═╡ ed78a2eb-3313-4cae-b0d3-2118f5dff33f
savefig(dc_σ_real, "dc_mobility.pdf")
# ╔═╡ f524e982-6208-44bc-86df-ccfa851b0c92
athermal_theory = plot(α, [-F_0, M_0, v_0, w_0], yaxis = :log, legend = :topleft, linewidth = 3, linestyle = :auto, labels = [L"-\textrm{E_{gs}}" L"\textrm{m_p}" L"\textrm{v}" L"\textrm{w}" L"\textrm{\mu_0 (10^{6})}"], xlabel = "α", xticks = (1:12, ["$i" for i in 1:12]), ylabel = "Athermal Theory", tickfontsize = 12, labelfontsize = 12, legendfontsize = 12, size = (550, 550), yticks = ([1, 2, 4, 8, 16, 32, 64, 128, 256], ["1" "2" "4" "8" "16" "32" "64" "128" "256"]), ylims = (0.8, 256))
# ╔═╡ 9f09e259-014e-48b0-bd00-f7e2c9c897b3
plot(T, real.(σ_dc), ylims = (0.001, 10), linestyle = :dash, marker = :circle, xaxis = :log, yaxis = :log, legend = false)
# ╔═╡ ccda1394-45b4-4a9a-8c14-425cb0b81a87
log(v[end, 9])
# ╔═╡ fadad1b3-6da6-4724-be97-469d81641d8f
plot(α, real.(σ_dc)'[:, 1:10:end], linestyle = :dash, marker = :circle, legend = :outerright, yaxis = :log, label = hcat(["$(T[i])" for i in 1:10:length(T)]...))
# ╔═╡ 3918264a-f72b-4b4c-b67f-cd6fa4c6c846
savefig(athermal_theory, "athermal_theory.pdf")
# ╔═╡ c1d56910-a645-40ed-a5d8-0f7d5be19ae7
plot(Ω, hcat([real.(σ_0[:, i]) ./ maximum(real.(σ_0[:, i])) for i in 1:12]...), labels = hcat(["α = $i" for i in 1:12]...), linewidth = 2, legend = :outerright, xlabel = "Ω / ω", ylabel = "σ(Ω) [arb]", minorgrid= true)
# ╔═╡ 19065839-85a3-4768-830e-26f64bf4a278
hcat([real.(σ_0[:, i]) ./ maximum(real.(σ_0[:, i])) for i in 1:12]...)
# ╔═╡ 7c978142-5319-45f8-b854-efac81271fcc
function ridgeline(x, y, z; shift = 1, jump = 10, ylabel = :none, xlabel = :none, palette = :twilight, linewidth = 1.5, color = :black, size = (595, 842), ymirror = false, fillalpha = 1, step = 1)
if !ymirror
p = plot(x, z[:, 1], fillrange = z[:, 2 * jump] .- shift, fillalpha = fillalpha, ylabel = ylabel, xlabel = xlabel, xticks = (0:maximum(x)/10:maximum(x), string.(x[1:Int(floor((length(x)-1)/10)):end])), yticks = (z[1, 1:jump * step:end] .- shift .* range(0, stop = length(y[1:jump:end]) - 1, step = step), string.(y[1:jump * step:end])), legend = false, size = size, grid = false, ymirror = ymirror, palette = palette, tickfontsize = 12, labelfontsize = 12)
else
p = plot(x, z[:, 1], fillrange = z[:, 2 * jump] .- 2 * shift, fillalpha = fillalpha, ylabel = ylabel, xlabel = xlabel, xticks = (0:maximum(x)/11:maximum(x), string.(reverse(reverse(x)[1:Int(floor(length(x)/11)):end]))), yticks = (z[end, 1:jump * step:end] .- shift .* range(0, stop = length(y[1:jump:end]) - 1, step = step), string.(y[1:jump * step:end])), legend = false, size = size, grid = false, ymirror = ymirror, palette = palette, tickfontsize = 12, labelfontsize = 12)
end
plot!(x, z[:, 1], color = color, linewidth = linewidth)
plot!(x, z[:, 2 * jump] .- shift, color = color, linewidth = linewidth)
for i in 2:Int(floor(length(y)/jump) - 1)
plot!(x, z[:, i * jump] .- shift * (i - 1), fillrange = z[:, (i + 1) * jump] .- shift * i, fillalpha = fillalpha, palette = palette)
plot!(x, z[:, i * jump] .- shift * (i - 1), color = color, linewidth = linewidth)
plot!(x, z[:, (i + 1) * jump] .- shift * i, color = color, linewidth = linewidth)
end
return p
end
# ╔═╡ b41bfff2-c899-491e-b382-e7e3b136edbd
ridgeline(log.(reverse(T)), α, reverse(log.(real.(σ_dc)), dims = 1), jump = 1, shift = 1, xlabel = "Ω / ω", ylabel = "T / ω", size = (550, 550), linewidth = 1, palette = :thermal, fillalpha = 0.5, step = 1)
# ╔═╡ 22a8f0c4-f15a-46eb-adbe-4ee2575233b0
zero_temp_α = ridgeline(round.(Ω, digits = 1), α, hcat([real.(σ_0[:, i]) ./ maximum(real.(σ_0[:, i])) for i in 1:12]...), jump = 1, shift = 0.2, xlabel = "Ω / ω", ylabel = "α", size = (550, 550), palette = cgrad(:tab20, 12, categorical = true), linewidth = 1.5, fillalpha = 0.35, step = 1)
# ╔═╡ a6e1cd52-3384-44a5-aa15-be0f13691eea
savefig(zero_temp_α, "zero_temp_α.pdf")
# ╔═╡ 0aa5786a-f7f4-43b1-becf-f35a848302db
plot(T, F, labels = hcat(["α = $i" for i in α]...), legend = :outerright, linewidth = 2, linestyle = :auto, xlabel = "T / ω", ylabel = "Free energy / ω", tickfontsize = 12, legendfontsize = 12, labelfontsize = 12, size = (700, 550), minorgrid = true)
# ╔═╡ c1e13990-899e-4c65-81ff-ca3d08a46851
plot(T, v .- w, labels = hcat(["α = $i" for i in α]...), legend = :outerright, linewidth = 2, linestyle = :auto, xlabel = "T / ω", ylabel = "Free energy / ω", tickfontsize = 12, legendfontsize = 12, labelfontsize = 12, size = (700, 550), minorgrid = true, xaxis = :log)
# ╔═╡ c49ef6c5-61b6-4a40-9362-2166c642638d
free_energy = Plots.contourf(α, reverse(T), reverse(F, dims = 1), xlabel = "α", ylabel = "T / ω", fill = cgrad(:thermal, rev = false, categorical = true, scale = :log), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, xticks = (1:12, hcat(["$i" for i in 1:12]...)), yticks = ([0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0], hcat([0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0]...)), yaxis = :log, right_margin = 2Plots.mm)
# ╔═╡ d81b64a3-bf3d-443b-a712-783ae6f7eef3
savefig(free_energy, "free_energy.pdf")
# ╔═╡ 4020f1da-b186-48b9-b652-a480e20707a7
effective_mass = Plots.contourf(α, reverse(T), reverse(log.(M), dims = 1), xlabel = "α", ylabel = "T / ω", fill = cgrad(:thermal, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, xticks = (1:12, hcat(["$i" for i in 1:12]...)), yticks = ([0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0], hcat([0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0]...)), yaxis = :log)
# ╔═╡ ba9cc94a-26f3-45c8-b793-cc13ad62a28a
savefig(effective_mass, "effective_mass.pdf")
# ╔═╡ 2e68e769-79ff-4509-a9ec-3917237341bb
v_parameter = Plots.contourf(α, reverse(T), reverse(log.(v), dims = 1), xlabel = "α", ylabel = "T / ω", fill = cgrad(:thermal, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, xticks = (1:12, hcat(["$i" for i in 1:12]...)), yticks = ([0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0], hcat([0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0]...)), yaxis = :log)
# ╔═╡ 89b85619-ee78-46bf-8741-76d84741cc9f
savefig(v_parameter, "v_parameter.pdf")
# ╔═╡ db726be5-6572-4781-a407-1826a56dd1da
w_parameter = Plots.contourf(α, reverse(T), reverse(log.(w), dims = 1), xlabel = "α", ylabel = "T / ω", fill = cgrad(:thermal, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, xticks = (1:12, hcat(["$i" for i in 1:12]...)), yticks = ([0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0], hcat([0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0]...)), yaxis = :log)
# ╔═╡ a9cea3b1-55d8-4ac8-b140-120761e5daae
savefig(w_parameter, "w_parameter.pdf")
# ╔═╡ e4a79f98-c29a-4b9e-81fe-e9f55da2c71f
σ_contour_real = [Plots.contourf(Ω, reverse(T), reverse(log.(abs.(real.(σ[i])))', dims = 1), yaxis = :log, xlabel = "Ω / ω", ylabel = "T / ω", fill = cgrad(:viridis, rev = false, categorical = true, scale = :log), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, xticks = (0:4:20, hcat(["$i" for i in 0:4:20]...)), yticks = ([0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0], hcat([0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0]...)), right_margin = 7Plots.mm) for i in α]
# ╔═╡ c39d711d-c97e-4c8b-9f8e-304ef2be54de
begin
for i in α
savefig(σ_contour_real[i], "conductivity_contour_plots/conductivity_contour_real_$i.pdf")
end
end
# ╔═╡ f8f1085a-ce7f-4854-a273-f8f9db5f8a74
σ_contour_imag = [Plots.contourf(Ω, reverse(T), reverse(log.(abs.(imag.(σ[i])))', dims = 1), yaxis = :log, xlabel = "Ω / ω", ylabel = "T / ω", fill = cgrad(:viridis, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, xticks = (0:4:20, hcat(["$i" for i in 0:4:20]...)), yticks = ([0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0], hcat([0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0]...)), right_margin = 7Plots.mm) for i in α]
# ╔═╡ c1d2a272-e4d4-4291-b424-f66cfde52135
begin
for i in α
savefig(σ_contour_imag[i], "conductivity_contour_plots/conductivity_contour_imag_$i.pdf")
end
end
# ╔═╡ 67b1453c-e81a-4e7d-a7a5-a46ed60d4217
σ_contour_abs = [Plots.contourf(Ω, reverse(T), reverse(log.(abs.(abs.(σ[i])))', dims = 1), yaxis = :log, xlabel = "Ω / ω", ylabel = "T / ω", fill = cgrad(:viridis, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, xticks = (0:4:20, hcat(["$i" for i in 0:4:20]...)), yticks = ([0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0], hcat([0.125, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0]...)), right_margin = 7Plots.mm) for i in α]
# ╔═╡ 5e4f5ba2-21e7-427c-93d4-2ebf23d204d4
begin
for i in α
savefig(σ_contour_abs[i], "conductivity_contour_plots/conductivity_contour_abs_$i.pdf")
end
end
# ╔═╡ 67248e4a-babc-4b69-8bf2-34d56d1c70f4
σ_plot_temp_real = [ridgeline(round.(Ω, digits = 1), round.(reverse(T), digits = 2), reverse(log.(abs.(real.(σ[i]))), dims = 2), jump = 2, shift = 0.8, xlabel = "Ω / ω", ylabel = "T / ω", size = (550, 550), linewidth = 1, palette = :thermal, fillalpha = 0.75, step = 8) for i in α]
# ╔═╡ 5559b8fd-c862-4fdd-9a8b-4c196d401b46
begin
for i in α
savefig(σ_plot_temp_real[i], "conductivity_contour_plots/conductivity_plot_temp_real_$i.pdf")
end
end
# ╔═╡ 6c86267c-799c-4585-a5ad-a221e8990d16
σ_plot_freq_real = [ridgeline(round.(reverse(T), digits = 2), round.(Ω, digits = 1), reverse(log.(abs.(real.(σ[i]'))), dims = 1), jump = 4, shift = 0.8, ylabel = "Ω / ω", xlabel = "T / ω", size = (600, 600), linewidth = 1, palette = :twilight, fillalpha = 0.75, step = 8, ymirror = true) for i in α]
# ╔═╡ f872eee7-e2a8-4173-a149-3c68597d421a
begin
for i in α
savefig(σ_plot_freq_real[i], "conductivity_contour_plots/conductivity_plot_freq_real_$i.pdf")
end
end
# ╔═╡ 4a31fd0c-3cc4-4680-91a0-cf52e6ca75e3
σ_plot_temp_imag = [ridgeline(round.(Ω, digits = 1), reverse(β[1:end]), reverse(log.(abs.(imag.(σ[i]))), dims = 2), jump = 2, shift = 0.8, xlabel = "Ω (THz)", ylabel = "T (K)", size = (550, 550), linewidth = 1, palette = :thermal, fillalpha = 0.75, step = 9) for i in α]
# ╔═╡ 39bbd242-e6e9-419e-9bc4-a5f183c33e58
begin
for i in α
savefig(σ_plot_temp_imag[i], "conductivity_contour_plots/conductivity_plot_temp_imag_$i.pdf")
end
end
# ╔═╡ c052d7ff-58ce-413c-8358-851180759fdb
σ_plot_freq_imag = [ridgeline(round.(reverse(T), digits = 2), round.(Ω, digits = 1), reverse(log.(abs.(imag.(σ[i]'))), dims = 1), jump = 4, shift = 0.8, ylabel = "Ω / ω", xlabel = "T / ω", size = (550, 550), linewidth = 1, palette = :twilight, fillalpha = 0.75, step = 10, ymirror = true) for i in α]
# ╔═╡ e5ebc4f2-be00-4d5b-bad1-a71c6b5cdd93
begin
for i in α
savefig(σ_plot_freq_imag[i], "conductivity_contour_plots/conductivity_plot_freq_imag_$i.pdf")
end
end
# ╔═╡ f21050fa-9718-4c23-aff0-de5474d6c5f6
σ_plot_temp_abs = [ridgeline(round.(Ω, digits = 1), reverse(β[1:end]), reverse(log.(abs.(σ[i])), dims = 2), jump = 2, shift = 0.8, xlabel = "Ω (THz)", ylabel = "T (K)", size = (550, 550), linewidth = 1, palette = :thermal, fillalpha = 0.75, step = 8) for i in α]
# ╔═╡ 71d9e25c-eec6-49bb-b43f-1927fb0618c8
begin
for i in α
savefig(σ_plot_temp_abs[i], "conductivity_contour_plots/conductivity_plot_temp_abs_$i.pdf")
end
end
# ╔═╡ e3924eb5-8cfb-4db4-9d79-9f5dc7194a95
σ_plot_freq_abs = [ridgeline(round.(reverse(T), digits = 2), round.(Ω, digits = 1), reverse(log.(abs.(σ[i]')), dims = 1), jump = 4, shift = 0.8, ylabel = "Ω / ω", xlabel = "T / ω", size = (550, 550), linewidth = 1, palette = :twilight, fillalpha = 0.75, step = 8, ymirror = true) for i in α]
# ╔═╡ 87dfdce3-c94c-4f2a-9055-b699d37c1848
begin
for i in α
savefig(σ_plot_freq_abs[i], "conductivity_contour_plots/conductivity_plot_freq_abs_$i.pdf")
end
end
# ╔═╡ Cell order:
# ╠═ec4e1740-0b51-11ec-3fa2-d3c1d67f4572
# ╠═9e67b5cd-f084-4bd4-9eb0-b94311184197
# ╠═b2a2fdb9-949a-498c-ac19-dab106582558
# ╠═72553f5c-276d-4256-8354-04154017d346
# ╠═67b93cb9-6335-448e-a09e-ead44db9d5c3
# ╠═d20b171e-1bd3-44aa-b067-7bf1a3c0227e
# ╠═8c909d72-7f28-49ed-9f6f-6b7f77e4e984
# ╠═2980129c-4be6-4928-8bfe-b6b13eb0d50a
# ╠═29d4a2e3-692b-48b3-9ce0-fca83b55e8d3
# ╠═eab11453-2f25-493a-84e4-307231496653
# ╠═136a409d-9ea0-40ab-998a-f5bf954315ca
# ╠═a1bef2ba-0fb0-4a43-a09d-4e2e5ab6e069
# ╠═671bed0e-082a-4b3a-9467-7be0ee2327df
# ╠═a7431fd9-588a-41f1-b3d8-ef15837ccf75
# ╠═f7746913-7afa-4bce-b261-9532bd6f27cb
# ╠═780dd0f5-b922-4691-94b5-fa9881381c07
# ╠═d3f88ec2-6f32-4429-a34b-4db33fc55433
# ╠═39cff408-72c6-42ea-8172-d9d0fb9e94fc
# ╠═8e432e19-984e-4727-ab9c-25894e2585d8
# ╠═83972098-4232-437e-9d2d-7620c17672f0
# ╠═d8762608-09eb-4ea0-9a84-5f46673a619d
# ╠═9ab20c3a-a0f5-4938-9339-720630fbd48b
# ╠═ed78a2eb-3313-4cae-b0d3-2118f5dff33f
# ╠═b41bfff2-c899-491e-b382-e7e3b136edbd
# ╠═f524e982-6208-44bc-86df-ccfa851b0c92
# ╠═9f09e259-014e-48b0-bd00-f7e2c9c897b3
# ╠═ccda1394-45b4-4a9a-8c14-425cb0b81a87
# ╠═fadad1b3-6da6-4724-be97-469d81641d8f
# ╠═3918264a-f72b-4b4c-b67f-cd6fa4c6c846
# ╠═c1d56910-a645-40ed-a5d8-0f7d5be19ae7
# ╠═22a8f0c4-f15a-46eb-adbe-4ee2575233b0
# ╠═a6e1cd52-3384-44a5-aa15-be0f13691eea
# ╠═19065839-85a3-4768-830e-26f64bf4a278
# ╠═7c978142-5319-45f8-b854-efac81271fcc
# ╠═0aa5786a-f7f4-43b1-becf-f35a848302db
# ╠═c1e13990-899e-4c65-81ff-ca3d08a46851
# ╠═c49ef6c5-61b6-4a40-9362-2166c642638d
# ╠═d81b64a3-bf3d-443b-a712-783ae6f7eef3
# ╠═4020f1da-b186-48b9-b652-a480e20707a7
# ╠═ba9cc94a-26f3-45c8-b793-cc13ad62a28a
# ╠═2e68e769-79ff-4509-a9ec-3917237341bb
# ╠═89b85619-ee78-46bf-8741-76d84741cc9f
# ╠═db726be5-6572-4781-a407-1826a56dd1da
# ╠═a9cea3b1-55d8-4ac8-b140-120761e5daae
# ╠═e4a79f98-c29a-4b9e-81fe-e9f55da2c71f
# ╠═c39d711d-c97e-4c8b-9f8e-304ef2be54de
# ╠═f8f1085a-ce7f-4854-a273-f8f9db5f8a74
# ╠═c1d2a272-e4d4-4291-b424-f66cfde52135
# ╠═67b1453c-e81a-4e7d-a7a5-a46ed60d4217
# ╠═5e4f5ba2-21e7-427c-93d4-2ebf23d204d4
# ╠═67248e4a-babc-4b69-8bf2-34d56d1c70f4
# ╠═5559b8fd-c862-4fdd-9a8b-4c196d401b46
# ╠═6c86267c-799c-4585-a5ad-a221e8990d16
# ╠═f872eee7-e2a8-4173-a149-3c68597d421a
# ╠═4a31fd0c-3cc4-4680-91a0-cf52e6ca75e3
# ╠═39bbd242-e6e9-419e-9bc4-a5f183c33e58
# ╠═c052d7ff-58ce-413c-8358-851180759fdb
# ╠═e5ebc4f2-be00-4d5b-bad1-a71c6b5cdd93
# ╠═f21050fa-9718-4c23-aff0-de5474d6c5f6
# ╠═71d9e25c-eec6-49bb-b43f-1927fb0618c8
# ╠═e3924eb5-8cfb-4db4-9d79-9f5dc7194a95
# ╠═87dfdce3-c94c-4f2a-9055-b699d37c1848
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 32517 | ### A Pluto.jl notebook ###
# v0.14.8
using Markdown
using InteractiveUtils
# ╔═╡ 1eb559b3-dbce-4caf-800f-96a2495dee1b
using Revise
# ╔═╡ 77d14c3f-bcaf-432c-9005-f5ec184d84b7
using QuadGK
# ╔═╡ ba2dadc8-d9a2-452e-9f94-406ccfc7404b
using Optim
# ╔═╡ c05cd489-68c8-418e-bbc2-a33bc42781f0
using Plots
# ╔═╡ 1d300e7d-5efb-4ad2-a826-c3f8a86083d8
using PolaronMobility
# ╔═╡ 6a99cd13-68cb-474c-96af-7d78ee4e7095
using DataFrames
# ╔═╡ 49663b33-1604-430b-a815-9eb985802987
using CSV
# ╔═╡ 314af942-8922-40d4-a92b-f75b715c276c
using LaTeXStrings
# ╔═╡ 6ff68ba5-df0c-42a0-8cf1-dedeced77e8d
using ColorSchemes
# ╔═╡ 29d62408-0629-4f39-909e-a6ba8696e955
begin
# Physical constants
const ħ = 1.05457162825e-34; # Reduced Planck's constant (kg m^2 s^{-1})
const eV = 1.602176487e-19; # Electron Volt (kg m^2 s^{-2})
const m_e = 9.10938188e-31; # Electron Mass (kg)
const k_B = 1.3806504e-23; # Boltzmann's constant (kg m^2 K^{-1} s^2)
const ϵ_0 = 8.854e-12 # Dielectric constant (C^2 N^{-1} m^{-2})
const c = 2.99792458e8 # Speed of light (m s^{-1})
const amu = 1.66053906660e-27 # Atomic Mass Unit (kg)
end
# ╔═╡ 35390bdf-e260-4566-8a97-7a0b5a3ef07a
MAPI= [
# 96.20813558773261 0.4996300522819191
# 93.13630357703363 1.7139631746083817
# 92.87834578121567 0.60108592692181
# 92.4847918585963 0.0058228799414729
# 92.26701437594754 0.100590086574602
# 89.43972834606603 0.006278895133832249
# 46.89209141511332 0.2460894564364346
# 46.420949316788 0.14174282581124137
# 44.0380222871706 0.1987196948553428
# 42.89702947649343 0.011159939465770681
# 42.67180170168193 0.02557751102757614
# 41.46971205834201 0.012555230726601503
# 37.08982543385215 0.00107488277468418
# 36.53555265689563 0.02126940080871224
# 30.20608114002676 0.009019481779712388
# 27.374810898415028 0.03994453721421388
# 26.363055017011728 0.05011922682554448
# 9.522966890022039 0.00075631870522737
4.016471586720514 0.08168931020200264
3.887605410774121 0.006311654262282101
3.5313112232401513 0.05353548710183397
2.755392921480459 0.021303020776321225
2.4380741812443247 0.23162784335484837
2.2490917637719408 0.2622203718355982
2.079632190634424 0.23382298607799906
2.0336707697261187 0.0623239656843172
1.5673011873879714 0.0367465760261409
1.0188379384951798 0.0126328938653956
1.0022960504442775 0.006817361620021601
0.9970130778462072 0.0103757951973341
0.9201781906386209 0.01095811116040592
0.800604081794174 0.0016830270365341532
0.5738689505255512 0.00646428491253749
# 0.022939578929507105 8.355742795827834e-06 # Acoustic modes!
# 0.04882611767873102 8.309858592685e-06
# 0.07575149723846182 2.778248540373041e-05
]
# ╔═╡ e0ce47a5-368a-4da7-83fc-9f921af0f747
function ϵ_ionic_mode(phonon_mode_freq, ir_activity, volume) # single ionic mode
ω_j = 2π * phonon_mode_freq * 1e12 # angular phonon freq in Hz
ϵ_mode = eV^2 * ir_activity / (3 * volume * ω_j^2 * amu) # single ionic mode
return ϵ_mode / ϵ_0 # normalise with 1 / (4π ϵ_0)
end
# ╔═╡ 053d717a-2b63-40e7-9dc0-487e3892de98
function ϵ_total(freqs_and_ir_activity, volume) # total ionic contribution to dielectric
phonon_freqs = freqs_and_ir_activity[:, 1]
ir_activity = freqs_and_ir_activity[:, 2]
result = 0.0
for (f, r) in zip(phonon_freqs, ir_activity)
result += ϵ_ionic_mode(f, r, volume) # sum over all ionic contributions
end
return result
end
# ╔═╡ 86fe8a15-4d9e-48fa-8387-3cfaff7aa182
function frohlich_α_j(ϵ_optic, ϵ_ionic, ϵ_total, phonon_mode_freq, m_eff) # Frohlich alpha decomposed into phonon branch contributions
Ry = eV^4 * m_e / (2 * ħ^2) # Rydberg energy
ω = 2π * 1e12 * phonon_mode_freq # angular phonon freq (Hz)
ϵ_static = ϵ_total + ϵ_optic # static dielectric. Calculate here instead of input so that ionic modes properly normalised.
return (m_eff * Ry / (ħ * ω))^(1 / 2) * ϵ_ionic / (4π * ϵ_0) / (ϵ_optic * ϵ_static) # 1 / (4π ϵ_0) dielectric normalisation
end
# ╔═╡ 16e7d781-bc61-44b3-84a2-e8c8892bf773
function κ_i(i, v, w) # fictitious spring constant, multiple variational params
κ = v[i]^2 - w[i]^2
if length(v) > 1
for j in 1:length(v)
if j != i
κ *= (v[j]^2 - w[i]^2) / (w[j]^2 - w[i]^2)
end
end
end
return κ
end
# ╔═╡ a78017d7-8835-4a8f-8dd3-f3a4a50eb37b
function h_i(i, v, w) # some vector relating to harmonic eigenmodes
h = v[i]^2 - w[i]^2
if length(v) > 1
for j in 1:length(v)
if j != i
h *= (w[j]^2 - v[i]^2) / (v[j]^2 - v[i]^2)
end
end
end
return h
end
# ╔═╡ d7346684-6b68-4dfc-81da-12c435c4acf0
function C_ij(i, j, v, w) # generalised Feynman C variational parameter (inclusive of multiple v and w params)
C = w[i] * κ_i(i, v, w) * h_i(j, v, w) / (4 * (v[j]^2 - w[i]^2))
return C
end
# ╔═╡ 798a4f7a-a2a0-48de-82ad-f85b4199496a
function D_j(τ, β, v, w) # log of dynamic structure factor for polaron
D = τ * (1 - τ / β)
for i in 1:length(v)
if v[i] != w[i]
D += (h_i(i, v, w) / v[i]^2) * (2 * sinh(v[i] * τ / 2) * sinh(v[i] * (β - τ) / 2) / (v[i] * sinh(v[i] * β / 2)) - τ * (1 - τ / β))
end
end
return D
end
# ╔═╡ ec0744c0-2530-11ec-04c3-1b5d83413b78
function multi_free_energy(v_params, w_params, T, ϵ_optic, m_eff, volume, freqs_and_ir_activity)
setprecision(BigFloat, 32) # Speed up. Stops potential overflows.
# Extract phonon frequencies and ir activities.
phonon_freqs = freqs_and_ir_activity[:, 1]
ir_activity = freqs_and_ir_activity[:, 2]
num_of_branches = length(phonon_freqs)
# total dielectric contribution from all phonon branches (used as a normalisation)
ϵ_tot = ϵ_total(freqs_and_ir_activity, volume)
# Generalisation of B i.e. Equation 62c in Hellwarth.
B_j_integrand(τ, β, v, w) = cosh(β / 2 - abs(τ)) / (sinh(β / 2) * sqrt(D_j(abs(τ), β, v, w)))
B_j(β, α, v, w) = α / √π * quadgk(τ -> B_j_integrand(τ, β, v, w), 0.0, β / 2)[1]
# Generalisation of C i.e. Equation 62e in Hellwarth.
function C_j(β, v, w)
s = 0.0
for i in 1:length(v)
for j in 1:length(v)
s += C_ij(i, j, v, w) / (v[j] * w[i]) * (coth(β * v[j] / 2) - 2 / (β * v[j]))
end
end
3 * s / num_of_branches
end
# Generalisation of A i.e. Equation 62b in Hellwarth.
function A_j(β, v, w)
s = -log(2π * β) / 2
for i in 1:length(v)
if v[i] != w[i]
s += log(v[i] / w[i]) - log(sinh(v[i] * β / 2) / sinh(w[i] * β / 2))
end
end
3 / β * s / num_of_branches
end
F = 0.0
for j in 1:num_of_branches
ω_j = 2π * 1e12 * phonon_freqs[j] # angular phonon freq im 2π Hz
β_j = BigFloat(ħ * ω_j / (k_B * T)) # reduced thermodynamic beta
ϵ_ionic_j = ϵ_ionic_mode(phonon_freqs[j], ir_activity[j], volume) # ionic dielectric contribution for current phonon branch
α_j = frohlich_α_j(ϵ_optic, ϵ_ionic_j, ϵ_tot, phonon_freqs[j], m_eff) # decomposed alpha for current phonon branch
# F = -(A + B + C) in Hellwarth.
F += -(B_j(β_j, α_j, v_params, w_params) + C_j(β_j, v_params, w_params) + A_j(β_j, v_params, w_params)) * ω_j # × ħω branch phonon energy
end
return F * ħ / eV * 1e3 # change to meV
end
# ╔═╡ f3b91e16-26d3-45c8-b28f-193afac15d7f
function multi_variation(T, ϵ_optic, m_eff, volume, freqs_and_ir_activity; initial_vw = false, N = 1) # N number of v and w params
setprecision(BigFloat, 32) # Speed up. Stops potential overflows.
if initial_vw isa Bool
# Intial guess for v and w.
initial = sort(rand(2 * N)) .* 4.0 .+ 1.0 # initial guess around 4 and ≥ 1.
# Limits of the optimisation.
lower = repeat([0.1], 2 * N)
upper = repeat([60.0], 2 * N)
else
# Intial guess for v and w.
initial = sort(vcat(initial_vw...))
# Limits of the optimisation.
lower = repeat([0.1], 2 * N)
upper = repeat([60.0], 2 * N)
end
println("Initial guess: ", initial)
# Osaka Free Energy function to minimise.
f(x) = multi_free_energy([x[2 * n] for n in 1:Int(N)], [x[2 * n - 1] for n in 1:Int(N)], T, ϵ_optic, m_eff, volume, freqs_and_ir_activity)
# Use Optim to optimise the free energy function w.r.t v and w.
solution = Optim.optimize(
Optim.OnceDifferentiable(f, initial; autodiff = :forward),
lower,
upper,
initial,
Fminbox(BFGS()),
Optim.Options(time_limit = 20.0),
)
# Get v and w params that minimised free energy.
var_params = Optim.minimizer(solution)
# Update matrices for v and w parameters.
v_params = [var_params[2 * n] for n in 1:N]
w_params = [var_params[2 * n - 1] for n in 1:N]
# Show current v and w that minimise jth phonon branch.
println("Variational parameters: ", var_params)
# Return variational parameters that minimise the free energy.
return v_params, w_params
end
# ╔═╡ a941ccc6-90cb-448a-91bb-f80233b630f8
function HellwarthAScheme(phonon_modes; T = 295)
phonon_mode_freqs = phonon_modes[:, 1]
ir_activities = phonon_modes[:, 2]
condition(f) = coth(π * f * 1e12 * ħ / (k_B * T)) / f - sum(ir_activities .* coth.(π .* phonon_mode_freqs .* 1e12 .* ħ ./ (k_B * T)) ./ phonon_mode_freqs) / sum(ir_activities)
minimum_frequency = minimum(phonon_mode_freqs)
maximum_frequency = maximum(phonon_mode_freqs)
middle_frequency = (maximum_frequency + minimum_frequency) / 2
print("\n")
while (maximum_frequency - minimum_frequency) / 2 > 1e-6
if sign(condition(middle_frequency)) == sign(condition(minimum_frequency))
minimum_frequency = middle_frequency
middle_frequency = (maximum_frequency + minimum_frequency) / 2
else
maximum_frequency = middle_frequency
middle_frequency = (maximum_frequency + minimum_frequency) / 2
end
end
return middle_frequency
end
# ╔═╡ 1372f247-4622-4388-b458-89aa6e695388
function HellwarthBScheme(LO)
println("Hellwarth B Scheme... (athermal)")
H58 = sum( LO[:,2] ./ LO[:,1].^2 )
println("Hellwarth (58) summation: ",H58)
H59 = sum( LO[:,2] ) # sum of total ir activity squarred
println("Hellwarth (59) summation (total ir activity ^2): ", H59)
println("Hellwarth (59) W_e (total ir activity ): ", sqrt(H59))
omega = sqrt(H59 / H58)
println("Hellwarth (61) Omega (freq): ",omega)
return(omega)
end
# ╔═╡ c28f6d35-c3ed-4984-9c36-b282fb50001b
function ridgeline(x, y, z; shift = 1, jump = 10, ylabel = :none, xlabel = :none, palette = :twilight, linewidth = 1.5, color = :black, size = (595, 842), ymirror = false, fillalpha = 1, step = 1)
if !ymirror
p = plot(x, z[:, 1], fillrange = z[:, jump] .- shift, fillalpha = fillalpha, ylabel = ylabel, xlabel = xlabel, xticks = (0:maximum(x)/10:maximum(x), string.(x[1:Int(ceil((length(x)-1)/10)):end])), yticks = (z[1, 1:jump * step:end] .- shift .* range(0, stop = length(y[1:jump:end]) - 1, step = step), string.(y[1:jump * step:end])), legend = false, size = size, grid = false, ymirror = ymirror, palette = palette, tickfontsize = 12, labelfontsize = 12)
else
p = plot(x, z[:, 1], fillrange = z[:, jump] .- shift, fillalpha = fillalpha, ylabel = ylabel, xlabel = xlabel, xticks = (0:maximum(x)/10:maximum(x), string.(x[1:Int((length(x))/10):end])), yticks = (z[end, 1:jump * step:end] .- shift .* range(0, stop = length(y[1:jump:end]) - 1, step = step), string.(y[1:jump * step:end])), legend = false, size = size, grid = false, ymirror = ymirror, palette = palette, tickfontsize = 12, labelfontsize = 12)
end
plot!(x, z[:, 1], color = color, linewidth = linewidth)
plot!(x, z[:, jump] .- shift, color = color, linewidth = linewidth)
for i in 1:Int(floor(length(y)/jump) - 1)
plot!(x, z[:, i * jump] .- shift * i, fillrange = z[:, (i + 1) * jump] .- shift * (i + 1), fillalpha = fillalpha, palette = palette)
plot!(x, z[:, i * jump] .- shift * i, color = color, linewidth = linewidth)
plot!(x, z[:, (i + 1) * jump] .- shift * (i + 1), color = color, linewidth = linewidth)
end
return p
end
# ╔═╡ 49480256-2dcc-4d10-a5a1-4202b243cfd2
T_range = 100:100:400
# ╔═╡ 4966ecf1-ef39-4da3-a8a5-9e47a6c6b0ec
phonon_mode_freqs = MAPI[:, 1]
# ╔═╡ 3321246b-76bd-4678-a5ae-332c3543a1ef
ir_activities = MAPI[:, 2]
# ╔═╡ b2944c8a-158e-461b-a83c-842925587179
A_scheme = [HellwarthAScheme(MAPI, T = i) for i in T_range]
# ╔═╡ fe4e5ef5-833a-4b61-9ea9-92fa52d7a21f
B_scheme = HellwarthBScheme(hcat(phonon_mode_freqs, ir_activities))
# ╔═╡ 8350c7a2-e9fd-4312-9561-44e2524734af
ϵ_ionic = [ϵ_ionic_mode(f, r, (6.29e-10)^3) for (f, r) in zip(phonon_mode_freqs, ir_activities)]
# ╔═╡ db2b4169-0737-44c1-9af5-aa2f2403f5db
ϵ_tot = sum(ϵ_ionic)
# ╔═╡ 2b6d00e1-317b-41cc-9489-14a1450012f4
α_j = [frohlich_α_j(4.5, ϵ_i, ϵ_tot, f, 0.12) for (ϵ_i, f) in zip(ϵ_ionic, phonon_mode_freqs)]
# ╔═╡ 3e1418c2-01a1-4651-8029-59f53264193d
begin
scatter(phonon_mode_freqs, α_j, yaxis = :log, xticks = (phonon_mode_freqs, hcat(["$(round(i, digits = 2))" for i in phonon_mode_freqs]...)), label = L"\textbf{\alpha_j}", size = (500, 500), xlabel = "Phonon Frequencies (THz)", tickfontsize = 9, xrotation = 90)
scatter!(phonon_mode_freqs, ir_activities, markershape = :diamond, label = "IR")
plot!(phonon_mode_freqs, α_j ./ ir_activities, linewidth = 2, linestyle = :dash, label = "ratio")
end
# ╔═╡ d4f392ef-968a-439c-ba53-5707464446e7
begin
multi_data = DataFrames.DataFrame(
alpha = α_j,
phonon_freqs = phonon_mode_freqs,
ir_activities = ir_activities,
ionic = ϵ_ionic
)
CSV.write("multi_data.csv", multi_data)
end
# ╔═╡ b3c94ea5-d152-4705-9a30-f8d3e4da0874
α_eff = sum(α_j)
# ╔═╡ 3608af5e-7b44-4d50-9770-5e8afd4fca28
α_hellwarth_A = PolaronMobility.frohlichalpha.(4.5, 24.1, A_scheme .* 1e12, 0.12)
# ╔═╡ 1716f263-f8ad-40a1-a805-d8b7ea6f38df
α_hellwarth_B = PolaronMobility.frohlichalpha(4.5, 24.1, B_scheme * 1e12, 0.12)
# ╔═╡ da629bec-b53c-4acf-a0ab-6057c3b973a9
β_j = [ħ * 2π * 1e12 * f / k_B / T for f in phonon_mode_freqs, T in T_range]
# ╔═╡ 0641f475-0f35-4f5c-abf0-85ec56f4e30c
begin
multi_beta = DataFrames.DataFrame([[0.0, [i for i in T_range]...]'; [phonon_mode_freqs β_j]], :auto)
CSV.write("multi_beta.csv", multi_beta)
end
# ╔═╡ c49a4dc3-2546-472f-9fde-b59ec3246237
β_j_avg = [sum(β_j[:, T]) / length(phonon_mode_freqs) for T in 1:length(T_range)]
# ╔═╡ 0e3cf449-6e2a-4353-853e-58d15693743d
β_hellwarth_A = [ħ * 2π / k_B / T_range[T] * A_scheme[T] * 1e12 for T in 1:length(T_range)]
# ╔═╡ 16040051-57d5-4c6c-aa13-8280ae964261
β_hellwarth_B = [ħ * 2π / k_B / T * B_scheme * 1e12 for T in T_range]
# ╔═╡ 32f32534-2a6b-4675-8508-890579058e07
begin
var_params = []
push!(var_params, multi_variation(T_range[1], 4.5, 0.12, (6.29e-10)^3, MAPI; N = 1))
for i in 2:length(T_range)
push!(var_params, multi_variation(T_range[i], 4.5, 0.12, (6.29e-10)^3, MAPI; initial_vw = var_params[i-1], N = 1))
end
var_params
end
# ╔═╡ de89f0aa-21fb-42d2-9a75-5b45938b1e65
var_A = PolaronMobility.feynmanvw.(α_hellwarth_A, β_hellwarth_A)
# ╔═╡ a74836cf-f9ab-41d6-9f01-5066f1afac34
var_B = PolaronMobility.feynmanvw.(α_hellwarth_B, β_hellwarth_B)
# ╔═╡ 2ea4fc88-5285-4c8e-baf9-f0b2f75b33e0
v_j = [var_params[T][1] for T in 1:length(T_range)]
# ╔═╡ e5b21223-f7a5-4560-b03d-f015cdc99c41
sum.(v_j) ./ 2
# ╔═╡ ff8beae7-50e2-46cb-a38d-eb65a8cedaa4
w_j = [var_params[T][2] for T in 1:length(T_range)]
# ╔═╡ 757c41b7-e32b-4a67-b02d-c3f25acc266f
v_A = [i[1] for i in var_A]
# ╔═╡ 368ee8d7-84a8-4711-a9f9-f08d3c03c0ec
w_A = [i[2] for i in var_A]
# ╔═╡ b032bda5-4920-4546-a80f-5491b4044f45
v_B = [i[1] for i in var_B]
# ╔═╡ 5dd88a96-75d2-409a-abf8-960c09c74188
w_B = [i[2] for i in var_B]
# ╔═╡ 83ec77a6-fcf8-4025-ac6d-cd7819312427
begin
vw_temp = plot(T_range, v_A, label = "H-A v", legend = :bottomright, linewidth = 2, tickfontsize = 12, labelfontsize = 12, legendfontsize = 12, xlabel = "T(K)", ylabel = "v & w (THz)", size = (550, 550), minorgrid = true, linestyle = :dashdot, color = theme_palette(:default)[1])
plot!(T_range, w_A, label = "H-A w", linewidth = 2, linestyle = :dashdot, color = theme_palette(:default)[2])
plot!(T_range, v_B, label = "H-B v", linewidth = 2, linestyle = :dash, color = theme_palette(:default)[3])
plot!(T_range, w_B, label = "H-B w", linewidth = 2, linestyle = :dash, color = theme_palette(:default)[4])
plot!(T_range, sum.(v_j) ./ length(v_j[1]), label = "multi v", linewidth = 2, linestyle = :solid, color = theme_palette(:default)[1])
plot!(T_range, sum.(w_j) ./ length(w_j[1]), label = "multi w", linewidth = 2, linestyle = :solid, color = theme_palette(:default)[2])
end
# ╔═╡ 3a52ff01-110b-4755-b43a-acc5b3b870aa
savefig(vw_temp, "vw_temp.pdf")
# ╔═╡ 8fafb718-d95a-4ca7-921f-4abe1ab846ac
F_j = [multi_free_energy(v_j[T], w_j[T], T_range[T], 4.5, 0.12, (6.29e-10)^3, MAPI) for T in 1:length(T_range)]
# ╔═╡ 552b01e3-fd72-489a-aa2b-ae00b6d37c05
Hellwarth_energy_A = F.(v_A, w_A, β_hellwarth_A, α_hellwarth_A) .* 1e3 .* ħ .* 2π .* A_scheme .* 1e12 ./ eV
# ╔═╡ a465eeb5-5b8f-4202-bd58-651867c9d423
Hellwarth_energy_B = F.(v_B, w_B, β_hellwarth_B, α_hellwarth_B) .* 1e3 .* ħ .* 2π .* B_scheme .* 1e12 ./ eV
# ╔═╡ 6b60ab62-6706-4c33-ad7a-efb11803eb6b
begin
free_energy_temp = plot(T_range, Hellwarth_energy_A, linewidth = 2, linestyle = :dashdot, label = "H-A", tickfontsize = 12, labelfontsize = 12, legendfontsize = 12, xlabel = "T(K)", ylabel = "Free energy (meV)", minorgrid = true, size = (550, 550), legend = :topright)
plot!(T_range, Hellwarth_energy_B, linewidth = 2, linestyle = :dash, label = "H-B")
plot!(T_range, F_j, linewidth = 2, linestyle = :solid, label = "multi")
end
# ╔═╡ 7ae9767d-d18f-4188-8e59-dea17c9d5ac4
savefig(free_energy_temp, "free_energy_temp.pdf")
# ╔═╡ 523af3a6-7cc9-41cf-9acb-9a1d25086969
begin
multi_vw = DataFrames.DataFrame(
temperature = T_range,
beta = β_j_avg,
v = v_j,
w = w_j,
F = F_j
)
CSV.write("multi_vw.csv", multi_vw)
end
# ╔═╡ 8db8a4fd-fc04-4d45-8d05-8f69eff611df
begin
A_data = DataFrames.DataFrame(
alpha = α_hellwarth_A,
efffreq = A_scheme,
temp = T_range,
beta = β_hellwarth_A,
v = v_A,
w = w_A,
F = Hellwarth_energy_A
)
CSV.write("A_data.csv", A_data)
end
# ╔═╡ 0e921a7a-a07d-4afc-a991-e06d9be96e3f
begin
B_data = DataFrames.DataFrame(
alpha = [α_hellwarth_B for i in 1:length(T_range)],
efffreq = [B_scheme for i in 1:length(T_range)],
temp = T_range,
beta = β_hellwarth_B,
v = v_B,
w = w_B,
F = Hellwarth_energy_B
)
CSV.write("B_data.csv", B_data)
end
# ╔═╡ 2d4759ab-18d8-4368-a568-0da25474366c
function multi_conductivity(ν, β, α, v, w, ω, m_eff)
z_integrand(t, β, ν) = (1 - exp(1im * 2π * ν * t)) * imag(cos(t - 1im * β / 2) / ( sinh(β / 2) * D_j(-1im * t, β, v, w)^(3/2)))
z = 0.0
for j in 1:length(ω)
println("Photon frequency = $ν, Phonon mode frequency = $(ω[j] / 2π)")
z += -1im * 2π * ν / length(ω) + 1im * 2 * α[j] * ω[j]^2 * quadgk(t -> z_integrand(t, β[j], ν / ω[j]), 0.0, Inf)[1] / (3 * √π * 2π * ν)
end
1 / z * eV * 100^2 / (m_eff * m_e * 1e12)
end
# ╔═╡ 2285006a-a115-414a-b788-b05fd6720bcd
ν_range = 0.01:0.01:3.51
# ╔═╡ 0fdcd049-8f06-4651-9864-a76647154680
begin
σ_j = Array{ComplexF64}(undef, length(ν_range), length(T_range))
for j in 1:length(T_range), i in 1:length(ν_range)
println("ν: $(ν_range[i]) THz, T: $(T_range[j]) K")
σ_j[i, j] = multi_conductivity(ν_range[i], β_j[:, j], α_j, v_j[1], w_j[1], phonon_mode_freqs .* 2π, 0.12)
CSV.write("multi_conductivity_data.csv", DataFrames.DataFrame([[0.0, [i for i in T_range]...]'; [ν_range σ_j]], :auto))
end
σ_j
end
# ╔═╡ f09c4429-9415-49c1-b22d-a8867cbd4249
begin
plot(ν_range, real.(σ_j), linewidth = 2, label = "Reσ", legend = :outerright, minorgrid = true)
plot!(ν_range, imag.(σ_j), linewidth = 2, linestyle = :dash, label = "Imσ")
plot!(ν_range, abs.(σ_j), linewidth = 2, linestyle = :dot, label = "|σ|")
end
# ╔═╡ 0178c326-eeca-4d7a-a111-58b589cba561
multi_contour_real = Plots.contourf(ν_range, T_range, real.(σ_j)', xlabel = "ν (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, right_margin = 7Plots.mm, clims = (0, 600))
# ╔═╡ d2bbb4c9-98e5-4959-a36c-b3e48c37a03c
multi_contour_imag = Plots.contourf(ν_range, T_range, imag.(σ_j)', xlabel = "ν (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, right_margin = 7Plots.mm, clims = (0, 600))
# ╔═╡ 0d78d4ef-6360-43b3-9952-3467410d8908
multi_contour_abs = Plots.contourf(ν_range, T_range, abs.(σ_j)', xlabel = "ν (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, right_margin = 7Plots.mm, clims = (0, 600))
# ╔═╡ 8822d1c3-5bda-4e4e-9b0b-703c75d10816
begin
savefig(multi_contour_real, "multi_contour_real.pdf")
savefig(multi_contour_imag, "multi_contour_imag.pdf")
savefig(multi_contour_abs, "multi_contour_abs.pdf")
end
# ╔═╡ 72d02e9b-d59e-498b-8947-3a86634b7eb4
multi_plot_temp_real = ridgeline(round.(ν_range, digits = 1), Int.(T_range), [i < 600 ? i : 600 for i in real.(σ_j)], jump = 5, shift = 10, xlabel = "ν (THz)", ylabel = "T (K)", size = (550, 550), linewidth = 0.5, palette = :thermal, fillalpha = 0.75, step = 5)
# ╔═╡ 0916b2de-ff08-4c60-9bb1-70efbea6f6f6
multi_plot_temp_imag = ridgeline(round.(ν_range, digits = 1), Int.(T_range), [i < 600 ? i : 600 for i in imag.(σ_j)], jump = 5, shift = 10, xlabel = "ν (THz)", ylabel = "T (K)", size = (550, 550), linewidth = 0.5, palette = :thermal, fillalpha = 0.75, step = 5)
# ╔═╡ dfd78449-6db6-4f6b-9ecf-00a202ad685d
multi_plot_temp_abs = ridgeline(round.(ν_range, digits = 1), Int.(T_range), [i < 600 ? i : 600 for i in abs.(σ_j)], jump = 5, shift = 10, xlabel = "ν (THz)", ylabel = "T (K)", size = (550, 550), linewidth = 0.5, palette = :thermal, fillalpha = 0.75, step = 5)
# ╔═╡ 7d101426-86d9-4925-b4f8-52c2d5415491
begin
savefig(multi_plot_temp_real, "multi_plot_temp_real.pdf")
savefig(multi_plot_temp_imag, "multi_plot_temp_imag.pdf")
savefig(multi_plot_temp_abs, "multi_plot_temp_abs.pdf")
end
# ╔═╡ ad91591f-1ccf-4347-8156-1d0e2e090fdb
begin
σ_hellwarth_A = Array{ComplexF64}(undef, length(ν_range), length(T_range))
for j in 1:length(T_range)
for i in 1:length(ν_range)
println("ν: $(ν_range[i]) THz, T: $(T_range[j]) K")
σ_hellwarth_A[i, j] = multi_conductivity(ν_range[i], β_hellwarth_A[j], α_hellwarth_A[j], v_A[1], w_A[1], A_scheme[j] * 2π, 0.12)
end
CSV.write("A_conductivity_data.csv", DataFrames.DataFrame([[0.0, [i for i in T_range]...]'; [ν_range σ_hellwarth_A]], :auto))
end
σ_hellwarth_A
end
# ╔═╡ 2c4a84f5-6839-4ea4-bc9c-4eb2f8e6281b
begin
term = 40
plot(ν_range, real.(σ_hellwarth_A)[:, term], linewidth = 2, label = "Reσ", legend = :outerright, minorgrid = true, ylims = (0, 500))
plot!(ν_range, imag.(σ_hellwarth_A)[:, term], linewidth = 2, linestyle = :dash, label = "Imσ")
plot!(ν_range, abs.(σ_hellwarth_A)[:, term], linewidth = 2, linestyle = :dot, label = "|σ|")
end
# ╔═╡ ee677bc3-2e9e-4e35-a66c-4c6052c4e32e
A_contour_real = Plots.contourf(ν_range, T_range, real.(σ_hellwarth_A)', xlabel = "ν (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, right_margin = 7Plots.mm, clims = (0, 600))
# ╔═╡ 87154df5-6996-4b4b-9f63-45606205b945
A_contour_imag = Plots.contourf(ν_range, T_range, imag.(σ_hellwarth_A)', xlabel = "ν (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, right_margin = 7Plots.mm, clims = (-6, 600))
# ╔═╡ f4f84543-d7b8-43b2-93cb-0de8d7fa0a30
A_contour_abs = Plots.contourf(ν_range, T_range, abs.(σ_hellwarth_A)', xlabel = "ν (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true, scale = :log), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, right_margin = 7Plots.mm, clims = (0, 600))
# ╔═╡ 005705cd-a857-431a-8956-8ba0035c7c05
begin
savefig(A_contour_real, "A_contour_real.pdf")
savefig(A_contour_imag, "A_contour_imag.pdf")
savefig(A_contour_abs, "A_contour_abs.pdf")
end
# ╔═╡ 77a6559f-6c40-4673-9a8d-9e0c8fe3476f
A_plot_temp_real = ridgeline(round.(ν_range, digits = 1), Int.(T_range), [i < 600 ? i : 600 for i in abs.(σ_hellwarth_A)], jump = 5, shift = 10, xlabel = "ν (THz)", ylabel = "T (K)", size = (550, 550), linewidth = 0.5, palette = :thermal, fillalpha = 0.75, step = 5)
# ╔═╡ 498c610b-0646-4a84-ac40-ab8c6efc5278
A_plot_temp_imag = ridgeline(round.(ν_range, digits = 1), Int.(T_range), [i < 600 ? i : 600 for i in imag.(σ_hellwarth_A)], jump = 5, shift = 10, xlabel = "ν (THz)", ylabel = "T (K)", size = (550, 550), linewidth = 0.5, palette = :thermal, fillalpha = 0.75, step = 5)
# ╔═╡ bc47027d-21a0-4a02-914d-aba2381d2e01
A_plot_temp_abs = ridgeline(round.(ν_range, digits = 1), Int.(T_range), [i < 600 ? i : 600 for i in abs.(σ_hellwarth_A)], jump = 5, shift = 10, xlabel = "ν (THz)", ylabel = "T (K)", size = (550, 550), linewidth = 0.5, palette = :thermal, fillalpha = 0.75, step = 5)
# ╔═╡ 1e902322-d319-42c5-889c-c3048515674c
begin
savefig(A_plot_temp_real, "A_plot_temp_real.pdf")
savefig(A_plot_temp_imag, "A_plot_temp_imag.pdf")
savefig(A_plot_temp_abs, "A_plot_temp_abs.pdf")
end
# ╔═╡ 905efcbf-b3f5-4da0-a45c-3204cd69c0ff
begin
σ_hellwarth_B = Array{ComplexF64}(undef, length(ν_range), length(T_range))
for j in 1:length(T_range)
for i in 1:length(ν_range)
println("ν: $(ν_range[i]) THz, T: $(T_range[j]) K")
σ_hellwarth_B[i, j] = multi_conductivity(ν_range[i], β_hellwarth_B[j], α_hellwarth_B, v_B[1], w_B[1], B_scheme * 2π, 0.12)
end
CSV.write("B_conductivity_data.csv", DataFrames.DataFrame([[0.0, [i for i in T_range]...]'; [ν_range σ_hellwarth_B]], :auto))
end
σ_hellwarth_B
end
# ╔═╡ 38a23177-633a-4b2d-8083-5e8afd74796a
begin
term_B = 2
plot(ν_range, real.(σ_hellwarth_B)[:, term_B], linewidth = 2, label = "Reσ", legend = :outerright, minorgrid = true, ylims = (0, 600))
plot!(ν_range, imag.(σ_hellwarth_B)[:, term_B], linewidth = 2, linestyle = :dash, label = "Imσ")
plot!(ν_range, abs.(σ_hellwarth_B)[:, term_B], linewidth = 2, linestyle = :dot, label = "|σ|")
end
# ╔═╡ 64821290-9bbe-4a7b-af4c-79825f6d4015
B_contour_real = Plots.contourf(ν_range, T_range, real.(σ_hellwarth_B)', xlabel = "ν (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, right_margin = 7Plots.mm, clims = (0, 600))
# ╔═╡ d292b963-3fd1-4d05-b72b-d71b66c5a919
B_contour_imag = Plots.contourf(ν_range, T_range, imag.(σ_hellwarth_B)', xlabel = "ν (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, right_margin = 7Plots.mm, clims = (-6, 600))
# ╔═╡ bfdc8a9b-9522-4f48-8b17-da79447994a8
B_contour_abs = Plots.contourf(ν_range, T_range, abs.(σ_hellwarth_B)', xlabel = "ν (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, right_margin = 7Plots.mm, clims = (0, 600))
# ╔═╡ 273c8ea1-0f7c-42b4-8954-67671d157181
begin
savefig(B_contour_real, "B_contour_real.pdf")
savefig(B_contour_imag, "B_contour_imag.pdf")
savefig(B_contour_abs, "B_contour_abs.pdf")
end
# ╔═╡ b96343f4-bb61-4f4b-9ec9-ad2f37a96cfa
B_plot_temp_real = ridgeline(round.(ν_range, digits = 1), Int.(T_range), [i < 600 ? i : 600 for i in real.(σ_hellwarth_A)], jump = 5, shift = 10, xlabel = "ν (THz)", ylabel = "T (K)", size = (550, 550), linewidth = 0.5, palette = :thermal, fillalpha = 0.75, step = 5)
# ╔═╡ b4ee14e9-a89f-4a29-b6ed-d777fe477b9a
B_plot_temp_imag = ridgeline(round.(ν_range, digits = 1), Int.(T_range), [i < 600 ? i : 600 for i in imag.(σ_hellwarth_B)], jump = 5, shift = 10, xlabel = "ν (THz)", ylabel = "T (K)", size = (550, 550), linewidth = 0.5, palette = :thermal, fillalpha = 0.75, step = 5)
# ╔═╡ f711553f-e567-437f-9c38-79e644bd18b9
B_plot_temp_abs = ridgeline(round.(ν_range, digits = 1), Int.(T_range), [i < 600 ? i : 600 for i in abs.(σ_hellwarth_B)], jump = 5, shift = 10, xlabel = "ν (THz)", ylabel = "T (K)", size = (550, 550), linewidth = 0.5, palette = :thermal, fillalpha = 0.75, step = 5)
# ╔═╡ 26e1a5da-6bdb-49b9-973b-768d901a2a60
begin
savefig(B_plot_temp_real, "B_plot_temp_real.pdf")
savefig(B_plot_temp_imag, "B_plot_temp_imag.pdf")
savefig(B_plot_temp_abs, "B_plot_temp_abs.pdf")
end
# ╔═╡ Cell order:
# ╠═29d62408-0629-4f39-909e-a6ba8696e955
# ╠═1eb559b3-dbce-4caf-800f-96a2495dee1b
# ╠═77d14c3f-bcaf-432c-9005-f5ec184d84b7
# ╠═ba2dadc8-d9a2-452e-9f94-406ccfc7404b
# ╠═c05cd489-68c8-418e-bbc2-a33bc42781f0
# ╠═1d300e7d-5efb-4ad2-a826-c3f8a86083d8
# ╠═6a99cd13-68cb-474c-96af-7d78ee4e7095
# ╠═49663b33-1604-430b-a815-9eb985802987
# ╠═314af942-8922-40d4-a92b-f75b715c276c
# ╠═6ff68ba5-df0c-42a0-8cf1-dedeced77e8d
# ╠═35390bdf-e260-4566-8a97-7a0b5a3ef07a
# ╠═e0ce47a5-368a-4da7-83fc-9f921af0f747
# ╠═053d717a-2b63-40e7-9dc0-487e3892de98
# ╠═86fe8a15-4d9e-48fa-8387-3cfaff7aa182
# ╠═16e7d781-bc61-44b3-84a2-e8c8892bf773
# ╠═a78017d7-8835-4a8f-8dd3-f3a4a50eb37b
# ╠═d7346684-6b68-4dfc-81da-12c435c4acf0
# ╠═798a4f7a-a2a0-48de-82ad-f85b4199496a
# ╠═ec0744c0-2530-11ec-04c3-1b5d83413b78
# ╠═f3b91e16-26d3-45c8-b28f-193afac15d7f
# ╠═a941ccc6-90cb-448a-91bb-f80233b630f8
# ╠═1372f247-4622-4388-b458-89aa6e695388
# ╠═c28f6d35-c3ed-4984-9c36-b282fb50001b
# ╠═49480256-2dcc-4d10-a5a1-4202b243cfd2
# ╠═4966ecf1-ef39-4da3-a8a5-9e47a6c6b0ec
# ╠═3321246b-76bd-4678-a5ae-332c3543a1ef
# ╠═b2944c8a-158e-461b-a83c-842925587179
# ╠═fe4e5ef5-833a-4b61-9ea9-92fa52d7a21f
# ╠═8350c7a2-e9fd-4312-9561-44e2524734af
# ╠═db2b4169-0737-44c1-9af5-aa2f2403f5db
# ╠═2b6d00e1-317b-41cc-9489-14a1450012f4
# ╠═3e1418c2-01a1-4651-8029-59f53264193d
# ╠═d4f392ef-968a-439c-ba53-5707464446e7
# ╠═b3c94ea5-d152-4705-9a30-f8d3e4da0874
# ╠═3608af5e-7b44-4d50-9770-5e8afd4fca28
# ╠═1716f263-f8ad-40a1-a805-d8b7ea6f38df
# ╠═da629bec-b53c-4acf-a0ab-6057c3b973a9
# ╠═0641f475-0f35-4f5c-abf0-85ec56f4e30c
# ╠═c49a4dc3-2546-472f-9fde-b59ec3246237
# ╠═0e3cf449-6e2a-4353-853e-58d15693743d
# ╠═16040051-57d5-4c6c-aa13-8280ae964261
# ╠═32f32534-2a6b-4675-8508-890579058e07
# ╠═de89f0aa-21fb-42d2-9a75-5b45938b1e65
# ╠═a74836cf-f9ab-41d6-9f01-5066f1afac34
# ╠═2ea4fc88-5285-4c8e-baf9-f0b2f75b33e0
# ╠═e5b21223-f7a5-4560-b03d-f015cdc99c41
# ╠═ff8beae7-50e2-46cb-a38d-eb65a8cedaa4
# ╠═757c41b7-e32b-4a67-b02d-c3f25acc266f
# ╠═368ee8d7-84a8-4711-a9f9-f08d3c03c0ec
# ╠═b032bda5-4920-4546-a80f-5491b4044f45
# ╠═5dd88a96-75d2-409a-abf8-960c09c74188
# ╠═83ec77a6-fcf8-4025-ac6d-cd7819312427
# ╠═3a52ff01-110b-4755-b43a-acc5b3b870aa
# ╠═8fafb718-d95a-4ca7-921f-4abe1ab846ac
# ╠═552b01e3-fd72-489a-aa2b-ae00b6d37c05
# ╠═a465eeb5-5b8f-4202-bd58-651867c9d423
# ╠═6b60ab62-6706-4c33-ad7a-efb11803eb6b
# ╠═7ae9767d-d18f-4188-8e59-dea17c9d5ac4
# ╠═523af3a6-7cc9-41cf-9acb-9a1d25086969
# ╠═8db8a4fd-fc04-4d45-8d05-8f69eff611df
# ╠═0e921a7a-a07d-4afc-a991-e06d9be96e3f
# ╠═2d4759ab-18d8-4368-a568-0da25474366c
# ╠═2285006a-a115-414a-b788-b05fd6720bcd
# ╠═0fdcd049-8f06-4651-9864-a76647154680
# ╠═f09c4429-9415-49c1-b22d-a8867cbd4249
# ╠═0178c326-eeca-4d7a-a111-58b589cba561
# ╠═d2bbb4c9-98e5-4959-a36c-b3e48c37a03c
# ╠═0d78d4ef-6360-43b3-9952-3467410d8908
# ╠═8822d1c3-5bda-4e4e-9b0b-703c75d10816
# ╠═72d02e9b-d59e-498b-8947-3a86634b7eb4
# ╠═0916b2de-ff08-4c60-9bb1-70efbea6f6f6
# ╠═dfd78449-6db6-4f6b-9ecf-00a202ad685d
# ╠═7d101426-86d9-4925-b4f8-52c2d5415491
# ╠═ad91591f-1ccf-4347-8156-1d0e2e090fdb
# ╠═2c4a84f5-6839-4ea4-bc9c-4eb2f8e6281b
# ╠═ee677bc3-2e9e-4e35-a66c-4c6052c4e32e
# ╠═87154df5-6996-4b4b-9f63-45606205b945
# ╠═f4f84543-d7b8-43b2-93cb-0de8d7fa0a30
# ╠═005705cd-a857-431a-8956-8ba0035c7c05
# ╠═77a6559f-6c40-4673-9a8d-9e0c8fe3476f
# ╠═498c610b-0646-4a84-ac40-ab8c6efc5278
# ╠═bc47027d-21a0-4a02-914d-aba2381d2e01
# ╠═1e902322-d319-42c5-889c-c3048515674c
# ╠═905efcbf-b3f5-4da0-a45c-3204cd69c0ff
# ╠═38a23177-633a-4b2d-8083-5e8afd74796a
# ╠═64821290-9bbe-4a7b-af4c-79825f6d4015
# ╠═d292b963-3fd1-4d05-b72b-d71b66c5a919
# ╠═bfdc8a9b-9522-4f48-8b17-da79447994a8
# ╠═273c8ea1-0f7c-42b4-8954-67671d157181
# ╠═b96343f4-bb61-4f4b-9ec9-ad2f37a96cfa
# ╠═b4ee14e9-a89f-4a29-b6ed-d777fe477b9a
# ╠═f711553f-e567-437f-9c38-79e644bd18b9
# ╠═26e1a5da-6bdb-49b9-973b-768d901a2a60
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 32536 | ### A Pluto.jl notebook ###
# v0.14.8
using Markdown
using InteractiveUtils
# ╔═╡ ed9ab030-e61d-11eb-32f3-5be220868ae7
using Revise
# ╔═╡ d51f978f-a2c8-410a-8836-f57fc362eed1
using CSV
# ╔═╡ ffa81468-a1cd-44f3-aa5a-c970e56b7f27
using DataFrames
# ╔═╡ 4c98c769-0aed-4b8a-bf92-fb06268100a9
using Plots
# ╔═╡ c819bc8f-cc85-4edb-8289-5884f7fbb8f7
using LaTeXStrings
# ╔═╡ e2d229a0-eaae-481c-9ee1-94d641fc3014
using ColorSchemes
# ╔═╡ 88fe20b4-303a-494e-95cc-e8183b2f474e
Ω = real.(parse.(ComplexF64, (CSV.File("multi_conductivity_data.csv") |> Tables.matrix)[2:end, 1]))
# ╔═╡ a76c9858-0fe7-45c2-9b5c-a8cf7f800c08
T = real.(parse.(ComplexF64, (CSV.File("multi_conductivity_data.csv") |> Tables.matrix)[1, 2:end]))
# ╔═╡ 6d08ec24-51d5-4105-bddf-443bc8496456
A_freq = (CSV.File("B_data.csv") |> Tables.matrix)[:, 2]
# ╔═╡ 5fa3101f-d24b-41f1-9a77-f5b7782ec4a3
B_freq = (CSV.File("B_data.csv") |> Tables.matrix)[:, 2]
# ╔═╡ 78156817-9c43-44c0-90e9-55e1100538a7
multi_freqs = real.((CSV.File("multi_data.csv") |> Tables.matrix)[1:end, 2])
# ╔═╡ 4bf7a882-1306-415a-8760-6191e5284306
multi_α = real.((CSV.File("multi_data.csv") |> Tables.matrix)[1:end, 1])
# ╔═╡ 8b91053e-28cc-47ce-8551-72e3e3c8ee93
A_α = real.((CSV.File("A_data.csv") |> Tables.matrix)[1:end, 1])
# ╔═╡ fd24b1c2-a6c2-4328-854b-ada51d40c56a
B_α = real.((CSV.File("B_data.csv") |> Tables.matrix)[1:end, 1])
# ╔═╡ db273a6b-bd14-4935-92dd-1271def823ba
ir_activity = real.((CSV.File("multi_data.csv") |> Tables.matrix)[1:end, end])
# ╔═╡ 830ce1e4-80f4-4dfa-a214-d7d0c84cfbbb
begin
scatter(multi_freqs, multi_α, yaxis = :log, xticks = (multi_freqs, hcat(["$(round(i, digits = 2))" for i in multi_freqs]...)), label = L"\textbf{\alpha_j}", size = (500, 500), xlabel = "Phonon Frequencies (THz)", tickfontsize = 9, xrotation = 90)
scatter!(multi_freqs, ir_activity, markershape = :diamond, label = "IR")
plot!(multi_freqs, multi_α ./ ir_activity, linewidth = 2, linestyle = :dash, label = "ratio")
end
# ╔═╡ 4b5dc310-b4f6-4bd3-88e5-f082ea8ee47e
F_multi = real.((CSV.File("multi_vw.csv") |> Tables.matrix)[1:end, 5])
# ╔═╡ f9e47e6f-fdc5-42b6-9ea2-46c801f8cf6b
F_multi_avg = [F_multi[i] for i in 1:length(T)]
# ╔═╡ e2a502b1-cca9-40c2-a107-2b577f0662dc
F_A = real.((CSV.File("A_data.csv") |> Tables.matrix)[1:end, end])
# ╔═╡ 92f361d6-2052-45bd-a2a1-0d19d04eec1b
F_B = real.((CSV.File("B_data.csv") |> Tables.matrix)[1:end, end])
# ╔═╡ b1473f00-5aa9-4ace-a0f9-9e5cb9747af5
multi_energy_temp = plot(T, F_multi, label = hcat(["$(round(i, digits = 3)) THz" for i in multi_freqs]...), legend = :outerright, linewidth = 2, size = (650, 500), minorgrid = true, ylabel = "Free energy (meV)", xlabel = "T (K)", tickfontsize = 9, legendfontsize = 9)
# ╔═╡ 4c4d1b61-6710-478c-a8f5-067c219be342
savefig(multi_energy_temp, "multi_energy_temp.pdf")
# ╔═╡ 9493c1f8-d2b4-42b3-9af5-2d69ee7499bf
begin
free_energy_temp = plot(T, F_A, linewidth = 2, linestyle = :dashdot, label = "H-A", tickfontsize = 12, labelfontsize = 12, legendfontsize = 12, xlabel = "T(K)", ylabel = "Free energy (meV)", minorgrid = true, size = (550, 550), legend = :topright)
plot!(T, F_B, linewidth = 2, linestyle = :dash, label = "H-B")
plot!(T, F_multi_avg, linewidth = 2, linestyle = :solid, label = "multi")
end
# ╔═╡ d4a13a12-e1ca-4ded-9c49-3c33b1cb69a0
savefig(free_energy_temp, "free_energy_temp.pdf")
# ╔═╡ 40fc4b41-c835-41a3-b468-765d4bbd0042
begin
v_A = real.((CSV.File("A_data.csv") |> Tables.matrix)[1:end, end-2])
w_A = real.((CSV.File("A_data.csv") |> Tables.matrix)[1:end, end-1])
v_B = real.((CSV.File("B_data.csv") |> Tables.matrix)[1:end, end-2])
w_B = real.((CSV.File("B_data.csv") |> Tables.matrix)[1:end, end-1])
end
# ╔═╡ aa1b7720-91ee-48e5-a97e-f8e3a499ad2f
v_multi = real.((CSV.File("multi_vw.csv") |> Tables.matrix)[1:end, 3])
# ╔═╡ 10b31119-9d2f-445d-9353-9e6788a464d3
w_multi = real.((CSV.File("multi_vw.csv") |> Tables.matrix)[1:end, 4])
# ╔═╡ eef00978-0153-4031-b748-d9e1e5e2f5c5
multi_v_temp = plot(T, v_multi .* (multi_freqs)', label = hcat(["$(round(i, digits = 3)) THz" for i in multi_freqs]...), legend = :outerright, linewidth = 1.5, size = (650, 500), minorgrid = true, ylabel = "v (THz)", xlabel = "T (K)", tickfontsize = 9, legendfontsize = 9)
# ╔═╡ 45e2101a-010d-404d-aaf6-c68d28536677
multi_w_temp = plot(T, w_multi .* multi_freqs', label = hcat(["$(round(i, digits = 3)) THz" for i in multi_freqs]...), legend = :outerright, linewidth = 1.5, size = (650, 500), minorgrid = true, ylabel = "w (THz)", xlabel = "T (K)", tickfontsize = 9, legendfontsize = 9)
# ╔═╡ 4da848c3-23dd-4640-bab3-a8b4b4784639
plot(T, (v_multi .- w_multi) .* multi_freqs', label = hcat(["$(round(i, digits = 3)) THz" for i in multi_freqs]...), legend = :outerright, linewidth = 1.5, size = (650, 500), minorgrid = true, ylabel = "v - w (THz)", xlabel = "T (K)", tickfontsize = 9, legendfontsize = 9)
# ╔═╡ 8f23b6a9-9cb8-47b5-bec1-b7f4f2fe050b
begin
savefig(multi_v_temp, "multi_v_temp.pdf")
savefig(multi_w_temp, "multi_w_temp.pdf")
end
# ╔═╡ e7631e4b-dc2c-4b0c-b7a9-7a92dbe0fd1e
begin
vw_temp = plot(T, v_A, label = "H-A v", legend = :bottomright, linewidth = 2, tickfontsize = 12, labelfontsize = 12, legendfontsize = 12, xlabel = "T(K)", ylabel = "v & w (THz)", size = (550, 550), minorgrid = true, linestyle = :dashdot, color = theme_palette(:default)[1])
plot!(T, w_A, label = "H-A w", linewidth = 2, linestyle = :dashdot, color = theme_palette(:default)[2])
plot!(T, v_B, label = "H-B v", linewidth = 2, linestyle = :dash, color = theme_palette(:default)[3])
plot!(T, w_B, label = "H-B w", linewidth = 2, linestyle = :dash, color = theme_palette(:default)[4])
plot!(T, v_multi, label = "multi v", linewidth = 2, linestyle = :solid, color = theme_palette(:default)[1])
plot!(T, w_multi, label = "multi w", linewidth = 2, linestyle = :solid, color = theme_palette(:default)[2])
end
# ╔═╡ 32c47e89-a988-4586-840b-0ac952e1d916
savefig(vw_temp, "vw_temp.pdf")
# ╔═╡ dd0f2762-4cbb-4fc4-b79e-a70b1006905e
begin
plot(T, v_A, label = "H-A v", legend = :bottomright, linewidth = 2, tickfontsize = 12, labelfontsize = 12, legendfontsize = 12, xlabel = "T(K)", ylabel = "v & w (THz)", size = (550, 550), minorgrid = true, linestyle = :dashdot, color = theme_palette(:default)[1])
plot!(T, w_A, label = "H-A w", linewidth = 2, linestyle = :dashdot, color = theme_palette(:default)[2])
plot!(T, v_B, label = "H-B v", linewidth = 2, linestyle = :dash, color = theme_palette(:default)[3])
plot!(T, w_B, label = "H-B w", linewidth = 2, linestyle = :dash, color = theme_palette(:default)[4])
end
# ╔═╡ 9d039885-65fa-4f43-ac15-ba927a68be60
multi_conductivity_data = parse.(ComplexF64, (CSV.File("multi_conductivity_data.csv") |> Tables.matrix)[2:end, 2:end])
# ╔═╡ 88c443f2-f6ea-464e-9190-aa158a0f7f50
A_conductivity_data = parse.(ComplexF64, (CSV.File("A_conductivity_data.csv") |> Tables.matrix)[2:end, 2:end])
# ╔═╡ db784d36-b859-4022-b585-0730bf081a65
B_conductivity_data = parse.(ComplexF64, (CSV.File("B_conductivity_data.csv") |> Tables.matrix)[2:end, 2:end])
# ╔═╡ 656db2a0-91d6-447b-95a8-2a2981979645
A_contour_real = Plots.contourf(Ω, T, real.(A_conductivity_data)', xlabel = "Ω (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, right_margin = 7Plots.mm, clims = (0, 500))
# ╔═╡ a586ecee-fd54-44e7-8dea-fa1f2a6829df
A_contour_imag = Plots.contourf(Ω, T, imag.(A_conductivity_data)', xlabel = "Ω (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true), clims = (-6, 500), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, right_margin = 7Plots.mm)
# ╔═╡ 2aeb1ede-b786-494f-9f15-0a8382943c29
A_contour_abs = Plots.contourf(Ω, T, abs.(A_conductivity_data)', xlabel = "Ω (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true), clims = (0, 500), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, right_margin = 7Plots.mm)
# ╔═╡ 88c2fd6b-a8cc-436a-b9e9-5412c19b42bd
begin
savefig(A_contour_real, "A_contour_real.pdf")
savefig(A_contour_imag, "A_contour_imag.pdf")
savefig(A_contour_abs, "A_contour_abs.pdf")
end
# ╔═╡ 329f1be8-967d-4c5b-8536-f6f1008f2a9c
B_contour_real = Plots.contourf(Ω, T, real.(B_conductivity_data)', xlabel = "Ω (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, right_margin = 7Plots.mm, clims = (0, 500))
# ╔═╡ ba30cda1-9a2e-4427-9cde-3a5e3e7e4dcf
B_contour_imag = Plots.contourf(Ω, T, imag.(B_conductivity_data)', xlabel = "Ω (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, right_margin = 7Plots.mm, clims = (-6, 500))
# ╔═╡ e30b9ee1-0eac-44ad-bb6e-4c243672468e
B_contour_abs = Plots.contourf(Ω, T, abs.(B_conductivity_data)', xlabel = "Ω (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, right_margin = 7Plots.mm, clims = (0, 500))
# ╔═╡ 26ec12fd-5c2d-458c-8282-b411ef5184a8
begin
savefig(B_contour_real, "B_contour_real.pdf")
savefig(B_contour_imag, "B_contour_imag.pdf")
savefig(B_contour_abs, "B_contour_abs.pdf")
end
# ╔═╡ 1e89541e-0635-47d9-96f6-99dceef27d00
multi_contour_real = Plots.contourf(Ω, T, real.(multi_conductivity_data)', xlabel = "Ω (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, right_margin = 7Plots.mm, clims = (0, 500))
# ╔═╡ 6b617a87-f84e-4818-be31-5806d2e8894d
multi_contour_imag = Plots.contourf(Ω, T, imag.(multi_conductivity_data)', xlabel = "Ω (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, right_margin = 7Plots.mm, clims = (-6, 500))
# ╔═╡ bc190237-ddff-4abc-bf29-0e23d10fad0d
multi_contour_abs = Plots.contourf(Ω, T, abs.(multi_conductivity_data)', xlabel = "Ω (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 12, labelfontsize = 12, right_margin = 7Plots.mm, clims = (0, 500))
# ╔═╡ 512e223b-249d-48ff-9eec-4282f4658c76
begin
savefig(multi_contour_real, "multi_contour_real.pdf")
savefig(multi_contour_imag, "multi_contour_imag.pdf")
savefig(multi_contour_abs, "multi_contour_abs.pdf")
end
# ╔═╡ 0ec007f8-9b46-4d0c-a8d2-c12ff85b0f5a
AB_contour_real = Plots.contourf(Ω, T, log.(abs.(real.(A_conductivity_data .- B_conductivity_data)))', xlabel = "Ω (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true, scale = :log), clims = (-16, 5), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 10, right_margin = 7Plots.mm)
# ╔═╡ 7a68a5ca-2c8f-40bc-ac7b-8a996f48b41b
AB_contour_imag = Plots.contourf(Ω, T, log.(abs.(imag.(A_conductivity_data .- B_conductivity_data)))', xlabel = "Ω (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true, scale = :log), clims = (-16, 5), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 10, right_margin = 7Plots.mm)
# ╔═╡ 3a14ec9b-c726-40da-a4ed-ad22ee89e8d3
AB_contour_abs = Plots.contourf(Ω, T, log.(abs.(A_conductivity_data .- B_conductivity_data))', xlabel = "Ω (THz)", ylabel = "T (K)", fill = cgrad(:thermal, rev = false, categorical = true, scale = :log), clims = (-16, 5), linewidth = 1.3, color = :grey10, size = (550, 500), tickfontsize = 10, right_margin = 7Plots.mm)
# ╔═╡ 6071f2a4-ec70-4a12-b40a-84062ae2bb6a
begin
savefig(AB_contour_real, "AB_contour_real.pdf")
savefig(AB_contour_imag, "AB_contour_imag.pdf")
savefig(AB_contour_abs, "AB_contour_abs.pdf")
end
# ╔═╡ b80aedaf-b264-47b3-a679-1c73ce1e8a0f
real.(multi_conductivity_data)[:, 291]
# ╔═╡ c30386e2-e275-4e8c-bc46-e043ce3484b2
real.(A_conductivity_data)[:, 291]
# ╔═╡ 585d49c7-0b54-4884-922c-84e9ae387837
real.(B_conductivity_data)[:, 291]
# ╔═╡ c3281d7d-3d8e-4283-ad14-0fbe30759990
begin
multi_plot = Plots.plot(Ω[1:250], real.(multi_conductivity_data[1:250, 1:1:30]), legend = false, label = hcat(["T = $i K" for i in T[1:1:30]]...), minorgrid = true, linewidth = 1.5, size = (550, 500), ylabel = L"\mathrm{Multi\ Mobility\ } (cm^2/Vs)", xlabel = L"\nu\ (THz)", tickfontsize = 9, legendfontsize = 9, ylims = (0, 1500), palette = palette(:thermal, 30))
end
# ╔═╡ aec2c420-5d16-4130-914b-0ba94f4cd9ca
red = hcat([(real.(multi_conductivity_data[i, 1]) .- real.(multi_conductivity_data[i-1, 10])) for i in 2:350]...)
# ╔═╡ 32773157-09b8-4feb-ae44-7f41e244b101
imd = hcat([(imag.(multi_conductivity_data[i, 10]) .- imag.(multi_conductivity_data[i-1, 10])) for i in 2:350]...)
# ╔═╡ 41b5f3a6-1fb7-4cab-b712-57816e8209c5
begin
plot(Ω[1:250], red[1:250], size = (550, 500), minorgrid = true)
plot!(Ω[1:250], -imd[1:250])
end
# ╔═╡ a64cfd0a-67f6-4941-8ba4-2e26b3361040
begin
multi_plot2 = Plots.plot(Ω[1:250], imag.(multi_conductivity_data[1:250, 1:1:30]), legend = false, label = hcat(["T = $i K" for i in T[1:1:30]]...), minorgrid = true, linewidth = 1.5, size = (550, 500), ylabel = L"\mathrm{Multi\ Mobility\ } (cm^2/Vs)", xlabel = L"\nu\ (THz)", tickfontsize = 9, legendfontsize = 9, ylims = (0, 1500), palette = palette(:thermal, 30))
end
# ╔═╡ 835feade-6750-48ef-baab-be9dce52500e
Plots.plot(Ω ./ 2π, abs.(real.(A_conductivity_data))[:, 400], legend = true, label = hcat(["T = $i K" for i in T[1]]...), yaxis = :log, xlabel = L"\nu\ (THz)", ylabel = L"\mathrm{Hellwarth\ A\ Mobility\ } (cm^2/Vs)", linewidth = 1.5, minorgrid = true, ylims = (5, 10^2.8), size = (500, 500), tickfontsize = 9, legendfontsize = 9)
# ╔═╡ 4bab65b0-a561-4355-8075-8cd3d8ba09f1
Plots.plot(Ω, abs.(real.(B_conductivity_data))[:, 1:60:end], legend = true, label = hcat(["T = $i K" for i in T[1:60:end]]...), yaxis = :log, xlabel = L"\Omega\ (THz)", ylabel = L"\mathrm{Hellwarth\ B\ Mobility\ } (cm^2/Vs)", linewidth = 1.5, minorgrid = true, ylims = (5, 10^2.8), size = (500, 500), tickfontsize = 9, legendfontsize = 9)
# ╔═╡ f4f970e4-6113-4782-b6dc-9072254c5b4e
Plots.plot(T, real.(multi_conductivity_data)[1:25:end, :]', legend = :topright, label = hcat(["Ω = $i THz" for i in Ω[1:25:end]]...), xlabel = L"\textrm{T\ (K)}", ylabel = L"\textbf{Multi\ Mobility\ (cm^2/Vs)}", yaxis = :log, minorgrid = true, linewidth = 1.5, ylims = (5, 10^4.5), size = (500, 500), tickfontsize = 9, legendfontsize = 9, xaxis = :log, xlims = (10, 400))
# ╔═╡ 86ff3a78-852f-424a-af6d-32e886726d0a
plot!(T, T.^(-0.2) * 18^2, linestyle = :dash, linewidth = 3, label = "T^(-0.2)")
# ╔═╡ efca960d-a7d6-42df-8196-7e00ae0ac024
Plots.plot(T, real.(A_conductivity_data)[1:25:end, :]', legend = :topright, label = hcat(["Ω = $i THz" for i in Ω[1:25:end]]...), xlabel = L"\textrm{T\ (K)}", ylabel = L"\textrm{Hellwarth\ A\ Mobility\ (cm^2/Vs)}", yaxis = :log, minorgrid = true, linewidth = 1.5, ylims = (5, 10^5), size = (500, 500), tickfontsize = 9, legendfontsize = 9)
# ╔═╡ da3417bb-2570-41df-ac54-bdf1a46299d9
Plots.plot(T, real.(B_conductivity_data)[1:25:end, :]', legend = true, label = hcat(["Ω = $i THz" for i in Ω[1:25:end]]...), xlabel = L"\textrm{T\ (K)}", ylabel = L"\textrm{Hellwarth\ B\ Mobility\ (cm^2/Vs)}", yaxis = :log, minorgrid = true, linewidth = 1.5, ylims = (5, 10^5), size = (500, 500), tickfontsize = 9, legendfontsize = 9, xaxis = :log, xlims = (10, 400))
# ╔═╡ 5c685b4e-8702-4b74-90e8-25ffd53e5582
plot!(T, T.^(-0.5) * 50^2, linestyle = :dash, linewidth = 3, label = "T^(-0.2)", legend = :outerright, size = (700, 500))
# ╔═╡ 9bd4dd63-c784-4a1e-86fa-935bd8c25ad2
function ridgeline(x, y, z; shift = 1, jump = 10, ylabel = :none, xlabel = :none, palette = :twilight, linewidth = 1.5, color = :black, size = (595, 842), ymirror = false, fillalpha = 1, step = 1)
if !ymirror
p = plot(x, z[:, 1], fillrange = z[:, jump] .- shift, fillalpha = fillalpha, ylabel = ylabel, xlabel = xlabel, xticks = (0:maximum(x)/10:maximum(x), string.(x[1:Int((length(x)-1)/10):end])), yticks = (z[1, 1:jump * step:end] .- shift .* range(0, stop = length(y[1:jump:end]) - 1, step = step), string.(y[1:jump * step:end])), legend = false, size = size, grid = false, ymirror = ymirror, palette = palette, tickfontsize = 12, labelfontsize = 12)
else
p = plot(x, z[:, 1], fillrange = z[:, jump] .- shift, fillalpha = fillalpha, ylabel = ylabel, xlabel = xlabel, xticks = (0:maximum(x)/10:maximum(x), string.(x[1:Int((length(x))/10):end])), yticks = (z[end, 1:jump * step:end] .- shift .* range(0, stop = length(y[1:jump:end]) - 1, step = step), string.(y[1:jump * step:end])), legend = false, size = size, grid = false, ymirror = ymirror, palette = palette, tickfontsize = 12, labelfontsize = 12)
end
plot!(x, z[:, 1], color = color, linewidth = linewidth)
plot!(x, z[:, jump] .- shift, color = color, linewidth = linewidth)
for i in 1:Int(floor(length(y)/jump) - 1)
plot!(x, z[:, i * jump] .- shift * i, fillrange = z[:, (i + 1) * jump] .- shift * (i + 1), fillalpha = fillalpha, palette = palette)
plot!(x, z[:, i * jump] .- shift * i, color = color, linewidth = linewidth)
plot!(x, z[:, (i + 1) * jump] .- shift * (i + 1), color = color, linewidth = linewidth)
end
return p
end
# ╔═╡ 7ae0d8a1-d2ad-4599-bce1-f71865fa7497
multi_plot_temp_real = ridgeline(round.(Ω, digits = 1), Int.(T), log.(real.(multi_conductivity_data)), jump = 10, shift = 0.6, xlabel = "Ω (THz)", ylabel = "T (K)", size = (550, 550), linewidth = 0.5, palette = :thermal, fillalpha = 0.75, step = 5)
# ╔═╡ 23c44da4-8468-4987-8d5e-1069ffb41d13
multi_plot_temp_imag = ridgeline(round.(Ω, digits = 1), Int.(T), log.(abs.(imag.(multi_conductivity_data))), jump = 10, shift = 0.6, xlabel = "Ω (THz)", ylabel = "T (K)", size = (550, 550), linewidth = 0.5, palette = :thermal, fillalpha = 0.75, step = 7)
# ╔═╡ 077a2c40-9aae-4045-89da-99f1db15fae7
multi_plot_temp_abs = ridgeline(round.(Ω, digits = 1), Int.(T), log.(abs.(multi_conductivity_data)), jump = 10, shift = 0.6, xlabel = "Ω (THz)", ylabel = "T (K)", size = (550, 550), linewidth = 0.5, palette = :thermal, fillalpha = 0.75, step = 5)
# ╔═╡ fbf4e5d9-c20b-4953-8477-c0144e34e9e9
begin
savefig(multi_plot_temp_real, "multi_plot_temp_real.pdf")
savefig(multi_plot_temp_imag, "multi_plot_temp_imag.pdf")
savefig(multi_plot_temp_abs, "multi_plot_temp_abs.pdf")
end
# ╔═╡ bfd794a2-abf9-499e-92fe-aa02f262171d
A_plot_temp_real = ridgeline(round.(Ω, digits = 1), Int.(T), log.(abs.(real.(A_conductivity_data))), jump = 10, shift = 0.6, xlabel = "Ω (THz)", ylabel = "T (K)", size = (550, 550), linewidth = 0.5, palette = :thermal, fillalpha = 0.75, step = 5)
# ╔═╡ cbdee07e-77e5-4113-b099-4feb30d5d74a
A_plot_temp_imag = ridgeline(round.(Ω, digits = 1), Int.(T), log.(abs.(imag.(A_conductivity_data))), jump = 10, shift = 0.6, xlabel = "Ω (THz)", ylabel = "T (K)", size = (550, 550), linewidth = 0.5, palette = :thermal, fillalpha = 0.75, step = 7)
# ╔═╡ 2b4876d2-6d1e-4774-89c1-3ff8be380e11
A_plot_temp_abs = ridgeline(round.(Ω, digits = 1), Int.(T), log.(abs.(A_conductivity_data)), jump = 10, shift = 0.6, xlabel = "Ω (THz)", ylabel = "T (K)", size = (550, 550), linewidth = 0.5, palette = :thermal, fillalpha = 0.75, step = 5)
# ╔═╡ 79ddc218-4710-466a-a5ba-976431cd7165
begin
savefig(A_plot_temp_real, "A_plot_temp_real.pdf")
savefig(A_plot_temp_imag, "A_plot_temp_imag.pdf")
savefig(A_plot_temp_abs, "A_plot_temp_abs.pdf")
end
# ╔═╡ 9b8183fb-3a65-463b-bae5-62a8aa9f06ac
B_plot_temp_real = ridgeline(round.(Ω, digits = 1), Int.(T), log.(abs.(real.(B_conductivity_data))), jump = 10, shift = 0.6, xlabel = "Ω (THz)", ylabel = "T (K)", size = (550, 550), linewidth = 0.5, palette = :thermal, fillalpha = 0.75, step = 5)
# ╔═╡ ed8f7ce5-c4eb-44da-a747-56ac7c152760
B_plot_temp_imag = ridgeline(round.(Ω, digits = 1), Int.(T), log.(abs.(imag.(B_conductivity_data))), jump = 10, shift = 0.6, xlabel = "Ω (THz)", ylabel = "T (K)", size = (550, 550), linewidth = 0.5, palette = :thermal, fillalpha = 0.75, step = 7)
# ╔═╡ 80cde1da-7d6a-4fea-a2c2-89b2a0a6cd0d
B_plot_temp_abs = ridgeline(round.(Ω, digits = 1), Int.(T), log.(abs.(B_conductivity_data)), jump = 10, shift = 0.6, xlabel = "Ω (THz)", ylabel = "T (K)", size = (550, 550), linewidth = 0.5, palette = :thermal, fillalpha = 0.75, step = 5)
# ╔═╡ 4cfb19f7-6852-4224-9b09-54a844624cde
begin
savefig(B_plot_temp_real, "B_plot_temp_real.pdf")
savefig(B_plot_temp_imag, "B_plot_temp_imag.pdf")
savefig(B_plot_temp_abs, "B_plot_temp_abs.pdf")
end
# ╔═╡ ccfa612b-9cf0-4e4c-a69c-e3b002e5fea5
AB_plot_temp_real = ridgeline(round.(Ω, digits = 1), Int.(T), log.(abs.(real.(A_conductivity_data .- B_conductivity_data))), jump = 5, shift = 0.3, xlabel = "Ω (THz)", ylabel = "T (K)", size = (550, 550), linewidth = 0.5, palette = :thermal, fillalpha = 0.75, step = 5)
# ╔═╡ 39eeac1c-5db8-4d6c-8552-d308b5199d5e
AB_plot_temp_imag = ridgeline(round.(Ω, digits = 1), Int.(T), log.(abs.(imag.(A_conductivity_data .- B_conductivity_data))), jump = 5, shift = 0.3, xlabel = "Ω (THz)", ylabel = "T (K)", size = (500, 500), linewidth = 0.5, palette = :thermal, fillalpha = 0.75, step = 4)
# ╔═╡ a8ab6e8a-2d89-4383-9ab6-e49990712489
AB_plot_temp_abs = ridgeline(round.(Ω, digits = 1), Int.(T), log.(abs.(A_conductivity_data .- B_conductivity_data)), jump = 5, shift = 0.3, xlabel = "Ω (THz)", ylabel = "T (K)", size = (500, 500), linewidth = 0.5, palette = :thermal, fillalpha = 0.75, step = 4)
# ╔═╡ ba68e7aa-963f-4cdb-a141-b4ee9ff697db
begin
savefig(AB_plot_temp_real, "AB_plot_temp_real.pdf")
savefig(AB_plot_temp_imag, "AB_plot_temp_imag.pdf")
savefig(AB_plot_temp_abs, "AB_plot_temp_abs.pdf")
end
# ╔═╡ 9e0e8eea-f5e9-4d91-80cd-a1e7847933e6
multi_plot_freq_real = ridgeline(Int.(T), round.(Ω, digits = 1), log.(abs.(real.(multi_conductivity_data)))', jump = 6, shift = 0.4, ylabel = "Ω (THz)", xlabel = "T (K)", ymirror = true, size = (550, 550), linewidth = 0.75, palette = :twilight, fillalpha = 0.75, step = 7)
# ╔═╡ 3e185071-6fda-4dc6-8e84-4900a106b798
multi_plot_freq_imag = ridgeline(Int.(T), round.(Ω, digits = 1), log.(abs.(imag.(multi_conductivity_data)))', jump = 6, shift = 0.4, ylabel = "Ω (THz)", xlabel = "T (K)", ymirror = true, size = (550, 550), linewidth = 0.75, palette = :twilight, fillalpha = 0.75, step = 10)
# ╔═╡ 05516d71-0f45-4e97-97b0-8a1819aed270
multi_plot_freq_abs = ridgeline(Int.(T), round.(Ω, digits = 1), log.(abs.(multi_conductivity_data))', jump = 6, shift = 0.4, ylabel = "Ω (THz)", xlabel = "T (K)", ymirror = true, size = (500, 550), linewidth = 0.75, palette = :twilight, fillalpha = 0.75, step = 7)
# ╔═╡ c3f82311-03fa-4cb0-9dca-4cf495b5e8ca
begin
savefig(multi_plot_freq_real, "multi_plot_freq_real.pdf")
savefig(multi_plot_freq_imag, "multi_plot_freq_imag.pdf")
savefig(multi_plot_freq_abs, "multi_plot_freq_abs.pdf")
end
# ╔═╡ c3bdb1f6-889b-4c84-9857-88f619d6e617
A_plot_freq_real = ridgeline(Int.(T), round.(Ω, digits = 1), log.(abs.(real.(A_conductivity_data)))', jump = 6, shift = 0.6, ylabel = "Ω (THz)", xlabel = "T (K)", ymirror = true, size = (550, 550), linewidth = 0.75, palette = :twilight, fillalpha = 0.75, step = 7)
# ╔═╡ 428b7174-9d3f-4762-8941-6feabcfbb4e0
A_plot_freq_imag = ridgeline(Int.(T), round.(Ω, digits = 1), log.(abs.(imag.(A_conductivity_data)))', jump = 6, shift = 0.6, ylabel = "Ω (THz)", xlabel = "T (K)", ymirror = true, size = (550, 550), linewidth = 0.75, palette = :twilight, fillalpha = 0.75, step = 10)
# ╔═╡ 5900719d-e804-4a7d-a142-38fddf56a085
A_plot_freq_abs = ridgeline(Int.(T), round.(Ω, digits = 1), log.(abs.(A_conductivity_data))', jump = 6, shift = 0.6, ylabel = "Ω (THz)", xlabel = "T (K)", ymirror = true, size = (550, 550), linewidth = 0.75, palette = :twilight, fillalpha = 0.75, step = 7)
# ╔═╡ ff9a0b04-b007-468e-acba-677a7f25a340
begin
savefig(A_plot_freq_real, "A_plot_freq_real.pdf")
savefig(A_plot_freq_imag, "A_plot_freq_imag.pdf")
savefig(A_plot_freq_abs, "A_plot_freq_abs.pdf")
end
# ╔═╡ bab7f306-94d2-4360-8c0d-08b8a619046d
B_plot_freq_real = ridgeline(Int.(T), round.(Ω, digits = 1), log.(abs.(real.(B_conductivity_data)))', jump = 6, shift = 0.6, ylabel = "Ω (THz)", xlabel = "T (K)", ymirror = true, size = (550, 550), linewidth = 0.75, palette = :twilight, fillalpha = 0.75, step = 7)
# ╔═╡ 0879342a-c552-4bc6-8dce-21f020abeb25
B_plot_freq_imag = ridgeline(Int.(T), round.(Ω, digits = 1), log.(abs.(imag.(B_conductivity_data)))', jump = 6, shift = 0.6, ylabel = "Ω (THz)", xlabel = "T (K)", ymirror = true, size = (550, 550), linewidth = 0.75, palette = :twilight, fillalpha = 0.75, step = 10)
# ╔═╡ 8acd98e2-23ef-478b-97c2-533e0e2bef98
B_plot_freq_abs = ridgeline(Int.(T), round.(Ω, digits = 1), log.(abs.(B_conductivity_data))', jump = 6, shift = 0.6, ylabel = "Ω (THz)", xlabel = "T (K)", ymirror = true, size = (550, 550), linewidth = 0.75, palette = :twilight, fillalpha = 0.75, step = 7)
# ╔═╡ 34411f71-63bc-4c91-9cd4-486e69f5876a
begin
savefig(B_plot_freq_real, "B_plot_freq_real.pdf")
savefig(B_plot_freq_imag, "B_plot_freq_imag.pdf")
savefig(B_plot_freq_abs, "B_plot_freq_abs.pdf")
end
# ╔═╡ aff41df3-144f-452e-b059-c306000ad10d
AB_plot_freq_real = ridgeline(Int.(T), round.(Ω, digits = 1), log.(abs.(real.(A_conductivity_data .- B_conductivity_data)))', jump = 3, shift = 1, ylabel = "Ω (THz)", xlabel = "T (K)", ymirror = true, size = (500, 500), linewidth = 0.75, palette = :twilight, fillalpha = 0.75, step = 5)
# ╔═╡ 9288099f-4e2a-43d6-ba2c-1debb17c4901
AB_plot_freq_imag = ridgeline(Int.(T), round.(Ω, digits = 1), log.(abs.(imag.(A_conductivity_data .- B_conductivity_data)))', jump = 3, shift = 1, ylabel = "Ω (THz)", xlabel = "T (K)", ymirror = true, size = (500, 500), linewidth = 0.75, palette = :twilight, fillalpha = 0.75, step = 5)
# ╔═╡ a844da51-68ad-442f-9517-bbcde197c38e
AB_plot_freq_abs = ridgeline(Int.(T), round.(Ω, digits = 1), log.(abs.(A_conductivity_data .- B_conductivity_data))', jump = 3, shift = 1, ylabel = "Ω (THz)", xlabel = "T (K)", ymirror = true, size = (500, 500), linewidth = 0.75, palette = :twilight, fillalpha = 0.75, step = 5)
# ╔═╡ f47f71d3-870a-47b8-9ab2-426b8ceacf72
begin
savefig(AB_plot_freq_real, "AB_plot_freq_real.pdf")
savefig(AB_plot_freq_imag, "AB_plot_freq_imag.pdf")
savefig(AB_plot_freq_abs, "AB_plot_freq_abs.pdf")
end
# ╔═╡ 8b7c9fd6-2289-47c6-ad73-2e60e867979e
plot(multi_freqs, F_multi[:, 1:1:20], markershape = :circle, legend = :bottomright, label = hcat(["$(T[i]) K" for i in 1:1:20]...), xticks = (multi_freqs, hcat(["$(round(i, digits = 2))" for i in multi_freqs]...)), xrotation = 90, tickfontsize = 9, ylabel = "Free energy (meV)", xlabel = "Phonon frequencies (THz)", linestyle = :dot)
# ╔═╡ 509b518e-07d9-4b5d-8938-b4a9ec188d8f
ridgeline(round.(multi_freqs, digits = 1), T[4:400], F_multi[:, 4:400], ymirror = true)
# ╔═╡ 18edac61-b8e1-4119-b49d-56d2b9ba2251
begin
plot(multi_freqs, v_multi[:, 1:50:400] .* multi_freqs, markershape = :circle, legend = :outerright, label = hcat(["$(T[i]) K" for i in 1:50:400]...), xticks = (multi_freqs, hcat(["$(round(i, digits = 2))" for i in multi_freqs]...)), ylims = (0, 65), xrotation = 90, tickfontsize = 9, ylabel = "v & w (THz)", xlabel = "Phonon frequencies (THz)", linestyle = :dot)
plot!(multi_freqs, w_multi[:, 1:50:400] .* multi_freqs, markershape = :diamond, legend = :outerright, label = :none, xticks = (multi_freqs, hcat(["$(round(i, digits = 2))" for i in multi_freqs]...)), ylims = (0, 65), xrotation = 90, tickfontsize = 9, linestyle = :dash, color = hcat([theme_palette(:default)[i] for i in 1:8]...))
end
# ╔═╡ 6dae57f3-cfd4-4598-bc1b-ea25f8d39565
plot(multi_freqs, (v_multi[:, 1:50:400] .- w_multi[:, 1:50:400]) .* multi_freqs ./ ir_activity, markershape = :circle, legend = :outerright, label = hcat(["$(T[i]) K" for i in 1:50:400]...), xticks = (multi_freqs, hcat(["$(round(i, digits = 2))" for i in multi_freqs]...)), xrotation = 90, tickfontsize = 9, ylabel = "(v - w) / IR", xlabel = "Phonon frequencies (THz)", linestyle = :dot)
# ╔═╡ Cell order:
# ╠═ed9ab030-e61d-11eb-32f3-5be220868ae7
# ╠═d51f978f-a2c8-410a-8836-f57fc362eed1
# ╠═ffa81468-a1cd-44f3-aa5a-c970e56b7f27
# ╠═4c98c769-0aed-4b8a-bf92-fb06268100a9
# ╠═c819bc8f-cc85-4edb-8289-5884f7fbb8f7
# ╠═88fe20b4-303a-494e-95cc-e8183b2f474e
# ╠═a76c9858-0fe7-45c2-9b5c-a8cf7f800c08
# ╠═6d08ec24-51d5-4105-bddf-443bc8496456
# ╠═5fa3101f-d24b-41f1-9a77-f5b7782ec4a3
# ╠═78156817-9c43-44c0-90e9-55e1100538a7
# ╠═4bf7a882-1306-415a-8760-6191e5284306
# ╠═8b91053e-28cc-47ce-8551-72e3e3c8ee93
# ╠═fd24b1c2-a6c2-4328-854b-ada51d40c56a
# ╠═db273a6b-bd14-4935-92dd-1271def823ba
# ╠═830ce1e4-80f4-4dfa-a214-d7d0c84cfbbb
# ╠═4b5dc310-b4f6-4bd3-88e5-f082ea8ee47e
# ╠═f9e47e6f-fdc5-42b6-9ea2-46c801f8cf6b
# ╠═e2a502b1-cca9-40c2-a107-2b577f0662dc
# ╠═92f361d6-2052-45bd-a2a1-0d19d04eec1b
# ╠═b1473f00-5aa9-4ace-a0f9-9e5cb9747af5
# ╠═4c4d1b61-6710-478c-a8f5-067c219be342
# ╠═9493c1f8-d2b4-42b3-9af5-2d69ee7499bf
# ╠═d4a13a12-e1ca-4ded-9c49-3c33b1cb69a0
# ╠═40fc4b41-c835-41a3-b468-765d4bbd0042
# ╠═aa1b7720-91ee-48e5-a97e-f8e3a499ad2f
# ╠═10b31119-9d2f-445d-9353-9e6788a464d3
# ╠═eef00978-0153-4031-b748-d9e1e5e2f5c5
# ╠═45e2101a-010d-404d-aaf6-c68d28536677
# ╠═4da848c3-23dd-4640-bab3-a8b4b4784639
# ╠═8f23b6a9-9cb8-47b5-bec1-b7f4f2fe050b
# ╠═e7631e4b-dc2c-4b0c-b7a9-7a92dbe0fd1e
# ╠═32c47e89-a988-4586-840b-0ac952e1d916
# ╠═dd0f2762-4cbb-4fc4-b79e-a70b1006905e
# ╠═9d039885-65fa-4f43-ac15-ba927a68be60
# ╠═88c443f2-f6ea-464e-9190-aa158a0f7f50
# ╠═db784d36-b859-4022-b585-0730bf081a65
# ╠═656db2a0-91d6-447b-95a8-2a2981979645
# ╠═a586ecee-fd54-44e7-8dea-fa1f2a6829df
# ╠═2aeb1ede-b786-494f-9f15-0a8382943c29
# ╠═88c2fd6b-a8cc-436a-b9e9-5412c19b42bd
# ╠═329f1be8-967d-4c5b-8536-f6f1008f2a9c
# ╠═ba30cda1-9a2e-4427-9cde-3a5e3e7e4dcf
# ╠═e30b9ee1-0eac-44ad-bb6e-4c243672468e
# ╠═26ec12fd-5c2d-458c-8282-b411ef5184a8
# ╠═1e89541e-0635-47d9-96f6-99dceef27d00
# ╠═6b617a87-f84e-4818-be31-5806d2e8894d
# ╠═bc190237-ddff-4abc-bf29-0e23d10fad0d
# ╠═512e223b-249d-48ff-9eec-4282f4658c76
# ╠═0ec007f8-9b46-4d0c-a8d2-c12ff85b0f5a
# ╠═7a68a5ca-2c8f-40bc-ac7b-8a996f48b41b
# ╠═3a14ec9b-c726-40da-a4ed-ad22ee89e8d3
# ╠═6071f2a4-ec70-4a12-b40a-84062ae2bb6a
# ╠═b80aedaf-b264-47b3-a679-1c73ce1e8a0f
# ╠═c30386e2-e275-4e8c-bc46-e043ce3484b2
# ╠═585d49c7-0b54-4884-922c-84e9ae387837
# ╠═c3281d7d-3d8e-4283-ad14-0fbe30759990
# ╠═aec2c420-5d16-4130-914b-0ba94f4cd9ca
# ╠═32773157-09b8-4feb-ae44-7f41e244b101
# ╠═41b5f3a6-1fb7-4cab-b712-57816e8209c5
# ╠═a64cfd0a-67f6-4941-8ba4-2e26b3361040
# ╠═835feade-6750-48ef-baab-be9dce52500e
# ╠═4bab65b0-a561-4355-8075-8cd3d8ba09f1
# ╠═f4f970e4-6113-4782-b6dc-9072254c5b4e
# ╠═86ff3a78-852f-424a-af6d-32e886726d0a
# ╠═efca960d-a7d6-42df-8196-7e00ae0ac024
# ╠═da3417bb-2570-41df-ac54-bdf1a46299d9
# ╠═5c685b4e-8702-4b74-90e8-25ffd53e5582
# ╠═e2d229a0-eaae-481c-9ee1-94d641fc3014
# ╠═9bd4dd63-c784-4a1e-86fa-935bd8c25ad2
# ╠═7ae0d8a1-d2ad-4599-bce1-f71865fa7497
# ╠═23c44da4-8468-4987-8d5e-1069ffb41d13
# ╠═077a2c40-9aae-4045-89da-99f1db15fae7
# ╠═fbf4e5d9-c20b-4953-8477-c0144e34e9e9
# ╠═bfd794a2-abf9-499e-92fe-aa02f262171d
# ╠═cbdee07e-77e5-4113-b099-4feb30d5d74a
# ╠═2b4876d2-6d1e-4774-89c1-3ff8be380e11
# ╠═79ddc218-4710-466a-a5ba-976431cd7165
# ╠═9b8183fb-3a65-463b-bae5-62a8aa9f06ac
# ╠═ed8f7ce5-c4eb-44da-a747-56ac7c152760
# ╠═80cde1da-7d6a-4fea-a2c2-89b2a0a6cd0d
# ╠═4cfb19f7-6852-4224-9b09-54a844624cde
# ╠═ccfa612b-9cf0-4e4c-a69c-e3b002e5fea5
# ╠═39eeac1c-5db8-4d6c-8552-d308b5199d5e
# ╠═a8ab6e8a-2d89-4383-9ab6-e49990712489
# ╠═ba68e7aa-963f-4cdb-a141-b4ee9ff697db
# ╠═9e0e8eea-f5e9-4d91-80cd-a1e7847933e6
# ╠═3e185071-6fda-4dc6-8e84-4900a106b798
# ╠═05516d71-0f45-4e97-97b0-8a1819aed270
# ╠═c3f82311-03fa-4cb0-9dca-4cf495b5e8ca
# ╠═c3bdb1f6-889b-4c84-9857-88f619d6e617
# ╠═428b7174-9d3f-4762-8941-6feabcfbb4e0
# ╠═5900719d-e804-4a7d-a142-38fddf56a085
# ╠═ff9a0b04-b007-468e-acba-677a7f25a340
# ╠═bab7f306-94d2-4360-8c0d-08b8a619046d
# ╠═0879342a-c552-4bc6-8dce-21f020abeb25
# ╠═8acd98e2-23ef-478b-97c2-533e0e2bef98
# ╠═34411f71-63bc-4c91-9cd4-486e69f5876a
# ╠═aff41df3-144f-452e-b059-c306000ad10d
# ╠═9288099f-4e2a-43d6-ba2c-1debb17c4901
# ╠═a844da51-68ad-442f-9517-bbcde197c38e
# ╠═f47f71d3-870a-47b8-9ab2-426b8ceacf72
# ╠═8b7c9fd6-2289-47c6-ad73-2e60e867979e
# ╠═509b518e-07d9-4b5d-8938-b4a9ec188d8f
# ╠═18edac61-b8e1-4119-b49d-56d2b9ba2251
# ╠═6dae57f3-cfd4-4598-bc1b-ea25f8d39565
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 4553 | # FeynmanTheory.jl
"""
frohlichalpha(ε_Inf,ε_S,freq,m_eff)
Calculates the Frohlich alpha parameter, for a given dielectric constant,
frequency (f) of phonon in Hertz, and effective mass (in units of the
bare electron mass).
See Feynman 1955:
http://dx.doi.org/10.1103/PhysRev.97.660
"""
function frohlichalpha(ϵ_optic, ϵ_static, freq, m_eff)
ω = 2π * freq * 1e12 # frequency to angular velocity
# Note: we need to add a 4*pi factor to the permitivity of freespace.
# This gives numeric agreement with literature values. This is required as
# the contemporary 1950s and 1960s literature implicitly used atomic units,
# where the electric constant ^-1 has this factor baked in, k_e=1/(4πϵ_0).
α = 0.5 / (4 * π * ϵ_0) * # Units: m/F
(1 / ϵ_optic - 1 / ϵ_static) * # Units: none
(eV^2 / (ħ * ω)) * # Units: F
sqrt(2 * me * m_eff * ω / ħ) # Units: 1/m
return α
end
#####
# Athermal (Feynman 1955) model
# Set up equations for the polaron free energy, which we will variationally improve upon
# Integrand of (31) in Feynman I (Feynman 1955, Physical Review, "Slow electrons...")
fF(τ,v,w)=(abs(w^2 * τ + (v^2-w^2)/v*(1-exp(-v*τ))))^-0.5 * exp(-τ)
# (31) in Feynman I
AF(v,w,α)=π^(-0.5) * α*v * quadgk(τ->fF(τ,v,w),0,Inf)[1]
# (33) in Feynman I
F(v,w,α)=(3/(4*v))*(v-w)^2-AF(v,w,α)
# Let's wrap the Feynman athermal variation approximation in a simple function
"""
feynmanvw(α; v = 0.0, w = 0.0)
Calculate v and w variational polaron parameters,
for the supplied α Frohlich coupling.
This version uses the original athermal action (Feynman 1955).
Returns v,w.
"""
function feynmanvw(α; v = 3.0, w = 3.0) # v, w defaults
# Limits of the optimisation.
lower = [0.0, 0.0]
upper = [Inf, Inf]
Δv=v-w # defines a constraint, so that v>w
initial = [Δv+0.01, w]
# Feynman 1955 athermal action
f(x) = F(x[1]+x[2], x[2], α)
# Use Optim to optimise v and w to minimise enthalpy.
solution = Optim.optimize(
Optim.OnceDifferentiable(f, initial; autodiff = :forward),
lower,
upper,
initial,
Fminbox(BFGS()),
)
# Get v and w values that minimise the free energy.
Δv, w = Optim.minimizer(solution) # v=Δv+w
# Return variational parameters that minimise the free energy.
return Δv+w, w
end
# Hellwarth et al. 1999 PRB - Part IV; T-dep of the Feynman variation parameter
# Originally a Friday afternoon of hacking to try and implement the T-dep electron-phonon coupling from the above PRB
# Which was unusually successful! And more or less reproduced Table III
# In Julia we have 'Multiple dispatch', so let's just construct the free
# energies (temperature-dependent) with the same name as before, but withthe
# thermodynamic beta where required
# Define Osaka's free-energies (Hellwarth1999 version) as Julia functions
# Equation numbers follow above Hellwarth et al. 1999 PRB
# 62b
A(v,w,β)=3/β*( log(v/w) - 1/2*log(2*π*β) - log(sinh(v*β/2)/sinh(w*β/2)))
# 62d
Y(x,v,β)=1/(1-exp(-v*β))*(1+exp(-v*β)-exp(-v*x)-exp(v*(x-β)))
# 62c integrand
# Nb: Magic number 1e-10 adds stablity to optimisation; v,w never step -ve
f(x,v,w,β)=(exp(β-x)+exp(x))/sqrt(abs(w^2*x*(1-x/β)+Y(x,v,β)*(v^2-w^2)/v))
# 62c
B(v,w,β,α) = α*v/(sqrt(π)*(exp(β)-1)) * quadgk(x->f(x,v,w,β),0,β/2)[1]
# 62e
C(v,w,β)=3/4*(v^2-w^2)/v * (coth(v*β/2)-2/(v*β))
# 62a
F(v,w,β,α)=-(A(v,w,β)+B(v,w,β,α)+C(v,w,β))
# Can now evaluate the polaron temperature-dependent free-energy, from the solved v,w parameters, e.g.
# F(v,w,β,α)=F(7.2,6.5,1.0,1.0)
"""
feynmanvw(α; v = 0.0, w = 0.0)
Calculate v and w variational polaron parameters,
for the supplied α Frohlich coupling.
This version uses the original athermal action (Feynman 1955).
Returns v,w.
"""
function feynmanvw(α, β; v = 3.0, w = 3.0) # v, w defaults
# Limits of the optimisation.
lower = [0.0, 0.0]
upper = [Inf, Inf]
Δv=v-w # defines a constraint, so that v>w
initial = [Δv+0.01, w]
# Feynman 1955 athermal action
f(x) = F(x[1]+x[2], x[2], β, α)
# Use Optim to optimise v and w to minimise enthalpy.
solution = Optim.optimize(
Optim.OnceDifferentiable(f, initial; autodiff = :forward),
lower,
upper,
initial,
Fminbox(BFGS()),
)
# Get v and w values that minimise the free energy.
Δv, w = Optim.minimizer(solution) # v=Δv+w
# Return variational parameters that minimise the free energy.
return Δv+w, w
end
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 2185 | # HellwarthTheory.jl
#####
"""
HellwarthBScheme(LO)
Multiple phonon mode reduction to a single effective frequency.
Hellwarth et al. 1999 PRB, 'B scheme'; the athermal method.
Averaging procedure is constructed by considering the average effect of the action of multiple branches.
Follows Eqn (58) in this paper, assuming typo on LHS, should actually be W_e.
"""
function HellwarthBScheme(LO)
println("Hellwarth B Scheme... (athermal)")
H58 = sum( (LO[:,2].^2)./ LO[:,1].^2 )
println("Hellwarth (58) summation: ",H58)
H59 = sum( LO[:,2].^2 ) # sum of total ir activity squarred
println("Hellwarth (59) summation (total ir activity ^2): ", H59)
println("Hellwarth (59) W_e (total ir activity ): ", sqrt(H59))
omega = sqrt(H59 / H58)
println("Hellwarth (61) Omega (freq): ",omega)
return(omega)
end
# More complex scheme, involving thermodynamic Beta
# Hellwarth(50), RHS
"""
HellwarthAScheme(phonon_modes; T=295, convergence=1e-6)
Multiple phonon mode reduction to a single effective frequency.
Temperature dependent, defaults to T = 295 K.
Solved iteratively by bisection until Δfreq<convergence.
Follows Hellwarth et al. 1999 PRB 'A' scheme, Eqn 50 RHS.
"""
function HellwarthAScheme(phonon_modes; T = 295, convergence=1e-6)
phonon_mode_freqs = phonon_modes[:, 1]
ir_activities = phonon_modes[:, 2]
condition(f) = coth(π * f * 1e12 * ħ / (kB * T)) / f
- sum(ir_activities .*
coth.(π .* phonon_mode_freqs .* 1e12 .* ħ ./ (kB * T)) ./ phonon_mode_freqs) / sum(ir_activities)
# Solve by bisection
minimum_frequency = minimum(phonon_mode_freqs)
maximum_frequency = maximum(phonon_mode_freqs)
middle_frequency = (maximum_frequency + minimum_frequency) / 2
print("\n")
while (maximum_frequency - minimum_frequency) / 2 > convergence
if sign(condition(middle_frequency)) == sign(condition(minimum_frequency))
minimum_frequency = middle_frequency
middle_frequency = (maximum_frequency + minimum_frequency) / 2
else
maximum_frequency = middle_frequency
middle_frequency = (maximum_frequency + minimum_frequency) / 2
end
end
return middle_frequency
end
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 4827 | # MemoryFunction.jl
# References:
# [1] R. P. Feynman, R. W. Hellwarth, C. K. Iddings, and P. M. Platzman, Mobility of slow electrons in a polar crystal, PhysicalReview127, 1004 (1962)
# [2] Devreese, J. De Sitter, and M. Goovaerts, “Optical absorption of polarons in thefeynman-hellwarth-iddings-platzman approximation,”Phys. Rev. B, vol. 5, pp. 2367–2381, Mar 1972.
# [3] F. Peeters and J. Devreese, “Theory of polaron mobility,” inSolid State Physics,pp. 81–133, Elsevier, 1984.
"""
polaron_memory_function(Ω::Float64, β::Float64, α::Float64, v::Float64, w::Float64)
Calculate the memory function χ(Ω) of the polaron at finite temperatures (equation (35) in FHIP 1962 [1]) for a given frequency Ω. This function includes the zero-temperature and DC limits. β is the thermodynamic beta. v and w are the variational polaron parameters that minimise the free energy, for the supplied α Frohlich coupling. rtol specifies the relative error tolerance for the QuadGK integral and corresponds to the error of the entire function.
Finite temperature and finite frequency memory function, including the limits to zero frequency Ω → 0 or zero temperature β → ∞.
"""
function polaron_memory_function(Ω, β, α, v, w; ω = 1.0, rtol = 1e-3)
# Zero temperature and frequency is just zero.
if Ω == 0 && any(x -> x == Inf64, β)
return 0.0 + im * 0.0
# DC zero frequency limit at finite temperatures.
elseif Ω == 0 && any(x -> x != Inf64, β)
return polaron_memory_function_dc(β, α, v, w; ω = ω, rtol = rtol)
# Zero temperature limit at AC finite frequencies.
elseif Ω != 0 && any(x -> x == Inf64, β)
return polaron_memory_function_athermal(Ω, α, v, w; ω = ω, rtol = rtol)
# Finite temperatures and frequencies away from zero limits.
elseif Ω != 0 && any(x -> x != Inf64, β)
return polaron_memory_function_thermal(Ω, β, α, v, w; ω = ω, rtol = rtol)
# Any other frequencies or temperatures (e.g. negative or complex) prints error message.
else
println("Photon frequency Ω and thermodynamic temperature β must be ≥ 0.0.")
end
end
"""
----------------------------------------------------------------------
Multiple Branch Polaron Memory Function and Complex Conductivity
----------------------------------------------------------------------
This section of the code is dedicated to calculating the polaron memory function and complex conductivity, generalised from FHIP's expression to the case where multiple phonon modes are present in the material.
"""
"""
function multi_memory_function(Ω::Float64, β::Array{Float64}(undef, 1), α::Array{Float64}(undef, 1), v::Array{Float64}(undef, 1), w::Array{Float64}(undef, 1), ω::Array{Float64}(undef, 1), m_eff::Float64)
Calculate polaron complex memory function inclusive of multiple phonon branches j, each with angular frequency ω[j] (rad THz).
- Ω is the frequency (THz) of applied electric field.
- β is an array of reduced thermodynamic betas, one for each phonon frequency ω[j].
- α is an array of decomposed Frohlich alphas, one for each phonon frequency ω[j].
- v is an one-dimensional array of the v variational parameters.
- w is an one-dimensional array of the w variational parameters.
- m_eff is the is the conduction band mass of the particle (typically electron / hole, in units of electron mass m_e).
"""
function polaron_memory_function_thermal(Ω, β, α, v, w; ω = 1.0, rtol = 1e-3)
# FHIP1962, page 1009, eqn (36).
S(t, β) = (exp(1im * t) + exp(-1im * t - β)) / (1 - exp(-β)) / D_j(-1im * t, β, v, w)^(3 / 2)
# FHIP1962, page 1009, eqn (35a).
integrand(t, β, Ω) = (1 - exp(1im * Ω * 2π * t)) * imag(S(t, β))
integral = map((x, y) -> quadgk(t -> integrand(t, x, Ω / y), 0.0, Inf64, rtol = rtol)[1], β, ω)
memory = sum(2 .* α .* ω .^2 .* integral ./ (3 * √π * Ω * 2π))
return memory
end
function polaron_memory_function_athermal(Ω, α, v, w; ω = 1.0, rtol = 1e-3)
# FHIP1962, page 1009, eqn (36).
S(t) = exp(1im * t) / D_j(-1im * t, v, w)^(3 / 2)
# FHIP1962, page 1009, eqn (35a).
integrand(t, Ω) = (1 - exp(1im * 2π * Ω * t)) * imag(S(t))
memory = 0.0
for j in 1:length(ω)
integral = quadgk(t -> integrand(t, Ω / ω[j]), 0.0, 1 / rtol, rtol = rtol)[1]
memory += 2 * α[j] * ω[j]^2 * integral / (3 * √π * Ω * 2π)
end
return memory
end
function polaron_memory_function_dc(β, α, v, w; ω = 1.0, rtol = 1e-3)
# FHIP1962, page 1009, eqn (36).
S(t, β) = (exp(1im * t) + exp(-1im * t - β)) / (1 - exp(-β)) / D_j(-1im * t, β, v, w)^(3 / 2)
# FHIP1962, page 1009, eqn (35a).
integrand(t, β) = -im * t * imag(S(t, β))
integral = map(x -> quadgk(t -> integrand(t, x), 0.0, 1 / rtol, rtol = rtol)[1], β)
memory = sum(2 .* α .* ω .* integral ./ (3 * √π))
return memory
end
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 27222 | # MobilityTheories.jl
"""
polaronmobility(Trange, ε_Inf, ε_S, freq, effectivemass; verbose::Bool=false)
Solves the Feynman polaron problem variationally with finite temperature
Osaka energies. From the resulting v, and w parameters, calculates polaron
structure (wave function size, etc.). Uses FHIP, Kadanoff (Boltzmann
relaxation time) and Hellwarth direct contour integration to predict
a temperature-dependent mobility for the material system.
Input is a temperature range (e.g. 10:50:1000),
reduced dielectric constants (e.g. 5, 20),
characteristic dielectric phonon frequency (e.g. 2.25E12) - units Hertz
bare-band effective-mass (e.g. 012) - units electron mass.
Returns a structure of type Polaron, containing arrays of useful
information. Also prints a lot of information to the standard out - which
may be more useful if you're just inquiring as to a particular data point,
rather than plotting a temperature-dependent parameter.
As an example, to calculate the electron polaron in MAPI at 300 K:
polaronmobility(300, 4.5, 24.1, 2.25E12, 0.12)
"""
function polaronmobility(Trange, ε_Inf, ε_S, freq, effectivemass; verbose::Bool=false)
println("\n\nPolaron mobility for system ε_Inf=$ε_Inf, ε_S=$ε_S, freq=$freq,
effectivemass=$effectivemass; with Trange $Trange ...")
# Internally we we use 'mb' for the 'band mass' in SI units, of the effecitve-mass of the electron
mb=effectivemass*MassElectron
ω = (2*pi)*freq*1e12 # angular-frequency, of the phonon mode
α=frohlichalpha(ε_Inf, ε_S, freq, effectivemass)
#α=2.395939683378253 # Hard coded; from MAPI params, 4.5, 24.1, 2.25THz, 0.12me
v=7.1 # starting guess for v,w variational parameters
w=6.5
@printf("Polaron mobility input parameters: ε_Inf=%f ε_S=%f freq=%g α=%f \n",ε_Inf, ε_S, freq, α )
@printf("Derived params in SI: ω =%g mb=%g \n",ω ,mb)
# Empty struct for storing data
# A slightly better way of doing this ф_ф ...
p=Polaron()
# populate data structure with (athermal) parameters supplied...
append!(p.α,α) # appending so as not to mess with type immutability
append!(p.mb,mb)
append!(p.ω,ω)
# We define βred as the subsuming the energy of the phonon; i.e. kbT c.f. ħω
for T in Trange
β=1/(kB*T)
βred=ħ*ω*β
append!(p.βred,βred)
@printf("T: %f β: %.3g βred: %.3g ħω = %.3g meV\t",T,β,βred, 1E3* ħ*ω / q)
if T==0
v,w=feynmanvw(α, v=v,w=w)
else
v,w=feynmanvw(α,βred, v=v,w=w)
end
@printf("\n Polaron Parameters: v= %.4f w= %.4f",v,w)
# From 1962 Feynman, definition of v and w in terms of the coupled Mass and spring-constant
# See Page 1007, just after equation (18)
# Units of M appear to be 'electron masses'
# Unsure of units for k, spring coupling constant
k=(v^2-w^2)
M=(v^2-w^2)/w^2
append!(p.k,k)
append!(p.M,M)
@printf(" || M=%f k=%f\t",M,k)
@printf("\n Bare-band effective mass: %f Polaron effective mass: %f Polaron mass enhancement: %f%%",effectivemass,effectivemass*(1+M),M*100)
@printf("\n Polaron frequency (SI) v= %.2g Hz w= %.2g Hz",
v*ω /(2*pi),w*ω /(2*pi))
# (46) in Feynman1955
meSmallAlpha(α )=α /6 + 0.025*α ^2
# (47) In Feynman1955
meLargeAlpha(α )=16*α ^4 / (81*π ^4)
#meLargeAlpha(α )=202*(α /10)^4
if (verbose) # asymptotic solutions - not that interesting when you have the actual ones!
@printf("\n Feynman1955(46,47): meSmallAlpha(α)= %.3f meLargeAlpha(α)= %.3f",
meSmallAlpha(α),meLargeAlpha(α))
@printf("\n Feynman1962: Approximate ~ Large alpha limit, v/w = %.2f =~approx~= alpha^2 = %.2f ",
v/w,α ^2)
end
# POLARON SIZE
@printf("\n Polaron size (rf), following Schultz1959. (s.d. of Gaussian polaron ψ )")
# Schultz1959 - rather nicely he actually specifies everything down into units!
# just before (2.4) in Schultz1959
mu=((v^2-w^2)/v^2)
# (2.4)
rf=sqrt(3/(2*mu*v))
# (2.4) SI scaling inferred from units in (2.5a) and Table II
rfsi=rf*sqrt(2*me*ω )
@printf("\n\t Schultz1959(2.4): rf= %g (int units) = %g m [SI]",rf,rfsi )
append!(p.rfsi,rfsi)
if (verbose)
scale=sqrt(2*mb*ω) # Note we're using mb;
#band effective-mass in SI units (i.e. meff*melectron)
rfa=(3/(0.44*α ))^0.5 # As given in Schultz1959(2.5a), but that 0.44 is actually 4/9
@printf("\n\t Schultz1959(2.5a) with 0.44: Feynman α→0 expansion: rfa= %g (int units) = %g m [SI]",rfa,scale*rfa )
rfa=(3/((4/9)*α ))^0.5 # Rederived from Feynman1955, 8-8-2017; Yellow 2017.B Notebook pp.33-34
@printf("\n\t Schultz1959(2.5a) with 4/9 re-derivation: Feynman α→0 expansion: rfa= %g (int units) = %g m [SI]",rfa,scale*rfa )
append!(p.rfsmallalpha,scale*rfa)
rfb=3*(pi/2)^0.5 * α
@printf("\n\t Schultz1959(2.5b): Feynman α→∞ expansion: rf= %g (int units) = %g m [SI]",rfb,scale*rfb )
# Schultz1959 - Between (5.7) and (5.8) - resonance of Feynman SHM system
phononfreq=sqrt(k/M)
@printf("\n\t Schultz1959(5.7-5.8): fixed-e: phononfreq= %g (int units) = %g [SI, Hz] = %g [meV]",
phononfreq,phononfreq*ω /(2*pi), phononfreq*hbar*ω *1000/q)
phononfreq=sqrt(k/mu) # reduced mass
@printf("\n\t Schultz1959(5.7-5.8): reducd mass: phononfreq= %g (int units) = %g [SI, Hz] = %g [meV]",
phononfreq,phononfreq*ω /(2*pi), phononfreq*hbar*ω *1000/q)
@printf("\n\t Schultz1959: electronfreq= %g (int units) = %g [SI, Hz] = %g [meV]",
sqrt(k/1),sqrt(k/1)*ω /(2*pi), sqrt(k/1)*hbar*ω *1000/q)
@printf("\n\t Schultz1959: combinedfreq= %g (int units) = %g [SI, Hz] = %g [meV]",
sqrt(k/(1+M)),sqrt(k/(1+M))*ω /(2*pi), sqrt(k/(1+M))*hbar*ω *1000/q)
# Devreese1972: 10.1103/PhysRevB.5.2367
# p.2371, RHS.
@printf("\n Devreese1972: (Large Alpha) Franck-Condon frequency = %.2f", 4*α ^2/(9*pi))
end
# F(v,w,β,α)=-(A(v,w,β)+B(v,w,β,α)+C(v,w,β)) #(62a) - Hellwarth 1999
if (T>0)
@printf("\n Polaron Free Energy: A= %f B= %f C= %f F= %f",A(v,w,βred),B(v,w,βred,α),C(v,w,βred),F(v,w,βred,α))
@printf("\t = %f meV",1000.0 * F(v,w,βred,α) * ħ*ω / q)
append!(p.A,A(v,w,βred))
append!(p.B,B(v,w,βred,α))
append!(p.C,C(v,w,βred))
append!(p.F,F(v,w,βred,α))
else # Athermal case; Enthalpy
@printf("\n Polaron Enthalpy: F= %f = %f meV \n",F(v,w,α), 1_000*F(v,w,α) * ħ*ω/q)
return # return early, as if T=0, all mobility theories = infinite / fall over
end
# FHIP
# - low-T mobility, final result of Feynman1962
# [1.60] in Devreese2016 page 36; 6th Edition of Frohlich polaron notes (ArXiv)
# I believe here β is in SI (expanded) units
@printf("\n Polaron Mobility theories:")
μ=(w/v)^3 * (3*q)/(4*mb*ħ*ω^2*α*β) * exp(ħ*ω*β) * exp((v^2-w^2)/(w^2*v))
@printf("\n\tμ(FHIP)= %f m^2/Vs \t= %.2f cm^2/Vs",μ,μ*100^2)
append!(p.T,T)
append!(p.FHIPμ,μ*100^2)
# Kadanoff
# - low-T mobility, constructed around Boltzmann equation.
# - Adds factor of 3/(2*beta) c.f. FHIP, correcting phonon emission behaviour
# [1.61] in Devreese2016 - Kadanoff's Boltzmann eqn derived mob
μ=(w/v)^3 * (q)/(2*mb*ω*α) * exp(ħ*ω*β) * exp((v^2-w^2)/(w^2*v))
@printf("\n\tμ(Kadanoff,via Devreese2016)= %f m^2/Vs \t= %.2f cm^2/Vs",μ,μ*100^2)
append!(p.Kμ,μ*100^2)
######
# OK, now deep-diving into Kadanoff1963 itself to extract Boltzmann equation components
# Particularly right-hand-side of page 1367
#
# From 1963 Kadanoff, (9), define eqm. number of phonons (just from T and phonon omega)
Nbar=(exp(βred) - 1)^-1
@printf("\n\t\tEqm. Phonon. pop. Nbar: %f ",Nbar)
if (verbose)
@printf("\n\texp(Bred): %f exp(-Bred): %f exp(Bred)-1: %f",exp(βred),exp(-βred),exp(βred)-1)
end
Nbar=exp(-βred)
#Note - this is only way to get Kadanoff1963 to be self-consistent with
#FHIP, and later statements (Devreese) of the Kadanoff mobility.
#It suggests that Kadanoff used the wrong identy for Nbar in 23(b) for
#the Gamma0 function, and should have used a version with the -1 to
#account for Bose / phonon statistics
#myv=sqrt(k*(1+M)/M) # cross-check maths between different papers
#@printf("\nv: %f myv: %f\n",v,myv)
# Between 23 and 24 in Kadanoff 1963, for small momenta skip intergration --> Gamma0
Gamma0=2*α * Nbar * (M+1)^(1/2) * exp(-M/v)
Gamma0*=ω #* (ω *hbar) # Kadanoff 1963 uses hbar=omega=mb=1 units
# Factor of omega to get it as a rate relative to phonon frequency
# Factor of omega*hbar to get it as a rate per energy window
μ=q/( mb*(M+1) * Gamma0 ) #(25) Kadanoff 1963, with SI effective mass
if (verbose) # these are cross-checks
@printf("\n\tμ(Kadanoff1963 [Eqn. 25]) = %f m^2/Vs \t = %.2f cm^2/Vs",μ,μ*100^2)
@printf("\n\t\t Eqm. Phonon. pop. Nbar: %f ",Nbar)
end
@printf("\n\t\tGamma0 = %g rad/s = %g /s ",
Gamma0, Gamma0/(2*pi))
@printf(" \n\t\tTau=1/Gamma0 = %g s = %f ps",
2*pi/Gamma0, 2*pi*1E12/Gamma0)
Eloss=hbar*ω * Gamma0/(2*pi) # Simply Energy * Rate
@printf("\n\t\tEnergy Loss = %g J/s = %g meV/ps",Eloss,Eloss * 1E3 / (q*1E12) )
append!(p.Tau, 2*pi*1E12/Gamma0) # Boosted into ps ?
# Hellwarth1999 - directly do contour integration in Feynman1962, for
# finite temperature DC mobility
# Hellwarth1999 Eqn (2) and (1) - These are going back to the general
# (pre low-T limit) formulas in Feynman1962. to evaluate these, you
# need to do the explicit contour integration to get the polaron
# self-energy
R=(v^2-w^2)/(w^2*v) # inline, page 300 just after Eqn (2)
#b=R*βred/sinh(b*βred*v/2) # This self-references b! What on Earth?
# OK! I now understand that there is a typo in Hellwarth1999 and
# Biaggio1997. They've introduced a spurious b on the R.H.S. compared to
# the original, Feynman1962:
b=R*βred/sinh(βred*v/2) # Feynman1962 version; page 1010, Eqn (47b)
a=sqrt( (βred/2)^2 + R*βred*coth(βred*v/2))
k(u,a,b,v) = (u^2+a^2-b*cos(v*u))^(-3/2)*cos(u) # integrand in (2)
K=quadgk(u->k(u,a,b,v),0,Inf)[1] # numerical quadrature integration of (2)
#Right-hand-side of Eqn 1 in Hellwarth 1999 // Eqn (4) in Baggio1997
RHS= α/(3*sqrt(π)) * βred^(5/2) / sinh(βred/2) * (v^3/w^3) * K
μ=RHS^-1 * (q)/(ω*mb)
@printf("\n\tμ(Hellwarth1999)= %f m^2/Vs \t= %.2f cm^2/Vs",μ,μ*100^2)
append!(p.Hμ,μ*100^2)
if (verbose)
# Hellwarth1999/Biaggio1997, b=0 version... 'Setting b=0 makes less than 0.1% error'
# So let's test this
R=(v^2-w^2)/(w^2*v) # inline, page 300 just after Eqn (2)
b=0
a=sqrt( (βred/2)^2 + R*βred*coth(βred*v/2))
#k(u,a,b,v) = (u^2+a^2-b*cos(v*u))^(-3/2)*cos(u) # integrand in (2)
K=quadgk(u->k(u,a,b,v),0,Inf)[1] # numerical quadrature integration of (2)
#Right-hand-side of Eqn 1 in Hellwarth 1999 // Eqn (4) in Baggio1997
RHS= α/(3*sqrt(π)) * βred^(5/2) / sinh(βred/2) * (v^3/w^3) * K
μ=RHS^-1 * (q)/(ω*mb)
@printf("\n\tμ(Hellwarth1999,b=0)= %f m^2/Vs \t= %.2f cm^2/Vs",μ,μ*100^2)
@printf("\n\tError due to b=0; %f",(100^2*μ-p.Hμ[length(p.Hμ)])/(100^2*μ))
#append!(Hμs,μ*100^2)
end
@printf("\n") # blank line at end of spiel.
# Recycle previous variation results (v,w) as next guess
initial=[v,w] # Caution! Might cause weird sticking in local minima
append!(p.v,v)
append!(p.w,w)
end
return(p)
end
"""
make_polaron(ϵ_optic, ϵ_static, phonon_freq, m_eff; temp = 300.0, efield_freq = 0.0, volume = nothing, ir_activity = nothing, N_params = 1, rtol = 1e-3, verbose = true)
Solves the Feynman polaron problem variationally with finite temperature
Osaka energies. From the resulting v and w parameters, calculates polaron
structure (wave function size, etc.). Uses FHIP to predict
a temperature- and frequency-dependent mobility, complex conductivity and impedance for the material system.
Can evaluate polaron properties for materials with multiple phonon branches using infrared activities and phonon branch frequencies.
Inputs are:
• temperature range (e.g. 10:50:1000),
• reduced dielectric constants (e.g. 5, 20),
• characteristic dielectric phonon frequency (e.g. 2.25) - units TeraHertz
• bare-band effective-mass (e.g. 0.12) - units electron mass
• electric field frequency range - units TeraHertz
• unit cell volume for the material - units m³
• infrared activities - units ?
• phonon mode frequencies - units TeraHertz
• number of variational parameters to minimise the polaron energy
• relative tolerance for the accuracy of any quadrature integrations
Returns a structure of type NewPolaron, containing arrays of useful
information. Also prints a lot of information to the standard out - which
may be more useful if you're just inquiring as to a particular data point,
rather than plotting a temperature-dependent parameter.
As an example, to calculate the electron polaron in MAPI, at temperatures 0:100:400 K and electric field frequencies 0.0:0.1:5.0 THz, and inclusive of 15 optical phonon modes:
make_polaron(
4.5,
24.1,
[4.016471586720514, 3.887605410774121, 3.5313112232401513, 2.755392921480459, 2.4380741812443247, 2.2490917637719408, 2.079632190634424, 2.0336707697261187, 1.5673011873879714, 1.0188379384951798, 1.0022960504442775, 0.9970130778462072, 0.9201781906386209, 0.800604081794174, 0.5738689505255512],
0.12;
temp = 0.0:100.0:400.0,
efield_freq = 0.0:0.1:5.0,
volume = (6.29e-10)^3,
ir_activity = [0.08168931020200264, 0.006311654262282101, 0.05353548710183397, 0.021303020776321225, 0.23162784335484837, 0.2622203718355982, 0.23382298607799906, 0.0623239656843172, 0.0367465760261409, 0.0126328938653956, 0.006817361620021601, 0.0103757951973341, 0.01095811116040592, 0.0016830270365341532, 0.00646428491253749],
N_params = 1)
"""
function make_polaron(ϵ_optic, ϵ_static, phonon_freq, m_eff, T, Ω; volume = nothing, ir_activity = nothing, rtol = 1e-4, N_params = 1, verbose = false, threads = false)
N_modes = length(phonon_freq)
if verbose
println("Calculating Fröhlich alpha...")
end
if N_modes == 1
ω = 2π * phonon_freq
α = frohlichalpha(ϵ_optic, ϵ_static, phonon_freq, m_eff)
else
ω = 2π .* phonon_freq
ϵ_ionic = [ϵ_ionic_mode(i, j, volume) for (i, j) in zip(phonon_freq, ir_activity)]
α = [multi_frohlichalpha(ϵ_optic, i, sum(ϵ_ionic), j, m_eff) for (i, j) in zip(ϵ_ionic, phonon_freq)]
end
if verbose
show(IOContext(stdout, :limit => true), round.(α, digits = 3))
print("\n\n")
println("Calculating thermodynamic betas...")
end
@tullio threads = threads betas[m, t] := T[t] == 0.0 ? Inf64 : ħ * ω[m] / (kB * T[t]) * 1e12 (t in eachindex(T))
if verbose
show(IOContext(stdout, :limit => true), round.(betas, digits = 3))
print("\n\n")
println("Calculating variational parameters...")
global count = 0
global processes = length(T)
end
@time @tullio threads = threads params[t] := T[t] == 0.0 ? var_params(α; v = 5.6, w = 3.4, ω = ω, rtol = rtol, N = N_params, verbose = verbose) : var_params(α, betas[:, t]; v = 5.6, w = 3.4, ω = ω, rtol = rtol, T = T[t], N = N_params, verbose = verbose) (t in eachindex(T))
@tullio threads = threads v_params[t] := params[t][1] (t in eachindex(T))
@tullio threads = threads w_params[t] := params[t][2] (t in eachindex(T))
if verbose
println("\nv: ")
show(IOContext(stdout, :limit => true), round.(v_params, digits = 3))
print("\n\n")
println("w: ")
show(IOContext(stdout, :limit => true), round.(w_params, digits = 3))
print("\n\n")
println("Calculating spring constants...")
end
@time @tullio threads = threads spring_constants[t] := v_params[t]^2 - w_params[t]^2
if verbose
show(IOContext(stdout, :limit => true), round.(spring_constants, digits = 3))
print("\n\n")
println("Calculating fictitious masses...")
end
@time @tullio threads = threads masses[t] := spring_constants[t] / w_params[t]^2
if verbose
show(IOContext(stdout, :limit => true), round.(masses, digits = 3))
print("\n\n")
println("Calculating free energies...")
global count = 0
global processes = length(T)
end
@time @tullio threads = threads energies[t] := T[t] == 0.0 ? multi_F(v_params[t], w_params[t], α; ω = ω, rtol = rtol, verbose = verbose) * 1000 * ħ / eV * 1e12 : multi_F(v_params[t], w_params[t], α, betas[:, t]; ω = ω, rtol = rtol, T = T[t], verbose = verbose) * 1000 * ħ / eV * 1e12 (t in eachindex(T))
if verbose
show(IOContext(stdout, :limit => true), round.(energies, digits = 3))
print("\n\n")
println("Calculating complex impedances...")
global count = 0
global processes = length(T) * length(Ω)
end
@time @tullio threads = threads impedances[f, t] := Ω[f] == T[t] == 0.0 ? 0.0 + 1im * 0.0 : polaron_complex_impedence(Ω[f], betas[:, t], α, v_params[t], w_params[t]; ω = ω, rtol = rtol, T = T[t], verbose = verbose) / eV^2 * 1e12 * me * m_eff * volume * 100^3 (t in eachindex(T), f in eachindex(Ω))
if verbose
show(IOContext(stdout, :limit => true), round.(impedances, digits = 3))
print("\n\n")
println("Calculating complex conductivities...")
end
@time @tullio threads = threads conductivities[f, t] := Ω[f] == T[t] == 0.0 ? Inf64 + 1im * 0.0 : 1 / impedances[f, t] (t in eachindex(T), f in eachindex(Ω))
if verbose
show(IOContext(stdout, :limit => true), round.(conductivities, digits = 3))
print("\n\n")
println("Calculating mobilities...")
global count = 0
global processes = length(T)
end
@time @tullio threads = threads mobilities[t] := T[t] == 0.0 ? Inf64 : polaron_mobility(betas[:, t], α, v_params[t], w_params[t]; ω = ω, rtol = rtol, T = T[t], verbose = verbose) * eV / (1e12 * me * m_eff) * 100^2 (t in eachindex(T))
if verbose
show(IOContext(stdout, :limit => true), round.(mobilities, digits = 3))
print("\n")
end
# Return Polaron mutable struct with evaluated data.
return NewPolaron(α, T, betas, phonon_freq, v_params, w_params, spring_constants, masses, energies, Ω, impedances, conductivities, mobilities)
end
"""
make_polaron(ϵ_optic, ϵ_static, phonon_freq, m_eff; temp = 300.0, efield_freq = 0.0, volume = nothing, ir_activity = nothing, N_params = 1, rtol = 1e-3, verbose = true)
Same as above but from a model system with a specified alpha value rather than from material properties.
Inputs are:
• temperature range (e.g. 10:50:1000),
• Frohlich alpha parameter,
• electric field frequency range - units TeraHertz
• phonon mode frequency weight (choose either 1 or 2π)
• number of variational parameters to minimise the polaron energy
• relative tolerance for the accuracy of any quadrature integrations
Returns a structure of type NewPolaron, containing arrays of useful
information. Also prints a lot of information to the standard out - which
may be more useful if you're just inquiring as to a particular data point,
rather than plotting a temperature-dependent parameter.
As an example, to calculate the polaron of a α = 6 system, at temperatures 0:100:400 K and electric field frequencies 0.0:0.1:5.0 THz:
make_polaron(6.0; temp = 0.0:100.0:400.0, efield_freq = 0.0:0.1:5.0)
"""
function make_polaron(α, T, Ω; ω = 1.0, rtol = 1e-4, verbose = false, threads = false)
if verbose
println("\nCalculating thermodynamic betas...")
end
@tullio threads = threads betas[t] := T[t] == 0.0 ? Inf64 : ω / T[t]
if verbose
show(IOContext(stdout, :limit => true), round.(betas, digits = 3))
print("\n\n")
println("Calculating variational parameters...")
global count = 0
global processes = length(T) * length(α)
end
@time @tullio threads = threads params[a, t] := T[t] == 0.0 ? var_params(α[a]; v = 5.6, w = 3.4, ω = ω, rtol = rtol, verbose = verbose) : var_params(α[a], betas[t]; v = 5.6, w = 3.4, ω = ω, rtol = rtol, T = T[t], verbose = verbose) (t in eachindex(T), a in eachindex(α))
@tullio threads = threads v_params[a, t] := params[a, t][1]
@tullio threads = threads w_params[a, t] := params[a, t][2]
if verbose
println("\nv: ")
show(IOContext(stdout, :limit => true), round.(v_params, digits = 3))
print("\n\n")
println("w: ")
show(IOContext(stdout, :limit => true), round.(w_params, digits = 3))
print("\n\n")
println("Calculating spring constants...")
end
@time @tullio threads = threads spring_constants[a, t] := v_params[a, t]^2 - w_params[a, t]^2
if verbose
show(IOContext(stdout, :limit => true), round.(spring_constants, digits = 3))
print("\n\n")
println("Calculating fictitious masses...")
end
@time @tullio threads = threads masses[a, t] := spring_constants[a, t] / w_params[a, t]^2
if verbose
show(IOContext(stdout, :limit => true), round.(masses, digits = 3))
print("\n\n")
println("Calculating free energies...")
global count = 0
global processes = length(T) * length(α)
end
@time @tullio threads = threads energies[a, t] := T[t] == 0.0 ? multi_F(v_params[a, t], w_params[a, t], α[a]; ω = ω, rtol = rtol, verbose = verbose) : multi_F(v_params[a, t], w_params[a, t], α[a], betas[t]; ω = ω, rtol = rtol, T = T[t], verbose = verbose) (t in eachindex(T), a in eachindex(α))
if verbose
show(IOContext(stdout, :limit => true), round.(energies, digits = 3))
print("\n\n")
println("Calculating complex impedances...")
global count = 0
global processes = length(T) * length(Ω) * length(α)
end
@time @tullio threads = threads impedances[a, f, t] := Ω[f] == T[t] == 0.0 ? 0.0 + 1im * 0.0 : polaron_complex_impedence(Ω[f], [betas[t]], α[a], v_params[a, t], w_params[a, t]; ω = ω, rtol = rtol, T = T[t], verbose = verbose) (t in eachindex(T), f in eachindex(Ω), a in eachindex(α))
if verbose
show(IOContext(stdout, :limit => true), round.(impedances, digits = 3))
print("\n\n")
println("Calculating complex conductivities...")
end
@time @tullio threads = threads conductivities[a, f, t] := Ω[f] == T[t] == 0.0 ? Inf64 + 1im * 0.0 : 1 / impedances[a, f, t] (t in eachindex(T), f in eachindex(Ω), a in eachindex(α))
if verbose
show(IOContext(stdout, :limit => true), round.(conductivities, digits = 3))
print("\n\n")
println("Calculating mobilities...")
global count = 0
global processes = length(T) * length(α)
end
@time @tullio threads = threads mobilities[a, t] := T[t] == 0.0 ? Inf64 : polaron_mobility(betas[t], α[a], v_params[a, t], w_params[a, t]; ω = ω, rtol = rtol, T = T[t], verbose = verbose) (t in eachindex(T), a in eachindex(α))
if verbose
show(IOContext(stdout, :limit => true), round.(mobilities, digits = 3))
print("\n")
end
# Return Polaron mutable struct with evaluated data.
return NewPolaron(α, T, betas, ω, v_params, w_params, spring_constants, masses, energies, Ω, impedances, conductivities, mobilities)
end
"""
save_polaron(p::NewPolaron, prefix)
Saves data from 'polaron' into file "prefix".
This is a .jdl file for storing the polaron data whilst preserving types. Allows for saving multidimensional arrays that sometimes arise in the polaron data.
Each parameter in the NewPolaron type is saved as a dictionary entry. E.g. NewPolaron.α is saved under JLD.load("prefix.jld")["alpha"].
"""
function save_polaron(polaron::NewPolaron, prefix)
println("Saving polaron data to $prefix.jld ...")
JLD.save("$prefix.jld",
"alpha", polaron.α,
"temperature", polaron.T,
"beta", polaron.β,
"phonon freq", polaron.ω,
"v", polaron.v,
"w", polaron.w,
"spring", polaron.κ,
"mass", polaron.M,
"energy", polaron.F,
"efield freq", polaron.Ω,
"impedance", polaron.Z,
"conductivity", polaron.σ,
"mobility", polaron.μ
)
println("... Polaron data saved.")
end
"""
load_polaron(p::NewPolaron, prefix)
Loads data from file "polaron_file_path" into a NewPolaron type.
"""
function load_polaron(polaron_file_path)
println("Loading polaron data from $polaron_file_path ...")
data = JLD.load("$polaron_file_path")
polaron = NewPolaron(
data["alpha"],
data["temperature"],
data["beta"],
data["phonon freq"],
data["v"],
data["w"],
data["spring"],
data["mass"],
data["energy"],
data["efield freq"],
data["impedance"],
data["conductivity"],
data["mobility"]
)
println("... Polaron loaded.")
return polaron
end
"""
savepolaron(fileprefix, p::Polaron)
Saves data from polaron 'p' into file "fileprefix".
This is a simple space-delimited text file, with each entry a separate temperature, for plotting with Gnuplot or similar.
Structure of file is written to the header:
# Ts, βreds, Kμs, Hμs, FHIPμs, vs, ws, ks, Ms, As, Bs, Cs, Fs, Taus, rfsis
# 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
"""
function savepolaron(fileprefix, p::Polaron)
println("Saving data to $fileprefix.dat ...")
f=open("$fileprefix.dat","w")
@printf(f,"# %s\n",fileprefix) # put name / material at header
@printf(f,"# Params in SI: ω =%g mb=%g \n",p.ω[1] ,p.mb[1])
@printf(f,"# Alpha parameter: α = %f \n",p.α[1] )
@printf(f,"# Ts, βreds, Kμs, Hμs, FHIPμs, vs, ws, ks, Ms, As, Bs, Cs, Fs, Taus, rfsis\n")
@printf(f,"# 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15\n") # columns for GNUPLOT etc.
for i in 1:length(p.T)
@printf(f,"%d %03f %g %g %g %g %g %g %g %g %g %g %g %g %g \n",
p.T[i], p.βred[i], p.Kμ[i], p.Hμ[i], p.FHIPμ[i],
p.v[i], p.w[i],
p.k[i], p.M[i], p.A[i], p.B[i], p.C[i], p.F[i],
p.Tau[i], p.rfsi[i])
end
close(f)
end
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 25460 | # MultipleBranches.jl
# Extending the Feynman theory to multiple phonon branches
"""
frohlichPartial((f, ϵ_mode); ϵ_o,ϵ_s,meff)
Calculate a (partial) dielectric electron-phonon coupling element.
f - frequency of mode in THz
ϵ_mode - this mode's contribution to dielectric
ϵ_o - optical dielectric
ϵ_s - total static dielectric contribution
"""
function frohlichPartial((f, ϵ_mode); ϵ_o,ϵ_s,meff)
ω=f*1E12*2π
α=1/(4*π*ϵ_0) * ϵ_mode/(ϵ_o*ϵ_s) * (q^2/ħ) * sqrt(meff*me/(2*ω*ħ))
return α
end
# deprecated signature wrapped via multiple dispatch
frohlichPartial(ϵ_o,ϵ_s,ϵ_mode,f,meff) = frohlichPartial((f, ϵ_mode), ϵ_o=ϵ_o,ϵ_s=ϵ_s,meff=meff)
rows(M::Matrix) = map(x->reshape(getindex(M, x, :), :, size(M)[2]), 1:size(M)[1])
"""
IRtoDielectric(IRmodes,volume)
From absolute value of IR activities of phonon modes, generate a per-mode
contribution to the low-frequency dielectric constant.
IRmodes are tuples f,S with Frequency in THz; InfraRed activity in e^2 amu^-1
"""
function IRtoDielectric(IRmodes,volume)
ϵ=0.0 #* q^2 * THz^-2 * amu^-1 * m^-3
for r in rows(IRmodes)
f,S=r # frequency in THz; activity in e^2 amu^-1
f=f * 1E12 #* THz
ω=2π * f
S=S * q^2 / amu
ϵ_mode = S / ω^2 / volume
ϵ_mode /= 3 # take isotropic average = divide by 3
ϵ+=ϵ_mode
println("Mode f= $f S= $S ϵ_mode = $(ϵ_mode/ϵ_0)")
end
println("Raw ionic dielectric contribution: $ϵ absolute $(ϵ/ϵ_0) relative")
return ϵ/ϵ_0
end
"""
IRtoalpha(IR,volume)
Calculates contribution to dielectric constant for each polar phonon mode, and
thereby the Frohlich alpha contribution for this mode.
"""
function IRtoalpha(IR; volume, ϵ_o,ϵ_s,meff)
ϵ=0.0 #* q^2 * THz^-2 * amu^-1 * m^-3
α_sum=0.0
for r in rows(IR)
f,S=r # frequency in THz; activity in e^2 amu^-1
f=f * 1E12 #* THz
ω=2π * f
S=S * q^2 / amu
ϵ_mode = S / ω^2 / volume
ϵ_mode /= 3 # take isotropic average = divide by 3
ϵ_mode /= ϵ_0 # reduced dielectric constant
ϵ+=ϵ_mode
#println("Mode f= $f S= $S ϵ_mode = $(upreferred(ϵ_mode/u"ϵ0"))")
α=frohlichPartial(ϵ_o,ϵ_s,ϵ_mode,f/1E12,meff)
α_sum+=α
if (α>0.1)
println("Notable Mode f= $f α_partial=$α")
end
end
println("Sum alpha: $(α_sum)")
return α_sum
end
"""
DieletricFromIRmode(IRmode)
Calculate dielectric from an individual mode.
IRmode is a tuple f,S with Frequency in THz; InfraRed activity in e^2 amu^-1
"""
function DielectricFromIRmode(IRmode; volume)
f,S=IRmode # Assumes Frequency in THz; InfraRed activity in e^2 amu^-1
f*=1E12 # convert to Hz from THz
ω=2π * f
S=S * q^2 / amu
ϵ_mode = S / ω^2 / volume
ϵ_mode /= 3 # take isotropic average = divide by 3
ϵ_mode /= ϵ_0 # reduced dielectric
return ϵ_mode
end
function Hellwarth1999mobilityRHS( (α, (v,w) ,f) , effectivemass, T)
mb=effectivemass*MassElectron
ω=f*1E12*2π
βred=ħ*ω/(kB*T)
R=(v^2-w^2)/(w^2*v) # inline, page 300 just after Eqn (2)
b=R*βred/sinh(βred*v/2) # Feynman1962 version; page 1010, Eqn (47b)
a=sqrt( (βred/2)^2 + R*βred*coth(βred*v/2))
k(u,a,b,v) = (u^2+a^2-b*cos(v*u))^(-3/2)*cos(u) # integrand in (2)
K=quadgk(u->k(u,a,b,v),0,Inf)[1] # numerical quadrature integration of (2)
#Right-hand-side of Eqn 1 in Hellwarth 1999 // Eqn (4) in Baggio1997
RHS=α/(3*sqrt(π)) * βred^(5/2) / sinh(βred/2) * (v^3/w^3) * K
μ=RHS^-1 * (q)/(ω*mb)
return 1/μ
end
"""
----------------------------------------------------------------------
Multiple Branch Frohlich Alpha
----------------------------------------------------------------------
This section of the code is dedicated to determining the partial dielectric electron-phonon coupling parameter, decomposed into ionic dielectric contributions from each phonon mode of the matieral.
"""
"""
ϵ_ionic_mode(phonon_mode_freq::Float64, ir_activity::Float64, volume::Float64)
Calculate the ionic contribution to the dielectric function for a given phonon mode.
phonon_mode_freq is the frequency of the mode in THz.
- ir_activity is the infra-red activity of the mode in e^2 amu^-1.
- volume is the volume of the unit cell of the material in m^3.
"""
function ϵ_ionic_mode(phonon_mode_freq, ir_activity, volume) # single ionic mode
# Angular phonon frequency for the phonon mode (rad Hz)
ω_j = 2π * phonon_mode_freq * 1e12
# Dielectric contribution from a single ionic phonon mode
ϵ_mode = eV^2 * ir_activity / (3 * volume * ω_j^2 * amu)
# Normalise ionic dielectric contribution with 1 / (4π ϵ_0) (NB: the 4π has been pre-cancelled)
return ϵ_mode / ϵ_0
end
"""
ϵ_total(freqs_and_ir_activity::Matrix{Float64}, volume::Float64)
Calculate the total ionic contribution to the dielectric function from all phonon modes.
- freqs_and_ir_activity is a matrix containexing the phonon mode frequencies (in THz) in the first column and the infra-red activities (in e^2 amu^-1) in the second column.
- volume is the volume of the unit cell of the material in m^3.
"""
function ϵ_total(freqs_and_ir_activity, volume) # total ionic contribution to dielectric
# Extract phonon frequencies (THz)
phonon_freqs = freqs_and_ir_activity[:, 1]
# Extra infra-red activities (e^2 amu^-1)
ir_activity = freqs_and_ir_activity[:, 2]
# Sum over all ionic contribution from each phonon mode
total_ionic = 0.0
for t in 1:length(phonon_freqs)
total_ionic += ϵ_ionic_mode(phonon_freqs[t], ir_activity[t], volume)
end
return total_ionic
end
"""
effective_freqs(freqs_and_ir_activity::Matrix{Float64}, num_var_params::Integer)
Generates a matrix of effective phonon modes with frequencies and infra-red activities derived from a larger matrix using the Principal Component Analysis (PCA) method.
- freqs_and_ir_activity: is a matrix containing the phonon mode frequencies (in THz) in the first column and the infra-red activities (in e^2 amu^-1) in the second column.
- num_var_params: is the number of effective modes required (which needs to be less than the number of modes in freqs_and_ir_activity)
*** POSSIBLY REDUNDANT ***
"""
function effective_freqs(freqs_and_ir_activity, num_var_params) # PCA Algorithm
# Check that the number of effective modes is less than the number of actual phonon modes.
if num_var_params >= size(freqs_and_ir_activity)[1]
println("The number of effective phonon modes has to be less than the total number of phonon modes.")
else
# Centralise data by subtracting the columnwise mean
standardized_matrix = freqs_and_ir_activity' .- mean(freqs_and_ir_activity', dims = 2)
# Calculate the covariance matrix S' * S. Matrix size is (n - 1) x (n - 1) for number of params (here n = 2)
covariance_matrix = standardized_matrix' * standardized_matrix
# Extract eigenvectors of the covariance matrix
eigenvectors = eigvecs(covariance_matrix)
# Project the original data along the covariance matrix eigenvectors and undo the centralisation
reduced_matrix = standardized_matrix[:, 1:num_var_params] * eigenvectors[1:num_var_params, 1:num_var_params] *
eigenvectors[1:num_var_params, 1:num_var_params]' .+ mean(freqs_and_ir_activity', dims = 2)
# Resultant matrix is positive definite and transposed.
return abs.(reduced_matrix')
end
end
"""
multi_frohlichalpha(ϵ_optic::Float64, ϵ_ionic::Float64, ϵ_total::Float64, phonon_mode_freq::Float64, m_eff::Float64)
Calculates the partial dielectric electron-phonon coupling parameter for a given longitudinal optical phonon mode. This decomposes the original Frohlich alpha coupling parameter (defined for a single phonon branch) into contributions from multiple phonon branches.
- ϵ_optic is the optical dielectric constant of the material.
- ϵ_ionic is the ionic dielectric contribution from the phonon mode.
- ϵ_total is the total ionic dielectric contribution from all phonon modes of the material.
- phonon_mode_freq is the frequency of the phonon mode (THz).
- m_eff is the band mass of the electron (in units of electron mass m_e)
"""
function multi_frohlichalpha(ϵ_optic, ϵ_ionic, ϵ_total, phonon_mode_freq, m_eff)
# The Rydberg energy unit
Ry = eV^4 * me / (2 * ħ^2)
# Angular phonon frequency for the phonon mode (rad Hz).
ω = 2π * 1e12 * phonon_mode_freq
# The static dielectric constant. Calculated here instead of inputted so that ionic modes are properly normalised.
ϵ_static = ϵ_total + ϵ_optic
# The contribution to the electron-phonon parameter from the currrent phonon mode. 1 / (4π ϵ_0) is the dielectric normalisation.
α_j = (m_eff * Ry / (ħ * ω))^(1 / 2) * ϵ_ionic / (4π * ϵ_0) / (ϵ_optic * ϵ_static)
return α_j
end
"""
----------------------------------------------------------------------
Multiple Branch Polaron Free Energy
----------------------------------------------------------------------
This section of the code is dedicated to calculating the polaron free energy, generalised from Osaka's expression to the case where multiple phonon modes are present in the material.
"""
"""
κ_i(i::Integer, v::Array{Float64}(undef, 1), w::Array{Float64}(undef, 1))
Calculates the spring-constant coupling the electron to the `ith' fictitious mass that approximates the exact electron-phonon interaction with a harmonic coupling to a massive fictitious particle. NB: Not to be confused with the number of physical phonon branches; many phonon branches could be approximated with one or two etc. fictitious masses for example. The number of fictitious mass does not necessarily need to match the number of phonon branches.
- i enumerates the current fictitious mass.
- v is an one-dimensional array of the v variational parameters.
- w is an one-dimensional array of the w variational parameters.
"""
function κ_i(i, v, w)
κ = v[i]^2 - w[i]^2
if length(v) > 1
for j in 1:length(v)
if j != i
κ *= (v[j]^2 - w[i]^2) / (w[j]^2 - w[i]^2)
end
end
end
return κ
end
"""
h_i(i::Integer, v::Array{Float64}(undef, 1), w::Array{Float64}(undef, 1))
Calculates the normal-mode (the eigenmodes) frequency of the coupling between the electron and the `ith' fictitious mass that approximates the exact electron-phonon interaction with a harmonic coupling to a massive fictitious particle. NB: Not to be confused with the number of physical phonon branches; many phonon branches could be approximated with one or two etc. fictitious masses for example. The number of fictitious mass does not necessarily need to match the number of phonon branches.
- i enumerates the current fictitious mass.
- v is an one-dimensional array of the v variational parameters.
- w is an one-dimensional array of the w variational parameters.
"""
function h_i(i, v, w)
h = v[i]^2 - w[i]^2
if length(v) > 1
for j in 1:length(v)
if j != i
h *= (w[j]^2 - v[i]^2) / (v[j]^2 - v[i]^2)
end
end
end
return h
end
"""
C_ij(i::Integer, j::Integer, v::Array{Float64}(undef, 1), w::Array{Float64}(undef, 1))
Calculates the element to the coupling matrix C_ij (a generalisation of Feynman's `C` coupling variational parameter) between the electron and the `ith' and `jth' fictitious masses that approximates the exact electron-phonon interaction with a harmonic coupling to a massive fictitious particle. NB: Not to be confused with the number of physical phonon branches; many phonon branches could be approximated with one or two etc. fictitious masses for example. The number of fictitious mass does not necessarily need to match the number of phonon branches.
- i, j enumerate the current fictitious masses under focus (also the index of the element in the coupling matrix C)
- v is an one-dimensional array of the v variational parameters.
- w is an one-dimensional array of the w variational parameters.
"""
function C_ij(i, j, v, w)
C = w[i] * κ_i(i, v, w) * h_i(j, v, w) / (4 * (v[j]^2 - w[i]^2))
return C
end
"""
D_j(τ::Float64, β::Float64, v::Array{Float64}(undef, 1), w::Array{Float64}(undef, 1))
Calculates the recoil function that approximates the exact influence (recoil effects) of the phonon bath on the electron with the influence of the harmonicly coupled fictitious masses on the electron. It appears in the exponent of the intermediate scattering function.
- τ is the imaginary time variable.
- β is the reduced thermodynamic temperature ħ ω_j / (kB T) associated with the `jth` phonon mode.
- v is an one-dimensional array of the v variational parameters.
- w is an one-dimensional array of the w variational parameters.
"""
function D_j(τ, β, v, w)
D = τ * (1 - τ / β)
for i in 1:length(v)
D += (h_i(i, v, w) / v[i]^2) * ((1 + exp(-v[i] * β) - exp(-v[i] * τ) - exp(v[i] * (τ - β))) / (v[i] * (1 - exp(-v[i] * β))) - τ * (1 - τ / β))
end
return D
end
"""
D_j(τ::Float64, v::Array{Float64}(undef, 1), w::Array{Float64}(undef, 1))
Calculates the recoil function that approximates the exact influence (recoil effects) of the phonon bath on the electron with the influence of the harmonicly coupled fictitious masses on the electron. It appears in the exponent of the intermediate scattering function. This function works at zero temperature.
- τ is the imaginary time variable.
- v is an one-dimensional array of the v variational parameters.
- w is an one-dimensional array of the w variational parameters.
"""
function D_j(τ, v, w)
D = τ
for i in 1:length(v)
D += (h_i(i, v, w) / v[i]^2) * ((1 - exp(-v[i] * τ)) / v[i] - τ)
end
return D
end
"""
B_j(α::Float64, β::Float64, v::Array{Float64}(undef, 1), w::Array{Float64}(undef, 1))
Generalisation of the B function from Equation 62c in Biaggio and Hellwarth []. This is the expected value of the exact action <S_j> taken w.r.t trial action, given for the `jth` phonon mode.
- α is the partial dielectric electron-phonon coupling parameter for the `jth` phonon mode.
- β is the reduced thermodynamic temperature ħ ω_j / (kB T) associated with the `jth` phonon mode.
- v is an one-dimensional array of the v variational parameters.
- w is an one-dimensional array of the w variational parameters.
"""
function B_j(α, β, v, w; rtol = 1e-3)
B_integrand(τ) = (exp(-τ) + exp(τ - β)) / sqrt(abs(D_j(τ, β, v, w)))
B = α / (√π * (1 - exp(-β))) * quadgk(τ -> B_integrand(τ), 0.0, β / 2, rtol = rtol)[1]
return B
end
"""
B_j(α::Float64, v::Array{Float64}(undef, 1), w::Array{Float64}(undef, 1))
Generalisation of the B function from Equation 62c in Biaggio and Hellwarth [] to zero temperature. This is the expected value of the exact action <S_j> taken w.r.t trial action, given for the `jth` phonon mode.
- α is the partial dielectric electron-phonon coupling parameter for the `jth` phonon mode.
- v is an one-dimensional array of the v variational parameters.
- w is an one-dimensional array of the w variational parameters.
"""
function B_j(α, v, w; rtol = 1e-3)
B_integrand(τ) = exp(-abs(τ)) / sqrt(abs(D_j(abs(τ), v, w)))
B = α / √π * quadgk(τ -> B_integrand(τ), 0.0, Inf64, rtol = rtol)[1]
return B
end
"""
C_j(β::Float64, v::Array{Float64}(undef, 1), w::Array{Float64}(undef, 1), n::Float64)
Generalisation of the C function from Equation 62e in Biaggio and Hellwarth []. This is the expected value of the trial action <S_0> taken w.r.t trial action.
- β is the reduced thermodynamic temperature ħ ω_j / (kB T) associated with the `jth` phonon mode.
- v is an one-dimensional array of the v variational parameters.
- w is an one-dimensional array of the w variational parameters.
- n is the total number of phonon modes.
"""
function C_j(β, v, w, n)
s = 0.0
# Sum over the contributions from each fictitious mass.
for i in 1:length(v)
for j in 1:length(v)
s += C_ij(i, j, v, w) / (v[j] * w[i]) * (coth(β * v[j] / 2) - 2 / (β * v[j]))
end
end
# Divide by the number of phonon modes to give an average contribution per phonon mode.
return 3 * s / n
end
"""
C_j(v::Array{Float64}(undef, 1), w::Array{Float64}(undef, 1), n::Float64)
Generalisation of the C function from Equation 62e in Biaggio and Hellwarth [] but to zero temperaure. This is the expected value of the trial action <S_0> taken w.r.t trial action.
- v is an one-dimensional array of the v variational parameters.
- w is an one-dimensional array of the w variational parameters.
- n is the total number of phonon modes.
"""
function C_j(v, w, n)
s = 0.0
# Sum over the contributions from each fictitious mass.
for i in 1:length(v)
for j in 1:length(v)
s += C_ij(i, j, v, w) / (v[j] * w[i])
end
end
# Divide by the number of phonon modes to give an average contribution per phonon mode.
return 3 * s / n
end
"""
A_j(β::Float64, v::Array{Float64}(undef, 1), w::Array{Float64}(undef, 1), n::Float64)
Generalisation of the A function from Equation 62b in Biaggio and Hellwarth []. This is the Helmholtz free energy of the trial model.
- β is the reduced thermodynamic temperature ħ ω_j / (kB T) associated with the `jth` phonon mode.
- v is an one-dimensional array of the v variational parameters.
- w is an one-dimensional array of the w variational parameters.
- n is the total number of phonon modes.
"""
function A_j(β, v, w, n)
s = -log(2π * β) / 2
# Sum over the contributions from each fictitious mass.
for i in 1:length(v)
if v[i] != w[i]
s += v[i] == w[i] ? 0.0 : log(v[i] / w[i]) - log(sinh(v[i] * β / 2) / sinh(w[i] * β / 2))
end
end
# Divide by the number of phonon modes to give an average contribution per phonon mode.
3 / β * s / n
end
"""
A_j(v::Array{Float64}(undef, 1), w::Array{Float64}(undef, 1), n::Float64)
Generalisation of the A function from Equation 62b in Biaggio and Hellwarth [] but to zero temperature. This is the ground-state energy of the trial model.
- v is an one-dimensional array of the v variational parameters.
- w is an one-dimensional array of the w variational parameters.
- n is the total number of phonon modes.
"""
function A_j(v, w, n)
s = sum(v .- w)
return -3 * s / (2 * n)
end
"""
multi_F(v, w, α, β; ω = 1.0)
Calculates the Helmholtz free energy of the polaron for a material with multiple phonon branches. This generalises Osaka's free energy expression (below Equation (22) in []).
- v is an one-dimensional array of the v variational parameters.
- w is an one-dimensional array of the w variational parameters.
- α is the Frohlich coupling constant.
- β is the thermodynamic temperature.
"""
function multi_F(v, w, α, β; ω = 1.0, rtol = 1e-3, T = nothing, verbose = false)
num_modes = length(ω)
# Add contribution to the total free energy from the phonon mode.
F = sum(-(B_j(α[j], β[j], v, w; rtol = rtol) + C_j(β[j], v, w, num_modes) + A_j(β[j], v, w, num_modes)) * ω[j] for j in 1:num_modes)
# Print the free energy.
if verbose
println("\e[2K", "Process: $(count) / $processes ($(round.(count / processes * 100, digits = 1)) %) | T = $(round.(T, digits = 3)) | F = $(round.(F, digits = 3))")
print("\033[F")
global count += 1
end
# Free energy in units of meV
return F
end
"""
multi_F(v, w, α; ω)
Calculates the Helmholtz free energy of the polaron for a material with multiple phonon branches. This generalises Osaka's free energy expression (below Equation (22) in []).
- α is the Frohlich alpha parameter.
- ω is a vector containing the phonon mode frequencies (in THz).
- v and w determines if the function should start with a random initial set of variational parameters (= 0.0) or a given set of variational parameter values.
"""
function multi_F(v, w, α; ω = 1.0, rtol = 1e-3, verbose = false)
num_modes = length(ω)
# Add contribution to the total free energy from the phonon mode.
F = sum(-(B_j(α[j], v, w; rtol = rtol) + C_j(v, w, num_modes) + A_j(v, w, num_modes)) * ω[j] for j in 1:num_modes)
# Print the free energy.
if verbose
println("\e[2K", "Process: $(count) / $processes ($(round.(count / processes * 100, digits = 1)) %) | T = 0.0 | F = $(round.(F, digits = 3))")
print("\033[F")
global count += 1
end
# Free energy in units of meV
return F
end
"""
variation(α::Vector{Real}, β::Vector{Real}; v::Real, w::Real, ω::Vector{Real}, N::Integer)
Minimises the multiple phonon mode free energy function for a set of v_p and w_p variational parameters.
The variational parameters follow the inequality: v_1 > w_1 > v_2 > w_2 > ... > v_N > w_N.
- β is the thermodynamic temperature.
- α is the Frohlich alpha parameter.
- ω is a vecotr containing the phonon mode frequencies (in THz).
- v and w determines if the function should start with a random initial set of variational parameters (= 0.0) or a given set of variational parameter values.
- N specifies the number of variational parameter pairs, v_p and w_p, to use in minimising the free energy.
"""
function var_params(α, β; v = 0.0, w = 0.0, ω = 1.0, N = 1, rtol = 1e-3, show_trace = false, T = nothing, verbose = false) # N number of v and w params
if N != length(v) != length(w)
return error("The number of variational parameters v & w must be equal to N.")
end
# Use a random set of N initial v and w values.
if v == 0.0 || w == 0.0
# Intial guess for v and w parameters.
initial = sort(rand(2 * N), rev=true) .* 4.0 .+ 1.0 # initial guess around 4 and ≥ 1.
else
Δv = v .- w
initial = vcat(Δv .+ rtol, w)
end
# Limits of the optimisation.
lower = fill(0.0, 2 * N)
upper = fill(1000.0, 2 * N)
# The multiple phonon mode free energy function to minimise.
f(x) = multi_F([x[2 * n - 1] for n in 1:N] .+ [x[2 * n] for n in 1:N], [x[2 * n] for n in 1:N], α, β; ω = ω, rtol = rtol)
# Use Optim to optimise the free energy function w.r.t the set of v and w parameters.
solution = Optim.optimize(
Optim.OnceDifferentiable(f, initial; autodiff = :forward),
lower,
upper,
initial,
Fminbox(BFGS()),
Optim.Options(show_trace = show_trace), # Set time limit for asymptotic convergence if needed.
)
# Extract the v and w parameters that minimised the free energy.
var_params = Optim.minimizer(solution)
if Optim.converged(solution) == false
@warn "Failed to converge feynmanvw solution."
end
# Separate the v and w parameters into one-dimensional arrays (vectors).
Δv = [var_params[2 * n - 1] for n in 1:N]
w = [var_params[2 * n] for n in 1:N]
# Print the variational parameters that minimised the free energy.
if verbose
println("\e[2K", "Process: $(count) / $processes ($(round.(count / processes * 100, digits = 1)) %) | T = $(round.(T, digits = 3)) | v = $(round.(Δv .+ w, digits = 3)) | w = $(round.(w, digits = 3))")
print("\033[F")
global count += 1
end
# Return the variational parameters that minimised the free energy.
return hcat(Δv .+ w, w)
end
function var_params(α; v = 0.0, w = 0.0, ω = 1.0, N = 1, rtol = 1e-3, show_trace = false, verbose = false) # N number of v and w params
if N != length(v) != length(w)
return error("The number of variational parameters v & w must be equal to N.")
end
# Use a random set of N initial v and w values.
if v == 0.0 || w == 0.0
# Intial guess for v and w parameters.
initial = sort(rand(2 * N), rev=true) .* 4.0 .+ 1.0 # initial guess around 4 and ≥ 1.
else
Δv = v .- w
initial = vcat(Δv .+ rtol, w)
end
# Limits of the optimisation.
lower = fill(0.0, 2 * N)
upper = fill(1000, 2 * N)
# The multiple phonon mode free energy function to minimise.
f(x) = multi_F([x[2 * n - 1] for n in 1:N] .+ [x[2 * n] for n in 1:N], [x[2 * n] for n in 1:N], α; ω = ω, rtol = rtol)
# Use Optim to optimise the free energy function w.r.t the set of v and w parameters.
solution = Optim.optimize(
Optim.OnceDifferentiable(f, initial; autodiff = :forward),
lower,
upper,
initial,
Fminbox(BFGS()),
Optim.Options(show_trace = show_trace), # Set time limit for asymptotic convergence if needed.
)
# Extract the v and w parameters that minimised the free energy.
var_params = Optim.minimizer(solution)
# Separate the v and w parameters into one-dimensional arrays (vectors).
Δv = [var_params[2 * n - 1] for n in 1:N]
w = [var_params[2 * n] for n in 1:N]
# Print the variational parameters that minimised the free energy.
if verbose
println("\e[2K", "Process: $(count) / $processes ($(round.(count / processes * 100, digits = 1)) %) | T = 0.0 | v = $(round.(Δv .+ w, digits = 3)) | w = $(round.(w, digits = 3))")
print("\033[F")
global count += 1
end
# Return the variational parameters that minimised the free energy.
return hcat(Δv .+ w, w)
end
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 3791 | # OedipusRex.jl
# - Polaron optical absorption, complex impedence and complex conductivity
"""
----------------------------------------------------------------------
Polaron absorption coefficient Γ(Ω).
----------------------------------------------------------------------
"""
"""
optical_absorption(Ω::Float64, β::Float64, α::Float64, v::Float64, w::Float64; rtol = 1e-3)
Calculate the absorption coefficient Γ(Ω) for the polaron at at finite temperatures (equation (11a) in [1]) for a given frequency Ω. β is thermodynamic beta. v and w are the variational Polaron parameters that minimise the free energy, for the supplied α Frohlich coupling. rtol specifies the relative error tolerance for the QuadGK integral in the memory function.
[1] Devreese, J., De Sitter, J., & Goovaerts, M. (1972). Optical Absorption of Polarons in the Feynman-Hellwarth-Iddings-Platzman Approximation. Physical Review B, 5(6), 2367–2381. doi:10.1103/physrevb.5.2367
"""
function optical_absorption(Ω, β, α, v, w; rtol = 1e-3)
real(complex_conductivity(Ω, β, α, v, w; rtol = rtol))
end
"""
----------------------------------------------------------------------
The Complex Impedence and Conductivity of the Polaron.
----------------------------------------------------------------------
"""
"""
polaron_complex_impedence(Ω::Float64, β::Float64, α::Float64, v::Float64, w::Float64)
Calculate the complex impedence Z(Ω) of the polaron at finite temperatures for a given frequency Ω (equation (41) in FHIP 1962 [1]). β is the thermodynamic beta. v and w are the variational polaron parameters that minimise the free energy, for the supplied α Frohlich coupling. rtol specifies the relative error tolerance for the QuadGK integral in the memory function.
"""
function polaron_complex_impedence(Ω, β, α, v, w; ω = 1.0, rtol = 1e-3, T = nothing, verbose = false)
impedance = -im * Ω * 2π + im * polaron_memory_function(Ω, β, α, v, w; ω = ω, rtol = rtol)
if verbose
println("\e[2K", "Process: $(count) / $processes ($(round.(count / processes * 100, digits = 1)) %) | T = $(round.(T, digits = 3)) | Ω = $(round.(Ω, digits = 3)) | Z = $(round.(impedance, digits = 3))")
print("\033[F")
global count += 1
end
return impedance
end
"""
polaron_complex_conductivity(Ω::Float64, β::Float64, α::Float64, v::Float64, w::Float64)
Calculate the complex conductivity σ(Ω) of the polaron at finite temperatures for a given frequency Ω (equal to 1 / Z(Ω) with Z the complex impedence). β is the thermodynamic beta. v and w are the variational polaron parameters that minimise the free energy, for the supplied α Frohlich coupling. rtol specifies the relative error tolerance for the QuadGK integral in the memory function.
"""
function polaron_complex_conductivity(Ω, β, α, v, w; ω = 0.0, rtol = 1e-3)
return 1 / polaron_complex_impedence(Ω, β, α, v, w; ω = ω, rtol = rtol)
end
"""
polaron_mobility(β::Float64, α::Float64, v::Float64, w::Float64; rtol = 1e-3)
Calculate the dc mobility μ of the polaron at finite temperatues (equation (11.5) in [3]) for a given frequency Ω. β is the thermodynamic beta. v and w are the variational polaron parameters that minimise the free energy, for the supplied α Frohlich coupling. rtol specifies the relative error for the integral to reach.
"""
function polaron_mobility(β, α, v, w; ω = 1.0, rtol = 1e-3, T = nothing, verbose = false)
mobility = abs(1 / imag(polaron_memory_function_dc(β, α, v, w; ω = ω, rtol = rtol)))
if verbose
println("\e[2K", "Process: $(count) / $processes ($(round.(count / processes * 100, digits = 1)) %) | T = $(round.(T, digits = 3)) | μ = $(round.(mobility, digits = 3))")
print("\033[F")
global count += 1
end
return mobility
end
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 2934 | # Wrap PlotPolaron (and it's dependency on Plots) within it's own (sub)module.
module PlotPolaron
export plotpolaron # Should unify case here c.f. Module
using PolaronMobility
using Plots
function plotpolaron(fileprefix, p::Polaron; extension="png")
println("Plotting polaron to $fileprefix...")
#####
## Mass vs. Temperature plot
plot(p.T,p.M,label="Phonon effective-mass",
markersize=3,marker=:rect,
xlab="Temperature (K)",ylab="Phonon effective-mass",
ylim=(0,1.2))
savefig("$fileprefix-mass.$extension")
#####
## Relaxationtime vs. Temperature plot
plot(p.T,p.Tau,label="Kadanoff relaxation time (ps)",markersize=3,marker=:rect,xlab="Temperature (K)",ylab="Relaxation time (ps)",ylim=(0,1.2))
savefig("$fileprefix-tau.$extension")
## Mass + relaxation time vs. Temperature plot
plot(p.T,p.M,label="Phonon effective-mass (m\$_b\$)",markersize=3,marker=:rect,
xlab="Temperature (K)",ylab="Effective-mass / relaxation time",ylim=(0,1.2))
plot!(p.T,p.Tau,label="Kadanoff relaxation time (ps)",markersize=3,marker=:diamond,
xlab="Temperature (K)",ylab="Relaxation time (ps)",ylim=(0,1.2))
savefig("$fileprefix-mass-tau.$extension")
####
## Variational parameters, v and w vs. Temperature plot
plot(p.T,p.v,label="v",markersize=3, marker=:rect, xlab="Temperature (K)",ylab="hbar-omega")
plot!(p.T,p.w,label="w",markersize=3, marker=:diamond)
savefig("$fileprefix-vw.$extension")
#####
## Spring Constants vs. Temperature plot
plot(p.T,p.k,label="Polaron spring-constant",markersize=3, marker=:uptriangle, xlab="Temperature (K)",ylab="Spring-constant",)
savefig("$fileprefix-spring.$extension")
#####
## Variation Energy vs. Temperature plots
plot( p.T,p.A,label="A",markersize=3,marker=:downtriangle, xlab="Temperature (K)",ylab="Polaron free-energy")
plot!(p.T,p.B,label="B",markersize=3,marker=:diamond)
plot!(p.T,p.C,label="C",markersize=3,marker=:uptriangle)
plot!(p.T,p.F,label="F",markersize=3,marker=:rect)
#plot!(Ts,Fs,label="F=-(A+B+C)",markersize=3,marker=:rect)
savefig("$fileprefix-variational.$extension")
#####
## Polaron radius vs. Temperature
plot(p.T,p.rfsi.*10^10, markersize=3,marker=:rect,
label="Polaron radius",xlab="Temperature (K)",ylab="Polaron Radius (Angstrom)",ylims=(0,Inf))
# plot!(p.T,p.rfsmallalpha.*10^10,label="T=0 Schultz small alpha polaron radius") # obsolete
savefig("$fileprefix-radius.$extension")
#####
## Calculated mobility comparison plot
plot(p.T,p.Kμ,label="Kadanoff",markersize=3,marker=:rect,xlab="Temperature (K)",ylab="Mobility (cm\$^2\$/Vs)",ylims=(0,1000))
plot!(p.T,p.FHIPμ,label="FHIP",markersize=3,marker=:diamond)
plot!(p.T,p.Hμ,label="Hellwarth1999",markersize=3,marker=:uptriangle)
savefig("$fileprefix-mobility-calculated.$extension")
end
end
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 2181 | """
PolaronMobility.jl - https://github.com/jarvist/PolaronMobility.jl
Codes by Jarvist Moore Frost, 2017-2020
Calculate Polaron Mobility - by a Osaka/Hellwarth variational solution to the Feynman model
"""
module PolaronMobility
# These codes were developed with Julia 0.5.0 - Julia 0.6.2, and require the Optim and Plots packages.
export Polaron, NewPolaron # Type to hold the data
export frohlichalpha, feynmanvw, F, polaronmobility, savepolaron, plotpolaron
export HellwarthBScheme, HellwarthAScheme
export polaron_memory_function # Polaron memory functions
export optical_absorption # Polaron optical absorption
export ϵ_ionic_mode, multi_frohlichalpha, var_params, multi_F, polaron_mobility, polaron_complex_impedence, polaron_complex_conductivity
export frohlichPartial, IRtoDielectric, IRtoalpha, DielectricFromIRmode
export Hellwarth1999mobilityRHS
export make_polaron, save_polaron, load_polaron
##### load in library routines... #####
# stdlib
using LinearAlgebra
using Printf
using JLD
using Tullio, LoopVectorization
# one-dimensional numerical integration in Julia using adaptive Gauss-Kronrod quadrature
import QuadGK.quadgk
# Using the powerful Julia Optim package to optimise the variational parameters
using Optim
# Physical constants
const hbar = const ħ = 1.05457162825e-34; # kg m2 / s
const eV = const q = const ElectronVolt = 1.602176487e-19; # kg m2 / s2
const me=MassElectron = 9.10938188e-31; # kg
const Boltzmann = const kB = 1.3806504e-23; # kg m2 / K s2
const ϵ_0 = 8.854E-12 #Units: C2N−1m−2, permittivity of free space
const amu = 1.660_539_066_60e-27 # kg
include("types.jl") # Polaron types
include("FeynmanTheory.jl") # Actions + variational functions
include("HellwarthTheory.jl") # multimode -> equivalent mode.
include("MobilityTheories.jl") # Main polaronmobility function
include("MemoryFunction.jl") # Memory function X calculation.
include("Susceptibility.jl") # ImX calculation
include("OedipusRex.jl") # Optical Absorption
include("MultipleBranches.jl") # Oct 2019 extension to multiple phonon branches
end # module
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 2886 | # Susceptibility.jl
# Frequency-dependent susceptibility (and thus mobility) of the Feynman polaron state
# A WORK IN PROGRESS.
# Data structure to store the results
struct susceptibility
nu
ImX
μ
end
Susceptibility()=susceptibility([],[],[])
"""
function ImX(nurange,v,w,βred,α,ω,mb)
Impedance in (47a) from Feynman1962, directly solving freq dep without taking
Hellwarth1999 limit of v->0 .
Calculates a frequency dependent (over range of nu) susceptibility which can be linked back to mobility.
HERE BE DRAGONS!
Not well tested or validated code; the central numeric integration is highly
oscillatory and becomes intractable for large nu.
"""
function ImX(nurange,v,w,βred,α,ω,mb)
@printf("\nAin't no Imaginary Impedance like a Feynman 1962 ImX...\n")
println("ImX Call signature: v: $v w: $w βred: $βred α: $α ω: $ω mb: $mb")
# Feynman, I love you - but using Nu, v; Omega, w in the same paper + formulas, for similar objects?!
s=Susceptibility()
for nu in nurange
R=(v^2-w^2)/(w^2*v) # FHIP1962, page 1011, eqn (47c). Note this is wrong in some textbooks / 1990s PRB.
b=R*βred/sinh(βred*v/2) # FHIP1962, page 1010, eqn (47b)
a=sqrt( (βred/2)^2 + R*βred*coth(βred*v/2)) # FHIP1962, page 1010, eqn (47b)
k(u,a,b,v,nu) = (u^2+a^2-b*cos(v*u))^(-3/2)*cos(u)*cos(nu*u) # integrand with cos(vu) term, as (47a)
@printf("Numerical integration of FHIP1962(42a): nu=%.2f ",nu)
println(" a: $(a) b:$(b) ")
# This is a simple approximation of part of the
# https://www.gnu.org/software/gsl/doc/html/integration.html#qawf-adaptive-integration-for-fourier-integrals
# GSL adaptive method for Fourier integrals
# We split the integral into a load of integrals, balanced at some of
# the roots.
c=(2*floor(nu)+1)*π/nu
println("Fourier integral c: $(c)")
fourier_range = [ c*i for i in 0:2501 ]
# Catch Inf c range
if nu==0
fourier_range = [0, Inf]
end
# These params tweaked to get the best behaviour at reproducing
# Mishchenko-Fig4 in a timely manner.
@time n=quadgk(u->k(u,a,b,v,nu),fourier_range... ,
maxevals=10^6,rtol=0.0001, atol=1e-15, order=7) # numerical quadrature integration of (2)
K=n[1]
err=n[2]
@printf(" quadgk: K=%g err=%g\n",K,err)
if K<err # we've lost control of our errors, due to losing the oscillatory war with nu
break # --> so give up.
end
# Full 47a constructed here
ImX= 2*α/(3*sqrt(π)) * βred^(3/2) * (sinh(βred*nu/2))/sinh(βred/2) * (v^3/w^3) * K
μ=ImX^-1 * (q)/(ω*mb)
@printf(" %.3f %g %g\n",nu,ImX,μ)
append!(s.nu,nu)
append!(s.ImX,ImX)
append!(s.μ,μ)
end
@printf("\n\n")
return(s)
end
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 3024 | # types.jl
# Physical constants
const hbar = const ħ = 1.05457162825e-34; # kg m2 / s
const eV = const q = const ElectronVolt = 1.602176487e-19; # kg m2 / s2
const me=MassElectron = 9.10938188e-31; # kg
const Boltzmann = const kB = 1.3806504e-23; # kg m2 / K s2
const ε_0 = 8.854E-12 #Units: C2N−1m−2, permittivity of free space
const c = 3e8
# Structure to store data of polaron solution + other parameters, for each temperature
struct Polaron
T
# Mobilities
Kμ; Hμ; FHIPμ
# Spring constant and renormalised (phonon-drag) mass
k; M
# Osaka free energy components (A,B,C) and total (F). See Hellwarth et al. 1999 PRB Part IV
A; B; C; F
# Relaxation time from Kadanoff Boltzmann transport equation
Tau
# Raw variational parameters
v; w
# Reduced thermodynamic beta
βred
# Feynman polaron radius (Schultz), in SI units. Then also the small-alpha asymptotic approx
rfsi; rfsmallalpha
# Setup of simulation. These parameters are sent to the function.
# Alpha = Frohlich alpha
α
# Band effective mass
mb
# Effective dielectric frequency
ω
end
Polaron()=Polaron([],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]) # structure initialisation
struct NewPolaron
α # Frohlich alpha (unitless)
T # Temperature (K)
β # Reduced Thermodynamic beta (unitless)
ω # Phonon frequency (rad THz)
v # Variational parameter (s^-1)
w # Variational parameter (s^-1)
κ # Fictitious spring constant (multiples of m_e) (kg / s^2)
M # Fictitious particle (multiples of m_e) (kg)
F # Free energy (meV)
Ω # Electric field frequencies (multiples of phonon frequency ω) (s^-1)
Z # Complex impedence (V/A)
σ # Complex conductivity (A/V)
μ # Mobility (cm^2/Vs)
end
# Broadcast Polaron data.
function Base.show(io::IO, x::NewPolaron)
flush(stdout)
print(io, "-------------------------------------------------\n Polaron Information: \n-------------------------------------------------\n", "Fröhlich coupling | α = ", round.(x.α, digits = 3), " | sum(α) = ", round(sum(x.α), digits = 3),"\nTemperatures | T = ", round.(x.T, digits = 3), " K \nReduced thermodynamic | β = ", round.(x.β, digits = 3), "\nPhonon frequencies | ω = ", round.(x.ω, digits = 3), " 2π THz\nVariational parameters | v = ", round.(x.v, digits = 3), " ω | w = ", round.(x.w, digits = 3), " ω\nFictitious spring constant | κ = ", round.(x.κ, digits = 3), " kg/s²\nFictitious mass | M = ", round.(x.M, digits = 3), " kg\nFree energy | F = ", round.(x.F, digits = 3), " meV\nElectric field frequency | Ω = ", round.(Float64.(x.Ω), digits = 3), " 2π THz\nComplex impedance | Z = ", x.Z .|> y -> round.(ComplexF64.(y), digits = 3), " V/A\nComplex conductivity | σ = ", x.σ .|> y -> round.(ComplexF64.(y), digits = 3), " A/V\nMobility | μ = ", round.(Float64.(x.μ), digits = 3), " cm²/Vs")
end
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 844 | @testset "FeynmanAthermal tests" begin
println("FeynmanAthermal Tests - check athermal feynmanvw(α) -> v,w literature values.")
# Results from Feynman & Hibbs, Emended Edition, p 319.
# α v w E
Schultz=[
3.00 3.44 2.55 -3.1333
5.00 4.02 2.13 -5.4401
7.00 5.81 1.60 -8.1127
9.00 9.85 1.28 -11.486
11.0 15.5 1.15 -15.710
]
rows(M::Matrix) = map(x->reshape(getindex(M, x, :), :, size(M)[2]), 1:size(M)[1])
for r in rows(Schultz)
α,vSchultz,wSchultz,ESchultz=r # Unpack row of results
v,w=feynmanvw(α) # performs the optimisation
E=F(v,w,α) # energy at the optimised parameters
println("α=$α v=$v w=$w E=$E | Schultz: v=$vSchultz w=$wSchultz E=$ESchultz")
@test v ≈ vSchultz atol=0.1 # Strangely these need more tolerance than the Energies
@test w ≈ wSchultz atol=0.1
@test E ≈ ESchultz atol=0.001
end
end
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 4482 | # Hellwarth 1999 PRB - Part IV; T-dep of the Feynman variation parameter
# A Friday afternoon of hacking to try and implement the T-dep electron-phonon coupling from the above PRB
# Which was unusually successful! And more or less reproduced Table III
# one-dimensional numerical integration in Julia using adaptive Gauss-Kronrod quadrature
using QuadGK
# Equation numbers follow above Hellwarth 1999 PRB
# 62b
A(v,w,β)=3/β*( log(v/w) - 1/2*log(2*π*β) - log(sinh(v*β/2)/sinh(w*β/2)))
# 62d
Y(x,v,β)=1/(1-exp(-v*β))*(1+exp(-v*β)-exp(-v*x)-exp(v*(x-β)))
# 62c integrand
f(x,v,w,β)=(exp(β-x)+exp(x))/(w^2*x*(1-x/β)+Y(x,v,β)*(v^2-w^2)/v)^(1/2)
# 62c
B(v,w,β,α) = α*v/(sqrt(π)*(exp(β)-1)) * quadgk(x->f(x,v,w,β),0,β/2)[1]
#62e
C(v,w,β)=3/4*(v^2-w^2)/v * (coth(v*β/2)-2/(v*β))
F(v,w,β,α)=-(A(v,w,β)+B(v,w,β,α)+C(v,w,β)) #(62a)
# Can now evaluate, e.g.
# F(v,w,β,α)=F(7.2,6.5,1.0,1.0)
# BUT - this is just the objective function! Not the optimised parameters.
# Also there's a scary numeric integration (quadgk) buried within...
"Print out F(alpha,beta) for a specific v,w; as a test"
function test_fns()
@printf("\t\t")
for α in 1:5
@printf("α=%d\t\t",α)
end
@printf("\n")
for β in 1:0.25:3.0
v=w=4
print("β: $β \t||")
for α in 1:5
@printf("%f\t",F(v,w,β,α))
end
println()
end
end
test_fns() # OK - very primitive!
"
These are 1D traces along the solution for Alpha=Beta=1 in Helwarth PRB TABLE III,
this was used to correct a transcription error in the above typed-in equations
It was also good to see what F(v,w) looked like as a function of v and w near an optimal solution"
function test_trace()
v=7.20
w=6.5
α=1.0
β=1.0
for v=6:0.1:8
@printf("%f %f\n",v,F(v,w,β,α))
end
@printf("\n")
v=7.20
for w=6:0.1:7
@printf("%f %f\n",w,F(v,w,β,α))
end
end
test_trace()
# Angle for the ringside seats, when the fall, don't blame me, Bring on the Major Leagues
using Optim
# Julia package stuffed full of magic, does auto-differentation & etc. etc.
Fopt(x) = F(x[1],x[2],1,1)
function test_Fopt()
show(Fopt([7.2,6.5]))
# OK! It looks like I can bury the alpha, beta parameters (which we don't optimise), by wrapping our function in a function definition.
initial=[7.2,6.5]
show(optimize(Fopt, initial, LBFGS()))
show(optimize(Fopt, initial, BFGS(), Optim.Options(autodiff=true)))
end
test_Fopt()
function test_Optim()
# After a bit of fiddling, I figured out how to add bounds, to stop that 'DomainError',
# which occurs where the you are evaluating log(-ve Real), i.e. w<0.0 or v<0.0
initial=[7.2,6.5]
lower=[0.0,0.0]
upper=[10.0,10.0]
@printf("\t\t")
for α in 1:5
@printf("α=%d\t\t",α)
end
@printf("\n")
for β in 1:0.25:3.0
print("β: $β \t||")
for α in 1:5
myf(x) = F(x[1],x[2],β,α)
solution=optimize(DifferentiableFunction(myf), initial, lower, upper, Fminbox(); optimizer = ConjugateGradient, optimizer_o=Optim.Options(autodiff=true))
minimum=Optim.minimizer(solution)
v=minimum[1]
w=minimum[2]
#print(solution,"\t")
@printf("%.2f %.2f\t",v,w)
end
println()
end
end
test_Optim()
function test_Optimisers()
# So that looks really good! I was super stoked to see how close these values are to TABLE III in Hellwarth
# However, the solutions all start on (7.20,6.50) so that top-left data point is cheating, whereas the
# others have some disagreement / noise associated with them
# I was wondering whether it might be a function of the optimiser, so thought I'd try them all
initial=[7.1,6.5]
# Main use of these bounds is stopping v or w going negative, at which you get a NaN error as you are evaluating log(-ve Real)
lower=[1.0,1.0]
upper=[10.0,10.0]
for optimizer in [BFGS, LBFGS, ConjugateGradient] # Newton, GradientDescent, NelderMead - steps outside box & log(-ve)->NaN error
@printf("\n\t\t##### NOW TRIALING: %s #####\n\n",optimizer)
@printf("\t\t")
for α in 1:5
@printf("α=%d\t\t",α)
end
@printf("\n")
for β in 1:0.25:3.0
print("β: $β \t||")
for α in 1:5
myf(x) = F(x[1],x[2],β,α)
res=optimize(DifferentiableFunction(myf), initial, lower, upper, Fminbox(); optimizer = optimizer, optimizer_o=Optim.Options(autodiff=true))
minimum=Optim.minimizer(res)
#show(Optim.converged(res)) # All came out as 'true'
#print(solution,"\t")
@printf("%.2f %.2f\t",minimum[1],minimum[2])
end
println()
end
end
end
test_Optimisers()
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 487 | println("Alpha-parameter, Cross check 'frohlichalpha()' fn vs. literature values.")
@testset "FrohlichAlpha" begin
α=frohlichalpha(2.3, 5.6, 49 / 2π, 1.0)
println("NaCl Frohlich paper, α=",α," should be ~about 5 (Feynman1955)")
@test α ≈ 5.0 atol=0.3
α=frohlichalpha(7.1, 10.4, 5.08, 0.095)
println("CdTe α=",α," Stone 0.39 / Devreese 0.29")
@test α ≈ 0.3 atol=0.1
α=frohlichalpha(10.89, 12.9, 8.46, 0.063)
println("GaAs α=",α," Devreese 0.068 ")
@test α ≈ 0.068 atol=0.01
end
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 735 | # Cross-check against data published in Frost 2017 PRB.
@testset "FrostPolaronMobility2017" begin
T=300
#Ts,Kμs, Hμs, FHIPμs, ks, Ms, As, Bs, Cs, Fs, Taus
#effectivemass=0.12 # the bare-electron band effective-mass.
# --> 0.12 for electrons and 0.15 for holes, in MAPI. See 2014 PRB.
# MAPI 4.5, 24.1, 2.25THz - 75 cm^-1 ; α=
MAPIe=polaronmobility(T, 4.5, 24.1, 2.25, 0.12)
MAPIh=polaronmobility(T, 4.5, 24.1, 2.25, 0.15)
# Hellwarth mobility
@test MAPIe.Hμ[1] ≈ 136.42 rtol=0.02
# Test variational parameters
@test MAPIe.v[1] ≈ 19.86 rtol=0.02
@test MAPIe.w[1] ≈ 16.96 rtol=0.02
# Same for the MAPI holes @ 300 K
@test MAPIh.Hμ[1] ≈ 94.15 rtol=0.02
@test MAPIh.v[1] ≈ 20.09 rtol=0.02
@test MAPIh.w[1] ≈ 16.81 rtol=0.02
end
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 2951 | push!(LOAD_PATH,"../src/") # load module from local directory
using PolaronMobility
# Ivan Biaggio emailed 7th Nov 2018, suggesting there may be an error in these
# codes, due to a typographic error in the equations (particularly 62c) in
# Hellwarth1999
#
# As part of investigating this, these tests reproduce Table III in
# Hellwarth1999, to play with different ways of specifying the electron-phonon
# action.
"Print out F(alpha,beta) for a specific v,w; as a test"
function test_fns()
@printf("\t\t")
for α in 1:5
@printf("α=%d\t\t",α)
end
@printf("\n")
for β in 1:0.25:3.0
v=w=4
print("β: $β\t|\t")
for α in 1:5
@printf("%f\t",F(v,w,β,α))
end
println()
end
end
# Our original definition of B, directly following the equation as written in Hellwarth1999
# 62c
println("Original B (62c, electron-phonon free energy):")
PolaronMobility.B(v,w,β,α) = α*v/(sqrt(π)*(exp(β)-1)) * quadgk(x->PolaronMobility.f(x,v,w,β),0,β/2)[1]
test_fns() # OK - very primitive!
# Following private communication with Ivan Biaggio, and crosschecking against Osaka1959
println("Corrected B (62c, electron-phonon free energy, but corrected as Osaka.")
PolaronMobility.B(v,w,β,α) = exp(β)* α*v/(sqrt(π)*(exp(β)-1)) * quadgk(x->PolaronMobility.f(x,v,w,β),0,β/2)[1]
test_fns()
# Reproduce HellwarthTableIII, v and w solutions with finite Beta
function HellwarthTableIII()
@printf("\t\t")
for α in 1:5
@printf("α=%d\t\t",α)
end
@printf("\n")
for β in 1:0.25:3.0
print("β: $β\t|\t")
for α in 1:5
v,w = feynmanvw(α, β)
@printf("%.2f %.2f\t",v,w)
end
println()
end
print("Athermal\n β=Inf\t|\t")
for α in 1:5
v,w = feynmanvw(α)
@printf("%.2f %.2f\t",v,w)
end
println()
end
# Our original definition of B, directly following the equation as written in Hellwarth1999
# 62c
println("Original B (62c, electron-phonon free energy):")
PolaronMobility.B(v,w,β,α) = α*v/(sqrt(π)*(exp(β)-1)) * quadgk(x->PolaronMobility.f(x,v,w,β),0,β/2)[1]
HellwarthTableIII() # OK - very primitive!
# Following private communication with Ivan Biaggio, and crosschecking against Osaka1959
println("Corrected B (62c, electron-phonon free energy, but corrected as Osaka.")
PolaronMobility.B(v,w,β,α) = exp(β)* α*v/(sqrt(π)*(exp(β)-1)) * quadgk(x->PolaronMobility.f(x,v,w,β),0,β/2)[1]
HellwarthTableIII()
end
# Taking it back to where it all started; directly doing the full integral in Osaka1959
OsakaIntegrand(t,v,w,β) = exp(-t) / sqrt( w^2*t*(1-t/β) + (v^2-w^2)/v *(1-exp(-v*t)+(1-coth(v/2*β)*(cosh(v*t)-1))) )
PolaronMobility.B(v,w,β,α) = 1/sqrt(pi) * α*v* exp(β)/(exp(β)-1) * quadgk(x->OsakaIntegrand(x,v,w,β),0,β)
# CURRENTLY BROKEN (!)
# sqrt(x) in the integrand is taken negative; so Julia throws a hissy fit - not expecting to find Imaginary values.
HellwarthTableIII()
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 5720 | # HellwarthEffectiveFrequency.jl
# - use Hellwarth et al. 1999 PRB method to reduce multiple phonon modes to a single effective frequency
@testset "HellwarthEffectiveFrequency" begin
# ((freq THz)) ((IR Activity / e^2 amu^-1))
# These data from MAPbI3-Cubic_PeakTable.csv
# https://github.com/WMD-group/Phonons/tree/master/2015_MAPbI3/SimulatedSpectra
# Data published in Brivio2015 (PRB)
# https://doi.org/10.1103/PhysRevB.92.144308
MAPI= [
96.20813558773261 0.4996300522819191
93.13630357703363 1.7139631746083817
92.87834578121567 0.60108592692181
92.4847918585963 0.0058228799414729
92.26701437594754 0.100590086574602
89.43972834606603 0.006278895133832249
46.89209141511332 0.2460894564364346
46.420949316788 0.14174282581124137
44.0380222871706 0.1987196948553428
42.89702947649343 0.011159939465770681
42.67180170168193 0.02557751102757614
41.46971205834201 0.012555230726601503
37.08982543385215 0.00107488277468418
36.53555265689563 0.02126940080871224
30.20608114002676 0.009019481779712388
27.374810898415028 0.03994453721421388
26.363055017011728 0.05011922682554448
9.522966890022039 0.00075631870522737
4.016471586720514 0.08168931020200264
3.887605410774121 0.006311654262282101
3.5313112232401513 0.05353548710183397
2.755392921480459 0.021303020776321225
2.4380741812443247 0.23162784335484837
2.2490917637719408 0.2622203718355982
2.079632190634424 0.23382298607799906
2.0336707697261187 0.0623239656843172
1.5673011873879714 0.0367465760261409
1.0188379384951798 0.0126328938653956
1.0022960504442775 0.006817361620021601
0.9970130778462072 0.0103757951973341
0.9201781906386209 0.01095811116040592
0.800604081794174 0.0016830270365341532
0.5738689505255512 0.00646428491253749
#0.022939578929507105 8.355742795827834e-05 # Acoustic modes!
#0.04882611767873102 8.309858592685e-06
#0.07575149723846182 2.778248540373041e-05
]
MAPbBr3 = [
#v / THz IR Activity / e^2 amu^-1
96.25494581101505 0.4856105419754306
93.36827101597564 1.5237045178260684
93.19828072025739 0.54951133126244
92.59570097621418 0.0017497942636829
92.36075758752216 0.054483693922451705
89.49998024367731 0.003950754031148851
47.175408954380885 0.21156964115237242
46.57576693654983 0.11627478349663156
44.3361503231313 0.19163912283684897
42.967352451897554 0.011987727827091217
42.71066583604171 0.027797225985699996
41.490751582679316 0.01234463397562453
37.22033177431264 0.001649578352399309
36.57010484641483 0.019161684306162618
30.438999700507342 0.007365167772350685
27.625465570185764 0.035161502048866464
26.458785163031635 0.038174133532805965
9.947074760143552 0.0012355225072173002
4.493935108724231 0.07714630445769342
4.215763207131703 0.01724042408702847
4.021795301113039 0.06167913225780508
3.2393471899404047 0.040335730459227545
2.914057478007975 0.27361583921530497
2.6223962950449407 0.23493646364819373
2.400751729577614 0.2753271857365242
2.370809478597967 0.04428317547154772
2.0388405406936783 0.0517120158657721
1.4017373572275915 0.0046510016948825
1.3634089519825427 0.0018248126743814707
1.336413930635821 0.009190430969212338
1.2144969737450764 0.013885351107636132
1.0763905048534899 0.0014676450708402083
0.7427782546143306 0.008829646844819504
#0.012830037764855392 6.62960832415985e-06
#0.02156203260482768 4.708045983230229e-05
#0.05156888885824344 2.602755859934495e-05
]
MAPbCl3= [
#v / THz IR Activity / e^2 amu^-1
96.65380905798915 0.4542931751264273
93.30434573145013 1.4046841552487999
93.27126600254645 0.5286008698609284
92.719992888923 0.0015896642905404556
92.45885414527524 0.0866990370170258
89.61967951587117 0.0031392395308660263
47.44029120639781 0.18901278025443116
46.764089990499585 0.09717407330258415
44.60198174803584 0.19436643102794884
43.04971569182655 0.012986533289171532
42.7637228646608 0.02998334671150052
41.49924134521671 0.010714577213688365
37.34275112339727 0.0028788161278648656
36.62941263763097 0.018016387094969555
30.651112964494686 0.006550727272302003
27.89469865012452 0.03515737503204058
26.603746656189923 0.03497660426639104
10.493140658721968 9.69032373922839e-05
5.242459815070028 0.12301715153349158
4.8348539006445845 0.11307729502447525
4.633936235943856 0.009371996258413128
4.1582548301810665 0.08368265471427451
3.9021555976797266 0.44406366947684967
3.3808364269416287 0.3379317982808455
3.099250159114845 0.38405867852912545
2.8466202448045217 0.025463767673713028
2.5900539956188333 0.07754012506771049
2.0931563078880493 0.008533555182635471
1.869999049657922 0.011347668353507898
1.8382471614901006 0.0005371757988
1.829843559303894 0.019270325513936128
1.6503257694697964 0.000950380841742176
1.0962868606064022 0.018510433944796113
#0.032159306112378404 2.774125107895896e-05 #Acoustic
#0.04846756590412458 7.796048392205337e-05
#0.05253089286287104 2.8730156133e-06
]
MAPI_low=MAPI[19:33,:] # Just inorganic components, everything below 10THz; modes 3-18
println("\n\nMAPI: BScheme (athermal)")
println("\t MAPI: (all values)")
HellwarthBScheme(MAPI)
println("\t MAPI: (low-frequency, non molecular IR, only)")
Bscheme=HellwarthBScheme(MAPI_low)
println(Bscheme, " ~= 2.25 THz")
@test Bscheme ≈ 2.25 atol=0.01
println("\n\nHellwarth1999 (party like it's)")
Hellwarth=
[
106.23 8.86
160.51 9.50
180.33 20.85
206.69 10.05
252.76 27.00
369.64 61.78
501.71 52.87
553.60 86.18
585.36 75.41
607.29 98.15
834.53 89.36
]
println("\nHellwarth B scheme... Hellwarth data...")
Bscheme=HellwarthBScheme(Hellwarth)
println(Bscheme, " ~= W 196.9 cm^-1 Ω = 500 cm^-1")
println("\nHellwarth A scheme T=0... Hellwarth data...")
Ascheme=HellwarthAScheme(Hellwarth,T=0)
println("\nHellwarth A scheme T=295... Hellwarth data...")
Ascheme=HellwarthAScheme(Hellwarth,T=295)
println(Ascheme, " ~= W 196.9 cm^-1 Ω = 504 cm^-1")
end
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 4125 | @testset "MultipleBranches" begin
# ((freq THz)) ((IR Activity / e^2 amu^-1))
# These data from MAPbI3-Cubic_PeakTable.csv
# https://github.com/WMD-group/Phonons/tree/master/2015_MAPbI3/SimulatedSpectra
# Data published in Brivio2015 (PRB)
# https://doi.org/10.1103/PhysRevB.92.144308
MAPI= [
96.20813558773261 0.4996300522819191
93.13630357703363 1.7139631746083817
92.87834578121567 0.60108592692181
92.4847918585963 0.0058228799414729
92.26701437594754 0.100590086574602
89.43972834606603 0.006278895133832249
46.89209141511332 0.2460894564364346
46.420949316788 0.14174282581124137
44.0380222871706 0.1987196948553428
42.89702947649343 0.011159939465770681
42.67180170168193 0.02557751102757614
41.46971205834201 0.012555230726601503
37.08982543385215 0.00107488277468418
36.53555265689563 0.02126940080871224
30.20608114002676 0.009019481779712388
27.374810898415028 0.03994453721421388
26.363055017011728 0.05011922682554448
9.522966890022039 0.00075631870522737
4.016471586720514 0.08168931020200264
3.887605410774121 0.006311654262282101
3.5313112232401513 0.05353548710183397
2.755392921480459 0.021303020776321225
2.4380741812443247 0.23162784335484837
2.2490917637719408 0.2622203718355982
2.079632190634424 0.23382298607799906
2.0336707697261187 0.0623239656843172
1.5673011873879714 0.0367465760261409
1.0188379384951798 0.0126328938653956
1.0022960504442775 0.006817361620021601
0.9970130778462072 0.0103757951973341
0.9201781906386209 0.01095811116040592
0.800604081794174 0.0016830270365341532
0.5738689505255512 0.00646428491253749
#0.022939578929507105 8.355742795827834e-05 # Acoustic modes!
#0.04882611767873102 8.309858592685e-06
#0.07575149723846182 2.778248540373041e-05
]
vol=(6.29E-10)^3
ϵ_o=4.5
meff=0.12
ϵ_i=IRtoDielectric(MAPI,vol)
#ϵ_ired=ϵ_i/ϵ_0
#ϵ_s=ϵ_ired + ϵ_o
ϵ_s=sum(ϵ_i)+ϵ_o # total (static) dielectric = sum of ionic, and optical
println("Sum of ionic dielectric: $(ϵ_s)")
IRtoalpha(MAPI, volume=vol, ϵ_o=ϵ_o, ϵ_s=ϵ_s, meff=meff)
println()
splat=DielectricFromIRmode.(eachrow(MAPI), volume=vol)
println(splat)
println("Sum of dieletric: ", sum(splat))
f_dielectric=hcat( MAPI[:,1], splat)
println("f_dielectric: ",f_dielectric)
alphas=frohlichPartial.(eachrow(f_dielectric), ϵ_o = ϵ_o, ϵ_s = ϵ_o+sum(splat), meff=meff)
println("alphas: ",alphas)
println("sum alphas: ", sum(alphas))
println("Feynman v,w for alphas: ", feynmanvw.(alphas))
mobilityproblem=hcat(alphas, feynmanvw.(alphas), MAPI[:,1])
println("Specify mobility problem: ",mobilityproblem)
inverse_μ=Hellwarth1999mobilityRHS.(eachrow(mobilityproblem), meff, 300)
μ=sum(inverse_μ)^-1
@printf("\n\tμ(Hellwarth1999)= %f m^2/Vs \t= %.2f cm^2/Vs",μ,μ*100^2)
println()
ħ=1.05457162825e-34
kB=1.3806504e-23
MAPI=[
5 20.0
0.5 0.67
] # fictious two-frequency MAPI-a-like
splat=DielectricFromIRmode.(eachrow(MAPI), volume=vol)
println(splat)
println("Sum of dieletric: ", sum(splat))
f_dielectric=hcat( MAPI[:,1], splat)
for T in 10:1:500
alphas=frohlichPartial.(eachrow(f_dielectric), ϵ_o = ϵ_o, ϵ_s = ϵ_o+sum(splat), meff=meff)
βred=ħ*MAPI[:,1]*1E12*2π/(kB*T)
mobilityproblem=hcat(alphas, feynmanvw.(alphas, βred), MAPI[:,1])
inverse_μ=Hellwarth1999mobilityRHS.(eachrow(mobilityproblem), meff, T)
μ=sum(inverse_μ)^-1
@printf("\nT= %d μ(Hellwarth1999)= %f m^2/Vs \t= %.2f cm^2/Vs",T,μ,μ*100^2)
end
println()
# A bit cyclical, but this is extrapolating back to if MAPI had a single LO
# mode, at the point where the Hellwarth1999 averaging approximation puts it.
MAPI_singlemode = [
2.25 1.67502750447212449732 ]
# By comparison to 2017 PRB, this should be 24.1-4.5 = 19.6
# Nb: however, that dielectric is from my 2014 NanoLetters, whereas the
# 2015PRB above is a different calculation, with different convergence.
ϵ_i=IRtoDielectric(MAPI_singlemode,vol)
ϵ_s=sum(ϵ_i)+ϵ_o
println("Sum of ionic dielectric: $(ϵ_s)")
αmode_MAPIe=IRtoalpha(MAPI_singlemode,volume=vol, ϵ_o=ϵ_o, ϵ_s=ϵ_s, meff=meff)
α_MAPIe=frohlichalpha(4.5, 24.1, 2.25, meff)
@test αmode_MAPIe ≈ α_MAPIe atol=0.01
f = IRtoalpha(MAPI, volume=vol, ϵ_o=ϵ_o, ϵ_s=ϵ_s, meff=meff)
end # @testset
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 7941 | # Check values of the new multimode polaron codes
@testset verbose = true "MultiplePhonons" begin
# Physical constants
ħ = 1.05457162825e-34; # kg m2 / s
eV = 1.602176487e-19; # kg m2 / s2
me = 9.10938188e-31; # kg
kB = 1.3806504e-23; # kg m2 / K s2
ε_0 = 8.854E-12 # Units: C2N−1m−2, permittivity of free space
c = 3e8
MAPI= [
# 96.20813558773261 0.4996300522819191
# 93.13630357703363 1.7139631746083817
# 92.87834578121567 0.60108592692181
# 92.4847918585963 0.0058228799414729
# 92.26701437594754 0.100590086574602
# 89.43972834606603 0.006278895133832249
# 46.89209141511332 0.2460894564364346
# 46.420949316788 0.14174282581124137
# 44.0380222871706 0.1987196948553428
# 42.89702947649343 0.011159939465770681
# 42.67180170168193 0.02557751102757614
# 41.46971205834201 0.012555230726601503
# 37.08982543385215 0.00107488277468418
# 36.53555265689563 0.02126940080871224
# 30.20608114002676 0.009019481779712388
# 27.374810898415028 0.03994453721421388
# 26.363055017011728 0.05011922682554448
# 9.522966890022039 0.00075631870522737
4.016471586720514 0.08168931020200264
3.887605410774121 0.006311654262282101
3.5313112232401513 0.05353548710183397
2.755392921480459 0.021303020776321225
2.4380741812443247 0.23162784335484837
2.2490917637719408 0.2622203718355982
2.079632190634424 0.23382298607799906
2.0336707697261187 0.0623239656843172
1.5673011873879714 0.0367465760261409
1.0188379384951798 0.0126328938653956
1.0022960504442775 0.006817361620021601
0.9970130778462072 0.0103757951973341
0.9201781906386209 0.01095811116040592
0.800604081794174 0.0016830270365341532
0.5738689505255512 0.00646428491253749
#0.022939578929507105 8.355742795827834e-05 # Acoustic modes!
#0.04882611767873102 8.309858592685e-06
#0.07575149723846182 2.778248540373041e-05
]
volume = (6.29e-10)^3
ϵ_optic = 4.5
m_eff = 0.12
phonon_freq = MAPI[:, 1]
ir_activity = MAPI[:, 2]
ϵ_static = 24.1
# Ionic dielectric and decomposed alpha
ω = 2π .* phonon_freq
ϵ_ionic = [ϵ_ionic_mode(i, j, volume) for (i, j) in zip(phonon_freq, ir_activity)]
α = [multi_frohlichalpha(ϵ_optic, i, sum(ϵ_ionic), j, m_eff) for (i, j) in zip(ϵ_ionic, phonon_freq)]
@testset "Ionic dielectric and decomposed alphas" begin
@test ϵ_ionic ≈ [0.2999680470756664, 0.0247387647244569, 0.2543132184018061, 0.16621617310133838, 2.3083204422506296, 3.0707979601813267, 3.2026782087486407, 0.892674135624958, 0.8861579096771846, 0.7209278375756829, 0.40199759805819046, 0.6183279038315278, 0.7666391525823296, 0.1555444994147378, 1.1627710200840813] rtol = 1e-3
@test α ≈ [0.03401013445306177, 0.002850969846883158, 0.03075081562607006, 0.02275292381052607, 0.33591418423943553, 0.46526818717696034, 0.5046331098089347, 0.14223560721522646, 0.16083871312929882, 0.1622911897190622, 0.09123913334086006, 0.14070972715961402, 0.18159786148348117, 0.039500396977008016, 0.3487735470060312] rtol = 1e-3
@test sum(α) ≈ 2.663366500992453 rtol = 1e-3
println('\n', "Ionic dielectric and alphas:")
println("-------------------------------")
println(" ω (THz) ϵ_ionic αs")
println("-------------------------------")
display(hcat(ω, ϵ_ionic, α))
println("\n-------------------------------")
end
# Variations
v_0, w_0 = var_params(α; v = 0.0, w = 0.0, ω = ω) # Athermal
β = [i .* ħ / (kB * 300) * 1e12 for i in ω]
v, w = var_params(α, β; v = 0.0, w = 0.0, ω = ω) # Thermal
@testset "Multiple mode variations" begin
@test v_0 ≈ 3.292283619446986 rtol = 1e-3
@test w_0 ≈ 2.679188425097246 rtol = 1e-3
@test v ≈ 35.19211042393129 rtol = 1e-3
@test w ≈ 32.454157668863225 rtol = 1e-3
println("\nVariational parameters:")
println("Athermal v = $(v_0[1]) | athermal w = $(w_0[1])")
println("300K v = $(v[1]) | 300K w = $(w[1])")
end
# Energies
E = multi_F(v_0, w_0, α; ω = ω) * 1000 * ħ / eV * 1e12 # Enthalpy
F = multi_F(v, w, α, β; ω = ω) * 1000 * ħ / eV * 1e12 # Free energy
@testset "Multiple mode energies" begin
@test E ≈ -19.50612170650821 rtol = 1e-3
@test F ≈ -42.79764110613318 rtol = 1e-3
println("\nPolaron energies")
println("0K energy: $E meV")
println("300K energy: $F meV")
end
# Mobility
μ = polaron_mobility(β, α, v, w; ω = ω) * eV / (1e12 * me * m_eff) * 100^2
@testset "Multiple mode mobility" begin
@test μ ≈ 160.50844330430286 rtol = 1e-3
println("\nMobility at 300K: $μ")
end
# Impedence
Z_dc = polaron_complex_impedence(0, β, α, v, w; ω = ω) / sqrt(ε_0 * ϵ_optic) / c # DC limit
Z = polaron_complex_impedence(50, β, α, v, w; ω = ω) / sqrt(ε_0 * ϵ_optic) / c # AC limit
@testset "Multiple mode impedence" begin
@test Z_dc ≈ 0.04822198080982958 + 0.0im rtol = 1e-3
@test Z ≈ 0.015597562999157006 - 0.15169951660903833im rtol = 1e-3
println("\nComplex Impedence:")
println("DC limit: $Z_dc")
println("At 50 THz: $Z")
end
# Conductivity
σ_dc = polaron_complex_conductivity(0, β, α, v, w; ω = ω) / sqrt(ε_0 * ϵ_optic) / c # DC limit
σ = polaron_complex_conductivity(50, β, α, v, w; ω = ω) / sqrt(ε_0 * ϵ_optic) / c # AC limit
@testset "Multiple mode conductivity" begin
@test σ_dc ≈ 5.783096153975994e-6 - 0.0im rtol = 1e-3
@test σ ≈ 1.8703663429355958e-7 + 1.8190897521649982e-6im rtol = 1e-3
println("\nComplex Conductivity:")
println("DC limit: $σ_dc")
println("At 50 THz: $σ\n")
end
# Single Mode Tests
Hellwarth_B_freq = HellwarthBScheme(hcat(phonon_freq, ir_activity))
@testset "Hellwarth effective frequency" begin
@test Hellwarth_B_freq ≈ 2.25 rtol = 1e-3
end
@testset "Single effective mode MAPI" begin
singlemode_polaron = make_polaron(ϵ_optic, ϵ_static, Hellwarth_B_freq, m_eff, [0.0, 300.0], [0.0, 3.0]; volume = volume, ir_activity = nothing, rtol = 1e-4, verbose = true, threads = true)
println('\n', singlemode_polaron)
@test singlemode_polaron.α ≈ 2.393 rtol = 1e-3
@test singlemode_polaron.v ≈ [3.308644142915268; 19.847591395925644] rtol = 1e-3
@test singlemode_polaron.w ≈ [2.6633969095604466; 16.948206590039813] rtol = 1e-3
@test singlemode_polaron.F ≈ [-23.02903831886734, -35.46521250753788] rtol = 1e-3
@test singlemode_polaron.Z ≈ [0.0 + 0.0im 0.11385135083260453 + 0.0im; 0.018788147630145906 - 0.0320853372512867im 0.11055356479444363 - 0.0023745543208784164im] rtol = 1e-3
@test singlemode_polaron.σ ≈ [Inf + 0.0im 8.783382829337691 - 0.0im; 13.590340404155473 + 23.208815675232696im 9.04121795743805 + 0.1941942189449604im]
@test singlemode_polaron.μ ≈ [Inf, 136.42796295778325] rtol = 1e-3
end
# Multimode Tests
@testset "Multiple mode (15) MAPI" begin
multimode_polaron = make_polaron(ϵ_optic, ϵ_static, phonon_freq, m_eff, [0.0, 300.0], [0.0, 3.0]; volume = volume, ir_activity = ir_activity, rtol = 1e-4, verbose = true, threads = true)
println('\n', multimode_polaron)
@test multimode_polaron.α ≈ [0.03401013445306177, 0.002850969846883158, 0.03075081562607006, 0.02275292381052607, 0.33591418423943553, 0.46526818717696034, 0.5046331098089347, 0.14223560721522646, 0.16083871312929882, 0.1622911897190622, 0.09123913334086006, 0.14070972715961402, 0.18159786148348117, 0.039500396977008016, 0.3487735470060312] rtol = 1e-3
@test multimode_polaron.v ≈ [3.292288128236545; 35.19197149158517] rtol = 1e-3
@test multimode_polaron.w ≈ [2.679192692280829; 32.45402163343302] rtol = 1e-3
@test multimode_polaron.F ≈ [-19.506121706507198, -42.79764112300015] rtol = 1e-3
@test multimode_polaron.Z ≈ [0.0 + 0.0im 0.09684805201838559 + 0.0im; 0.013916089370749993 - 0.02698207327877506im 0.09373671239869472 - 0.00586253350488456im] rtol = 1e-3
@test multimode_polaron.σ ≈ [Inf + 0.0im 10.325452904413197 - 0.0im; 15.098451823667599 + 29.274570078468706im 10.626611965355764 + 0.6646154649133272im] rtol = 1e-3
@test multimode_polaron.μ ≈ [Inf, 160.50598091483337] rtol = 1e-3
end
print('\n')
end
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | code | 748 | push!(LOAD_PATH,"../src/") # load module from local directory
using PolaronMobility
using Printf # used for some stdout
using Test
@testset "PolaronMobility" begin
include("FrohlichAlpha.jl") # Simple test of Frohlich alpha vs. literature values
include("FeynmanAthermal.jl") # Athermal Feynman tests
include("HellwarthEffectiveFrequency.jl") # Test Hellwarth et al. 1999 PRB 'B' multiple branch reduction scheme
include("FrostPolaronMobility2017.jl") # Reproduce values published in Frost 2017 PRB
include("MultipleBranches.jl") # Test explicit Oct 2019:-> explicit phonon branches
include("MultiplePhonons.jl") # Test 2021 work on multiple phonon modes
end
println("\nThat's me! If I finished without interupting, all tests have passed.")
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | docs | 5844 | # PolaronMobility.jl
[](https://opensource.org/licenses/MIT)
[](https://julialang.org)
[](https://doi.org/10.21105/joss.00566)
[](https://jarvist.github.io/PolaronMobility.jl/)
[](https://github.com/jarvist/PolaronMobility.jl/actions)
[](http://codecov.io/github/jarvist/PolaronMobility.jl?branch=master)
`PolaronMobility.jl` is a Julia package which calculates the
temperature-dependent polaron mobility for a material.
This is based on the Feynman variational solution to the Polaron problem.
The electron-phonon coupling is treated as an effective α (alpha) Frohlich
Hamiltonian parameter.
The band structure is treated with an effective mass theory.
The variational problem is solved numerically for finite-temperature free
energies.
(The original 1960s work, and thus textbook solutions, often use asymptotic approximations to the integrals, with a more simple athermal action.)
The mobility is calculated in three ways:
1) numerically by integrating the polaron self-energy along the imaginary axis (`Hellwarth1999`)
2) using Kadanoff's Boltzmann equation approximation (`Kadanoff1963`)
3) using the FHIP low-temperature asymptotic solution (`FHIP`)
These three methods are in approximately descending order of accuracy.
We provide parameters for various metal-halide Perovskites, and other
interesting systems.
The motivation for developing these codes was to enable polaron mobility
calculations on arbitrary materials.
They also provide the only extant implementation of Feynman's variational
method.
They offer a convenient basis for writing codes that build on these variational
solutions.
More [extensive documentation](https://jarvist.github.io/PolaronMobility.jl/),
is perhaps easiest to read and understand alongside the first paper:
[ArXiv:1704.05404](https://arxiv.org/abs/1704.05404)
/ [Frost2017PRB](https://doi.org/10.1103/PhysRevB.96.195202).
## Installation
To install, type the following at the Julia (>1.0) REPL:
```
julia> import Pkg; Pkg.add("PolaronMobility")
```
## Cloud notebook
There is an [example notebook](JuliaBox-Example.ipynb) which can be run interactively on the (free) MyBinder notebook server. This is the fastest way to calculate a few polaron parameters, if you do not have Julia installed locally.
1) Click on [](https://mybinder.org/v2/gh/jarvist/PolaronMobility.jl/master?filepath=JuliaBox-Example.ipynb)
2) That's it!
(Currently plotting does not work, as the Docker image is not built with the (heavy weight) Plots dependency, and I'm not sure how I can do this just for MyBinder, without requiring it generally for PolaronMobility.jl. If this is problematic for you, please open an issue and I'll try to fix it!)
## Using
As an example:
```
using PolaronMobility
MAPIe=polaronmobility(300, 4.5, 24.1, 2.25E12, 0.12)
```
Will calculate the polaron mobility for methyl-ammonium lead halide perovskite
(f=2.25 THz; ϵoptical=4.5; ϵstatic=24.1; effective-mass=0.12 electron-masses) at 300 K.
An abbreviated output should look like:
```
T: 300.000000 β: 2.41e+20 βred: 0.36 ħω = 9.31 meV Converged? : true
VariationalParams v= 19.86 w= 16.96 || M=0.371407 k=106.835753
POLARON SIZE (rf), following Schultz1959. (s.d. of Gaussian polaron ψ )
Schultz1959(2.4): rf= 0.528075 (int units) = 2.68001e-09 m [SI]
Polaron Free Energy: A= -6.448815 B= 7.355626 C= 2.911977 F= -3.818788 = -35.534786 meV
Polaron Mobility theories:
μ(FHIP)= 0.082049 m^2/Vs = 820.49 cm^2/Vs
Eqm. Phonon. pop. Nbar: 2.308150
μ(Kadanoff1963 [Eqn. 25]) = 0.019689 m^2/Vs = 196.89 cm^2/Vs
Tau=1/Gamma0 = 1.15751e-13 = 0.115751 ps
μ(Hellwarth1999)= 0.013642 m^2/Vs = 136.42 cm^2/Vs
```
Further details in the
[documentation](https://jarvist.github.io/PolaronMobility.jl/).
## Research outputs
The central output of this model are temperature-dependent polaron mobilities:

From the variational solution, you have characterised the polarons in your
system.
This gives access to the effective mass renormalisations (phonon drag), polaron
binding energies, effective electron-phonon coupling parameters, etc.
## Community guidelines
Contributions to the code (extending that which is calculated), or additional
physical systems / examples, are very welcome.
If you have questions about the software, scientific questions, or find errors,
please create a [GitHub issue](https://github.com/jarvist/PolaronMobility.jl/issues).
## Reference
If you find this package (or snippets, such as the entered and tested
free-energy expressions) useful for your work, please cite the paper
[Frost2017PRB](https://doi.org/10.1103/PhysRevB.96.195202).
```
@article{Frost2017,
doi = {10.1103/physrevb.96.195202},
url = {https://doi.org/10.1103/physrevb.96.195202},
year = {2017},
month = {nov},
publisher = {American Physical Society ({APS})},
volume = {96},
number = {19},
author = {Jarvist Moore Frost},
title = {Calculating polaron mobility in halide perovskites},
journal = {Physical Review B}
}
```
These codes use the `Optim.jl` optimisation library to do the essential calculation of the Feynman variational theory.
[](https://doi.org/10.21105/joss.00615)
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | docs | 3987 | ---
title: 'PolaronMobility.jl: Implementation of the Feynman variational polaron model'
tags:
- polaron
- path-integral
- mobility
authors:
- name: Jarvist Moore Frost
orcid: 0000-0003-1938-4430
affiliation: 1, 2
affiliations:
- name: Department of Chemistry, University of Bath, UK.
index: 1
- name: Department of Materials, Imperial College London, UK.
index: 2
date: 28 October 2017
bibliography: paper.bib
---
# Summary
An additional electron (i.e. a charge carrier) in a material applies
a polarisation field.
In a polar material (one where the ions of the lattice have different charge),
this results in a large coupling into the lattice motion.
Small distortions in the lattice can be described in terms of a harmonic
restoring force, and thereby a harmonic quasi-particle of vibration termed
a phonon.
Electron-phonon coupling provides a scattering mechanism by which momentum
(kinetic-energy) of an electron is dissipated.
These scattering processes limit charge-carrier mobility in materials.
Being able to predict charge-carrier mobility helps the computational design of
new technological materials.
Many new materials of potential utility and interest are polar.
These include oxides used as battery anodes and transparent conductors for
electronic displays; and chalcogenides and halides indicated for light emission
(displays, lighting) and absorption (photovoltaic solar cells).
In a polar material the dielectric electron-phonon coupling dominates the
electronic scattering.
Unusually, this scattering process can be modelled without any empirical
parameters, and so the temperature-dependent absolute-mobility of a polar
material can be calculated.
This package is an implementation in the Julia programming language of solving
the Feynman [@Feynman1955] variational path-integral solution to the Frohlich
[@Frohlich1952] Hamiltonian specifying the polaron problem.
The Frohlich Hamiltonian is very simple.
Electrons are treated at the effective-mass (quadratic dispersion relationship)
level, and the vibrational response of the material as a single
effective-frequency harmonic mode.
Finite-temperature (free) energies of Osaka [@Osaka1959] are used, as tabulated
in the modern presentation of Hellwarth et al. [@Hellwarth1999].
Hellwarth et al. also provides a rigorous method to calculate an effective
frequency.
The physical system is specified by four parameters.
1) bare-band effective-mass; 2) high-frequency and 3) zero-frequency
dielectric constants, and 4) an effective dielectric phonon frequency.
These are most easily calculated by electronic structure calculations.
Components 3 and 4 are dependent on the lattice response, and can be derived
from calculation of the infrared (dielectric) properties of the harmonic
phonons.
The Feynman polaron model integrates through the infinite quantum field of
these (as specified) lattice vibrations.
The method is variational, and consists of an optimisation of the
finite-temperature (free) energies.
Having solved for the finite temperature polaron state,
the codes can then calculate various parameters of interest for device physics.
Most notably polaron mobilities in the original FHIP [@Feynman1962] asymtotic
limit, the Kadanoff [@Kadanoff1963] Boltzmann formulation and the most recent
Hellwarth et al. [@Hellwarth1999] explicit contour integral forms.
The size and nature of the polaron state is also described, most of which was
previously investigated by Schultz [@Schultz1959].
These codes were developed for and enabled a recent publication by Frost
[@FrostPolaronMobility2017], which provided calculated temperature-dependent
mobilities and polaron configurations for the halide perovskite family of
semiconductors.
In providing robust codes to calculate the polaron state, this work enables
calculation of further parameters such as the nature of polaron scattering,
frequency-dependent mobility and polaron optical absorption.
# References
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | docs | 261 | # Documentation
Note to self: Built with Documenter.jl (extracting doc-strings) then Python's mkdocs.
julia make.jl # pull in latest doc strings
mkdocs serve # local live-serve edits
mkdocs gh-deploy # Push to https://jarvist.github.io/PolaronMobility.jl/
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | docs | 10645 | # Examples
Perhaps the easiest way to understand the code is to see how it can be used for
science.
As an example system, we are going to look at some of the basic polaron
properties of methylammonium lead-iodide perovskite.
The 'Feynman' units used internally set the LO phonon reduced frequency
omega=1, hbar=1 and mass-of-electron=1.
## Loading the Module
```julia
using PolaronMobility
```
If you are running the module from outside the Julia package directory (i.e.
you have cloned the repository elsewhere to more easily work on the codes), you
can supplement the `LOAD_PATH`.
```julia
push!(LOAD_PATH,"../src/") # load module from local directory
```
## α/alpha parameter
The Frohlich electron-phonon coupling parameter can be characterised by
a dimensionless coupling, alpha (`α`).
This gives the long-range ('non analytic') contribution from electrodynamic
coupling into infrared active phonon modes.
```math
\alpha =
\frac{1}{2} \;
\frac{1}{4\pi\epsilon_0} \:
\left( \frac{1}{\epsilon_{optical}} - \frac{1}{\epsilon_{static}} \right ) \;
\frac{e^2}{\hbar \omega} \;
\sqrt{\frac{2m_e\omega}{\hbar}}
```
This is provided as a convenience function (with correct units!).
Let us demonstrate by calculating α for CdTe, and compare it to literature
values.
The call signature is: ϵ-optical, ϵ-static, phonon-frequency (Hz),
effective-mass (in mass-of-electron units).
```
α=frohlichalpha(7.1, 10.4, 5.08E12, 0.095)
println("CdTe α=",α," Stone 0.39 / Devreese 0.29")
#@test α ≈ 0.3 atol=0.1
```
We get a value of `0.351`.
## Feynman athermal polaron
Tabulated by Schultz (Phys.Rev. 116, 1959.
https://doi.org/10.1103/PhysRev.116.526) are some numeric solutions to the
athermal Feynman model. These values are often reproduced in the textbooks
(e.g. Feynman & Hibbs, Emended Edition, p. 319).
For instance, Schultz gets for `α=5`, `v=4.02`, `w=2.13` and `E=-5.4401`.
```
julia> v,w=feynmanvw(5.0)
(4.0343437574170915, 2.1400182510339403)
julia> F(v,w,5.0)
-5.440144454909065
```
## Single temperature phonon properties
Let us calculate the room-temperature (300 K) character of the electron-polaron
in methylammonium lead iodide perovskite (MAPI).
The parameters we use are as in `Frost2017PRB`.
The call signature to `polaronmobility` is:
Temperature range, ϵ-optical, ϵ-static, phonon-frequency (Hz), effective-mass
(in mass-of-electron units).
For electrons in MAPI, these are ϵ=4.5/24.1, f=2.25 THz, me=0.12 electron
masses.
```
MAPIe=polaronmobility(300, 4.5, 24.1, 2.25E12, 0.12)
```
This will think for a bit (as Julia just-in-time compiles the required
functions), and then spits out a considerable amount of information to
`STDOUT`.
```
Polaron mobility for system ε_Inf=4.5, ε_S=24.1, freq=2.25e12,
effectivemass=0.12; with Trange 300 ...
Polaron mobility input parameters: ε_Inf=4.500000 ε_S=24.100000 freq=2.25e+12 α=2.393991
Derived params in SI: ω =1.41372e+13 mb=1.09313e-31
T: 300.000000 β: 2.41e+20 βred: 0.36 ħω = 9.31 meV Converged? : true
Polaraon Parameters: v= 19.8635 w= 16.9621 || M=0.371360 k=106.845717
Polaron frequency (SI) v= 4.5e+13 Hz w= 3.8e+13 Hz
Polaron size (rf), following Schultz1959. (s.d. of Gaussian polaron ψ )
Schultz1959(2.4): rf= 0.528075 (int units) = 2.68001e-09 m [SI]
Polaron Free Energy: A= -6.448918 B= 7.355627 C= 2.912080 F= -3.818788 = -35.534786 meV
Polaron Mobility theories:
μ(FHIP)= 0.082053 m^2/Vs = 820.53 cm^2/Vs
μ(Kadanoff,via Devreese2016)= 0.019690 m^2/Vs = 196.90 cm^2/Vs
Eqm. Phonon. pop. Nbar: 2.308150
Gamma0 = 5.42813e+13 rad/s = 8.63914e+12 /s
Tau=1/Gamma0 = 1.15752e-13 = 0.115752 ps
Energy Loss = 1.28798e-08 J/s = 80.3893 meV/ps
μ(Hellwarth1999)= 0.013642 m^2/Vs = 136.42 cm^2/Vs
```
The output is a little ad-hoc, and specific values are perhaps best understood
with comparison to the code, and to the references to the original papers!
Initially the polaron state is solved for variationally.
This involves varying `v` and `w` to minimise the miss-match between the trial
(analytically solvable) polaron Hamiltonian action, and the true
temperature-dependent free-energy (as specified by Osaka). The method uses
automatic differentiation to get gradients for the optimisation procedure.
'Textbook' expressions that predict polaron character and mobilities make
assumptions about `v` and `w` (usually that either `v` is small, or `v=w`), and
rather than use the finite-temperature free-energies of Osaka, use a more
simple athermal polaron energy function.
Values that can be directly derived from these `v` and `w` variational
parameters are then displayed. This includes the phonon-drag mass
renormalisation (`M`), the effective spring-constant of this drag (`k`), and
the S.I. oscillation rates `v` and `w` in `Hz`.
The Schultz polaron size (rf) is outputted in various units.
The total polaron energy (as well as its decomposition into free-energy
contributions) is also output (`A,B,C; and F`). Essentially we are just using
`Julia` as a glorified scientific calculator at this point, but with the units
checked.
The polaron theories are constructed in reduced units. Generally this means
that energy is in units of ħω, and frequencies in a unit of ω (of the input
phonon frequency). For convenience, these are re-printed in SI or more standard
units.
Beyond `Polaron Mobility theories:`, the code enters its final phase and uses
the `v` and `w` parameters specifying the polaron as an input to theories of
mobility, and so directly calculate a charge carrier mobility.
The asymptotic 'FHIP' mobility (low T) is calculated, this can be most easily
related to textbook expressions that directly infer a mobility from an `α`
parameter. It lacks optical phonon emission, and so shows pathological high
temperature (kT > ħω) behaviour.
The Kadanoff mobility (see the original paper) improves on this by assuming
a Boltzmann process (independent scattering events).
From this theory we can also get an average scattering time, which we relate to
the time-scale of the polaron interacting with the phonon cloud, and so to the
rate of polaron cooling.
Finally the Hellwarth1999 scheme is used, which goes back to the original 1962
FHIP paper, and directly carries out the contour integral for the polaron
impedance function. We improve on this slightly by explicitly calculating with
`b`, though the approximation `b=0` makes very little difference for any so-far
tested materials.
The data are also returned as a packed up in type of `struct Polaron` with fields of (`T, Kμ, Hμ, FHIPμ, k, M, A, B, C, F, Tau, v, w, βred, rfsi, rfsmallalpha, α, mb, ω`).
## Hellwarth's multi-mode scheme
The above examples are slightly back-to-front - in that we've specified
a single mode frequency, as if the material were a simple tetrahedral
semiconductor with only one infrared active mode.
(The Linear Optical 'LO' phonon mode.)
In order to use these theories with more complex (many atoms in a unit cell)
materials of technological relevance, we must first reduce all of these
Infrared-active phonon responses to a single effective one.
For this we will use the averaging scheme described in Hellwarth1999.
Currently only the B scheme (athermal) is correctly implemented; a partial
A scheme implementation is present.
Let's test it against the Hellwarth1999 literature data.
The argument to the function is a table of frequencies (cm^-1) and infrared
activities (unit does not matter, as long as it is consistent).
```julia
# Hellwarth et al. PRB 1999 Table II - BiSiO frequencies and activities
HellwarthII = [
106.23 8.86
160.51 9.50
180.33 20.85
206.69 10.05
252.76 27.00
369.64 61.78
501.71 52.87
553.60 86.18
585.36 75.41
607.29 98.15
834.53 89.36
]
println("Attempting to reproduce Hellwarth et al.'s data.")
println("\nB scheme: (athermal)")
HellwarthBScheme(HellwarthII)
println(" ... should agree with values given in Hellwarth(60) W_e=196.9 cm^-1 and Hellwarth(61) Ω_e=500 cm^-1")
```
The output agrees to within three significant figures with the literatures values;
```
Hellwarth (58) summation: 0.15505835776181887
Hellwarth (59) summation (total ir activity ^2): 38777.7725
Hellwarth (59) W_e (total ir activity ): 196.92072643579192
Hellwarth (61) Omega (freq): 500.08501275972833
```
## Temperature-dependent behaviour
Getting temperature-dependent behaviour is a matter of sending a temperature
range to the `polaronmobility` function.
```julia
MAPIe=polaronmobility(10:10:1000, 4.5, 24.1, 2.25E12, 0.12)
```
## Plotting
For publication, `savepolaron` outputs a column-delimited text file for post-production plotting
(with gnuplot) or similar.
```julia
savepolaron("MAPI-electron",MAPIe)
```
Example `gnuplot` scripts can be found in
[Examples](https://github.com/jarvist/PolaronMobility.jl/tree/master/examples/) and
[HalidePerovskites](http://github.com/jarvist/PolaronMobility.jl/tree/master/HalidePerovskites/).
## Built in plotting
The convenience function `plotpolaron` generates (and saves) a number of
`Plots.jl` figures of the temperature dependent behaviour.
It has been separated off into its own submodule (`PlotPolaron`), so that the
`Plots.jl` dependency does not slow down loading of `PolaronMobility.jl`.
To use it, we therefore need to inform Julia where to find PlotPolaron.
A suitable initialisation script was kindly supplied by @wkearn:
```julia
using PolaronMobility, Plots
gr()
include(Pkg.dir("PolaronMobility","src","PlotPolaron.jl"))
using PlotPolaron
```
As with savepolaron, the call signature is output-file-string and then the
polaron object which you have calculated.
```julia
plotpolaron("MAPI-electron",MAPIe)
```
This will attempt to make fairly sensible defaults, and plot a lot of different
data of sufficient quality for talk slides.
Much for the functionality has been unrolled into the [Jupyter Notebook
example](https://github.com/jarvist/PolaronMobility.jl/blob/master/JuliaBox-Example.ipynb),
which should also be interactively-runnable from (https://juliabox.com). See
the repository
[README.md](https://github.com/jarvist/PolaronMobility.jl/blob/master/README.md#juliabox)
for the latest information.
Here is a figure showing typical temperature-dependent behaviour of the
three-different polaron mobility approximations, for MAPI.

## Further examples
More complete examples are provided in
[Examples](https://github.com/jarvist/PolaronMobility.jl/tree/master/examples/) and
[HalidePerovskites](http://github.com/jarvist/PolaronMobility.jl/tree/master/HalidePerovskites/).
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | docs | 376 | # Functions
```@docs
frohlichalpha(ε_Inf,ε_S,freq,m_eff)
```
```@docs
feynmanvw(α)
```
```@docs
polaronmobility(Trange, ε_Inf, ε_S, freq, effectivemass; figures::Bool=true, verbose::Bool=false)
```
```@docs
HellwarthBScheme(LO)
```
```@docs
HellwarthAScheme(LO,T=295)
```
```@docs
savepolaron(fileprefix, p::Polaron)
```
```@docs
ImX(nurange,v,w,βred,α,ω,mb)
```
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | docs | 3083 | # PolaronMobility.jl
These codes calculate the temperature-dependent polaron mobility for
a material.
We use the Feynman path-integral variational approach.
We have parameters for various metal-halide Perovskites; as well as other
systems.
These codes implement methods described across a wide range of now quite old
literature.
The methods have been tested against literature values, and the calculated
units more well understood.
They enable relative 'turn key' calculation of polaron parameters (most
particularly the finite temperature charge carrier mobility) for an
arbitrary material system, based on parameters that are standard to calculate
with modern ab-initio electronic structure methods.
This documentation is intended to be read alongside the paper which was the
first application (and motivation) for these codes:
[Frost2017PRB](https://doi.org/10.1103/PhysRevB.96.195202)
([ArXiv:1704.05404](https://arxiv.org/abs/1704.05404) ).
The required inputs are the dielectric constants (ϵ-static and ϵ-optic)
, a characteristic phonon frequency (ω), and the bare-electron band
effective-mass (me). These values can be relatively easily calculated in the
ab-initio electronic structure package of your choosing, or measured directly.
From these four values, the code solves a temperature-dependent polaron model.
This is done by variationally optimising the temperature-dependent
free-energies for the coupled
electron-phonon system.
These optimised parameters describe the polaron with the infinite quantum field
of lattice vibrations 'integrated through', and replaced with a phonon-drag
term.
From this the polaron features such as effective-mass, size of the
wavefunction, frequency of energy oscillation etc. can be calculated.
This polaron state can then be used as an input to further models for polaron
mobility.
The codes are designed to produce a set of temperature-dependent mobilities and
other data, for direct incorporation into a scientific publication.
May your phonons drag in a manner truly sublime.
## Installation
These codes require Julia >1.7 .
To install, type the following at the Julia REPL:
```
julia> Pkg.add("PolaronMobility")
```
## Community guidelines
Contributions to the code (extending that which is calculated), or additional
physical systems / examples, are very welcome.
If you have questions about the software, scientific questions, or find errors,
please create a [GitHub issue](https://github.com/jarvist/PolaronMobility.jl/issues).
If you find this package (or snippets, such as the entered and tested
free-energy expressions) useful for your work, please cite the paper
[Frost2017PRB](https://doi.org/10.1103/PhysRevB.96.195202).
```
@article{Frost2017,
doi = {10.1103/physrevb.96.195202},
url = {https://doi.org/10.1103/physrevb.96.195202},
year = {2017},
month = {nov},
publisher = {American Physical Society ({APS})},
volume = {96},
number = {19},
author = {Jarvist Moore Frost},
title = {Calculating polaron mobility in halide perovskites},
journal = {Physical Review B}
}
```
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 2.0.1 | ca380451ef8d4013efcb1ddf0ce2bfa201e67d48 | docs | 9595 | # Scientific discussion
## Overview
These codes solve the Feynman polaron mode [Feynman1955] with Ōsaka's
[Osaka1961] finite-temperature energies.
We use the form of these free energies, as presented in [Hellwarth1999].
For each temperature, the total free energy of the Feynman coupled
phonon-electron system is minimised by optimising coefficients (`v` and `w`)
which, equivalently, describe the spring-coupling coefficient (`k`) and
effective-mass (`M`) of the phonon cloud (i.e. the phonon drag / phonon surfing
contribution).
This integrates through the infinite quantum field of the harmonic oscillators
which make up the dynamic response of the lattice, to simplify the problem back
to a quasi-particle (the polaron).
The codes calculate the polaron mobility, with both the original
low-temperature FHIP asymptotic approximation [Feynman1962]; Kadanoff's
[Kadanoff1964] Boltzmann equation motivated phonon-emission correction to the
FHIP; and Hellwarth et al.'s [Hellwarth1999] method.
This last method (Hellwarth) is probably the most accurate.
This uses a more general result (Eqn. 44-47) in [Feynman1962], directly
evaluating the contour integral for the polaron self-energy numerically.
Underlying all this is the simplified Fröhlich Hamiltonian [Frohlich1952] for
a single electron interacting with a phonon cloud of non-interacting (harmonic)
phonons.
The electron-phonon interaction for a polar system is treated at the simple
level of being the dielectric response.
These are the infrared-active modes present at the Gamma point in the Brillouin
zone.
Along with an effective mode frequency, the dielectric constants are used to
calculate the dimensionless 'α' parameter describing the electron-phonon
coupling.
(In a simple covalent semiconductor system, the only dielectric active mode is
the linear-optical mode.)
The Feynman model offers a direct solution of this most simple quantum field
problem.
The infinite phonon (quantum) field is 'integrated out' by path
integration.
The soluble system is one in which you have an electron interacting by
a (harmonic) spring constant with a mass representing the phonon drag.
The variational method allows you to find a set of parameters for this
simplified system which produces the smallest free-energy.
This is now a (renormalised) single particle system, a quasi-particle.
These Julia codes use Hellwarth's [Hellwarth1999] presentation of Ōsaka's variational
free-energies for the Feynman model.
We optimise the `v` and `w` parameters for these finite-temperature free energies.
These can be alternatively restated the mass 'M' and spring-constant 'k' of the
coupled phonon-electron Feynman model.
Here we apply these methods to the case of hybrid halide perovskites.
The method provides the temperature dependent polaron-mobility without any free parameters.
No arbitrary relaxation time is needed or used. The scattering processes are
treated directly, by including an effective electron-phonon coupling in the
specification of the Fröhlich α/'alpha' parameter, and then all other features
come from solving the model.
The original Feynman model is correct to all orders in alpha, and the Hellwarth
direct contour-integration of the general Feynman mobility statement is
suitable for high temperature.
It was necessary to return to these (rather old!) papers and resolve the
models, as hybrid halide perovskites are soft materials with low energy
phonons. Therefore the effective temperature in terms of a reduced
thermodynamic beta (beta=hbar omega / (k_Boltzmann * Temperature) ; β=ħω/(k_B.T) ) is much
smaller than previously considered.
A final note that: in [Hellwarth1999], there is a mistake in the formula for 'b',
which is also present in their prior PRL [Biaggio1997].
It is correct in [Feynman1962], where there is no factor of b on the right-hand
side.
They probably didn't notice this, as they set it to zero.
This doesn't make too much difference (~0.1%, for the hybrid halide
perovskites) to the calculated mobility.
Since we're integrating numerically anyway, we may as well calculate it
explicitly.
## Bibliography
This bibliography is listed in vague order of utility; I recommend reading the
first ones first!
Feynman also describes his Polaron model in more detail in both 'Statistical
Mechanics' [Feynman1972] and 'Quantum Mechanics and Path Integrals'
[FeynmanHibbs1965]. Note that the differing presentations of Feynman do not always agree in detail.
Schulman's 'Techniques and applications of path integration' has a 10-page
chapter on the Polaron problem. It tries to unify the Feynman prescriptions.
J.T. Devreese's "Fröhlich Polarons. Lecture course including detailed
theoretical derivations" (6th edition, 2016) notes on the ArXiv is a very good
place to start & to get an overview of the area.
https://arxiv.org/abs/1611.06122
```
% This introduces two prescriptions for reducing a multi-mode polar lattice to
% a single ~mean-field~ response.
% It contains a modern version of the Ōsaka finite temperature free-energies
% for use in a variational solution of the Feynman temperature problem.
% It also includes how to (numerically) do the contour integration to get the
% DC-response of the polaron developed in Feynman1962.
@article{Hellwarth1999,
doi = {10.1103/physrevb.60.299},
url = {https://doi.org/10.1103%2Fphysrevb.60.299},
year = {1999},
month = {jul},
publisher = {American Physical Society ({APS})},
volume = {60},
number = {1},
pages = {299--307},
author = {Robert W. Hellwarth and Ivan Biaggio},
title = {Mobility of an electron in a multimode polar lattice},
journal = {Physical Review B}
}
% Boltzmann / relaxation time approximation solution of mobility in the Feynman
% polaron problem.
% We extract a relaxation time (+ offer this method of mobility).
@article{Kadanoff1963,
doi = {10.1103/physrev.130.1364},
url = {https://doi.org/10.1103%2Fphysrev.130.1364},
year = {1963},
month = {may},
publisher = {American Physical Society ({APS})},
volume = {130},
number = {4},
pages = {1364--1369},
author = {Leo P. Kadanoff},
title = {Boltzmann Equation for Polarons},
journal = {Physical Review}
}
% A long and very useful article developing response theories for the polaron.
% Mainly known for the FHIP mobility, which is low-temperature only.
@article{Feynman1962,
doi = {10.1103/physrev.127.1004},
url = {https://doi.org/10.1103%2Fphysrev.127.1004},
year = {1962},
month = {aug},
publisher = {American Physical Society ({APS})},
volume = {127},
number = {4},
pages = {1004--1017},
author = {R. P. Feynman and R. W. Hellwarth and C. K. Iddings and P. M. Platzman},
title = {Mobility of Slow Electrons in a Polar Crystal},
journal = {Physical Review}
}
% The original development of Feynman's solution to the polaron problem.
% Zero temperature approximate variational solutions developed (in limits w->0,
% or w=v).
% Perturbative theories of phonon-drag effective-mass renormalisation given.
% (i.e. where the 'me=1+alpha/6' & etc. limits are from. )
@article{Feynman1955,
doi = {10.1103/physrev.97.660},
url = {https://doi.org/10.1103%2Fphysrev.97.660},
year = {1955},
month = {feb},
publisher = {American Physical Society ({APS})},
volume = {97},
number = {3},
pages = {660--665},
author = {R. P. Feynman},
title = {Slow Electrons in a Polar Crystal},
journal = {Physical Review}
}
% Schultz seemed to spend his PhD solving the Feynman polaron problem with
% a digital computer.
% Lots of characterisation of the polaron state, and the introduction of an
% effective polaron size, from considering the variance of the Gaussian
% wavefunction.
% Some work towards polaron mobility, but not as developed as in Feynman et al. 1962.
% Schultz provides units for some of the quantities - which is useful!
@article{Schultz1959,
doi = {10.1103/physrev.116.526},
url = {https://doi.org/10.1103%2Fphysrev.116.526},
year = {1959},
month = {nov},
publisher = {American Physical Society ({APS})},
volume = {116},
number = {3},
pages = {526--543},
author = {T. D. Schultz},
title = {Slow Electrons in Polar Crystals: Self-Energy, Mass, and Mobility},
journal = {Physical Review}
}
% Free-energies of the finite interacting Polaron system.
@article{Osaka1961,
doi = {10.1143/ptp.25.517},
url = {https://doi.org/10.1143%2Fptp.25.517},
year = {1961},
month = {apr},
publisher = {Oxford University Press ({OUP})},
volume = {25},
number = {4},
pages = {517--536},
author = {Yukio \=Osaka},
title = {Theory of Polaron Mobility},
journal = {Progress of Theoretical Physics}
}
% Original statement of the Polaron problem + Frohlich Hamiltonian.
@article{Frohlich1952,
doi = {10.1098/rspa.1952.0212},
url = {https://doi.org/10.1098%2Frspa.1952.0212},
year = {1952},
month = {dec},
publisher = {The Royal Society},
volume = {215},
number = {1122},
pages = {291--298},
author = {H. Frohlich},
title = {Interaction of Electrons with Lattice Vibrations},
journal = {Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences}
}
@article{Thornber1970,
doi = {10.1103/physrevb.1.4099},
url = {https://doi.org/10.1103%2Fphysrevb.1.4099},
year = {1970},
month = {may},
publisher = {American Physical Society ({APS})},
volume = {1},
number = {10},
pages = {4099--4114},
author = {K. K. Thornber and Richard P. Feynman},
title = {Velocity Acquired by an Electron in a Finite Electric Field in a Polar Crystal},
journal = {Physical Review B}
}
```
| PolaronMobility | https://github.com/jarvist/PolaronMobility.jl.git |
|
[
"MIT"
] | 0.11.14 | 3d6a6516d6940a93b732e8ec7127652a0ead89c6 | code | 1473 | using Libdl
if VERSION >= v"1.3" && !haskey(ENV, "SCIPOPTDIR") && !Sys.iswindows()
# Skip build in favor of SCIP_jll
exit()
end
if Sys.iswindows()
@warn("SCIP_jll still doesn't work with windows, segfaults are likely!")
end
depsfile = joinpath(dirname(@__FILE__), "deps.jl")
if isfile(depsfile)
rm(depsfile)
end
function write_depsfile(path)
open(depsfile, "w") do f
print(f, "const libscip = ")
show(f, path)
println(f)
end
end
libname = if Sys.islinux()
"libscip.so"
elseif Sys.isapple()
"libscip.dylib"
elseif Sys.iswindows()
"libscip.dll"
else
error("SCIP is currently not supported on \"$(Sys.KERNEL)\"")
end
paths_to_try = []
# prefer environment variable
if haskey(ENV, "SCIPOPTDIR")
push!(paths_to_try, joinpath(ENV["SCIPOPTDIR"], "bin", libname))
push!(paths_to_try, joinpath(ENV["SCIPOPTDIR"], "lib", libname))
end
# but also try library path
push!(paths_to_try, libname)
found = false
tried = String[]
for l in paths_to_try
try
d = Libdl.dlopen(l)
global found = true
write_depsfile(l)
break
catch e
push!(tried, "$(l): $(e.msg)")
end
end
if !found && !haskey(ENV, "SCIP_JL_SKIP_LIB_CHECK")
error("""
Unable to locate SCIP installation. Tried:
$(join(tried, "\n\n"))
Note that this must be downloaded separately from https://scipopt.org.
Please set the environment variable SCIPOPTDIR to SCIP's installation path.
""")
end
| SCIP | https://github.com/scipopt/SCIP.jl.git |
|
[
"MIT"
] | 0.11.14 | 3d6a6516d6940a93b732e8ec7127652a0ead89c6 | code | 1387 | using Clang.Generators
using SCIP_jll
cd(@__DIR__)
const (HEADER_BASE, is_default) = if haskey(ENV, "SCIPDIR")
(joinpath(ENV["SCIPDIR"], "src"), false)
else
(joinpath(SCIP_jll.artifact_dir, "include"), true)
end
const SCIP_TYPES_H =
filter(readdir(joinpath(HEADER_BASE, "scip"); join=true)) do f
occursin("type", f) && endswith(f, ".h")
end
push!(SCIP_TYPES_H, joinpath(HEADER_BASE, "scip/def.h"))
push!(SCIP_TYPES_H, joinpath(HEADER_BASE, "scip/nlpi.h"))
push!(SCIP_TYPES_H, joinpath(HEADER_BASE, "scip/scipdefplugins.h"))
# add the generated config.h file, either from JLL or build dir
if is_default
push!(SCIP_TYPES_H, joinpath(HEADER_BASE, "scip/config.h"))
end
const SCIP_PUB_H =
filter(readdir(joinpath(HEADER_BASE, "scip"); join=true)) do f
occursin("pub", f) && endswith(f, ".h")
end
const SCIP_MEM_H =
filter(readdir(joinpath(HEADER_BASE, "blockmemshell"); join=true)) do f
endswith(f, ".h")
end
const SCIP_LPI_H = filter(readdir(joinpath(HEADER_BASE, "lpi"); join=true)) do f
endswith(f, ".h")
end
headers = append!(SCIP_TYPES_H, SCIP_PUB_H, SCIP_MEM_H, SCIP_LPI_H)
options = load_options(joinpath(@__DIR__, "generator.toml"))
args = get_default_args()
push!(args, "-I$HEADER_BASE")
if !is_default
push!(args, "-I$SCIP_BUILD_DIR/scip")
end
ctx = create_context(headers, args, options)
build!(ctx)
| SCIP | https://github.com/scipopt/SCIP.jl.git |
|
[
"MIT"
] | 0.11.14 | 3d6a6516d6940a93b732e8ec7127652a0ead89c6 | code | 254 | using ..SCIP: libscip
const uint8_t = UInt8
const LLONG_MAX = typemax(Clonglong)
const LLONG_MIN = typemin(Clonglong)
const DBL_MAX = typemax(Cfloat)
const PRIx64 = "llx"
const SIZE_MAX = typemax(Csize_t)
const UINT64_C = UInt64
const UINT32_C = UInt32
| SCIP | https://github.com/scipopt/SCIP.jl.git |
|
[
"MIT"
] | 0.11.14 | 3d6a6516d6940a93b732e8ec7127652a0ead89c6 | code | 1268913 | module LibSCIP
using ..SCIP: libscip
const uint8_t = UInt8
const LLONG_MAX = typemax(Clonglong)
const LLONG_MIN = typemin(Clonglong)
const DBL_MAX = typemax(Cfloat)
const PRIx64 = "llx"
const SIZE_MAX = typemax(Csize_t)
const UINT64_C = UInt64
const UINT32_C = UInt32
@enum SCIP_Retcode::Int32 begin
SCIP_OKAY = 1
SCIP_ERROR = 0
SCIP_NOMEMORY = -1
SCIP_READERROR = -2
SCIP_WRITEERROR = -3
SCIP_NOFILE = -4
SCIP_FILECREATEERROR = -5
SCIP_LPERROR = -6
SCIP_NOPROBLEM = -7
SCIP_INVALIDCALL = -8
SCIP_INVALIDDATA = -9
SCIP_INVALIDRESULT = -10
SCIP_PLUGINNOTFOUND = -11
SCIP_PARAMETERUNKNOWN = -12
SCIP_PARAMETERWRONGTYPE = -13
SCIP_PARAMETERWRONGVAL = -14
SCIP_KEYALREADYEXISTING = -15
SCIP_MAXDEPTHLEVEL = -16
SCIP_BRANCHERROR = -17
SCIP_NOTIMPLEMENTED = -18
end
const SCIP_RETCODE = SCIP_Retcode
const BMS_BlkMem = Cvoid
const BMS_BLKMEM = BMS_BlkMem
const SCIP_Bandit = Cvoid
const SCIP_BANDIT = SCIP_Bandit
const BMS_BufMem = Cvoid
const BMS_BUFMEM = BMS_BufMem
const SCIP_BanditVTable = Cvoid
const SCIP_BANDITVTABLE = SCIP_BanditVTable
const SCIP_BanditData = Cvoid
const SCIP_BANDITDATA = SCIP_BanditData
const Scip = Cvoid
const SCIP = Scip
const SCIP_Benders = Cvoid
const SCIP_BENDERS = SCIP_Benders
const SCIP_Sol = Cvoid
const SCIP_SOL = SCIP_Sol
@enum SCIP_BendersEnfoType::UInt32 begin
SCIP_BENDERSENFOTYPE_LP = 1
SCIP_BENDERSENFOTYPE_RELAX = 2
SCIP_BENDERSENFOTYPE_PSEUDO = 3
SCIP_BENDERSENFOTYPE_CHECK = 4
end
const SCIP_BENDERSENFOTYPE = SCIP_BendersEnfoType
@enum SCIP_Result::UInt32 begin
SCIP_DIDNOTRUN = 1
SCIP_DELAYED = 2
SCIP_DIDNOTFIND = 3
SCIP_FEASIBLE = 4
SCIP_INFEASIBLE = 5
SCIP_UNBOUNDED = 6
SCIP_CUTOFF = 7
SCIP_SEPARATED = 8
SCIP_NEWROUND = 9
SCIP_REDUCEDDOM = 10
SCIP_CONSADDED = 11
SCIP_CONSCHANGED = 12
SCIP_BRANCHED = 13
SCIP_SOLVELP = 14
SCIP_FOUNDSOL = 15
SCIP_SUSPENDED = 16
SCIP_SUCCESS = 17
SCIP_DELAYNODE = 18
end
const SCIP_RESULT = SCIP_Result
const SCIP_Var = Cvoid
const SCIP_VAR = SCIP_Var
@enum SCIP_BendersSolveLoop::UInt32 begin
SCIP_BENDERSSOLVELOOP_CONVEX = 0
SCIP_BENDERSSOLVELOOP_CIP = 1
SCIP_BENDERSSOLVELOOP_USERCONVEX = 2
SCIP_BENDERSSOLVELOOP_USERCIP = 3
end
const SCIP_BENDERSSOLVELOOP = SCIP_BendersSolveLoop
@enum SCIP_BendersSubStatus::UInt32 begin
SCIP_BENDERSSUBSTATUS_UNKNOWN = 0
SCIP_BENDERSSUBSTATUS_OPTIMAL = 1
SCIP_BENDERSSUBSTATUS_AUXVIOL = 2
SCIP_BENDERSSUBSTATUS_INFEAS = 3
end
const SCIP_BENDERSSUBSTATUS = SCIP_BendersSubStatus
@enum SCIP_BendersSubType::UInt32 begin
SCIP_BENDERSSUBTYPE_CONVEXCONT = 0
SCIP_BENDERSSUBTYPE_CONVEXDIS = 1
SCIP_BENDERSSUBTYPE_NONCONVEXCONT = 2
SCIP_BENDERSSUBTYPE_NONCONVEXDIS = 3
SCIP_BENDERSSUBTYPE_UNKNOWN = 4
end
const SCIP_BENDERSSUBTYPE = SCIP_BendersSubType
const SCIP_BendersData = Cvoid
const SCIP_BENDERSDATA = SCIP_BendersData
const SCIP_SubproblemSolveStat = Cvoid
const SCIP_SUBPROBLEMSOLVESTAT = SCIP_SubproblemSolveStat
const SCIP_Benderscut = Cvoid
const SCIP_BENDERSCUT = SCIP_Benderscut
const SCIP_BenderscutData = Cvoid
const SCIP_BENDERSCUTDATA = SCIP_BenderscutData
const SCIP_Branchrule = Cvoid
const SCIP_BRANCHRULE = SCIP_Branchrule
const SCIP_BranchCand = Cvoid
const SCIP_BRANCHCAND = SCIP_BranchCand
const SCIP_BranchruleData = Cvoid
const SCIP_BRANCHRULEDATA = SCIP_BranchruleData
const SCIP_Treemodel = Cvoid
const SCIP_TREEMODEL = SCIP_Treemodel
@enum SCIP_ClockType::UInt32 begin
SCIP_CLOCKTYPE_DEFAULT = 0
SCIP_CLOCKTYPE_CPU = 1
SCIP_CLOCKTYPE_WALL = 2
end
const SCIP_CLOCKTYPE = SCIP_ClockType
const SCIP_Clock = Cvoid
const SCIP_CLOCK = SCIP_Clock
const SCIP_CPUClock = Cvoid
const SCIP_CPUCLOCK = SCIP_CPUClock
const SCIP_WallClock = Cvoid
const SCIP_WALLCLOCK = SCIP_WallClock
const SCIP_Compr = Cvoid
const SCIP_COMPR = SCIP_Compr
const SCIP_ComprData = Cvoid
const SCIP_COMPRDATA = SCIP_ComprData
const SCIP_ConcSolverType = Cvoid
const SCIP_CONCSOLVERTYPE = SCIP_ConcSolverType
const SCIP_ConcSolver = Cvoid
const SCIP_CONCSOLVER = SCIP_ConcSolver
const SCIP_ConcSolverTypeData = Cvoid
const SCIP_CONCSOLVERTYPEDATA = SCIP_ConcSolverTypeData
const SCIP_SyncStore = Cvoid
const SCIP_SYNCSTORE = SCIP_SyncStore
const SCIP_SyncData = Cvoid
const SCIP_SYNCDATA = SCIP_SyncData
const SCIP_ConcSolverData = Cvoid
const SCIP_CONCSOLVERDATA = SCIP_ConcSolverData
const SCIP_Concurrent = Cvoid
const SCIP_CONCURRENT = SCIP_Concurrent
const SCIP_Conflicthdlr = Cvoid
const SCIP_CONFLICTHDLR = SCIP_Conflicthdlr
const SCIP_Node = Cvoid
const SCIP_NODE = SCIP_Node
const SCIP_BdChgInfo = Cvoid
const SCIP_BDCHGINFO = SCIP_BdChgInfo
@enum SCIP_ConflictType::UInt32 begin
SCIP_CONFTYPE_UNKNOWN = 0
SCIP_CONFTYPE_PROPAGATION = 1
SCIP_CONFTYPE_INFEASLP = 2
SCIP_CONFTYPE_BNDEXCEEDING = 3
SCIP_CONFTYPE_ALTINFPROOF = 4
SCIP_CONFTYPE_ALTBNDPROOF = 5
end
const SCIP_CONFTYPE = SCIP_ConflictType
const SCIP_ConflicthdlrData = Cvoid
const SCIP_CONFLICTHDLRDATA = SCIP_ConflicthdlrData
const SCIP_ConflictSet = Cvoid
const SCIP_CONFLICTSET = SCIP_ConflictSet
const SCIP_ProofSet = Cvoid
const SCIP_PROOFSET = SCIP_ProofSet
const SCIP_LPBdChgs = Cvoid
const SCIP_LPBDCHGS = SCIP_LPBdChgs
const SCIP_Conflict = Cvoid
const SCIP_CONFLICT = SCIP_Conflict
@enum SCIP_ConflictPresolStrat::UInt32 begin
SCIP_CONFPRES_DISABLED = 0
SCIP_CONFPRES_ONLYLOCAL = 1
SCIP_CONFPRES_ONLYGLOBAL = 2
SCIP_CONFPRES_BOTH = 3
end
const SCIP_CONFPRES = SCIP_ConflictPresolStrat
const SCIP_ConflictStore = Cvoid
const SCIP_CONFLICTSTORE = SCIP_ConflictStore
const SCIP_Conshdlr = Cvoid
const SCIP_CONSHDLR = SCIP_Conshdlr
const SCIP_Cons = Cvoid
const SCIP_CONS = SCIP_Cons
const SCIP_ConsData = Cvoid
const SCIP_CONSDATA = SCIP_ConsData
const SCIP_PROPTIMING = Cuint
const SCIP_PRESOLTIMING = Cuint
@enum SCIP_BoundType::UInt32 begin
SCIP_BOUNDTYPE_LOWER = 0
SCIP_BOUNDTYPE_UPPER = 1
end
const SCIP_BOUNDTYPE = SCIP_BoundType
const SCIP_BdChgIdx = Cvoid
const SCIP_BDCHGIDX = SCIP_BdChgIdx
@enum SCIP_LockType::UInt32 begin
SCIP_LOCKTYPE_MODEL = 0
SCIP_LOCKTYPE_CONFLICT = 1
end
const SCIP_LOCKTYPE = SCIP_LockType
const SCIP_HashMap = Cvoid
const SCIP_HASHMAP = SCIP_HashMap
const SCIP_Diveset = Cvoid
const SCIP_DIVESET = SCIP_Diveset
const SCIP_ConshdlrData = Cvoid
const SCIP_CONSHDLRDATA = SCIP_ConshdlrData
const SCIP_ConsSetChg = Cvoid
const SCIP_CONSSETCHG = SCIP_ConsSetChg
const SCIP_LinConsStats = Cvoid
const SCIP_LINCONSSTATS = SCIP_LinConsStats
@enum SCIP_LinConstype::UInt32 begin
SCIP_LINCONSTYPE_EMPTY = 0
SCIP_LINCONSTYPE_FREE = 1
SCIP_LINCONSTYPE_SINGLETON = 2
SCIP_LINCONSTYPE_AGGREGATION = 3
SCIP_LINCONSTYPE_PRECEDENCE = 4
SCIP_LINCONSTYPE_VARBOUND = 5
SCIP_LINCONSTYPE_SETPARTITION = 6
SCIP_LINCONSTYPE_SETPACKING = 7
SCIP_LINCONSTYPE_SETCOVERING = 8
SCIP_LINCONSTYPE_CARDINALITY = 9
SCIP_LINCONSTYPE_INVKNAPSACK = 10
SCIP_LINCONSTYPE_EQKNAPSACK = 11
SCIP_LINCONSTYPE_BINPACKING = 12
SCIP_LINCONSTYPE_KNAPSACK = 13
SCIP_LINCONSTYPE_INTKNAPSACK = 14
SCIP_LINCONSTYPE_MIXEDBINARY = 15
SCIP_LINCONSTYPE_GENERAL = 16
end
const SCIP_LINCONSTYPE = SCIP_LinConstype
const SCIP_Cutpool = Cvoid
const SCIP_CUTPOOL = SCIP_Cutpool
const SCIP_Cut = Cvoid
const SCIP_CUT = SCIP_Cut
struct SCIP_AggrRow
vals::Ptr{Cdouble}
inds::Ptr{Cint}
rowsinds::Ptr{Cint}
slacksign::Ptr{Cint}
rowweights::Ptr{Cdouble}
rhshi::Cdouble
rhslo::Cdouble
nnz::Cint
nrows::Cint
rowssize::Cint
rank::Cint
_local::Cuint
end
const SCIP_AGGRROW = SCIP_AggrRow
const SCIP_Cutsel = Cvoid
const SCIP_CUTSEL = SCIP_Cutsel
const SCIP_Row = Cvoid
const SCIP_ROW = SCIP_Row
const SCIP_CutselData = Cvoid
const SCIP_CUTSELDATA = SCIP_CutselData
const SCIP_Decomp = Cvoid
const SCIP_DECOMP = SCIP_Decomp
const SCIP_DecompStore = Cvoid
const SCIP_DECOMPSTORE = SCIP_DecompStore
const SCIP_Dialog = Cvoid
const SCIP_DIALOG = SCIP_Dialog
const SCIP_Dialoghdlr = Cvoid
const SCIP_DIALOGHDLR = SCIP_Dialoghdlr
const SCIP_DialogData = Cvoid
const SCIP_DIALOGDATA = SCIP_DialogData
const SCIP_Linelist = Cvoid
const SCIP_LINELIST = SCIP_Linelist
const SCIP_Disp = Cvoid
const SCIP_DISP = SCIP_Disp
@enum SCIP_DispStatus::UInt32 begin
SCIP_DISPSTATUS_OFF = 0
SCIP_DISPSTATUS_AUTO = 1
SCIP_DISPSTATUS_ON = 2
end
const SCIP_DISPSTATUS = SCIP_DispStatus
@enum SCIP_DispMode::UInt32 begin
SCIP_DISPMODE_DEFAULT = 1
SCIP_DISPMODE_CONCURRENT = 2
SCIP_DISPMODE_ALL = 3
end
const SCIP_DISPMODE = SCIP_DispMode
const SCIP_DispData = Cvoid
const SCIP_DISPDATA = SCIP_DispData
const SCIP_Eventhdlr = Cvoid
const SCIP_EVENTHDLR = SCIP_Eventhdlr
const SCIP_EventData = Cvoid
const SCIP_EVENTDATA = SCIP_EventData
const SCIP_Event = Cvoid
const SCIP_EVENT = SCIP_Event
const SCIP_EVENTTYPE = UInt64
const SCIP_EventhdlrData = Cvoid
const SCIP_EVENTHDLRDATA = SCIP_EventhdlrData
const SCIP_EventVarAdded = Cvoid
const SCIP_EVENTVARADDED = SCIP_EventVarAdded
const SCIP_EventVarDeleted = Cvoid
const SCIP_EVENTVARDELETED = SCIP_EventVarDeleted
const SCIP_EventVarFixed = Cvoid
const SCIP_EVENTVARFIXED = SCIP_EventVarFixed
const SCIP_EventVarUnlocked = Cvoid
const SCIP_EVENTVARUNLOCKED = SCIP_EventVarUnlocked
const SCIP_EventObjChg = Cvoid
const SCIP_EVENTOBJCHG = SCIP_EventObjChg
const SCIP_EventBdChg = Cvoid
const SCIP_EVENTBDCHG = SCIP_EventBdChg
const SCIP_EventHole = Cvoid
const SCIP_EVENTHOLE = SCIP_EventHole
const SCIP_EventImplAdd = Cvoid
const SCIP_EVENTIMPLADD = SCIP_EventImplAdd
const SCIP_EventTypeChg = Cvoid
const SCIP_EVENTTYPECHG = SCIP_EventTypeChg
const SCIP_EventRowAddedSepa = Cvoid
const SCIP_EVENTROWADDEDSEPA = SCIP_EventRowAddedSepa
const SCIP_EventRowDeletedSepa = Cvoid
const SCIP_EVENTROWDELETEDSEPA = SCIP_EventRowDeletedSepa
const SCIP_EventRowAddedLP = Cvoid
const SCIP_EVENTROWADDEDLP = SCIP_EventRowAddedLP
const SCIP_EventRowDeletedLP = Cvoid
const SCIP_EVENTROWDELETEDLP = SCIP_EventRowDeletedLP
const SCIP_EventRowCoefChanged = Cvoid
const SCIP_EVENTROWCOEFCHANGED = SCIP_EventRowCoefChanged
const SCIP_EventRowConstChanged = Cvoid
const SCIP_EVENTROWCONSTCHANGED = SCIP_EventRowConstChanged
const SCIP_EventRowSideChanged = Cvoid
const SCIP_EVENTROWSIDECHANGED = SCIP_EventRowSideChanged
const SCIP_EventFilter = Cvoid
const SCIP_EVENTFILTER = SCIP_EventFilter
const SCIP_EventQueue = Cvoid
const SCIP_EVENTQUEUE = SCIP_EventQueue
const SCIP_Expr = Cvoid
const SCIP_EXPR = SCIP_Expr
const SCIP_Expr_OwnerData = Cvoid
const SCIP_EXPR_OWNERDATA = SCIP_Expr_OwnerData
struct SCIP_Interval
inf::Cdouble
sup::Cdouble
end
const SCIP_INTERVAL = SCIP_Interval
const SCIP_Exprhdlr = Cvoid
const SCIP_EXPRHDLR = SCIP_Exprhdlr
const SCIP_ExprhdlrData = Cvoid
const SCIP_EXPRHDLRDATA = SCIP_ExprhdlrData
const SCIP_ExprData = Cvoid
const SCIP_EXPRDATA = SCIP_ExprData
const SCIP_EXPRITER_STAGE = Cuint
@enum SCIP_EXPRCURV::UInt32 begin
SCIP_EXPRCURV_UNKNOWN = 0
SCIP_EXPRCURV_CONVEX = 1
SCIP_EXPRCURV_CONCAVE = 2
SCIP_EXPRCURV_LINEAR = 3
end
@enum SCIP_MONOTONE::UInt32 begin
SCIP_MONOTONE_UNKNOWN = 0
SCIP_MONOTONE_INC = 1
SCIP_MONOTONE_DEC = 2
SCIP_MONOTONE_CONST = 3
end
const SCIP_ROUNDMODE = Cint
function SCIPintervalHasRoundingControl()
ccall((:SCIPintervalHasRoundingControl, libscip), Cuint, ())
end
function SCIPintervalSetRoundingMode(roundmode)
ccall(
(:SCIPintervalSetRoundingMode, libscip),
Cvoid,
(SCIP_ROUNDMODE,),
roundmode,
)
end
function SCIPintervalGetRoundingMode()
ccall((:SCIPintervalGetRoundingMode, libscip), SCIP_ROUNDMODE, ())
end
function SCIPintervalSetRoundingModeDownwards()
ccall((:SCIPintervalSetRoundingModeDownwards, libscip), Cvoid, ())
end
function SCIPintervalSetRoundingModeUpwards()
ccall((:SCIPintervalSetRoundingModeUpwards, libscip), Cvoid, ())
end
function SCIPintervalSetRoundingModeToNearest()
ccall((:SCIPintervalSetRoundingModeToNearest, libscip), Cvoid, ())
end
function SCIPintervalSetRoundingModeTowardsZero()
ccall((:SCIPintervalSetRoundingModeTowardsZero, libscip), Cvoid, ())
end
function SCIPintervalNegateReal(x)
ccall((:SCIPintervalNegateReal, libscip), Cdouble, (Cdouble,), x)
end
function SCIPintervalGetInf(interval)
ccall((:SCIPintervalGetInf, libscip), Cdouble, (SCIP_INTERVAL,), interval)
end
function SCIPintervalGetSup(interval)
ccall((:SCIPintervalGetSup, libscip), Cdouble, (SCIP_INTERVAL,), interval)
end
function SCIPintervalSet(resultant, value)
ccall(
(:SCIPintervalSet, libscip),
Cvoid,
(Ptr{SCIP_INTERVAL}, Cdouble),
resultant,
value,
)
end
function SCIPintervalSetBounds(resultant, inf, sup)
ccall(
(:SCIPintervalSetBounds, libscip),
Cvoid,
(Ptr{SCIP_INTERVAL}, Cdouble, Cdouble),
resultant,
inf,
sup,
)
end
function SCIPintervalSetEmpty(resultant)
ccall(
(:SCIPintervalSetEmpty, libscip),
Cvoid,
(Ptr{SCIP_INTERVAL},),
resultant,
)
end
function SCIPintervalIsEmpty(infinity, operand)
ccall(
(:SCIPintervalIsEmpty, libscip),
Cuint,
(Cdouble, SCIP_INTERVAL),
infinity,
operand,
)
end
function SCIPintervalSetEntire(infinity, resultant)
ccall(
(:SCIPintervalSetEntire, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}),
infinity,
resultant,
)
end
function SCIPintervalIsEntire(infinity, operand)
ccall(
(:SCIPintervalIsEntire, libscip),
Cuint,
(Cdouble, SCIP_INTERVAL),
infinity,
operand,
)
end
function SCIPintervalIsPositiveInfinity(infinity, operand)
ccall(
(:SCIPintervalIsPositiveInfinity, libscip),
Cuint,
(Cdouble, SCIP_INTERVAL),
infinity,
operand,
)
end
function SCIPintervalIsNegativeInfinity(infinity, operand)
ccall(
(:SCIPintervalIsNegativeInfinity, libscip),
Cuint,
(Cdouble, SCIP_INTERVAL),
infinity,
operand,
)
end
function SCIPintervalIsSubsetEQ(infinity, operand1, operand2)
ccall(
(:SCIPintervalIsSubsetEQ, libscip),
Cuint,
(Cdouble, SCIP_INTERVAL, SCIP_INTERVAL),
infinity,
operand1,
operand2,
)
end
function SCIPintervalAreDisjoint(operand1, operand2)
ccall(
(:SCIPintervalAreDisjoint, libscip),
Cuint,
(SCIP_INTERVAL, SCIP_INTERVAL),
operand1,
operand2,
)
end
function SCIPintervalAreDisjointEps(eps, operand1, operand2)
ccall(
(:SCIPintervalAreDisjointEps, libscip),
Cuint,
(Cdouble, SCIP_INTERVAL, SCIP_INTERVAL),
eps,
operand1,
operand2,
)
end
function SCIPintervalIntersect(resultant, operand1, operand2)
ccall(
(:SCIPintervalIntersect, libscip),
Cvoid,
(Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, SCIP_INTERVAL),
resultant,
operand1,
operand2,
)
end
function SCIPintervalIntersectEps(resultant, eps, operand1, operand2)
ccall(
(:SCIPintervalIntersectEps, libscip),
Cvoid,
(Ptr{SCIP_INTERVAL}, Cdouble, SCIP_INTERVAL, SCIP_INTERVAL),
resultant,
eps,
operand1,
operand2,
)
end
function SCIPintervalUnify(resultant, operand1, operand2)
ccall(
(:SCIPintervalUnify, libscip),
Cvoid,
(Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, SCIP_INTERVAL),
resultant,
operand1,
operand2,
)
end
function SCIPintervalAddInf(infinity, resultant, operand1, operand2)
ccall(
(:SCIPintervalAddInf, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, SCIP_INTERVAL),
infinity,
resultant,
operand1,
operand2,
)
end
function SCIPintervalAddSup(infinity, resultant, operand1, operand2)
ccall(
(:SCIPintervalAddSup, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, SCIP_INTERVAL),
infinity,
resultant,
operand1,
operand2,
)
end
function SCIPintervalAdd(infinity, resultant, operand1, operand2)
ccall(
(:SCIPintervalAdd, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, SCIP_INTERVAL),
infinity,
resultant,
operand1,
operand2,
)
end
function SCIPintervalAddScalar(infinity, resultant, operand1, operand2)
ccall(
(:SCIPintervalAddScalar, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, Cdouble),
infinity,
resultant,
operand1,
operand2,
)
end
function SCIPintervalAddVectors(infinity, resultant, length, operand1, operand2)
ccall(
(:SCIPintervalAddVectors, libscip),
Cvoid,
(
Cdouble,
Ptr{SCIP_INTERVAL},
Cint,
Ptr{SCIP_INTERVAL},
Ptr{SCIP_INTERVAL},
),
infinity,
resultant,
length,
operand1,
operand2,
)
end
function SCIPintervalSub(infinity, resultant, operand1, operand2)
ccall(
(:SCIPintervalSub, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, SCIP_INTERVAL),
infinity,
resultant,
operand1,
operand2,
)
end
function SCIPintervalSubScalar(infinity, resultant, operand1, operand2)
ccall(
(:SCIPintervalSubScalar, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, Cdouble),
infinity,
resultant,
operand1,
operand2,
)
end
function SCIPintervalMulInf(infinity, resultant, operand1, operand2)
ccall(
(:SCIPintervalMulInf, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, SCIP_INTERVAL),
infinity,
resultant,
operand1,
operand2,
)
end
function SCIPintervalMulSup(infinity, resultant, operand1, operand2)
ccall(
(:SCIPintervalMulSup, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, SCIP_INTERVAL),
infinity,
resultant,
operand1,
operand2,
)
end
function SCIPintervalMul(infinity, resultant, operand1, operand2)
ccall(
(:SCIPintervalMul, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, SCIP_INTERVAL),
infinity,
resultant,
operand1,
operand2,
)
end
function SCIPintervalMulScalarInf(infinity, resultant, operand1, operand2)
ccall(
(:SCIPintervalMulScalarInf, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, Cdouble),
infinity,
resultant,
operand1,
operand2,
)
end
function SCIPintervalMulScalarSup(infinity, resultant, operand1, operand2)
ccall(
(:SCIPintervalMulScalarSup, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, Cdouble),
infinity,
resultant,
operand1,
operand2,
)
end
function SCIPintervalMulScalar(infinity, resultant, operand1, operand2)
ccall(
(:SCIPintervalMulScalar, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, Cdouble),
infinity,
resultant,
operand1,
operand2,
)
end
function SCIPintervalDiv(infinity, resultant, operand1, operand2)
ccall(
(:SCIPintervalDiv, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, SCIP_INTERVAL),
infinity,
resultant,
operand1,
operand2,
)
end
function SCIPintervalDivScalar(infinity, resultant, operand1, operand2)
ccall(
(:SCIPintervalDivScalar, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, Cdouble),
infinity,
resultant,
operand1,
operand2,
)
end
function SCIPintervalScalprod(infinity, resultant, length, operand1, operand2)
ccall(
(:SCIPintervalScalprod, libscip),
Cvoid,
(
Cdouble,
Ptr{SCIP_INTERVAL},
Cint,
Ptr{SCIP_INTERVAL},
Ptr{SCIP_INTERVAL},
),
infinity,
resultant,
length,
operand1,
operand2,
)
end
function SCIPintervalScalprodScalarsInf(
infinity,
resultant,
length,
operand1,
operand2,
)
ccall(
(:SCIPintervalScalprodScalarsInf, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, Cint, Ptr{SCIP_INTERVAL}, Ptr{Cdouble}),
infinity,
resultant,
length,
operand1,
operand2,
)
end
function SCIPintervalScalprodScalarsSup(
infinity,
resultant,
length,
operand1,
operand2,
)
ccall(
(:SCIPintervalScalprodScalarsSup, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, Cint, Ptr{SCIP_INTERVAL}, Ptr{Cdouble}),
infinity,
resultant,
length,
operand1,
operand2,
)
end
function SCIPintervalScalprodScalars(
infinity,
resultant,
length,
operand1,
operand2,
)
ccall(
(:SCIPintervalScalprodScalars, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, Cint, Ptr{SCIP_INTERVAL}, Ptr{Cdouble}),
infinity,
resultant,
length,
operand1,
operand2,
)
end
function SCIPintervalSquare(infinity, resultant, operand)
ccall(
(:SCIPintervalSquare, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL),
infinity,
resultant,
operand,
)
end
function SCIPintervalSquareRoot(infinity, resultant, operand)
ccall(
(:SCIPintervalSquareRoot, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL),
infinity,
resultant,
operand,
)
end
function SCIPintervalPower(infinity, resultant, operand1, operand2)
ccall(
(:SCIPintervalPower, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, SCIP_INTERVAL),
infinity,
resultant,
operand1,
operand2,
)
end
function SCIPintervalPowerScalar(infinity, resultant, operand1, operand2)
ccall(
(:SCIPintervalPowerScalar, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, Cdouble),
infinity,
resultant,
operand1,
operand2,
)
end
function SCIPintervalPowerScalarScalar(resultant, operand1, operand2)
ccall(
(:SCIPintervalPowerScalarScalar, libscip),
Cvoid,
(Ptr{SCIP_INTERVAL}, Cdouble, Cdouble),
resultant,
operand1,
operand2,
)
end
function SCIPintervalPowerScalarIntegerInf(operand1, operand2)
ccall(
(:SCIPintervalPowerScalarIntegerInf, libscip),
Cdouble,
(Cdouble, Cint),
operand1,
operand2,
)
end
function SCIPintervalPowerScalarIntegerSup(operand1, operand2)
ccall(
(:SCIPintervalPowerScalarIntegerSup, libscip),
Cdouble,
(Cdouble, Cint),
operand1,
operand2,
)
end
function SCIPintervalPowerScalarInteger(resultant, operand1, operand2)
ccall(
(:SCIPintervalPowerScalarInteger, libscip),
Cvoid,
(Ptr{SCIP_INTERVAL}, Cdouble, Cint),
resultant,
operand1,
operand2,
)
end
function SCIPintervalPowerScalarInverse(
infinity,
resultant,
basedomain,
exponent,
image,
)
ccall(
(:SCIPintervalPowerScalarInverse, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, Cdouble, SCIP_INTERVAL),
infinity,
resultant,
basedomain,
exponent,
image,
)
end
function SCIPintervalSignPowerScalar(infinity, resultant, operand1, operand2)
ccall(
(:SCIPintervalSignPowerScalar, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, Cdouble),
infinity,
resultant,
operand1,
operand2,
)
end
function SCIPintervalReciprocal(infinity, resultant, operand)
ccall(
(:SCIPintervalReciprocal, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL),
infinity,
resultant,
operand,
)
end
function SCIPintervalExp(infinity, resultant, operand)
ccall(
(:SCIPintervalExp, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL),
infinity,
resultant,
operand,
)
end
function SCIPintervalLog(infinity, resultant, operand)
ccall(
(:SCIPintervalLog, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL),
infinity,
resultant,
operand,
)
end
function SCIPintervalMin(infinity, resultant, operand1, operand2)
ccall(
(:SCIPintervalMin, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, SCIP_INTERVAL),
infinity,
resultant,
operand1,
operand2,
)
end
function SCIPintervalMax(infinity, resultant, operand1, operand2)
ccall(
(:SCIPintervalMax, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL, SCIP_INTERVAL),
infinity,
resultant,
operand1,
operand2,
)
end
function SCIPintervalAbs(infinity, resultant, operand)
ccall(
(:SCIPintervalAbs, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL),
infinity,
resultant,
operand,
)
end
function SCIPintervalSin(infinity, resultant, operand)
ccall(
(:SCIPintervalSin, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL),
infinity,
resultant,
operand,
)
end
function SCIPintervalCos(infinity, resultant, operand)
ccall(
(:SCIPintervalCos, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL),
infinity,
resultant,
operand,
)
end
function SCIPintervalSign(infinity, resultant, operand)
ccall(
(:SCIPintervalSign, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL),
infinity,
resultant,
operand,
)
end
function SCIPintervalEntropy(infinity, resultant, operand)
ccall(
(:SCIPintervalEntropy, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, SCIP_INTERVAL),
infinity,
resultant,
operand,
)
end
function SCIPintervalQuadUpperBound(infinity, a, b_, x)
ccall(
(:SCIPintervalQuadUpperBound, libscip),
Cdouble,
(Cdouble, Cdouble, SCIP_INTERVAL, SCIP_INTERVAL),
infinity,
a,
b_,
x,
)
end
function SCIPintervalQuad(infinity, resultant, sqrcoeff, lincoeff, xrng)
ccall(
(:SCIPintervalQuad, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, Cdouble, SCIP_INTERVAL, SCIP_INTERVAL),
infinity,
resultant,
sqrcoeff,
lincoeff,
xrng,
)
end
function SCIPintervalSolveUnivariateQuadExpressionPositive(
infinity,
resultant,
sqrcoeff,
lincoeff,
rhs,
xbnds,
)
ccall(
(:SCIPintervalSolveUnivariateQuadExpressionPositive, libscip),
Cvoid,
(
Cdouble,
Ptr{SCIP_INTERVAL},
SCIP_INTERVAL,
SCIP_INTERVAL,
SCIP_INTERVAL,
SCIP_INTERVAL,
),
infinity,
resultant,
sqrcoeff,
lincoeff,
rhs,
xbnds,
)
end
function SCIPintervalSolveUnivariateQuadExpressionNegative(
infinity,
resultant,
sqrcoeff,
lincoeff,
rhs,
xbnds,
)
ccall(
(:SCIPintervalSolveUnivariateQuadExpressionNegative, libscip),
Cvoid,
(
Cdouble,
Ptr{SCIP_INTERVAL},
SCIP_INTERVAL,
SCIP_INTERVAL,
SCIP_INTERVAL,
SCIP_INTERVAL,
),
infinity,
resultant,
sqrcoeff,
lincoeff,
rhs,
xbnds,
)
end
function SCIPintervalSolveUnivariateQuadExpressionPositiveAllScalar(
infinity,
resultant,
sqrcoeff,
lincoeff,
rhs,
xbnds,
)
ccall(
(:SCIPintervalSolveUnivariateQuadExpressionPositiveAllScalar, libscip),
Cvoid,
(Cdouble, Ptr{SCIP_INTERVAL}, Cdouble, Cdouble, Cdouble, SCIP_INTERVAL),
infinity,
resultant,
sqrcoeff,
lincoeff,
rhs,
xbnds,
)
end
function SCIPintervalSolveUnivariateQuadExpression(
infinity,
resultant,
sqrcoeff,
lincoeff,
rhs,
xbnds,
)
ccall(
(:SCIPintervalSolveUnivariateQuadExpression, libscip),
Cvoid,
(
Cdouble,
Ptr{SCIP_INTERVAL},
SCIP_INTERVAL,
SCIP_INTERVAL,
SCIP_INTERVAL,
SCIP_INTERVAL,
),
infinity,
resultant,
sqrcoeff,
lincoeff,
rhs,
xbnds,
)
end
function SCIPintervalQuadBivar(
infinity,
resultant,
ax,
ay,
axy,
bx,
by,
xbnds,
ybnds,
)
ccall(
(:SCIPintervalQuadBivar, libscip),
Cvoid,
(
Cdouble,
Ptr{SCIP_INTERVAL},
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
SCIP_INTERVAL,
SCIP_INTERVAL,
),
infinity,
resultant,
ax,
ay,
axy,
bx,
by,
xbnds,
ybnds,
)
end
function SCIPintervalSolveBivariateQuadExpressionAllScalar(
infinity,
resultant,
ax,
ay,
axy,
bx,
by,
rhs,
xbnds,
ybnds,
)
ccall(
(:SCIPintervalSolveBivariateQuadExpressionAllScalar, libscip),
Cvoid,
(
Cdouble,
Ptr{SCIP_INTERVAL},
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
SCIP_INTERVAL,
SCIP_INTERVAL,
SCIP_INTERVAL,
),
infinity,
resultant,
ax,
ay,
axy,
bx,
by,
rhs,
xbnds,
ybnds,
)
end
function SCIPintervalPropagateWeightedSum(
infinity,
noperands,
operands,
weights,
constant,
rhs,
resultants,
infeasible,
)
ccall(
(:SCIPintervalPropagateWeightedSum, libscip),
Cint,
(
Cdouble,
Cint,
Ptr{SCIP_INTERVAL},
Ptr{Cdouble},
Cdouble,
SCIP_INTERVAL,
Ptr{SCIP_INTERVAL},
Ptr{Cuint},
),
infinity,
noperands,
operands,
weights,
constant,
rhs,
resultants,
infeasible,
)
end
struct SCIP_EXPRITER_USERDATA
data::NTuple{8,UInt8}
end
function Base.getproperty(x::Ptr{SCIP_EXPRITER_USERDATA}, f::Symbol)
f === :realval && return Ptr{Cdouble}(x + 0)
f === :intval && return Ptr{Cint}(x + 0)
f === :intvals && return Ptr{NTuple{2,Cint}}(x + 0)
f === :uintval && return Ptr{Cuint}(x + 0)
f === :ptrval && return Ptr{Ptr{Cvoid}}(x + 0)
return getfield(x, f)
end
function Base.getproperty(x::SCIP_EXPRITER_USERDATA, f::Symbol)
r = Ref{SCIP_EXPRITER_USERDATA}(x)
ptr = Base.unsafe_convert(Ptr{SCIP_EXPRITER_USERDATA}, r)
fptr = getproperty(ptr, f)
GC.@preserve r unsafe_load(fptr)
end
function Base.setproperty!(x::Ptr{SCIP_EXPRITER_USERDATA}, f::Symbol, v)
unsafe_store!(getproperty(x, f), v)
end
@enum SCIP_EXPRITER_TYPE::UInt32 begin
SCIP_EXPRITER_RTOPOLOGIC = 0
SCIP_EXPRITER_BFS = 1
SCIP_EXPRITER_DFS = 2
end
const SCIP_ExprIterData = Cvoid
const SCIP_EXPRITERDATA = SCIP_ExprIterData
const SCIP_ExprIter = Cvoid
const SCIP_EXPRITER = SCIP_ExprIter
const SCIP_EXPRPRINT_WHAT = Cuint
const SCIP_ExprPrintData = Cvoid
const SCIP_EXPRPRINTDATA = SCIP_ExprPrintData
const SCIP_ExprInt = Cvoid
const SCIP_EXPRINT = SCIP_ExprInt
const SCIP_ExprIntData = Cvoid
const SCIP_EXPRINTDATA = SCIP_ExprIntData
const SCIP_EXPRINTCAPABILITY = Cuint
const SCIP_Heur = Cvoid
const SCIP_HEUR = SCIP_Heur
const SCIP_HEURTIMING = Cuint
const SCIP_DIVETYPE = Cuint
@enum SCIP_DiveContext::UInt32 begin
SCIP_DIVECONTEXT_TOTAL = 0
SCIP_DIVECONTEXT_SINGLE = 1
SCIP_DIVECONTEXT_ADAPTIVE = 2
end
const SCIP_DIVECONTEXT = SCIP_DiveContext
const SCIP_HeurData = Cvoid
const SCIP_HEURDATA = SCIP_HeurData
const SCIP_VGraph = Cvoid
const SCIP_VGRAPH = SCIP_VGraph
@enum SCIP_BranchDir::UInt32 begin
SCIP_BRANCHDIR_DOWNWARDS = 0
SCIP_BRANCHDIR_UPWARDS = 1
SCIP_BRANCHDIR_FIXED = 2
SCIP_BRANCHDIR_AUTO = 3
end
const SCIP_BRANCHDIR = SCIP_BranchDir
const SCIP_History = Cvoid
const SCIP_HISTORY = SCIP_History
const SCIP_ValueHistory = Cvoid
const SCIP_VALUEHISTORY = SCIP_ValueHistory
const SCIP_VBounds = Cvoid
const SCIP_VBOUNDS = SCIP_VBounds
const SCIP_Implics = Cvoid
const SCIP_IMPLICS = SCIP_Implics
const SCIP_Clique = Cvoid
const SCIP_CLIQUE = SCIP_Clique
const SCIP_CliqueTable = Cvoid
const SCIP_CLIQUETABLE = SCIP_CliqueTable
const SCIP_CliqueList = Cvoid
const SCIP_CLIQUELIST = SCIP_CliqueList
const SCIP_Interrupt = Cvoid
const SCIP_INTERRUPT = SCIP_Interrupt
@enum SCIP_LPSolStat::UInt32 begin
SCIP_LPSOLSTAT_NOTSOLVED = 0
SCIP_LPSOLSTAT_OPTIMAL = 1
SCIP_LPSOLSTAT_INFEASIBLE = 2
SCIP_LPSOLSTAT_UNBOUNDEDRAY = 3
SCIP_LPSOLSTAT_OBJLIMIT = 4
SCIP_LPSOLSTAT_ITERLIMIT = 5
SCIP_LPSOLSTAT_TIMELIMIT = 6
SCIP_LPSOLSTAT_ERROR = 7
end
const SCIP_LPSOLSTAT = SCIP_LPSolStat
@enum SCIP_SideType::UInt32 begin
SCIP_SIDETYPE_LEFT = 0
SCIP_SIDETYPE_RIGHT = 1
end
const SCIP_SIDETYPE = SCIP_SideType
@enum SCIP_RowOriginType::UInt32 begin
SCIP_ROWORIGINTYPE_UNSPEC = 0
SCIP_ROWORIGINTYPE_CONSHDLR = 1
SCIP_ROWORIGINTYPE_CONS = 2
SCIP_ROWORIGINTYPE_SEPA = 3
SCIP_ROWORIGINTYPE_REOPT = 4
end
const SCIP_ROWORIGINTYPE = SCIP_RowOriginType
@enum SCIP_LPAlgo::UInt32 begin
SCIP_LPALGO_PRIMALSIMPLEX = 0
SCIP_LPALGO_DUALSIMPLEX = 1
SCIP_LPALGO_BARRIER = 2
SCIP_LPALGO_BARRIERCROSSOVER = 3
end
const SCIP_LPALGO = SCIP_LPAlgo
const SCIP_ColSolVals = Cvoid
const SCIP_COLSOLVALS = SCIP_ColSolVals
const SCIP_RowSolVals = Cvoid
const SCIP_ROWSOLVALS = SCIP_RowSolVals
const SCIP_LpSolVals = Cvoid
const SCIP_LPSOLVALS = SCIP_LpSolVals
const SCIP_Col = Cvoid
const SCIP_COL = SCIP_Col
const SCIP_Lp = Cvoid
const SCIP_LP = SCIP_Lp
const SCIP_Matrix = Cvoid
const SCIP_MATRIX = SCIP_Matrix
const SCIP_Mem = Cvoid
const SCIP_MEM = SCIP_Mem
const SCIP_Messagehdlr = Cvoid
const SCIP_MESSAGEHDLR = SCIP_Messagehdlr
@enum SCIP_VerbLevel::UInt32 begin
SCIP_VERBLEVEL_NONE = 0
SCIP_VERBLEVEL_DIALOG = 1
SCIP_VERBLEVEL_MINIMAL = 2
SCIP_VERBLEVEL_NORMAL = 3
SCIP_VERBLEVEL_HIGH = 4
SCIP_VERBLEVEL_FULL = 5
end
const SCIP_VERBLEVEL = SCIP_VerbLevel
const SCIP_MessagehdlrData = Cvoid
const SCIP_MESSAGEHDLRDATA = SCIP_MessagehdlrData
@enum SCIP_Confidencelevel::UInt32 begin
SCIP_CONFIDENCELEVEL_MIN = 0
SCIP_CONFIDENCELEVEL_LOW = 1
SCIP_CONFIDENCELEVEL_MEDIUM = 2
SCIP_CONFIDENCELEVEL_HIGH = 3
SCIP_CONFIDENCELEVEL_MAX = 4
end
const SCIP_CONFIDENCELEVEL = SCIP_Confidencelevel
@enum SCIP_Hashmaptype::UInt32 begin
SCIP_HASHMAPTYPE_UNKNOWN = 0
SCIP_HASHMAPTYPE_POINTER = 1
SCIP_HASHMAPTYPE_REAL = 2
SCIP_HASHMAPTYPE_INT = 3
end
const SCIP_HASHMAPTYPE = SCIP_Hashmaptype
const SCIP_SparseSol = Cvoid
const SCIP_SPARSESOL = SCIP_SparseSol
const SCIP_Queue = Cvoid
const SCIP_QUEUE = SCIP_Queue
const SCIP_PQueue = Cvoid
const SCIP_PQUEUE = SCIP_PQueue
const SCIP_HashTable = Cvoid
const SCIP_HASHTABLE = SCIP_HashTable
const SCIP_MultiHash = Cvoid
const SCIP_MULTIHASH = SCIP_MultiHash
const SCIP_MultiHashList = Cvoid
const SCIP_MULTIHASHLIST = SCIP_MultiHashList
const SCIP_HashMapEntry = Cvoid
const SCIP_HASHMAPENTRY = SCIP_HashMapEntry
const SCIP_HashSet = Cvoid
const SCIP_HASHSET = SCIP_HashSet
const SCIP_RealArray = Cvoid
const SCIP_REALARRAY = SCIP_RealArray
const SCIP_IntArray = Cvoid
const SCIP_INTARRAY = SCIP_IntArray
const SCIP_BoolArray = Cvoid
const SCIP_BOOLARRAY = SCIP_BoolArray
const SCIP_PtrArray = Cvoid
const SCIP_PTRARRAY = SCIP_PtrArray
const SCIP_RandNumGen = Cvoid
const SCIP_RANDNUMGEN = SCIP_RandNumGen
const SCIP_ResourceActivity = Cvoid
const SCIP_RESOURCEACTIVITY = SCIP_ResourceActivity
const SCIP_Profile = Cvoid
const SCIP_PROFILE = SCIP_Profile
const SCIP_Digraph = Cvoid
const SCIP_DIGRAPH = SCIP_Digraph
const SCIP_Bt = Cvoid
const SCIP_BT = SCIP_Bt
const SCIP_BtNode = Cvoid
const SCIP_BTNODE = SCIP_BtNode
const SCIP_Regression = Cvoid
const SCIP_REGRESSION = SCIP_Regression
const SCIP_DisjointSet = Cvoid
const SCIP_DISJOINTSET = SCIP_DisjointSet
const SCIP_RowPrep = Cvoid
const SCIP_ROWPREP = SCIP_RowPrep
const SCIP_Nlhdlr = Cvoid
const SCIP_NLHDLR = SCIP_Nlhdlr
const SCIP_NlhdlrData = Cvoid
const SCIP_NLHDLRDATA = SCIP_NlhdlrData
const SCIP_NlhdlrExprData = Cvoid
const SCIP_NLHDLREXPRDATA = SCIP_NlhdlrExprData
const SCIP_NLHDLR_METHOD = Cuint
const SCIP_NlRow = Cvoid
const SCIP_NLROW = SCIP_NlRow
const SCIP_Nlp = Cvoid
const SCIP_NLP = SCIP_Nlp
function SCIPfeastol(scip)
ccall((:SCIPfeastol, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPdualfeastol(scip)
ccall((:SCIPdualfeastol, libscip), Cdouble, (Ptr{SCIP},), scip)
end
@enum SCIP_NlpParam_FastFail::UInt32 begin
SCIP_NLPPARAM_FASTFAIL_OFF = 0
SCIP_NLPPARAM_FASTFAIL_CONSERVATIVE = 1
SCIP_NLPPARAM_FASTFAIL_AGGRESSIVE = 2
end
const SCIP_NLPPARAM_FASTFAIL = SCIP_NlpParam_FastFail
struct SCIP_NlpParam
lobjlimit::Cdouble
feastol::Cdouble
opttol::Cdouble
solvertol::Cdouble
timelimit::Cdouble
iterlimit::Cint
verblevel::Cushort
fastfail::SCIP_NLPPARAM_FASTFAIL
expectinfeas::Cuint
warmstart::Cuint
caller::Ptr{Cchar}
end
const SCIP_NLPPARAM = SCIP_NlpParam
const SCIP_Nlpi = Cvoid
const SCIP_NLPI = SCIP_Nlpi
const SCIP_NlpiData = Cvoid
const SCIP_NLPIDATA = SCIP_NlpiData
const SCIP_NlpiProblem = Cvoid
const SCIP_NLPIPROBLEM = SCIP_NlpiProblem
@enum SCIP_NlpSolStat::UInt32 begin
SCIP_NLPSOLSTAT_GLOBOPT = 0
SCIP_NLPSOLSTAT_LOCOPT = 1
SCIP_NLPSOLSTAT_FEASIBLE = 2
SCIP_NLPSOLSTAT_LOCINFEASIBLE = 3
SCIP_NLPSOLSTAT_GLOBINFEASIBLE = 4
SCIP_NLPSOLSTAT_UNBOUNDED = 5
SCIP_NLPSOLSTAT_UNKNOWN = 6
end
const SCIP_NLPSOLSTAT = SCIP_NlpSolStat
@enum SCIP_NlpTermStat::UInt32 begin
SCIP_NLPTERMSTAT_OKAY = 0
SCIP_NLPTERMSTAT_TIMELIMIT = 1
SCIP_NLPTERMSTAT_ITERLIMIT = 2
SCIP_NLPTERMSTAT_LOBJLIMIT = 3
SCIP_NLPTERMSTAT_INTERRUPT = 4
SCIP_NLPTERMSTAT_NUMERICERROR = 5
SCIP_NLPTERMSTAT_EVALERROR = 6
SCIP_NLPTERMSTAT_OUTOFMEMORY = 7
SCIP_NLPTERMSTAT_LICENSEERROR = 8
SCIP_NLPTERMSTAT_OTHER = 9
end
const SCIP_NLPTERMSTAT = SCIP_NlpTermStat
struct SCIP_NlpStatistics
niterations::Cint
totaltime::Cdouble
evaltime::Cdouble
consviol::Cdouble
boundviol::Cdouble
end
const SCIP_NLPSTATISTICS = SCIP_NlpStatistics
const SCIP_Nodesel = Cvoid
const SCIP_NODESEL = SCIP_Nodesel
const SCIP_NodePQ = Cvoid
const SCIP_NODEPQ = SCIP_NodePQ
const SCIP_NodeselData = Cvoid
const SCIP_NODESELDATA = SCIP_NodeselData
const SCIP_Param = Cvoid
const SCIP_PARAM = SCIP_Param
@enum SCIP_ParamType::UInt32 begin
SCIP_PARAMTYPE_BOOL = 0
SCIP_PARAMTYPE_INT = 1
SCIP_PARAMTYPE_LONGINT = 2
SCIP_PARAMTYPE_REAL = 3
SCIP_PARAMTYPE_CHAR = 4
SCIP_PARAMTYPE_STRING = 5
end
const SCIP_PARAMTYPE = SCIP_ParamType
@enum SCIP_ParamSetting::UInt32 begin
SCIP_PARAMSETTING_DEFAULT = 0
SCIP_PARAMSETTING_AGGRESSIVE = 1
SCIP_PARAMSETTING_FAST = 2
SCIP_PARAMSETTING_OFF = 3
end
const SCIP_PARAMSETTING = SCIP_ParamSetting
@enum SCIP_ParamEmphasis::UInt32 begin
SCIP_PARAMEMPHASIS_DEFAULT = 0
SCIP_PARAMEMPHASIS_CPSOLVER = 1
SCIP_PARAMEMPHASIS_EASYCIP = 2
SCIP_PARAMEMPHASIS_FEASIBILITY = 3
SCIP_PARAMEMPHASIS_HARDLP = 4
SCIP_PARAMEMPHASIS_OPTIMALITY = 5
SCIP_PARAMEMPHASIS_COUNTER = 6
SCIP_PARAMEMPHASIS_PHASEFEAS = 7
SCIP_PARAMEMPHASIS_PHASEIMPROVE = 8
SCIP_PARAMEMPHASIS_PHASEPROOF = 9
SCIP_PARAMEMPHASIS_NUMERICS = 10
SCIP_PARAMEMPHASIS_BENCHMARK = 11
end
const SCIP_PARAMEMPHASIS = SCIP_ParamEmphasis
const SCIP_ParamData = Cvoid
const SCIP_PARAMDATA = SCIP_ParamData
const SCIP_ParamSet = Cvoid
const SCIP_PARAMSET = SCIP_ParamSet
const SCIP_Presol = Cvoid
const SCIP_PRESOL = SCIP_Presol
const SCIP_PresolData = Cvoid
const SCIP_PRESOLDATA = SCIP_PresolData
const SCIP_Pricer = Cvoid
const SCIP_PRICER = SCIP_Pricer
const SCIP_PricerData = Cvoid
const SCIP_PRICERDATA = SCIP_PricerData
const SCIP_Pricestore = Cvoid
const SCIP_PRICESTORE = SCIP_Pricestore
const SCIP_Primal = Cvoid
const SCIP_PRIMAL = SCIP_Primal
const SCIP_ProbData = Cvoid
const SCIP_PROBDATA = SCIP_ProbData
@enum SCIP_Objsense::Int32 begin
SCIP_OBJSENSE_MAXIMIZE = -1
SCIP_OBJSENSE_MINIMIZE = 1
end
const SCIP_OBJSENSE = SCIP_Objsense
const SCIP_Prob = Cvoid
const SCIP_PROB = SCIP_Prob
const SCIP_Prop = Cvoid
const SCIP_PROP = SCIP_Prop
const SCIP_PropData = Cvoid
const SCIP_PROPDATA = SCIP_PropData
const SCIP_Reader = Cvoid
const SCIP_READER = SCIP_Reader
const SCIP_ReaderData = Cvoid
const SCIP_READERDATA = SCIP_ReaderData
const SCIP_Relax = Cvoid
const SCIP_RELAX = SCIP_Relax
const SCIP_Relaxation = Cvoid
const SCIP_RELAXATION = SCIP_Relaxation
const SCIP_RelaxData = Cvoid
const SCIP_RELAXDATA = SCIP_RelaxData
const SCIP_Reopt = Cvoid
const SCIP_REOPT = SCIP_Reopt
const SCIP_SolTree = Cvoid
const SCIP_SOLTREE = SCIP_SolTree
const SCIP_SolNode = Cvoid
const SCIP_SOLNODE = SCIP_SolNode
const SCIP_ReoptTree = Cvoid
const SCIP_REOPTTREE = SCIP_ReoptTree
const SCIP_ReoptNode = Cvoid
const SCIP_REOPTNODE = SCIP_ReoptNode
const SCIP_REPRESENTATIVE = SCIP_ReoptNode
const SCIP_ReoptConsData = Cvoid
const SCIP_REOPTCONSDATA = SCIP_ReoptConsData
@enum SCIP_ReoptType::UInt32 begin
SCIP_REOPTTYPE_NONE = 0
SCIP_REOPTTYPE_TRANSIT = 1
SCIP_REOPTTYPE_INFSUBTREE = 2
SCIP_REOPTTYPE_STRBRANCHED = 3
SCIP_REOPTTYPE_LOGICORNODE = 4
SCIP_REOPTTYPE_LEAF = 5
SCIP_REOPTTYPE_PRUNED = 6
SCIP_REOPTTYPE_FEASIBLE = 7
end
const SCIP_REOPTTYPE = SCIP_ReoptType
@enum Reopt_ConsType::UInt32 begin
REOPT_CONSTYPE_INFSUBTREE = 0
REOPT_CONSTYPE_DUALREDS = 1
REOPT_CONSTYPE_CUT = 2
REOPT_CONSTYPE_UNKNOWN = 3
end
const REOPT_CONSTYPE = Reopt_ConsType
const SCIP_Sepa = Cvoid
const SCIP_SEPA = SCIP_Sepa
const SCIP_SepaData = Cvoid
const SCIP_SEPADATA = SCIP_SepaData
@enum SCIP_Efficiacychoice::UInt32 begin
SCIP_EFFICIACYCHOICE_LP = 0
SCIP_EFFICIACYCHOICE_RELAX = 1
SCIP_EFFICIACYCHOICE_NLP = 2
end
const SCIP_EFFICIACYCHOICE = SCIP_Efficiacychoice
const SCIP_SepaStore = Cvoid
const SCIP_SEPASTORE = SCIP_SepaStore
@enum SCIP_Stage::UInt32 begin
SCIP_STAGE_INIT = 0
SCIP_STAGE_PROBLEM = 1
SCIP_STAGE_TRANSFORMING = 2
SCIP_STAGE_TRANSFORMED = 3
SCIP_STAGE_INITPRESOLVE = 4
SCIP_STAGE_PRESOLVING = 5
SCIP_STAGE_EXITPRESOLVE = 6
SCIP_STAGE_PRESOLVED = 7
SCIP_STAGE_INITSOLVE = 8
SCIP_STAGE_SOLVING = 9
SCIP_STAGE_SOLVED = 10
SCIP_STAGE_EXITSOLVE = 11
SCIP_STAGE_FREETRANS = 12
SCIP_STAGE_FREE = 13
end
const SCIP_STAGE = SCIP_Stage
@enum SCIP_Setting::UInt32 begin
SCIP_UNDEFINED = 0
SCIP_DISABLED = 1
SCIP_AUTO = 2
SCIP_ENABLED = 3
end
const SCIP_SETTING = SCIP_Setting
const SCIP_Set = Cvoid
const SCIP_SET = SCIP_Set
@enum SCIP_SolOrigin::UInt32 begin
SCIP_SOLORIGIN_ORIGINAL = 0
SCIP_SOLORIGIN_ZERO = 1
SCIP_SOLORIGIN_LPSOL = 2
SCIP_SOLORIGIN_NLPSOL = 3
SCIP_SOLORIGIN_RELAXSOL = 4
SCIP_SOLORIGIN_PSEUDOSOL = 5
SCIP_SOLORIGIN_PARTIAL = 6
SCIP_SOLORIGIN_UNKNOWN = 7
end
const SCIP_SOLORIGIN = SCIP_SolOrigin
const SCIP_Viol = Cvoid
const SCIP_VIOL = SCIP_Viol
@enum SCIP_SolType::UInt32 begin
SCIP_SOLTYPE_UNKNOWN = 0
SCIP_SOLTYPE_HEUR = 1
SCIP_SOLTYPE_RELAX = 2
SCIP_SOLTYPE_LPRELAX = 3
SCIP_SOLTYPE_STRONGBRANCH = 4
SCIP_SOLTYPE_PSEUDO = 5
end
const SCIP_SOLTYPE = SCIP_SolType
@enum SCIP_Status::UInt32 begin
SCIP_STATUS_UNKNOWN = 0
SCIP_STATUS_USERINTERRUPT = 1
SCIP_STATUS_NODELIMIT = 2
SCIP_STATUS_TOTALNODELIMIT = 3
SCIP_STATUS_STALLNODELIMIT = 4
SCIP_STATUS_TIMELIMIT = 5
SCIP_STATUS_MEMLIMIT = 6
SCIP_STATUS_GAPLIMIT = 7
SCIP_STATUS_SOLLIMIT = 8
SCIP_STATUS_BESTSOLLIMIT = 9
SCIP_STATUS_RESTARTLIMIT = 10
SCIP_STATUS_OPTIMAL = 11
SCIP_STATUS_INFEASIBLE = 12
SCIP_STATUS_UNBOUNDED = 13
SCIP_STATUS_INFORUNBD = 14
SCIP_STATUS_TERMINATE = 15
end
const SCIP_STATUS = SCIP_Status
const SCIP_Stat = Cvoid
const SCIP_STAT = SCIP_Stat
@enum SCIP_Parallelmode::UInt32 begin
SCIP_PARA_OPPORTUNISTIC = 0
SCIP_PARA_DETERMINISTIC = 1
end
const SCIP_PARALLELMODE = SCIP_Parallelmode
const SCIP_BoundStore = Cvoid
const SCIP_BOUNDSTORE = SCIP_BoundStore
const SCIP_Table = Cvoid
const SCIP_TABLE = SCIP_Table
const SCIP_TableData = Cvoid
const SCIP_TABLEDATA = SCIP_TableData
@enum SCIP_NodeType::UInt32 begin
SCIP_NODETYPE_FOCUSNODE = 0
SCIP_NODETYPE_PROBINGNODE = 1
SCIP_NODETYPE_SIBLING = 2
SCIP_NODETYPE_CHILD = 3
SCIP_NODETYPE_LEAF = 4
SCIP_NODETYPE_DEADEND = 5
SCIP_NODETYPE_JUNCTION = 6
SCIP_NODETYPE_PSEUDOFORK = 7
SCIP_NODETYPE_FORK = 8
SCIP_NODETYPE_SUBROOT = 9
SCIP_NODETYPE_REFOCUSNODE = 10
end
const SCIP_NODETYPE = SCIP_NodeType
const SCIP_Probingnode = Cvoid
const SCIP_PROBINGNODE = SCIP_Probingnode
const SCIP_Sibling = Cvoid
const SCIP_SIBLING = SCIP_Sibling
const SCIP_Child = Cvoid
const SCIP_CHILD = SCIP_Child
const SCIP_Leaf = Cvoid
const SCIP_LEAF = SCIP_Leaf
const SCIP_Junction = Cvoid
const SCIP_JUNCTION = SCIP_Junction
const SCIP_Pseudofork = Cvoid
const SCIP_PSEUDOFORK = SCIP_Pseudofork
const SCIP_Fork = Cvoid
const SCIP_FORK = SCIP_Fork
const SCIP_Subroot = Cvoid
const SCIP_SUBROOT = SCIP_Subroot
const SCIP_PendingBdchg = Cvoid
const SCIP_PENDINGBDCHG = SCIP_PendingBdchg
const SCIP_Tree = Cvoid
const SCIP_TREE = SCIP_Tree
const SCIP_VarData = Cvoid
const SCIP_VARDATA = SCIP_VarData
@enum SCIP_Varstatus::UInt32 begin
SCIP_VARSTATUS_ORIGINAL = 0
SCIP_VARSTATUS_LOOSE = 1
SCIP_VARSTATUS_COLUMN = 2
SCIP_VARSTATUS_FIXED = 3
SCIP_VARSTATUS_AGGREGATED = 4
SCIP_VARSTATUS_MULTAGGR = 5
SCIP_VARSTATUS_NEGATED = 6
end
const SCIP_VARSTATUS = SCIP_Varstatus
@enum SCIP_Vartype::UInt32 begin
SCIP_VARTYPE_BINARY = 0
SCIP_VARTYPE_INTEGER = 1
SCIP_VARTYPE_IMPLINT = 2
SCIP_VARTYPE_CONTINUOUS = 3
end
const SCIP_VARTYPE = SCIP_Vartype
@enum SCIP_DomchgType::UInt32 begin
SCIP_DOMCHGTYPE_DYNAMIC = 0
SCIP_DOMCHGTYPE_BOTH = 1
SCIP_DOMCHGTYPE_BOUND = 2
end
const SCIP_DOMCHGTYPE = SCIP_DomchgType
@enum SCIP_BoundchgType::UInt32 begin
SCIP_BOUNDCHGTYPE_BRANCHING = 0
SCIP_BOUNDCHGTYPE_CONSINFER = 1
SCIP_BOUNDCHGTYPE_PROPINFER = 2
end
const SCIP_BOUNDCHGTYPE = SCIP_BoundchgType
const SCIP_DomChgBound = Cvoid
const SCIP_DOMCHGBOUND = SCIP_DomChgBound
const SCIP_DomChgBoth = Cvoid
const SCIP_DOMCHGBOTH = SCIP_DomChgBoth
const SCIP_DomChgDyn = Cvoid
const SCIP_DOMCHGDYN = SCIP_DomChgDyn
const SCIP_DomChg = Cvoid
const SCIP_DOMCHG = SCIP_DomChg
const SCIP_BoundChg = Cvoid
const SCIP_BOUNDCHG = SCIP_BoundChg
const SCIP_BranchingData = Cvoid
const SCIP_BRANCHINGDATA = SCIP_BranchingData
const SCIP_InferenceData = Cvoid
const SCIP_INFERENCEDATA = SCIP_InferenceData
const SCIP_HoleChg = Cvoid
const SCIP_HOLECHG = SCIP_HoleChg
const SCIP_Hole = Cvoid
const SCIP_HOLE = SCIP_Hole
const SCIP_Holelist = Cvoid
const SCIP_HOLELIST = SCIP_Holelist
const SCIP_Dom = Cvoid
const SCIP_DOM = SCIP_Dom
const SCIP_Original = Cvoid
const SCIP_ORIGINAL = SCIP_Original
const SCIP_Aggregate = Cvoid
const SCIP_AGGREGATE = SCIP_Aggregate
const SCIP_Multaggr = Cvoid
const SCIP_MULTAGGR = SCIP_Multaggr
const SCIP_Negate = Cvoid
const SCIP_NEGATE = SCIP_Negate
@enum SCIP_VBCColor::Int32 begin
SCIP_VBCCOLOR_UNSOLVED = 3
SCIP_VBCCOLOR_SOLVED = 2
SCIP_VBCCOLOR_CUTOFF = 4
SCIP_VBCCOLOR_CONFLICT = 15
SCIP_VBCCOLOR_MARKREPROP = 11
SCIP_VBCCOLOR_REPROP = 12
SCIP_VBCCOLOR_SOLUTION = 14
SCIP_VBCCOLOR_NONE = -1
end
const SCIP_VBCCOLOR = SCIP_VBCColor
const SCIP_Visual = Cvoid
const SCIP_VISUAL = SCIP_Visual
function SCIPmessagePrintErrorHeader(sourcefile, sourceline)
ccall(
(:SCIPmessagePrintErrorHeader, libscip),
Cvoid,
(Ptr{Cchar}, Cint),
sourcefile,
sourceline,
)
end
function SCIPnlpiCreate(
nlpi,
name,
description,
priority,
nlpicopy,
nlpifree,
nlpigetsolverpointer,
nlpicreateproblem,
nlpifreeproblem,
nlpigetproblempointer,
nlpiaddvars,
nlpiaddconstraints,
nlpisetobjective,
nlpichgvarbounds,
nlpichgconssides,
nlpidelvarset,
nlpidelconsset,
nlpichglinearcoefs,
nlpichgexpr,
nlpichgobjconstant,
nlpisetinitialguess,
nlpisolve,
nlpigetsolstat,
nlpigettermstat,
nlpigetsolution,
nlpigetstatistics,
nlpidata,
)
ccall(
(:SCIPnlpiCreate, libscip),
SCIP_RETCODE,
(
Ptr{Ptr{SCIP_NLPI}},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_NLPIDATA},
),
nlpi,
name,
description,
priority,
nlpicopy,
nlpifree,
nlpigetsolverpointer,
nlpicreateproblem,
nlpifreeproblem,
nlpigetproblempointer,
nlpiaddvars,
nlpiaddconstraints,
nlpisetobjective,
nlpichgvarbounds,
nlpichgconssides,
nlpidelvarset,
nlpidelconsset,
nlpichglinearcoefs,
nlpichgexpr,
nlpichgobjconstant,
nlpisetinitialguess,
nlpisolve,
nlpigetsolstat,
nlpigettermstat,
nlpigetsolution,
nlpigetstatistics,
nlpidata,
)
end
function SCIPnlpiSetPriority(nlpi, priority)
ccall(
(:SCIPnlpiSetPriority, libscip),
Cvoid,
(Ptr{SCIP_NLPI}, Cint),
nlpi,
priority,
)
end
function SCIPnlpiCopyInclude(sourcenlpi, targetset)
ccall(
(:SCIPnlpiCopyInclude, libscip),
SCIP_RETCODE,
(Ptr{SCIP_NLPI}, Ptr{SCIP_SET}),
sourcenlpi,
targetset,
)
end
function SCIPnlpiFree(nlpi, set)
ccall(
(:SCIPnlpiFree, libscip),
SCIP_RETCODE,
(Ptr{Ptr{SCIP_NLPI}}, Ptr{SCIP_SET}),
nlpi,
set,
)
end
function SCIPnlpiInit(nlpi)
ccall((:SCIPnlpiInit, libscip), Cvoid, (Ptr{SCIP_NLPI},), nlpi)
end
function SCIPnlpiGetSolverPointer(set, nlpi, problem)
ccall(
(:SCIPnlpiGetSolverPointer, libscip),
Ptr{Cvoid},
(Ptr{SCIP_SET}, Ptr{SCIP_NLPI}, Ptr{SCIP_NLPIPROBLEM}),
set,
nlpi,
problem,
)
end
function SCIPnlpiCreateProblem(set, nlpi, problem, name)
ccall(
(:SCIPnlpiCreateProblem, libscip),
SCIP_RETCODE,
(Ptr{SCIP_SET}, Ptr{SCIP_NLPI}, Ptr{Ptr{SCIP_NLPIPROBLEM}}, Ptr{Cchar}),
set,
nlpi,
problem,
name,
)
end
function SCIPnlpiFreeProblem(set, nlpi, problem)
ccall(
(:SCIPnlpiFreeProblem, libscip),
SCIP_RETCODE,
(Ptr{SCIP_SET}, Ptr{SCIP_NLPI}, Ptr{Ptr{SCIP_NLPIPROBLEM}}),
set,
nlpi,
problem,
)
end
function SCIPnlpiGetProblemPointer(set, nlpi, problem)
ccall(
(:SCIPnlpiGetProblemPointer, libscip),
Ptr{Cvoid},
(Ptr{SCIP_SET}, Ptr{SCIP_NLPI}, Ptr{SCIP_NLPIPROBLEM}),
set,
nlpi,
problem,
)
end
function SCIPnlpiAddVars(set, nlpi, problem, nvars, lbs, ubs, varnames)
ccall(
(:SCIPnlpiAddVars, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_SET},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Cint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Ptr{Cchar}},
),
set,
nlpi,
problem,
nvars,
lbs,
ubs,
varnames,
)
end
function SCIPnlpiAddConstraints(
set,
nlpi,
problem,
nconss,
lhss,
rhss,
nlininds,
lininds,
linvals,
exprs,
names,
)
ccall(
(:SCIPnlpiAddConstraints, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_SET},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Cint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Ptr{Cint}},
Ptr{Ptr{Cdouble}},
Ptr{Ptr{SCIP_EXPR}},
Ptr{Ptr{Cchar}},
),
set,
nlpi,
problem,
nconss,
lhss,
rhss,
nlininds,
lininds,
linvals,
exprs,
names,
)
end
function SCIPnlpiSetObjective(
set,
nlpi,
problem,
nlins,
lininds,
linvals,
expr,
constant,
)
ccall(
(:SCIPnlpiSetObjective, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_SET},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Cint,
Ptr{Cint},
Ptr{Cdouble},
Ptr{SCIP_EXPR},
Cdouble,
),
set,
nlpi,
problem,
nlins,
lininds,
linvals,
expr,
constant,
)
end
function SCIPnlpiChgVarBounds(set, nlpi, problem, nvars, indices, lbs, ubs)
ccall(
(:SCIPnlpiChgVarBounds, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_SET},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Cint,
Ptr{Cint},
Ptr{Cdouble},
Ptr{Cdouble},
),
set,
nlpi,
problem,
nvars,
indices,
lbs,
ubs,
)
end
function SCIPnlpiChgConsSides(set, nlpi, problem, nconss, indices, lhss, rhss)
ccall(
(:SCIPnlpiChgConsSides, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_SET},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Cint,
Ptr{Cint},
Ptr{Cdouble},
Ptr{Cdouble},
),
set,
nlpi,
problem,
nconss,
indices,
lhss,
rhss,
)
end
function SCIPnlpiDelVarSet(set, nlpi, problem, dstats, dstatssize)
ccall(
(:SCIPnlpiDelVarSet, libscip),
SCIP_RETCODE,
(Ptr{SCIP_SET}, Ptr{SCIP_NLPI}, Ptr{SCIP_NLPIPROBLEM}, Ptr{Cint}, Cint),
set,
nlpi,
problem,
dstats,
dstatssize,
)
end
function SCIPnlpiDelConsSet(set, nlpi, problem, dstats, dstatssize)
ccall(
(:SCIPnlpiDelConsSet, libscip),
SCIP_RETCODE,
(Ptr{SCIP_SET}, Ptr{SCIP_NLPI}, Ptr{SCIP_NLPIPROBLEM}, Ptr{Cint}, Cint),
set,
nlpi,
problem,
dstats,
dstatssize,
)
end
function SCIPnlpiChgLinearCoefs(set, nlpi, problem, idx, nvals, varidxs, vals)
ccall(
(:SCIPnlpiChgLinearCoefs, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_SET},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Cint,
Cint,
Ptr{Cint},
Ptr{Cdouble},
),
set,
nlpi,
problem,
idx,
nvals,
varidxs,
vals,
)
end
function SCIPnlpiChgExpr(set, nlpi, problem, idxcons, expr)
ccall(
(:SCIPnlpiChgExpr, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_SET},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Cint,
Ptr{SCIP_EXPR},
),
set,
nlpi,
problem,
idxcons,
expr,
)
end
function SCIPnlpiChgObjConstant(set, nlpi, problem, objconstant)
ccall(
(:SCIPnlpiChgObjConstant, libscip),
SCIP_RETCODE,
(Ptr{SCIP_SET}, Ptr{SCIP_NLPI}, Ptr{SCIP_NLPIPROBLEM}, Cdouble),
set,
nlpi,
problem,
objconstant,
)
end
function SCIPnlpiSetInitialGuess(
set,
nlpi,
problem,
primalvalues,
consdualvalues,
varlbdualvalues,
varubdualvalues,
)
ccall(
(:SCIPnlpiSetInitialGuess, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_SET},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
),
set,
nlpi,
problem,
primalvalues,
consdualvalues,
varlbdualvalues,
varubdualvalues,
)
end
function SCIPnlpiSolve(set, stat, nlpi, problem, param)
ccall(
(:SCIPnlpiSolve, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_SET},
Ptr{SCIP_STAT},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Ptr{SCIP_NLPPARAM},
),
set,
stat,
nlpi,
problem,
param,
)
end
function SCIPnlpiGetSolstat(set, nlpi, problem)
ccall(
(:SCIPnlpiGetSolstat, libscip),
SCIP_NLPSOLSTAT,
(Ptr{SCIP_SET}, Ptr{SCIP_NLPI}, Ptr{SCIP_NLPIPROBLEM}),
set,
nlpi,
problem,
)
end
function SCIPnlpiGetTermstat(set, nlpi, problem)
ccall(
(:SCIPnlpiGetTermstat, libscip),
SCIP_NLPTERMSTAT,
(Ptr{SCIP_SET}, Ptr{SCIP_NLPI}, Ptr{SCIP_NLPIPROBLEM}),
set,
nlpi,
problem,
)
end
function SCIPnlpiGetSolution(
set,
nlpi,
problem,
primalvalues,
consdualvalues,
varlbdualvalues,
varubdualvalues,
objval,
)
ccall(
(:SCIPnlpiGetSolution, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_SET},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Ptr{Ptr{Cdouble}},
Ptr{Ptr{Cdouble}},
Ptr{Ptr{Cdouble}},
Ptr{Ptr{Cdouble}},
Ptr{Cdouble},
),
set,
nlpi,
problem,
primalvalues,
consdualvalues,
varlbdualvalues,
varubdualvalues,
objval,
)
end
function SCIPnlpiGetStatistics(set, nlpi, problem, statistics)
ccall(
(:SCIPnlpiGetStatistics, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_SET},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Ptr{SCIP_NLPSTATISTICS},
),
set,
nlpi,
problem,
statistics,
)
end
function BMSallocMemory_call(size, filename, line)
ccall(
(:BMSallocMemory_call, libscip),
Ptr{Cvoid},
(Csize_t, Ptr{Cchar}, Cint),
size,
filename,
line,
)
end
function BMSallocClearMemory_call(num, typesize, filename, line)
ccall(
(:BMSallocClearMemory_call, libscip),
Ptr{Cvoid},
(Csize_t, Csize_t, Ptr{Cchar}, Cint),
num,
typesize,
filename,
line,
)
end
function BMSallocMemoryArray_call(num, typesize, filename, line)
ccall(
(:BMSallocMemoryArray_call, libscip),
Ptr{Cvoid},
(Csize_t, Csize_t, Ptr{Cchar}, Cint),
num,
typesize,
filename,
line,
)
end
function BMSreallocMemoryArray_call(ptr, num, typesize, filename, line)
ccall(
(:BMSreallocMemoryArray_call, libscip),
Ptr{Cvoid},
(Ptr{Cvoid}, Csize_t, Csize_t, Ptr{Cchar}, Cint),
ptr,
num,
typesize,
filename,
line,
)
end
function BMSreallocMemory_call(ptr, size, filename, line)
ccall(
(:BMSreallocMemory_call, libscip),
Ptr{Cvoid},
(Ptr{Cvoid}, Csize_t, Ptr{Cchar}, Cint),
ptr,
size,
filename,
line,
)
end
function BMSduplicateMemory_call(source, size, filename, line)
ccall(
(:BMSduplicateMemory_call, libscip),
Ptr{Cvoid},
(Ptr{Cvoid}, Csize_t, Ptr{Cchar}, Cint),
source,
size,
filename,
line,
)
end
function BMSduplicateMemoryArray_call(source, num, typesize, filename, line)
ccall(
(:BMSduplicateMemoryArray_call, libscip),
Ptr{Cvoid},
(Ptr{Cvoid}, Csize_t, Csize_t, Ptr{Cchar}, Cint),
source,
num,
typesize,
filename,
line,
)
end
function BMSfreeMemory_call(ptr, filename, line)
ccall(
(:BMSfreeMemory_call, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cchar}, Cint),
ptr,
filename,
line,
)
end
function BMSfreeMemoryNull_call(ptr, filename, line)
ccall(
(:BMSfreeMemoryNull_call, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cchar}, Cint),
ptr,
filename,
line,
)
end
function BMSallocBlockMemory_call(blkmem, size, filename, line)
ccall(
(:BMSallocBlockMemory_call, libscip),
Ptr{Cvoid},
(Ptr{BMS_BLKMEM}, Csize_t, Ptr{Cchar}, Cint),
blkmem,
size,
filename,
line,
)
end
function SCIPblkmem(scip)
ccall((:SCIPblkmem, libscip), Ptr{BMS_BLKMEM}, (Ptr{SCIP},), scip)
end
function BMSallocClearBlockMemory_call(blkmem, size, filename, line)
ccall(
(:BMSallocClearBlockMemory_call, libscip),
Ptr{Cvoid},
(Ptr{BMS_BLKMEM}, Csize_t, Ptr{Cchar}, Cint),
blkmem,
size,
filename,
line,
)
end
function BMSallocBlockMemoryArray_call(blkmem, num, typesize, filename, line)
ccall(
(:BMSallocBlockMemoryArray_call, libscip),
Ptr{Cvoid},
(Ptr{BMS_BLKMEM}, Csize_t, Csize_t, Ptr{Cchar}, Cint),
blkmem,
num,
typesize,
filename,
line,
)
end
function BMSallocClearBlockMemoryArray_call(
blkmem,
num,
typesize,
filename,
line,
)
ccall(
(:BMSallocClearBlockMemoryArray_call, libscip),
Ptr{Cvoid},
(Ptr{BMS_BLKMEM}, Csize_t, Csize_t, Ptr{Cchar}, Cint),
blkmem,
num,
typesize,
filename,
line,
)
end
function BMSreallocBlockMemoryArray_call(
blkmem,
ptr,
oldnum,
newnum,
typesize,
filename,
line,
)
ccall(
(:BMSreallocBlockMemoryArray_call, libscip),
Ptr{Cvoid},
(
Ptr{BMS_BLKMEM},
Ptr{Cvoid},
Csize_t,
Csize_t,
Csize_t,
Ptr{Cchar},
Cint,
),
blkmem,
ptr,
oldnum,
newnum,
typesize,
filename,
line,
)
end
function BMSreallocBlockMemory_call(
blkmem,
ptr,
oldsize,
newsize,
filename,
line,
)
ccall(
(:BMSreallocBlockMemory_call, libscip),
Ptr{Cvoid},
(Ptr{BMS_BLKMEM}, Ptr{Cvoid}, Csize_t, Csize_t, Ptr{Cchar}, Cint),
blkmem,
ptr,
oldsize,
newsize,
filename,
line,
)
end
function BMSduplicateBlockMemory_call(blkmem, source, size, filename, line)
ccall(
(:BMSduplicateBlockMemory_call, libscip),
Ptr{Cvoid},
(Ptr{BMS_BLKMEM}, Ptr{Cvoid}, Csize_t, Ptr{Cchar}, Cint),
blkmem,
source,
size,
filename,
line,
)
end
function BMSduplicateBlockMemoryArray_call(
blkmem,
source,
num,
typesize,
filename,
line,
)
ccall(
(:BMSduplicateBlockMemoryArray_call, libscip),
Ptr{Cvoid},
(Ptr{BMS_BLKMEM}, Ptr{Cvoid}, Csize_t, Csize_t, Ptr{Cchar}, Cint),
blkmem,
source,
num,
typesize,
filename,
line,
)
end
function SCIPensureBlockMemoryArray_call(
scip,
arrayptr,
elemsize,
arraysize,
minsize,
)
ccall(
(:SCIPensureBlockMemoryArray_call, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{Cvoid}}, Csize_t, Ptr{Cint}, Cint),
scip,
arrayptr,
elemsize,
arraysize,
minsize,
)
end
function BMSfreeBlockMemory_call(blkmem, ptr, size, filename, line)
ccall(
(:BMSfreeBlockMemory_call, libscip),
Cvoid,
(Ptr{BMS_BLKMEM}, Ptr{Ptr{Cvoid}}, Csize_t, Ptr{Cchar}, Cint),
blkmem,
ptr,
size,
filename,
line,
)
end
function BMSfreeBlockMemoryNull_call(blkmem, ptr, size, filename, line)
ccall(
(:BMSfreeBlockMemoryNull_call, libscip),
Cvoid,
(Ptr{BMS_BLKMEM}, Ptr{Ptr{Cvoid}}, Csize_t, Ptr{Cchar}, Cint),
blkmem,
ptr,
size,
filename,
line,
)
end
function BMSallocBufferMemory_call(buffer, size, filename, line)
ccall(
(:BMSallocBufferMemory_call, libscip),
Ptr{Cvoid},
(Ptr{BMS_BUFMEM}, Csize_t, Ptr{Cchar}, Cint),
buffer,
size,
filename,
line,
)
end
function SCIPbuffer(scip)
ccall((:SCIPbuffer, libscip), Ptr{BMS_BUFMEM}, (Ptr{SCIP},), scip)
end
function BMSallocBufferMemoryArray_call(buffer, num, typesize, filename, line)
ccall(
(:BMSallocBufferMemoryArray_call, libscip),
Ptr{Cvoid},
(Ptr{BMS_BUFMEM}, Csize_t, Csize_t, Ptr{Cchar}, Cint),
buffer,
num,
typesize,
filename,
line,
)
end
function BMSallocClearBufferMemoryArray_call(
buffer,
num,
typesize,
filename,
line,
)
ccall(
(:BMSallocClearBufferMemoryArray_call, libscip),
Ptr{Cvoid},
(Ptr{BMS_BUFMEM}, Csize_t, Csize_t, Ptr{Cchar}, Cint),
buffer,
num,
typesize,
filename,
line,
)
end
function BMSreallocBufferMemoryArray_call(
buffer,
ptr,
num,
typesize,
filename,
line,
)
ccall(
(:BMSreallocBufferMemoryArray_call, libscip),
Ptr{Cvoid},
(Ptr{BMS_BUFMEM}, Ptr{Cvoid}, Csize_t, Csize_t, Ptr{Cchar}, Cint),
buffer,
ptr,
num,
typesize,
filename,
line,
)
end
function BMSduplicateBufferMemory_call(buffer, source, size, filename, line)
ccall(
(:BMSduplicateBufferMemory_call, libscip),
Ptr{Cvoid},
(Ptr{BMS_BUFMEM}, Ptr{Cvoid}, Csize_t, Ptr{Cchar}, Cint),
buffer,
source,
size,
filename,
line,
)
end
function BMSduplicateBufferMemoryArray_call(
buffer,
source,
num,
typesize,
filename,
line,
)
ccall(
(:BMSduplicateBufferMemoryArray_call, libscip),
Ptr{Cvoid},
(Ptr{BMS_BUFMEM}, Ptr{Cvoid}, Csize_t, Csize_t, Ptr{Cchar}, Cint),
buffer,
source,
num,
typesize,
filename,
line,
)
end
function BMSfreeBufferMemory_call(buffer, ptr, filename, line)
ccall(
(:BMSfreeBufferMemory_call, libscip),
Cvoid,
(Ptr{BMS_BUFMEM}, Ptr{Ptr{Cvoid}}, Ptr{Cchar}, Cint),
buffer,
ptr,
filename,
line,
)
end
function BMSfreeBufferMemoryNull_call(buffer, ptr, filename, line)
ccall(
(:BMSfreeBufferMemoryNull_call, libscip),
Cvoid,
(Ptr{BMS_BUFMEM}, Ptr{Ptr{Cvoid}}, Ptr{Cchar}, Cint),
buffer,
ptr,
filename,
line,
)
end
function SCIPcleanbuffer(scip)
ccall((:SCIPcleanbuffer, libscip), Ptr{BMS_BUFMEM}, (Ptr{SCIP},), scip)
end
function SCIPsolveNLPParam(scip, param)
ccall(
(:SCIPsolveNLPParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, SCIP_NLPPARAM),
scip,
param,
)
end
function SCIPsolveNlpiParam(scip, nlpi, problem, param)
ccall(
(:SCIPsolveNlpiParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLPI}, Ptr{SCIP_NLPIPROBLEM}, SCIP_NLPPARAM),
scip,
nlpi,
problem,
param,
)
end
function SCIPshrinkDisjunctiveVarSet(
scip,
vars,
bounds,
boundtypes,
redundants,
nvars,
nredvars,
nglobalred,
setredundant,
glbinfeas,
fullshortening,
)
ccall(
(:SCIPshrinkDisjunctiveVarSet, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Cint,
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Cuint,
),
scip,
vars,
bounds,
boundtypes,
redundants,
nvars,
nredvars,
nglobalred,
setredundant,
glbinfeas,
fullshortening,
)
end
function SCIPcutsTightenCoefficients(
scip,
cutislocal,
cutcoefs,
cutrhs,
cutinds,
cutnnz,
nchgcoefs,
)
ccall(
(:SCIPcutsTightenCoefficients, libscip),
Cuint,
(
Ptr{SCIP},
Cuint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
),
scip,
cutislocal,
cutcoefs,
cutrhs,
cutinds,
cutnnz,
nchgcoefs,
)
end
function SCIPaggrRowCreate(scip, aggrrow)
ccall(
(:SCIPaggrRowCreate, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_AGGRROW}}),
scip,
aggrrow,
)
end
function SCIPaggrRowFree(scip, aggrrow)
ccall(
(:SCIPaggrRowFree, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Ptr{SCIP_AGGRROW}}),
scip,
aggrrow,
)
end
function SCIPaggrRowPrint(scip, aggrrow, file)
ccall(
(:SCIPaggrRowPrint, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_AGGRROW}, Ptr{Libc.FILE}),
scip,
aggrrow,
file,
)
end
function SCIPaggrRowCopy(scip, aggrrow, source)
ccall(
(:SCIPaggrRowCopy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_AGGRROW}}, Ptr{SCIP_AGGRROW}),
scip,
aggrrow,
source,
)
end
function SCIPaggrRowAddRow(scip, aggrrow, row, weight, sidetype)
ccall(
(:SCIPaggrRowAddRow, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_AGGRROW}, Ptr{SCIP_ROW}, Cdouble, Cint),
scip,
aggrrow,
row,
weight,
sidetype,
)
end
function SCIPaggrRowCancelVarWithBound(scip, aggrrow, var, pos, valid)
ccall(
(:SCIPaggrRowCancelVarWithBound, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_AGGRROW}, Ptr{SCIP_VAR}, Cint, Ptr{Cuint}),
scip,
aggrrow,
var,
pos,
valid,
)
end
function SCIPaggrRowAddObjectiveFunction(scip, aggrrow, rhs, scale)
ccall(
(:SCIPaggrRowAddObjectiveFunction, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_AGGRROW}, Cdouble, Cdouble),
scip,
aggrrow,
rhs,
scale,
)
end
function SCIPaggrRowAddCustomCons(
scip,
aggrrow,
inds,
vals,
len,
rhs,
weight,
rank,
_local,
)
ccall(
(:SCIPaggrRowAddCustomCons, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_AGGRROW},
Ptr{Cint},
Ptr{Cdouble},
Cint,
Cdouble,
Cdouble,
Cint,
Cuint,
),
scip,
aggrrow,
inds,
vals,
len,
rhs,
weight,
rank,
_local,
)
end
function SCIPaggrRowCalcEfficacyNorm(scip, aggrrow)
ccall(
(:SCIPaggrRowCalcEfficacyNorm, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_AGGRROW}),
scip,
aggrrow,
)
end
function SCIPaggrRowClear(aggrrow)
ccall((:SCIPaggrRowClear, libscip), Cvoid, (Ptr{SCIP_AGGRROW},), aggrrow)
end
function SCIPaggrRowSumRows(
scip,
aggrrow,
weights,
rowinds,
nrowinds,
sidetypebasis,
allowlocal,
negslack,
maxaggrlen,
valid,
)
ccall(
(:SCIPaggrRowSumRows, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_AGGRROW},
Ptr{Cdouble},
Ptr{Cint},
Cint,
Cuint,
Cuint,
Cint,
Cint,
Ptr{Cuint},
),
scip,
aggrrow,
weights,
rowinds,
nrowinds,
sidetypebasis,
allowlocal,
negslack,
maxaggrlen,
valid,
)
end
function SCIPaggrRowRemoveZeros(scip, aggrrow, useglbbounds, valid)
ccall(
(:SCIPaggrRowRemoveZeros, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_AGGRROW}, Cuint, Ptr{Cuint}),
scip,
aggrrow,
useglbbounds,
valid,
)
end
function SCIPaggrRowGetRowInds(aggrrow)
ccall(
(:SCIPaggrRowGetRowInds, libscip),
Ptr{Cint},
(Ptr{SCIP_AGGRROW},),
aggrrow,
)
end
function SCIPaggrRowGetRowWeights(aggrrow)
ccall(
(:SCIPaggrRowGetRowWeights, libscip),
Ptr{Cdouble},
(Ptr{SCIP_AGGRROW},),
aggrrow,
)
end
function SCIPaggrRowHasRowBeenAdded(aggrrow, row)
ccall(
(:SCIPaggrRowHasRowBeenAdded, libscip),
Cuint,
(Ptr{SCIP_AGGRROW}, Ptr{SCIP_ROW}),
aggrrow,
row,
)
end
function SCIPaggrRowGetAbsWeightRange(aggrrow, minabsrowweight, maxabsrowweight)
ccall(
(:SCIPaggrRowGetAbsWeightRange, libscip),
Cvoid,
(Ptr{SCIP_AGGRROW}, Ptr{Cdouble}, Ptr{Cdouble}),
aggrrow,
minabsrowweight,
maxabsrowweight,
)
end
function SCIPaggrRowGetInds(aggrrow)
ccall(
(:SCIPaggrRowGetInds, libscip),
Ptr{Cint},
(Ptr{SCIP_AGGRROW},),
aggrrow,
)
end
function SCIPaggrRowGetNNz(aggrrow)
ccall((:SCIPaggrRowGetNNz, libscip), Cint, (Ptr{SCIP_AGGRROW},), aggrrow)
end
function SCIPaggrRowGetValue(aggrrow, i)
ccall(
(:SCIPaggrRowGetValue, libscip),
Cdouble,
(Ptr{SCIP_AGGRROW}, Cint),
aggrrow,
i,
)
end
function SCIPaggrRowGetProbvarValue(aggrrow, probindex)
ccall(
(:SCIPaggrRowGetProbvarValue, libscip),
Cdouble,
(Ptr{SCIP_AGGRROW}, Cint),
aggrrow,
probindex,
)
end
function SCIPaggrRowGetRank(aggrrow)
ccall((:SCIPaggrRowGetRank, libscip), Cint, (Ptr{SCIP_AGGRROW},), aggrrow)
end
function SCIPaggrRowIsLocal(aggrrow)
ccall((:SCIPaggrRowIsLocal, libscip), Cuint, (Ptr{SCIP_AGGRROW},), aggrrow)
end
function SCIPaggrRowGetRhs(aggrrow)
ccall((:SCIPaggrRowGetRhs, libscip), Cdouble, (Ptr{SCIP_AGGRROW},), aggrrow)
end
function SCIPaggrRowGetNRows(aggrrow)
ccall((:SCIPaggrRowGetNRows, libscip), Cint, (Ptr{SCIP_AGGRROW},), aggrrow)
end
function SCIPcalcMIR(
scip,
sol,
postprocess,
boundswitch,
usevbds,
allowlocal,
fixintegralrhs,
boundsfortrans,
boundtypesfortrans,
minfrac,
maxfrac,
scale,
aggrrow,
cutcoefs,
cutrhs,
cutinds,
cutnnz,
cutefficacy,
cutrank,
cutislocal,
success,
)
ccall(
(:SCIPcalcMIR, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_SOL},
Cuint,
Cdouble,
Cuint,
Cuint,
Cuint,
Ptr{Cint},
Ptr{SCIP_BOUNDTYPE},
Cdouble,
Cdouble,
Cdouble,
Ptr{SCIP_AGGRROW},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
),
scip,
sol,
postprocess,
boundswitch,
usevbds,
allowlocal,
fixintegralrhs,
boundsfortrans,
boundtypesfortrans,
minfrac,
maxfrac,
scale,
aggrrow,
cutcoefs,
cutrhs,
cutinds,
cutnnz,
cutefficacy,
cutrank,
cutislocal,
success,
)
end
function SCIPcutGenerationHeuristicCMIR(
scip,
sol,
postprocess,
boundswitch,
usevbds,
allowlocal,
maxtestdelta,
boundsfortrans,
boundtypesfortrans,
minfrac,
maxfrac,
aggrrow,
cutcoefs,
cutrhs,
cutinds,
cutnnz,
cutefficacy,
cutrank,
cutislocal,
success,
)
ccall(
(:SCIPcutGenerationHeuristicCMIR, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_SOL},
Cuint,
Cdouble,
Cuint,
Cuint,
Cint,
Ptr{Cint},
Ptr{SCIP_BOUNDTYPE},
Cdouble,
Cdouble,
Ptr{SCIP_AGGRROW},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
),
scip,
sol,
postprocess,
boundswitch,
usevbds,
allowlocal,
maxtestdelta,
boundsfortrans,
boundtypesfortrans,
minfrac,
maxfrac,
aggrrow,
cutcoefs,
cutrhs,
cutinds,
cutnnz,
cutefficacy,
cutrank,
cutislocal,
success,
)
end
function SCIPcalcFlowCover(
scip,
sol,
postprocess,
boundswitch,
allowlocal,
aggrrow,
cutcoefs,
cutrhs,
cutinds,
cutnnz,
cutefficacy,
cutrank,
cutislocal,
success,
)
ccall(
(:SCIPcalcFlowCover, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_SOL},
Cuint,
Cdouble,
Cuint,
Ptr{SCIP_AGGRROW},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
),
scip,
sol,
postprocess,
boundswitch,
allowlocal,
aggrrow,
cutcoefs,
cutrhs,
cutinds,
cutnnz,
cutefficacy,
cutrank,
cutislocal,
success,
)
end
function SCIPcalcKnapsackCover(
scip,
sol,
allowlocal,
aggrrow,
cutcoefs,
cutrhs,
cutinds,
cutnnz,
cutefficacy,
cutrank,
cutislocal,
success,
)
ccall(
(:SCIPcalcKnapsackCover, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_SOL},
Cuint,
Ptr{SCIP_AGGRROW},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
),
scip,
sol,
allowlocal,
aggrrow,
cutcoefs,
cutrhs,
cutinds,
cutnnz,
cutefficacy,
cutrank,
cutislocal,
success,
)
end
function SCIPcalcStrongCG(
scip,
sol,
postprocess,
boundswitch,
usevbds,
allowlocal,
minfrac,
maxfrac,
scale,
aggrrow,
cutcoefs,
cutrhs,
cutinds,
cutnnz,
cutefficacy,
cutrank,
cutislocal,
success,
)
ccall(
(:SCIPcalcStrongCG, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_SOL},
Cuint,
Cdouble,
Cuint,
Cuint,
Cdouble,
Cdouble,
Cdouble,
Ptr{SCIP_AGGRROW},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
),
scip,
sol,
postprocess,
boundswitch,
usevbds,
allowlocal,
minfrac,
maxfrac,
scale,
aggrrow,
cutcoefs,
cutrhs,
cutinds,
cutnnz,
cutefficacy,
cutrank,
cutislocal,
success,
)
end
function SCIPperformGenericDivingAlgorithm(
scip,
diveset,
worksol,
heur,
result,
nodeinfeasible,
iterlim,
divecontext,
)
ccall(
(:SCIPperformGenericDivingAlgorithm, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIVESET},
Ptr{SCIP_SOL},
Ptr{SCIP_HEUR},
Ptr{SCIP_RESULT},
Cuint,
Clonglong,
SCIP_DIVECONTEXT,
),
scip,
diveset,
worksol,
heur,
result,
nodeinfeasible,
iterlim,
divecontext,
)
end
function SCIPcopyLargeNeighborhoodSearch(
sourcescip,
subscip,
varmap,
suffix,
fixedvars,
fixedvals,
nfixedvars,
uselprows,
copycuts,
success,
valid,
)
ccall(
(:SCIPcopyLargeNeighborhoodSearch, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP},
Ptr{SCIP_HASHMAP},
Ptr{Cchar},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cint,
Cuint,
Cuint,
Ptr{Cuint},
Ptr{Cuint},
),
sourcescip,
subscip,
varmap,
suffix,
fixedvars,
fixedvals,
nfixedvars,
uselprows,
copycuts,
success,
valid,
)
end
function SCIPaddTrustregionNeighborhoodConstraint(
scip,
subscip,
subvars,
violpenalty,
)
ccall(
(:SCIPaddTrustregionNeighborhoodConstraint, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP}, Ptr{Ptr{SCIP_VAR}}, Cdouble),
scip,
subscip,
subvars,
violpenalty,
)
end
function SCIPincludeBanditvtable(
scip,
banditvtable,
name,
banditfree,
banditselect,
banditupdate,
banditreset,
)
ccall(
(:SCIPincludeBanditvtable, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_BANDITVTABLE}},
Ptr{Cchar},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
),
scip,
banditvtable,
name,
banditfree,
banditselect,
banditupdate,
banditreset,
)
end
function SCIPfindBanditvtable(scip, name)
ccall(
(:SCIPfindBanditvtable, libscip),
Ptr{SCIP_BANDITVTABLE},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPfreeBandit(scip, bandit)
ccall(
(:SCIPfreeBandit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_BANDIT}}),
scip,
bandit,
)
end
function SCIPresetBandit(scip, bandit, priorities, seed)
ccall(
(:SCIPresetBandit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BANDIT}, Ptr{Cdouble}, Cuint),
scip,
bandit,
priorities,
seed,
)
end
function SCIPincludeBenders(
scip,
name,
desc,
priority,
cutlp,
cutpseudo,
cutrelax,
shareauxvars,
benderscopy,
bendersfree,
bendersinit,
bendersexit,
bendersinitpre,
bendersexitpre,
bendersinitsol,
bendersexitsol,
bendersgetvar,
benderscreatesub,
benderspresubsolve,
benderssolvesubconvex,
benderssolvesub,
benderspostsolve,
bendersfreesub,
bendersdata,
)
ccall(
(:SCIPincludeBenders, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cuint,
Cuint,
Cuint,
Cuint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_BENDERSDATA},
),
scip,
name,
desc,
priority,
cutlp,
cutpseudo,
cutrelax,
shareauxvars,
benderscopy,
bendersfree,
bendersinit,
bendersexit,
bendersinitpre,
bendersexitpre,
bendersinitsol,
bendersexitsol,
bendersgetvar,
benderscreatesub,
benderspresubsolve,
benderssolvesubconvex,
benderssolvesub,
benderspostsolve,
bendersfreesub,
bendersdata,
)
end
function SCIPincludeBendersBasic(
scip,
bendersptr,
name,
desc,
priority,
cutlp,
cutpseudo,
cutrelax,
shareauxvars,
bendersgetvar,
benderscreatesub,
bendersdata,
)
ccall(
(:SCIPincludeBendersBasic, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_BENDERS}},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cuint,
Cuint,
Cuint,
Cuint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_BENDERSDATA},
),
scip,
bendersptr,
name,
desc,
priority,
cutlp,
cutpseudo,
cutrelax,
shareauxvars,
bendersgetvar,
benderscreatesub,
bendersdata,
)
end
function SCIPsetBendersCopy(scip, benders, benderscopy)
ccall(
(:SCIPsetBendersCopy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Ptr{Cvoid}),
scip,
benders,
benderscopy,
)
end
function SCIPsetBendersFree(scip, benders, bendersfree)
ccall(
(:SCIPsetBendersFree, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Ptr{Cvoid}),
scip,
benders,
bendersfree,
)
end
function SCIPsetBendersInit(scip, benders, bendersinit)
ccall(
(:SCIPsetBendersInit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Ptr{Cvoid}),
scip,
benders,
bendersinit,
)
end
function SCIPsetBendersExit(scip, benders, bendersexit)
ccall(
(:SCIPsetBendersExit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Ptr{Cvoid}),
scip,
benders,
bendersexit,
)
end
function SCIPsetBendersInitpre(scip, benders, bendersinitpre)
ccall(
(:SCIPsetBendersInitpre, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Ptr{Cvoid}),
scip,
benders,
bendersinitpre,
)
end
function SCIPsetBendersExitpre(scip, benders, bendersexitpre)
ccall(
(:SCIPsetBendersExitpre, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Ptr{Cvoid}),
scip,
benders,
bendersexitpre,
)
end
function SCIPsetBendersInitsol(scip, benders, bendersinitsol)
ccall(
(:SCIPsetBendersInitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Ptr{Cvoid}),
scip,
benders,
bendersinitsol,
)
end
function SCIPsetBendersExitsol(scip, benders, bendersexitsol)
ccall(
(:SCIPsetBendersExitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Ptr{Cvoid}),
scip,
benders,
bendersexitsol,
)
end
function SCIPsetBendersPresubsolve(scip, benders, benderspresubsolve)
ccall(
(:SCIPsetBendersPresubsolve, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Ptr{Cvoid}),
scip,
benders,
benderspresubsolve,
)
end
function SCIPsetBendersSolveAndFreesub(
scip,
benders,
benderssolvesubconvex,
benderssolvesub,
bendersfreesub,
)
ccall(
(:SCIPsetBendersSolveAndFreesub, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}),
scip,
benders,
benderssolvesubconvex,
benderssolvesub,
bendersfreesub,
)
end
function SCIPsetBendersPostsolve(scip, benders, benderspostsolve)
ccall(
(:SCIPsetBendersPostsolve, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Ptr{Cvoid}),
scip,
benders,
benderspostsolve,
)
end
function SCIPsetBendersSubproblemComp(scip, benders, benderssubcomp)
ccall(
(:SCIPsetBendersSubproblemComp, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Ptr{Cvoid}),
scip,
benders,
benderssubcomp,
)
end
function SCIPfindBenders(scip, name)
ccall(
(:SCIPfindBenders, libscip),
Ptr{SCIP_BENDERS},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetBenders(scip)
ccall(
(:SCIPgetBenders, libscip),
Ptr{Ptr{SCIP_BENDERS}},
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNBenders(scip)
ccall((:SCIPgetNBenders, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNActiveBenders(scip)
ccall((:SCIPgetNActiveBenders, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPactivateBenders(scip, benders, nsubproblems)
ccall(
(:SCIPactivateBenders, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Cint),
scip,
benders,
nsubproblems,
)
end
function SCIPdeactivateBenders(scip, benders)
ccall(
(:SCIPdeactivateBenders, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}),
scip,
benders,
)
end
function SCIPsetBendersPriority(scip, benders, priority)
ccall(
(:SCIPsetBendersPriority, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Cint),
scip,
benders,
priority,
)
end
function SCIPsolveBendersSubproblems(
scip,
benders,
sol,
result,
infeasible,
auxviol,
type,
checkint,
)
ccall(
(:SCIPsolveBendersSubproblems, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_BENDERS},
Ptr{SCIP_SOL},
Ptr{SCIP_RESULT},
Ptr{Cuint},
Ptr{Cuint},
SCIP_BENDERSENFOTYPE,
Cuint,
),
scip,
benders,
sol,
result,
infeasible,
auxviol,
type,
checkint,
)
end
function SCIPgetBendersMasterVar(scip, benders, var, mappedvar)
ccall(
(:SCIPgetBendersMasterVar, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Ptr{SCIP_VAR}, Ptr{Ptr{SCIP_VAR}}),
scip,
benders,
var,
mappedvar,
)
end
function SCIPgetBendersSubproblemVar(scip, benders, var, mappedvar, probnumber)
ccall(
(:SCIPgetBendersSubproblemVar, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Ptr{SCIP_VAR}, Ptr{Ptr{SCIP_VAR}}, Cint),
scip,
benders,
var,
mappedvar,
probnumber,
)
end
function SCIPgetBendersNSubproblems(scip, benders)
ccall(
(:SCIPgetBendersNSubproblems, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}),
scip,
benders,
)
end
function SCIPaddBendersSubproblem(scip, benders, subproblem)
ccall(
(:SCIPaddBendersSubproblem, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Ptr{SCIP}),
scip,
benders,
subproblem,
)
end
function SCIPsetupBendersSubproblem(scip, benders, sol, probnumber, type)
ccall(
(:SCIPsetupBendersSubproblem, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_BENDERS},
Ptr{SCIP_SOL},
Cint,
SCIP_BENDERSENFOTYPE,
),
scip,
benders,
sol,
probnumber,
type,
)
end
function SCIPsolveBendersSubproblem(
scip,
benders,
sol,
probnumber,
infeasible,
solvecip,
objective,
)
ccall(
(:SCIPsolveBendersSubproblem, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_BENDERS},
Ptr{SCIP_SOL},
Cint,
Ptr{Cuint},
Cuint,
Ptr{Cdouble},
),
scip,
benders,
sol,
probnumber,
infeasible,
solvecip,
objective,
)
end
function SCIPfreeBendersSubproblem(scip, benders, probnumber)
ccall(
(:SCIPfreeBendersSubproblem, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Cint),
scip,
benders,
probnumber,
)
end
function SCIPcheckBendersSubproblemOptimality(
scip,
benders,
sol,
probnumber,
optimal,
)
ccall(
(:SCIPcheckBendersSubproblemOptimality, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Ptr{SCIP_SOL}, Cint, Ptr{Cuint}),
scip,
benders,
sol,
probnumber,
optimal,
)
end
function SCIPgetBendersAuxiliaryVarVal(scip, benders, sol, probnumber)
ccall(
(:SCIPgetBendersAuxiliaryVarVal, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Ptr{SCIP_SOL}, Cint),
scip,
benders,
sol,
probnumber,
)
end
function SCIPcomputeBendersSubproblemLowerbound(
scip,
benders,
probnumber,
lowerbound,
infeasible,
)
ccall(
(:SCIPcomputeBendersSubproblemLowerbound, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Cint, Ptr{Cdouble}, Ptr{Cuint}),
scip,
benders,
probnumber,
lowerbound,
infeasible,
)
end
function SCIPmergeBendersSubproblemIntoMaster(
scip,
benders,
varmap,
consmap,
probnumber,
)
ccall(
(:SCIPmergeBendersSubproblemIntoMaster, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_BENDERS},
Ptr{SCIP_HASHMAP},
Ptr{SCIP_HASHMAP},
Cint,
),
scip,
benders,
varmap,
consmap,
probnumber,
)
end
function SCIPapplyBendersDecomposition(scip, decompindex)
ccall(
(:SCIPapplyBendersDecomposition, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cint),
scip,
decompindex,
)
end
function SCIPincludeBenderscut(
scip,
benders,
name,
desc,
priority,
islpcut,
benderscutcopy,
benderscutfree,
benderscutinit,
benderscutexit,
benderscutinitsol,
benderscutexitsol,
benderscutexec,
benderscutdata,
)
ccall(
(:SCIPincludeBenderscut, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_BENDERS},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cuint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_BENDERSCUTDATA},
),
scip,
benders,
name,
desc,
priority,
islpcut,
benderscutcopy,
benderscutfree,
benderscutinit,
benderscutexit,
benderscutinitsol,
benderscutexitsol,
benderscutexec,
benderscutdata,
)
end
function SCIPincludeBenderscutBasic(
scip,
benders,
benderscutptr,
name,
desc,
priority,
islpcut,
benderscutexec,
benderscutdata,
)
ccall(
(:SCIPincludeBenderscutBasic, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_BENDERS},
Ptr{Ptr{SCIP_BENDERSCUT}},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cuint,
Ptr{Cvoid},
Ptr{SCIP_BENDERSCUTDATA},
),
scip,
benders,
benderscutptr,
name,
desc,
priority,
islpcut,
benderscutexec,
benderscutdata,
)
end
function SCIPsetBenderscutCopy(scip, benderscut, benderscutcopy)
ccall(
(:SCIPsetBenderscutCopy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERSCUT}, Ptr{Cvoid}),
scip,
benderscut,
benderscutcopy,
)
end
function SCIPsetBenderscutFree(scip, benderscut, benderscutfree)
ccall(
(:SCIPsetBenderscutFree, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERSCUT}, Ptr{Cvoid}),
scip,
benderscut,
benderscutfree,
)
end
function SCIPsetBenderscutInit(scip, benderscut, benderscutinit)
ccall(
(:SCIPsetBenderscutInit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERSCUT}, Ptr{Cvoid}),
scip,
benderscut,
benderscutinit,
)
end
function SCIPsetBenderscutExit(scip, benderscut, benderscutexit)
ccall(
(:SCIPsetBenderscutExit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERSCUT}, Ptr{Cvoid}),
scip,
benderscut,
benderscutexit,
)
end
function SCIPsetBenderscutInitsol(scip, benderscut, benderscutinitsol)
ccall(
(:SCIPsetBenderscutInitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERSCUT}, Ptr{Cvoid}),
scip,
benderscut,
benderscutinitsol,
)
end
function SCIPsetBenderscutExitsol(scip, benderscut, benderscutexitsol)
ccall(
(:SCIPsetBenderscutExitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERSCUT}, Ptr{Cvoid}),
scip,
benderscut,
benderscutexitsol,
)
end
function SCIPsetBenderscutPriority(scip, benderscut, priority)
ccall(
(:SCIPsetBenderscutPriority, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERSCUT}, Cint),
scip,
benderscut,
priority,
)
end
function SCIPstoreBendersCut(scip, benders, vars, vals, lhs, rhs, nvars)
ccall(
(:SCIPstoreBendersCut, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_BENDERS},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cdouble,
Cdouble,
Cint,
),
scip,
benders,
vars,
vals,
lhs,
rhs,
nvars,
)
end
function SCIPapplyBendersStoredCuts(scip, benders)
ccall(
(:SCIPapplyBendersStoredCuts, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}),
scip,
benders,
)
end
function SCIPincludeBranchrule(
scip,
name,
desc,
priority,
maxdepth,
maxbounddist,
branchcopy,
branchfree,
branchinit,
branchexit,
branchinitsol,
branchexitsol,
branchexeclp,
branchexecext,
branchexecps,
branchruledata,
)
ccall(
(:SCIPincludeBranchrule, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cint,
Cdouble,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_BRANCHRULEDATA},
),
scip,
name,
desc,
priority,
maxdepth,
maxbounddist,
branchcopy,
branchfree,
branchinit,
branchexit,
branchinitsol,
branchexitsol,
branchexeclp,
branchexecext,
branchexecps,
branchruledata,
)
end
function SCIPincludeBranchruleBasic(
scip,
branchruleptr,
name,
desc,
priority,
maxdepth,
maxbounddist,
branchruledata,
)
ccall(
(:SCIPincludeBranchruleBasic, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_BRANCHRULE}},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cint,
Cdouble,
Ptr{SCIP_BRANCHRULEDATA},
),
scip,
branchruleptr,
name,
desc,
priority,
maxdepth,
maxbounddist,
branchruledata,
)
end
function SCIPsetBranchruleCopy(scip, branchrule, branchcopy)
ccall(
(:SCIPsetBranchruleCopy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BRANCHRULE}, Ptr{Cvoid}),
scip,
branchrule,
branchcopy,
)
end
function SCIPsetBranchruleFree(scip, branchrule, branchfree)
ccall(
(:SCIPsetBranchruleFree, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BRANCHRULE}, Ptr{Cvoid}),
scip,
branchrule,
branchfree,
)
end
function SCIPsetBranchruleInit(scip, branchrule, branchinit)
ccall(
(:SCIPsetBranchruleInit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BRANCHRULE}, Ptr{Cvoid}),
scip,
branchrule,
branchinit,
)
end
function SCIPsetBranchruleExit(scip, branchrule, branchexit)
ccall(
(:SCIPsetBranchruleExit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BRANCHRULE}, Ptr{Cvoid}),
scip,
branchrule,
branchexit,
)
end
function SCIPsetBranchruleInitsol(scip, branchrule, branchinitsol)
ccall(
(:SCIPsetBranchruleInitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BRANCHRULE}, Ptr{Cvoid}),
scip,
branchrule,
branchinitsol,
)
end
function SCIPsetBranchruleExitsol(scip, branchrule, branchexitsol)
ccall(
(:SCIPsetBranchruleExitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BRANCHRULE}, Ptr{Cvoid}),
scip,
branchrule,
branchexitsol,
)
end
function SCIPsetBranchruleExecLp(scip, branchrule, branchexeclp)
ccall(
(:SCIPsetBranchruleExecLp, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BRANCHRULE}, Ptr{Cvoid}),
scip,
branchrule,
branchexeclp,
)
end
function SCIPsetBranchruleExecExt(scip, branchrule, branchexecext)
ccall(
(:SCIPsetBranchruleExecExt, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BRANCHRULE}, Ptr{Cvoid}),
scip,
branchrule,
branchexecext,
)
end
function SCIPsetBranchruleExecPs(scip, branchrule, branchexecps)
ccall(
(:SCIPsetBranchruleExecPs, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BRANCHRULE}, Ptr{Cvoid}),
scip,
branchrule,
branchexecps,
)
end
function SCIPfindBranchrule(scip, name)
ccall(
(:SCIPfindBranchrule, libscip),
Ptr{SCIP_BRANCHRULE},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetBranchrules(scip)
ccall(
(:SCIPgetBranchrules, libscip),
Ptr{Ptr{SCIP_BRANCHRULE}},
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNBranchrules(scip)
ccall((:SCIPgetNBranchrules, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPsetBranchrulePriority(scip, branchrule, priority)
ccall(
(:SCIPsetBranchrulePriority, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BRANCHRULE}, Cint),
scip,
branchrule,
priority,
)
end
function SCIPsetBranchruleMaxdepth(scip, branchrule, maxdepth)
ccall(
(:SCIPsetBranchruleMaxdepth, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BRANCHRULE}, Cint),
scip,
branchrule,
maxdepth,
)
end
function SCIPsetBranchruleMaxbounddist(scip, branchrule, maxbounddist)
ccall(
(:SCIPsetBranchruleMaxbounddist, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BRANCHRULE}, Cdouble),
scip,
branchrule,
maxbounddist,
)
end
function SCIPgetLPBranchCands(
scip,
lpcands,
lpcandssol,
lpcandsfrac,
nlpcands,
npriolpcands,
nfracimplvars,
)
ccall(
(:SCIPgetLPBranchCands, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{Ptr{SCIP_VAR}}},
Ptr{Ptr{Cdouble}},
Ptr{Ptr{Cdouble}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
),
scip,
lpcands,
lpcandssol,
lpcandsfrac,
nlpcands,
npriolpcands,
nfracimplvars,
)
end
function SCIPgetNLPBranchCands(scip)
ccall((:SCIPgetNLPBranchCands, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNPrioLPBranchCands(scip)
ccall((:SCIPgetNPrioLPBranchCands, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetExternBranchCands(
scip,
externcands,
externcandssol,
externcandsscore,
nexterncands,
nprioexterncands,
nprioexternbins,
nprioexternints,
nprioexternimpls,
)
ccall(
(:SCIPgetExternBranchCands, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{Ptr{SCIP_VAR}}},
Ptr{Ptr{Cdouble}},
Ptr{Ptr{Cdouble}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
),
scip,
externcands,
externcandssol,
externcandsscore,
nexterncands,
nprioexterncands,
nprioexternbins,
nprioexternints,
nprioexternimpls,
)
end
function SCIPgetNExternBranchCands(scip)
ccall((:SCIPgetNExternBranchCands, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNPrioExternBranchCands(scip)
ccall((:SCIPgetNPrioExternBranchCands, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNPrioExternBranchBins(scip)
ccall((:SCIPgetNPrioExternBranchBins, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNPrioExternBranchInts(scip)
ccall((:SCIPgetNPrioExternBranchInts, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNPrioExternBranchImpls(scip)
ccall((:SCIPgetNPrioExternBranchImpls, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNPrioExternBranchConts(scip)
ccall((:SCIPgetNPrioExternBranchConts, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPaddExternBranchCand(scip, var, score, solval)
ccall(
(:SCIPaddExternBranchCand, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble, Cdouble),
scip,
var,
score,
solval,
)
end
function SCIPclearExternBranchCands(scip)
ccall((:SCIPclearExternBranchCands, libscip), Cvoid, (Ptr{SCIP},), scip)
end
function SCIPcontainsExternBranchCand(scip, var)
ccall(
(:SCIPcontainsExternBranchCand, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetPseudoBranchCands(
scip,
pseudocands,
npseudocands,
npriopseudocands,
)
ccall(
(:SCIPgetPseudoBranchCands, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{Ptr{SCIP_VAR}}}, Ptr{Cint}, Ptr{Cint}),
scip,
pseudocands,
npseudocands,
npriopseudocands,
)
end
function SCIPgetNPseudoBranchCands(scip)
ccall((:SCIPgetNPseudoBranchCands, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNPrioPseudoBranchCands(scip)
ccall((:SCIPgetNPrioPseudoBranchCands, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNPrioPseudoBranchBins(scip)
ccall((:SCIPgetNPrioPseudoBranchBins, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNPrioPseudoBranchInts(scip)
ccall((:SCIPgetNPrioPseudoBranchInts, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNPrioPseudoBranchImpls(scip)
ccall((:SCIPgetNPrioPseudoBranchImpls, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetBranchScore(scip, var, downgain, upgain)
ccall(
(:SCIPgetBranchScore, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble, Cdouble),
scip,
var,
downgain,
upgain,
)
end
function SCIPgetBranchScoreMultiple(scip, var, nchildren, gains)
ccall(
(:SCIPgetBranchScoreMultiple, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cint, Ptr{Cdouble}),
scip,
var,
nchildren,
gains,
)
end
function SCIPgetBranchingPoint(scip, var, suggestion)
ccall(
(:SCIPgetBranchingPoint, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
suggestion,
)
end
function SCIPcalcNodeselPriority(scip, var, branchdir, targetvalue)
ccall(
(:SCIPcalcNodeselPriority, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_BRANCHDIR, Cdouble),
scip,
var,
branchdir,
targetvalue,
)
end
function SCIPcalcChildEstimate(scip, var, targetvalue)
ccall(
(:SCIPcalcChildEstimate, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
targetvalue,
)
end
function SCIPcalcChildEstimateIncrease(scip, var, varsol, targetvalue)
ccall(
(:SCIPcalcChildEstimateIncrease, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble, Cdouble),
scip,
var,
varsol,
targetvalue,
)
end
function SCIPcreateChild(scip, node, nodeselprio, estimate)
ccall(
(:SCIPcreateChild, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_NODE}}, Cdouble, Cdouble),
scip,
node,
nodeselprio,
estimate,
)
end
function SCIPbranchVar(scip, var, downchild, eqchild, upchild)
ccall(
(:SCIPbranchVar, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Ptr{Ptr{SCIP_NODE}},
Ptr{Ptr{SCIP_NODE}},
Ptr{Ptr{SCIP_NODE}},
),
scip,
var,
downchild,
eqchild,
upchild,
)
end
function SCIPbranchVarHole(scip, var, left, right, downchild, upchild)
ccall(
(:SCIPbranchVarHole, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Cdouble,
Cdouble,
Ptr{Ptr{SCIP_NODE}},
Ptr{Ptr{SCIP_NODE}},
),
scip,
var,
left,
right,
downchild,
upchild,
)
end
function SCIPbranchVarVal(scip, var, val, downchild, eqchild, upchild)
ccall(
(:SCIPbranchVarVal, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Cdouble,
Ptr{Ptr{SCIP_NODE}},
Ptr{Ptr{SCIP_NODE}},
Ptr{Ptr{SCIP_NODE}},
),
scip,
var,
val,
downchild,
eqchild,
upchild,
)
end
function SCIPbranchVarValNary(
scip,
var,
val,
n,
minwidth,
widthfactor,
nchildren,
)
ccall(
(:SCIPbranchVarValNary, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble, Cint, Cdouble, Cdouble, Ptr{Cint}),
scip,
var,
val,
n,
minwidth,
widthfactor,
nchildren,
)
end
function SCIPbranchLP(scip, result)
ccall(
(:SCIPbranchLP, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_RESULT}),
scip,
result,
)
end
function SCIPbranchExtern(scip, result)
ccall(
(:SCIPbranchExtern, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_RESULT}),
scip,
result,
)
end
function SCIPbranchPseudo(scip, result)
ccall(
(:SCIPbranchPseudo, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_RESULT}),
scip,
result,
)
end
function SCIPincludeCompr(
scip,
name,
desc,
priority,
minnnodes,
comprcopy,
comprfree,
comprinit,
comprexit,
comprinitsol,
comprexitsol,
comprexec,
comprdata,
)
ccall(
(:SCIPincludeCompr, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_COMPRDATA},
),
scip,
name,
desc,
priority,
minnnodes,
comprcopy,
comprfree,
comprinit,
comprexit,
comprinitsol,
comprexitsol,
comprexec,
comprdata,
)
end
function SCIPincludeComprBasic(
scip,
compr,
name,
desc,
priority,
minnnodes,
comprexec,
comprdata,
)
ccall(
(:SCIPincludeComprBasic, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_COMPR}},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cint,
Ptr{Cvoid},
Ptr{SCIP_COMPRDATA},
),
scip,
compr,
name,
desc,
priority,
minnnodes,
comprexec,
comprdata,
)
end
function SCIPsetComprCopy(scip, compr, comprcopy)
ccall(
(:SCIPsetComprCopy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_COMPR}, Ptr{Cvoid}),
scip,
compr,
comprcopy,
)
end
function SCIPsetComprFree(scip, compr, comprfree)
ccall(
(:SCIPsetComprFree, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_COMPR}, Ptr{Cvoid}),
scip,
compr,
comprfree,
)
end
function SCIPsetComprInit(scip, compr, comprinit)
ccall(
(:SCIPsetComprInit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_COMPR}, Ptr{Cvoid}),
scip,
compr,
comprinit,
)
end
function SCIPsetComprExit(scip, compr, comprexit)
ccall(
(:SCIPsetComprExit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_COMPR}, Ptr{Cvoid}),
scip,
compr,
comprexit,
)
end
function SCIPsetComprInitsol(scip, compr, comprinitsol)
ccall(
(:SCIPsetComprInitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_COMPR}, Ptr{Cvoid}),
scip,
compr,
comprinitsol,
)
end
function SCIPsetComprExitsol(scip, compr, comprexitsol)
ccall(
(:SCIPsetComprExitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_COMPR}, Ptr{Cvoid}),
scip,
compr,
comprexitsol,
)
end
function SCIPfindCompr(scip, name)
ccall(
(:SCIPfindCompr, libscip),
Ptr{SCIP_COMPR},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetComprs(scip)
ccall((:SCIPgetComprs, libscip), Ptr{Ptr{SCIP_COMPR}}, (Ptr{SCIP},), scip)
end
function SCIPgetNCompr(scip)
ccall((:SCIPgetNCompr, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPsetComprPriority(scip, compr, priority)
ccall(
(:SCIPsetComprPriority, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_COMPR}, Cint),
scip,
compr,
priority,
)
end
function SCIPincludeConcsolverType(
scip,
name,
prefpriodefault,
concsolvercreateinst,
concsolverdestroyinst,
concsolverinitseeds,
concsolverexec,
concsolvercopysolvdata,
concsolverstop,
concsolversyncwrite,
concsolversyncread,
concsolvertypefreedata,
data,
)
ccall(
(:SCIPincludeConcsolverType, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Cdouble,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_CONCSOLVERTYPEDATA},
),
scip,
name,
prefpriodefault,
concsolvercreateinst,
concsolverdestroyinst,
concsolverinitseeds,
concsolverexec,
concsolvercopysolvdata,
concsolverstop,
concsolversyncwrite,
concsolversyncread,
concsolvertypefreedata,
data,
)
end
function SCIPfindConcsolverType(scip, name)
ccall(
(:SCIPfindConcsolverType, libscip),
Ptr{SCIP_CONCSOLVERTYPE},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetConcsolverTypes(scip)
ccall(
(:SCIPgetConcsolverTypes, libscip),
Ptr{Ptr{SCIP_CONCSOLVERTYPE}},
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNConcsolverTypes(scip)
ccall((:SCIPgetNConcsolverTypes, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPconstructSyncstore(scip)
ccall((:SCIPconstructSyncstore, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPfreeSyncstore(scip)
ccall((:SCIPfreeSyncstore, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPgetSyncstore(scip)
ccall((:SCIPgetSyncstore, libscip), Ptr{SCIP_SYNCSTORE}, (Ptr{SCIP},), scip)
end
function SCIPincludeConflicthdlr(
scip,
name,
desc,
priority,
conflictcopy,
conflictfree,
conflictinit,
conflictexit,
conflictinitsol,
conflictexitsol,
conflictexec,
conflicthdlrdata,
)
ccall(
(:SCIPincludeConflicthdlr, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_CONFLICTHDLRDATA},
),
scip,
name,
desc,
priority,
conflictcopy,
conflictfree,
conflictinit,
conflictexit,
conflictinitsol,
conflictexitsol,
conflictexec,
conflicthdlrdata,
)
end
function SCIPincludeConflicthdlrBasic(
scip,
conflicthdlrptr,
name,
desc,
priority,
conflictexec,
conflicthdlrdata,
)
ccall(
(:SCIPincludeConflicthdlrBasic, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONFLICTHDLR}},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Ptr{Cvoid},
Ptr{SCIP_CONFLICTHDLRDATA},
),
scip,
conflicthdlrptr,
name,
desc,
priority,
conflictexec,
conflicthdlrdata,
)
end
function SCIPsetConflicthdlrCopy(scip, conflicthdlr, conflictcopy)
ccall(
(:SCIPsetConflicthdlrCopy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONFLICTHDLR}, Ptr{Cvoid}),
scip,
conflicthdlr,
conflictcopy,
)
end
function SCIPsetConflicthdlrFree(scip, conflicthdlr, conflictfree)
ccall(
(:SCIPsetConflicthdlrFree, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONFLICTHDLR}, Ptr{Cvoid}),
scip,
conflicthdlr,
conflictfree,
)
end
function SCIPsetConflicthdlrInit(scip, conflicthdlr, conflictinit)
ccall(
(:SCIPsetConflicthdlrInit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONFLICTHDLR}, Ptr{Cvoid}),
scip,
conflicthdlr,
conflictinit,
)
end
function SCIPsetConflicthdlrExit(scip, conflicthdlr, conflictexit)
ccall(
(:SCIPsetConflicthdlrExit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONFLICTHDLR}, Ptr{Cvoid}),
scip,
conflicthdlr,
conflictexit,
)
end
function SCIPsetConflicthdlrInitsol(scip, conflicthdlr, conflictinitsol)
ccall(
(:SCIPsetConflicthdlrInitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONFLICTHDLR}, Ptr{Cvoid}),
scip,
conflicthdlr,
conflictinitsol,
)
end
function SCIPsetConflicthdlrExitsol(scip, conflicthdlr, conflictexitsol)
ccall(
(:SCIPsetConflicthdlrExitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONFLICTHDLR}, Ptr{Cvoid}),
scip,
conflicthdlr,
conflictexitsol,
)
end
function SCIPfindConflicthdlr(scip, name)
ccall(
(:SCIPfindConflicthdlr, libscip),
Ptr{SCIP_CONFLICTHDLR},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetConflicthdlrs(scip)
ccall(
(:SCIPgetConflicthdlrs, libscip),
Ptr{Ptr{SCIP_CONFLICTHDLR}},
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNConflicthdlrs(scip)
ccall((:SCIPgetNConflicthdlrs, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPsetConflicthdlrPriority(scip, conflicthdlr, priority)
ccall(
(:SCIPsetConflicthdlrPriority, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONFLICTHDLR}, Cint),
scip,
conflicthdlr,
priority,
)
end
function SCIPisConflictAnalysisApplicable(scip)
ccall(
(:SCIPisConflictAnalysisApplicable, libscip),
Cuint,
(Ptr{SCIP},),
scip,
)
end
function SCIPinitConflictAnalysis(scip, conftype, iscutoffinvolved)
ccall(
(:SCIPinitConflictAnalysis, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, SCIP_CONFTYPE, Cuint),
scip,
conftype,
iscutoffinvolved,
)
end
function SCIPaddConflictLb(scip, var, bdchgidx)
ccall(
(:SCIPaddConflictLb, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Ptr{SCIP_BDCHGIDX}),
scip,
var,
bdchgidx,
)
end
function SCIPaddConflictRelaxedLb(scip, var, bdchgidx, relaxedlb)
ccall(
(:SCIPaddConflictRelaxedLb, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Ptr{SCIP_BDCHGIDX}, Cdouble),
scip,
var,
bdchgidx,
relaxedlb,
)
end
function SCIPaddConflictUb(scip, var, bdchgidx)
ccall(
(:SCIPaddConflictUb, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Ptr{SCIP_BDCHGIDX}),
scip,
var,
bdchgidx,
)
end
function SCIPaddConflictRelaxedUb(scip, var, bdchgidx, relaxedub)
ccall(
(:SCIPaddConflictRelaxedUb, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Ptr{SCIP_BDCHGIDX}, Cdouble),
scip,
var,
bdchgidx,
relaxedub,
)
end
function SCIPaddConflictBd(scip, var, boundtype, bdchgidx)
ccall(
(:SCIPaddConflictBd, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_BOUNDTYPE, Ptr{SCIP_BDCHGIDX}),
scip,
var,
boundtype,
bdchgidx,
)
end
function SCIPaddConflictRelaxedBd(scip, var, boundtype, bdchgidx, relaxedbd)
ccall(
(:SCIPaddConflictRelaxedBd, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_BOUNDTYPE, Ptr{SCIP_BDCHGIDX}, Cdouble),
scip,
var,
boundtype,
bdchgidx,
relaxedbd,
)
end
function SCIPaddConflictBinvar(scip, var)
ccall(
(:SCIPaddConflictBinvar, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPisConflictVarUsed(scip, var, boundtype, bdchgidx, used)
ccall(
(:SCIPisConflictVarUsed, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
SCIP_BOUNDTYPE,
Ptr{SCIP_BDCHGIDX},
Ptr{Cuint},
),
scip,
var,
boundtype,
bdchgidx,
used,
)
end
function SCIPgetConflictVarLb(scip, var)
ccall(
(:SCIPgetConflictVarLb, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetConflictVarUb(scip, var)
ccall(
(:SCIPgetConflictVarUb, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPanalyzeConflict(scip, validdepth, success)
ccall(
(:SCIPanalyzeConflict, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cint, Ptr{Cuint}),
scip,
validdepth,
success,
)
end
function SCIPanalyzeConflictCons(scip, cons, success)
ccall(
(:SCIPanalyzeConflictCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{Cuint}),
scip,
cons,
success,
)
end
function SCIPincludeConshdlr(
scip,
name,
desc,
sepapriority,
enfopriority,
chckpriority,
sepafreq,
propfreq,
eagerfreq,
maxprerounds,
delaysepa,
delayprop,
needscons,
proptiming,
presoltiming,
conshdlrcopy,
consfree,
consinit,
consexit,
consinitpre,
consexitpre,
consinitsol,
consexitsol,
consdelete,
constrans,
consinitlp,
conssepalp,
conssepasol,
consenfolp,
consenforelax,
consenfops,
conscheck,
consprop,
conspresol,
consresprop,
conslock,
consactive,
consdeactive,
consenable,
consdisable,
consdelvars,
consprint,
conscopy,
consparse,
consgetvars,
consgetnvars,
consgetdivebdchgs,
conshdlrdata,
)
ccall(
(:SCIPincludeConshdlr, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cint,
Cint,
Cint,
Cint,
Cint,
Cint,
Cuint,
Cuint,
Cuint,
SCIP_PROPTIMING,
SCIP_PRESOLTIMING,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_CONSHDLRDATA},
),
scip,
name,
desc,
sepapriority,
enfopriority,
chckpriority,
sepafreq,
propfreq,
eagerfreq,
maxprerounds,
delaysepa,
delayprop,
needscons,
proptiming,
presoltiming,
conshdlrcopy,
consfree,
consinit,
consexit,
consinitpre,
consexitpre,
consinitsol,
consexitsol,
consdelete,
constrans,
consinitlp,
conssepalp,
conssepasol,
consenfolp,
consenforelax,
consenfops,
conscheck,
consprop,
conspresol,
consresprop,
conslock,
consactive,
consdeactive,
consenable,
consdisable,
consdelvars,
consprint,
conscopy,
consparse,
consgetvars,
consgetnvars,
consgetdivebdchgs,
conshdlrdata,
)
end
function SCIPincludeConshdlrBasic(
scip,
conshdlrptr,
name,
desc,
enfopriority,
chckpriority,
eagerfreq,
needscons,
consenfolp,
consenfops,
conscheck,
conslock,
conshdlrdata,
)
ccall(
(:SCIPincludeConshdlrBasic, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONSHDLR}},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cint,
Cint,
Cuint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_CONSHDLRDATA},
),
scip,
conshdlrptr,
name,
desc,
enfopriority,
chckpriority,
eagerfreq,
needscons,
consenfolp,
consenfops,
conscheck,
conslock,
conshdlrdata,
)
end
function SCIPsetConshdlrSepa(
scip,
conshdlr,
conssepalp,
conssepasol,
sepafreq,
sepapriority,
delaysepa,
)
ccall(
(:SCIPsetConshdlrSepa, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_CONSHDLR},
Ptr{Cvoid},
Ptr{Cvoid},
Cint,
Cint,
Cuint,
),
scip,
conshdlr,
conssepalp,
conssepasol,
sepafreq,
sepapriority,
delaysepa,
)
end
function SCIPsetConshdlrProp(
scip,
conshdlr,
consprop,
propfreq,
delayprop,
proptiming,
)
ccall(
(:SCIPsetConshdlrProp, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_CONSHDLR},
Ptr{Cvoid},
Cint,
Cuint,
SCIP_PROPTIMING,
),
scip,
conshdlr,
consprop,
propfreq,
delayprop,
proptiming,
)
end
function SCIPsetConshdlrEnforelax(scip, conshdlr, consenforelax)
ccall(
(:SCIPsetConshdlrEnforelax, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
consenforelax,
)
end
function SCIPsetConshdlrCopy(scip, conshdlr, conshdlrcopy, conscopy)
ccall(
(:SCIPsetConshdlrCopy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}, Ptr{Cvoid}),
scip,
conshdlr,
conshdlrcopy,
conscopy,
)
end
function SCIPsetConshdlrFree(scip, conshdlr, consfree)
ccall(
(:SCIPsetConshdlrFree, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
consfree,
)
end
function SCIPsetConshdlrInit(scip, conshdlr, consinit)
ccall(
(:SCIPsetConshdlrInit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
consinit,
)
end
function SCIPsetConshdlrExit(scip, conshdlr, consexit)
ccall(
(:SCIPsetConshdlrExit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
consexit,
)
end
function SCIPsetConshdlrInitsol(scip, conshdlr, consinitsol)
ccall(
(:SCIPsetConshdlrInitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
consinitsol,
)
end
function SCIPsetConshdlrExitsol(scip, conshdlr, consexitsol)
ccall(
(:SCIPsetConshdlrExitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
consexitsol,
)
end
function SCIPsetConshdlrInitpre(scip, conshdlr, consinitpre)
ccall(
(:SCIPsetConshdlrInitpre, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
consinitpre,
)
end
function SCIPsetConshdlrExitpre(scip, conshdlr, consexitpre)
ccall(
(:SCIPsetConshdlrExitpre, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
consexitpre,
)
end
function SCIPsetConshdlrPresol(
scip,
conshdlr,
conspresol,
maxprerounds,
presoltiming,
)
ccall(
(:SCIPsetConshdlrPresol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}, Cint, SCIP_PRESOLTIMING),
scip,
conshdlr,
conspresol,
maxprerounds,
presoltiming,
)
end
function SCIPsetConshdlrDelete(scip, conshdlr, consdelete)
ccall(
(:SCIPsetConshdlrDelete, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
consdelete,
)
end
function SCIPsetConshdlrTrans(scip, conshdlr, constrans)
ccall(
(:SCIPsetConshdlrTrans, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
constrans,
)
end
function SCIPsetConshdlrInitlp(scip, conshdlr, consinitlp)
ccall(
(:SCIPsetConshdlrInitlp, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
consinitlp,
)
end
function SCIPsetConshdlrResprop(scip, conshdlr, consresprop)
ccall(
(:SCIPsetConshdlrResprop, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
consresprop,
)
end
function SCIPsetConshdlrActive(scip, conshdlr, consactive)
ccall(
(:SCIPsetConshdlrActive, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
consactive,
)
end
function SCIPsetConshdlrDeactive(scip, conshdlr, consdeactive)
ccall(
(:SCIPsetConshdlrDeactive, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
consdeactive,
)
end
function SCIPsetConshdlrEnable(scip, conshdlr, consenable)
ccall(
(:SCIPsetConshdlrEnable, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
consenable,
)
end
function SCIPsetConshdlrDisable(scip, conshdlr, consdisable)
ccall(
(:SCIPsetConshdlrDisable, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
consdisable,
)
end
function SCIPsetConshdlrDelvars(scip, conshdlr, consdelvars)
ccall(
(:SCIPsetConshdlrDelvars, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
consdelvars,
)
end
function SCIPsetConshdlrPrint(scip, conshdlr, consprint)
ccall(
(:SCIPsetConshdlrPrint, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
consprint,
)
end
function SCIPsetConshdlrParse(scip, conshdlr, consparse)
ccall(
(:SCIPsetConshdlrParse, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
consparse,
)
end
function SCIPsetConshdlrGetVars(scip, conshdlr, consgetvars)
ccall(
(:SCIPsetConshdlrGetVars, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
consgetvars,
)
end
function SCIPsetConshdlrGetNVars(scip, conshdlr, consgetnvars)
ccall(
(:SCIPsetConshdlrGetNVars, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
consgetnvars,
)
end
function SCIPsetConshdlrGetDiveBdChgs(scip, conshdlr, consgetdivebdchgs)
ccall(
(:SCIPsetConshdlrGetDiveBdChgs, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
scip,
conshdlr,
consgetdivebdchgs,
)
end
function SCIPfindConshdlr(scip, name)
ccall(
(:SCIPfindConshdlr, libscip),
Ptr{SCIP_CONSHDLR},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetConshdlrs(scip)
ccall(
(:SCIPgetConshdlrs, libscip),
Ptr{Ptr{SCIP_CONSHDLR}},
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNConshdlrs(scip)
ccall((:SCIPgetNConshdlrs, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPcreateCons(
scip,
cons,
name,
conshdlr,
consdata,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateCons, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{SCIP_CONSHDLR},
Ptr{SCIP_CONSDATA},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
conshdlr,
consdata,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
end
function SCIPparseCons(
scip,
cons,
str,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
success,
)
ccall(
(:SCIPparseCons, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Ptr{Cuint},
),
scip,
cons,
str,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
success,
)
end
function SCIPcaptureCons(scip, cons)
ccall(
(:SCIPcaptureCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPreleaseCons(scip, cons)
ccall(
(:SCIPreleaseCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_CONS}}),
scip,
cons,
)
end
function SCIPchgConsName(scip, cons, name)
ccall(
(:SCIPchgConsName, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{Cchar}),
scip,
cons,
name,
)
end
function SCIPsetConsInitial(scip, cons, initial)
ccall(
(:SCIPsetConsInitial, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cuint),
scip,
cons,
initial,
)
end
function SCIPsetConsSeparated(scip, cons, separate)
ccall(
(:SCIPsetConsSeparated, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cuint),
scip,
cons,
separate,
)
end
function SCIPsetConsEnforced(scip, cons, enforce)
ccall(
(:SCIPsetConsEnforced, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cuint),
scip,
cons,
enforce,
)
end
function SCIPsetConsChecked(scip, cons, check)
ccall(
(:SCIPsetConsChecked, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cuint),
scip,
cons,
check,
)
end
function SCIPsetConsPropagated(scip, cons, propagate)
ccall(
(:SCIPsetConsPropagated, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cuint),
scip,
cons,
propagate,
)
end
function SCIPsetConsLocal(scip, cons, _local)
ccall(
(:SCIPsetConsLocal, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cuint),
scip,
cons,
_local,
)
end
function SCIPsetConsModifiable(scip, cons, modifiable)
ccall(
(:SCIPsetConsModifiable, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cuint),
scip,
cons,
modifiable,
)
end
function SCIPsetConsDynamic(scip, cons, dynamic)
ccall(
(:SCIPsetConsDynamic, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cuint),
scip,
cons,
dynamic,
)
end
function SCIPsetConsRemovable(scip, cons, removable)
ccall(
(:SCIPsetConsRemovable, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cuint),
scip,
cons,
removable,
)
end
function SCIPsetConsStickingAtNode(scip, cons, stickingatnode)
ccall(
(:SCIPsetConsStickingAtNode, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cuint),
scip,
cons,
stickingatnode,
)
end
function SCIPupdateConsFlags(scip, cons0, cons1)
ccall(
(:SCIPupdateConsFlags, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_CONS}),
scip,
cons0,
cons1,
)
end
function SCIPtransformCons(scip, cons, transcons)
ccall(
(:SCIPtransformCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{Ptr{SCIP_CONS}}),
scip,
cons,
transcons,
)
end
function SCIPtransformConss(scip, nconss, conss, transconss)
ccall(
(:SCIPtransformConss, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cint, Ptr{Ptr{SCIP_CONS}}, Ptr{Ptr{SCIP_CONS}}),
scip,
nconss,
conss,
transconss,
)
end
function SCIPgetTransformedCons(scip, cons, transcons)
ccall(
(:SCIPgetTransformedCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{Ptr{SCIP_CONS}}),
scip,
cons,
transcons,
)
end
function SCIPgetTransformedConss(scip, nconss, conss, transconss)
ccall(
(:SCIPgetTransformedConss, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cint, Ptr{Ptr{SCIP_CONS}}, Ptr{Ptr{SCIP_CONS}}),
scip,
nconss,
conss,
transconss,
)
end
function SCIPaddConsAge(scip, cons, deltaage)
ccall(
(:SCIPaddConsAge, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cdouble),
scip,
cons,
deltaage,
)
end
function SCIPincConsAge(scip, cons)
ccall(
(:SCIPincConsAge, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPresetConsAge(scip, cons)
ccall(
(:SCIPresetConsAge, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPenableCons(scip, cons)
ccall(
(:SCIPenableCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPdisableCons(scip, cons)
ccall(
(:SCIPdisableCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPenableConsSeparation(scip, cons)
ccall(
(:SCIPenableConsSeparation, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPdisableConsSeparation(scip, cons)
ccall(
(:SCIPdisableConsSeparation, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPenableConsPropagation(scip, cons)
ccall(
(:SCIPenableConsPropagation, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPdisableConsPropagation(scip, cons)
ccall(
(:SCIPdisableConsPropagation, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPmarkConsPropagate(scip, cons)
ccall(
(:SCIPmarkConsPropagate, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPunmarkConsPropagate(scip, cons)
ccall(
(:SCIPunmarkConsPropagate, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPaddConsLocksType(scip, cons, locktype, nlockspos, nlocksneg)
ccall(
(:SCIPaddConsLocksType, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, SCIP_LOCKTYPE, Cint, Cint),
scip,
cons,
locktype,
nlockspos,
nlocksneg,
)
end
function SCIPaddConsLocks(scip, cons, nlockspos, nlocksneg)
ccall(
(:SCIPaddConsLocks, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cint, Cint),
scip,
cons,
nlockspos,
nlocksneg,
)
end
function SCIPcheckCons(
scip,
cons,
sol,
checkintegrality,
checklprows,
printreason,
result,
)
ccall(
(:SCIPcheckCons, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_CONS},
Ptr{SCIP_SOL},
Cuint,
Cuint,
Cuint,
Ptr{SCIP_RESULT},
),
scip,
cons,
sol,
checkintegrality,
checklprows,
printreason,
result,
)
end
function SCIPenfopsCons(scip, cons, solinfeasible, objinfeasible, result)
ccall(
(:SCIPenfopsCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cuint, Cuint, Ptr{SCIP_RESULT}),
scip,
cons,
solinfeasible,
objinfeasible,
result,
)
end
function SCIPenfolpCons(scip, cons, solinfeasible, result)
ccall(
(:SCIPenfolpCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cuint, Ptr{SCIP_RESULT}),
scip,
cons,
solinfeasible,
result,
)
end
function SCIPenforelaxCons(scip, cons, sol, solinfeasible, result)
ccall(
(:SCIPenforelaxCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_SOL}, Cuint, Ptr{SCIP_RESULT}),
scip,
cons,
sol,
solinfeasible,
result,
)
end
function SCIPinitlpCons(scip, cons, infeasible)
ccall(
(:SCIPinitlpCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{Cuint}),
scip,
cons,
infeasible,
)
end
function SCIPsepalpCons(scip, cons, result)
ccall(
(:SCIPsepalpCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_RESULT}),
scip,
cons,
result,
)
end
function SCIPsepasolCons(scip, cons, sol, result)
ccall(
(:SCIPsepasolCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_SOL}, Ptr{SCIP_RESULT}),
scip,
cons,
sol,
result,
)
end
function SCIPpropCons(scip, cons, proptiming, result)
ccall(
(:SCIPpropCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, SCIP_PROPTIMING, Ptr{SCIP_RESULT}),
scip,
cons,
proptiming,
result,
)
end
function SCIPrespropCons(
scip,
cons,
infervar,
inferinfo,
boundtype,
bdchgidx,
relaxedbd,
result,
)
ccall(
(:SCIPrespropCons, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_CONS},
Ptr{SCIP_VAR},
Cint,
SCIP_BOUNDTYPE,
Ptr{SCIP_BDCHGIDX},
Cdouble,
Ptr{SCIP_RESULT},
),
scip,
cons,
infervar,
inferinfo,
boundtype,
bdchgidx,
relaxedbd,
result,
)
end
function SCIPpresolCons(
scip,
cons,
nrounds,
presoltiming,
nnewfixedvars,
nnewaggrvars,
nnewchgvartypes,
nnewchgbds,
nnewholes,
nnewdelconss,
nnewaddconss,
nnewupgdconss,
nnewchgcoefs,
nnewchgsides,
nfixedvars,
naggrvars,
nchgvartypes,
nchgbds,
naddholes,
ndelconss,
naddconss,
nupgdconss,
nchgcoefs,
nchgsides,
result,
)
ccall(
(:SCIPpresolCons, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_CONS},
Cint,
SCIP_PRESOLTIMING,
Cint,
Cint,
Cint,
Cint,
Cint,
Cint,
Cint,
Cint,
Cint,
Cint,
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{SCIP_RESULT},
),
scip,
cons,
nrounds,
presoltiming,
nnewfixedvars,
nnewaggrvars,
nnewchgvartypes,
nnewchgbds,
nnewholes,
nnewdelconss,
nnewaddconss,
nnewupgdconss,
nnewchgcoefs,
nnewchgsides,
nfixedvars,
naggrvars,
nchgvartypes,
nchgbds,
naddholes,
ndelconss,
naddconss,
nupgdconss,
nchgcoefs,
nchgsides,
result,
)
end
function SCIPactiveCons(scip, cons)
ccall(
(:SCIPactiveCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPdeactiveCons(scip, cons)
ccall(
(:SCIPdeactiveCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPprintCons(scip, cons, file)
ccall(
(:SCIPprintCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{Libc.FILE}),
scip,
cons,
file,
)
end
function SCIPgetConsVars(scip, cons, vars, varssize, success)
ccall(
(:SCIPgetConsVars, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{Ptr{SCIP_VAR}}, Cint, Ptr{Cuint}),
scip,
cons,
vars,
varssize,
success,
)
end
function SCIPgetConsNVars(scip, cons, nvars, success)
ccall(
(:SCIPgetConsNVars, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{Cint}, Ptr{Cuint}),
scip,
cons,
nvars,
success,
)
end
function SCIPcopyPlugins(
sourcescip,
targetscip,
copyreaders,
copypricers,
copyconshdlrs,
copyconflicthdlrs,
copypresolvers,
copyrelaxators,
copyseparators,
copycutselectors,
copypropagators,
copyheuristics,
copyeventhdlrs,
copynodeselectors,
copybranchrules,
copydisplays,
copydialogs,
copytables,
copyexprhdlrs,
copynlpis,
passmessagehdlr,
valid,
)
ccall(
(:SCIPcopyPlugins, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Ptr{Cuint},
),
sourcescip,
targetscip,
copyreaders,
copypricers,
copyconshdlrs,
copyconflicthdlrs,
copypresolvers,
copyrelaxators,
copyseparators,
copycutselectors,
copypropagators,
copyheuristics,
copyeventhdlrs,
copynodeselectors,
copybranchrules,
copydisplays,
copydialogs,
copytables,
copyexprhdlrs,
copynlpis,
passmessagehdlr,
valid,
)
end
function SCIPcopyBenders(sourcescip, targetscip, varmap, threadsafe, valid)
ccall(
(:SCIPcopyBenders, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP}, Ptr{SCIP_HASHMAP}, Cuint, Ptr{Cuint}),
sourcescip,
targetscip,
varmap,
threadsafe,
valid,
)
end
function SCIPcopyProb(sourcescip, targetscip, varmap, consmap, _global, name)
ccall(
(:SCIPcopyProb, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP},
Ptr{SCIP_HASHMAP},
Ptr{SCIP_HASHMAP},
Cuint,
Ptr{Cchar},
),
sourcescip,
targetscip,
varmap,
consmap,
_global,
name,
)
end
function SCIPcopyOrigProb(sourcescip, targetscip, varmap, consmap, name)
ccall(
(:SCIPcopyOrigProb, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP},
Ptr{SCIP_HASHMAP},
Ptr{SCIP_HASHMAP},
Ptr{Cchar},
),
sourcescip,
targetscip,
varmap,
consmap,
name,
)
end
function SCIPenableConsCompression(scip)
ccall(
(:SCIPenableConsCompression, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPisConsCompressionEnabled(scip)
ccall((:SCIPisConsCompressionEnabled, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPgetVarCopy(
sourcescip,
targetscip,
sourcevar,
targetvar,
varmap,
consmap,
_global,
success,
)
ccall(
(:SCIPgetVarCopy, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP},
Ptr{SCIP_VAR},
Ptr{Ptr{SCIP_VAR}},
Ptr{SCIP_HASHMAP},
Ptr{SCIP_HASHMAP},
Cuint,
Ptr{Cuint},
),
sourcescip,
targetscip,
sourcevar,
targetvar,
varmap,
consmap,
_global,
success,
)
end
function SCIPcopyVars(
sourcescip,
targetscip,
varmap,
consmap,
fixedvars,
fixedvals,
nfixedvars,
_global,
)
ccall(
(:SCIPcopyVars, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP},
Ptr{SCIP_HASHMAP},
Ptr{SCIP_HASHMAP},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cint,
Cuint,
),
sourcescip,
targetscip,
varmap,
consmap,
fixedvars,
fixedvals,
nfixedvars,
_global,
)
end
function SCIPcopyOrigVars(
sourcescip,
targetscip,
varmap,
consmap,
fixedvars,
fixedvals,
nfixedvars,
)
ccall(
(:SCIPcopyOrigVars, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP},
Ptr{SCIP_HASHMAP},
Ptr{SCIP_HASHMAP},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cint,
),
sourcescip,
targetscip,
varmap,
consmap,
fixedvars,
fixedvals,
nfixedvars,
)
end
function SCIPmergeVariableStatistics(
sourcescip,
targetscip,
sourcevars,
targetvars,
nvars,
)
ccall(
(:SCIPmergeVariableStatistics, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP}, Ptr{Ptr{SCIP_VAR}}, Ptr{Ptr{SCIP_VAR}}, Cint),
sourcescip,
targetscip,
sourcevars,
targetvars,
nvars,
)
end
function SCIPmergeNLPIStatistics(sourcescip, targetscip, reset)
ccall(
(:SCIPmergeNLPIStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP}, Cuint),
sourcescip,
targetscip,
reset,
)
end
function SCIPtranslateSubSol(scip, subscip, subsol, heur, subvars, newsol)
ccall(
(:SCIPtranslateSubSol, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP},
Ptr{SCIP_SOL},
Ptr{SCIP_HEUR},
Ptr{Ptr{SCIP_VAR}},
Ptr{Ptr{SCIP_SOL}},
),
scip,
subscip,
subsol,
heur,
subvars,
newsol,
)
end
function SCIPtranslateSubSols(scip, subscip, heur, subvars, success, solindex)
ccall(
(:SCIPtranslateSubSols, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP},
Ptr{SCIP_HEUR},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cuint},
Ptr{Cint},
),
scip,
subscip,
heur,
subvars,
success,
solindex,
)
end
function SCIPgetConsCopy(
sourcescip,
targetscip,
sourcecons,
targetcons,
sourceconshdlr,
varmap,
consmap,
name,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
_global,
valid,
)
ccall(
(:SCIPgetConsCopy, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP},
Ptr{SCIP_CONS},
Ptr{Ptr{SCIP_CONS}},
Ptr{SCIP_CONSHDLR},
Ptr{SCIP_HASHMAP},
Ptr{SCIP_HASHMAP},
Ptr{Cchar},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Ptr{Cuint},
),
sourcescip,
targetscip,
sourcecons,
targetcons,
sourceconshdlr,
varmap,
consmap,
name,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
_global,
valid,
)
end
function SCIPcopyConss(
sourcescip,
targetscip,
varmap,
consmap,
_global,
enablepricing,
valid,
)
ccall(
(:SCIPcopyConss, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP},
Ptr{SCIP_HASHMAP},
Ptr{SCIP_HASHMAP},
Cuint,
Cuint,
Ptr{Cuint},
),
sourcescip,
targetscip,
varmap,
consmap,
_global,
enablepricing,
valid,
)
end
function SCIPcopyOrigConss(
sourcescip,
targetscip,
varmap,
consmap,
enablepricing,
valid,
)
ccall(
(:SCIPcopyOrigConss, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP},
Ptr{SCIP_HASHMAP},
Ptr{SCIP_HASHMAP},
Cuint,
Ptr{Cuint},
),
sourcescip,
targetscip,
varmap,
consmap,
enablepricing,
valid,
)
end
function SCIPconvertCutsToConss(scip, varmap, consmap, _global, ncutsadded)
ccall(
(:SCIPconvertCutsToConss, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_HASHMAP}, Ptr{SCIP_HASHMAP}, Cuint, Ptr{Cint}),
scip,
varmap,
consmap,
_global,
ncutsadded,
)
end
function SCIPcopyCuts(
sourcescip,
targetscip,
varmap,
consmap,
_global,
ncutsadded,
)
ccall(
(:SCIPcopyCuts, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP},
Ptr{SCIP_HASHMAP},
Ptr{SCIP_HASHMAP},
Cuint,
Ptr{Cint},
),
sourcescip,
targetscip,
varmap,
consmap,
_global,
ncutsadded,
)
end
function SCIPcopyConflicts(
sourcescip,
targetscip,
varmap,
consmap,
_global,
enablepricing,
valid,
)
ccall(
(:SCIPcopyConflicts, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP},
Ptr{SCIP_HASHMAP},
Ptr{SCIP_HASHMAP},
Cuint,
Cuint,
Ptr{Cuint},
),
sourcescip,
targetscip,
varmap,
consmap,
_global,
enablepricing,
valid,
)
end
function SCIPcopyImplicationsCliques(
sourcescip,
targetscip,
varmap,
consmap,
_global,
infeasible,
nbdchgs,
ncopied,
)
ccall(
(:SCIPcopyImplicationsCliques, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP},
Ptr{SCIP_HASHMAP},
Ptr{SCIP_HASHMAP},
Cuint,
Ptr{Cuint},
Ptr{Cint},
Ptr{Cint},
),
sourcescip,
targetscip,
varmap,
consmap,
_global,
infeasible,
nbdchgs,
ncopied,
)
end
function SCIPcopyParamSettings(sourcescip, targetscip)
ccall(
(:SCIPcopyParamSettings, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP}),
sourcescip,
targetscip,
)
end
function SCIPgetSubscipDepth(scip)
ccall((:SCIPgetSubscipDepth, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPsetSubscipDepth(scip, newdepth)
ccall(
(:SCIPsetSubscipDepth, libscip),
Cvoid,
(Ptr{SCIP}, Cint),
scip,
newdepth,
)
end
function SCIPcopy(
sourcescip,
targetscip,
varmap,
consmap,
suffix,
_global,
enablepricing,
threadsafe,
passmessagehdlr,
valid,
)
ccall(
(:SCIPcopy, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP},
Ptr{SCIP_HASHMAP},
Ptr{SCIP_HASHMAP},
Ptr{Cchar},
Cuint,
Cuint,
Cuint,
Cuint,
Ptr{Cuint},
),
sourcescip,
targetscip,
varmap,
consmap,
suffix,
_global,
enablepricing,
threadsafe,
passmessagehdlr,
valid,
)
end
function SCIPcopyConsCompression(
sourcescip,
targetscip,
varmap,
consmap,
suffix,
fixedvars,
fixedvals,
nfixedvars,
_global,
enablepricing,
threadsafe,
passmessagehdlr,
valid,
)
ccall(
(:SCIPcopyConsCompression, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP},
Ptr{SCIP_HASHMAP},
Ptr{SCIP_HASHMAP},
Ptr{Cchar},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cint,
Cuint,
Cuint,
Cuint,
Cuint,
Ptr{Cuint},
),
sourcescip,
targetscip,
varmap,
consmap,
suffix,
fixedvars,
fixedvals,
nfixedvars,
_global,
enablepricing,
threadsafe,
passmessagehdlr,
valid,
)
end
function SCIPcopyOrig(
sourcescip,
targetscip,
varmap,
consmap,
suffix,
enablepricing,
threadsafe,
passmessagehdlr,
valid,
)
ccall(
(:SCIPcopyOrig, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP},
Ptr{SCIP_HASHMAP},
Ptr{SCIP_HASHMAP},
Ptr{Cchar},
Cuint,
Cuint,
Cuint,
Ptr{Cuint},
),
sourcescip,
targetscip,
varmap,
consmap,
suffix,
enablepricing,
threadsafe,
passmessagehdlr,
valid,
)
end
function SCIPcopyOrigConsCompression(
sourcescip,
targetscip,
varmap,
consmap,
suffix,
fixedvars,
fixedvals,
nfixedvars,
enablepricing,
threadsafe,
passmessagehdlr,
valid,
)
ccall(
(:SCIPcopyOrigConsCompression, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP},
Ptr{SCIP_HASHMAP},
Ptr{SCIP_HASHMAP},
Ptr{Cchar},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cint,
Cuint,
Cuint,
Cuint,
Ptr{Cuint},
),
sourcescip,
targetscip,
varmap,
consmap,
suffix,
fixedvars,
fixedvals,
nfixedvars,
enablepricing,
threadsafe,
passmessagehdlr,
valid,
)
end
function SCIPcheckCopyLimits(sourcescip, success)
ccall(
(:SCIPcheckCopyLimits, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cuint}),
sourcescip,
success,
)
end
function SCIPcopyLimits(sourcescip, targetscip)
ccall(
(:SCIPcopyLimits, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP}),
sourcescip,
targetscip,
)
end
function SCIPsetCommonSubscipParams(
sourcescip,
subscip,
nsubnodes,
nstallnodes,
bestsollimit,
)
ccall(
(:SCIPsetCommonSubscipParams, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP}, Clonglong, Clonglong, Cint),
sourcescip,
subscip,
nsubnodes,
nstallnodes,
bestsollimit,
)
end
function SCIPgetCutLPSolCutoffDistance(scip, sol, cut)
ccall(
(:SCIPgetCutLPSolCutoffDistance, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Ptr{SCIP_ROW}),
scip,
sol,
cut,
)
end
function SCIPgetCutEfficacy(scip, sol, cut)
ccall(
(:SCIPgetCutEfficacy, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Ptr{SCIP_ROW}),
scip,
sol,
cut,
)
end
function SCIPisCutEfficacious(scip, sol, cut)
ccall(
(:SCIPisCutEfficacious, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Ptr{SCIP_ROW}),
scip,
sol,
cut,
)
end
function SCIPisEfficacious(scip, efficacy)
ccall(
(:SCIPisEfficacious, libscip),
Cuint,
(Ptr{SCIP}, Cdouble),
scip,
efficacy,
)
end
function SCIPgetVectorEfficacyNorm(scip, vals, nvals)
ccall(
(:SCIPgetVectorEfficacyNorm, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{Cdouble}, Cint),
scip,
vals,
nvals,
)
end
function SCIPisCutApplicable(scip, cut)
ccall(
(:SCIPisCutApplicable, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
cut,
)
end
function SCIPaddCut(scip, sol, cut, forcecut, infeasible)
ccall(
(:SCIPaddCut, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Ptr{SCIP_ROW}, Cuint, Ptr{Cuint}),
scip,
sol,
cut,
forcecut,
infeasible,
)
end
function SCIPaddRow(scip, row, forcecut, infeasible)
ccall(
(:SCIPaddRow, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROW}, Cuint, Ptr{Cuint}),
scip,
row,
forcecut,
infeasible,
)
end
function SCIPisCutNew(scip, row)
ccall(
(:SCIPisCutNew, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPaddPoolCut(scip, row)
ccall(
(:SCIPaddPoolCut, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPdelPoolCut(scip, row)
ccall(
(:SCIPdelPoolCut, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPgetPoolCuts(scip)
ccall((:SCIPgetPoolCuts, libscip), Ptr{Ptr{SCIP_CUT}}, (Ptr{SCIP},), scip)
end
function SCIPgetNPoolCuts(scip)
ccall((:SCIPgetNPoolCuts, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetGlobalCutpool(scip)
ccall(
(:SCIPgetGlobalCutpool, libscip),
Ptr{SCIP_CUTPOOL},
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateCutpool(scip, cutpool, agelimit)
ccall(
(:SCIPcreateCutpool, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_CUTPOOL}}, Cint),
scip,
cutpool,
agelimit,
)
end
function SCIPfreeCutpool(scip, cutpool)
ccall(
(:SCIPfreeCutpool, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_CUTPOOL}}),
scip,
cutpool,
)
end
function SCIPaddRowCutpool(scip, cutpool, row)
ccall(
(:SCIPaddRowCutpool, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CUTPOOL}, Ptr{SCIP_ROW}),
scip,
cutpool,
row,
)
end
function SCIPaddNewRowCutpool(scip, cutpool, row)
ccall(
(:SCIPaddNewRowCutpool, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CUTPOOL}, Ptr{SCIP_ROW}),
scip,
cutpool,
row,
)
end
function SCIPdelRowCutpool(scip, cutpool, row)
ccall(
(:SCIPdelRowCutpool, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CUTPOOL}, Ptr{SCIP_ROW}),
scip,
cutpool,
row,
)
end
function SCIPseparateCutpool(scip, cutpool, result)
ccall(
(:SCIPseparateCutpool, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CUTPOOL}, Ptr{SCIP_RESULT}),
scip,
cutpool,
result,
)
end
function SCIPseparateSolCutpool(scip, cutpool, sol, pretendroot, result)
ccall(
(:SCIPseparateSolCutpool, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CUTPOOL}, Ptr{SCIP_SOL}, Cuint, Ptr{SCIP_RESULT}),
scip,
cutpool,
sol,
pretendroot,
result,
)
end
function SCIPaddDelayedPoolCut(scip, row)
ccall(
(:SCIPaddDelayedPoolCut, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPdelDelayedPoolCut(scip, row)
ccall(
(:SCIPdelDelayedPoolCut, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPgetDelayedPoolCuts(scip)
ccall(
(:SCIPgetDelayedPoolCuts, libscip),
Ptr{Ptr{SCIP_CUT}},
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNDelayedPoolCuts(scip)
ccall((:SCIPgetNDelayedPoolCuts, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetDelayedGlobalCutpool(scip)
ccall(
(:SCIPgetDelayedGlobalCutpool, libscip),
Ptr{SCIP_CUTPOOL},
(Ptr{SCIP},),
scip,
)
end
function SCIPseparateSol(
scip,
sol,
pretendroot,
allowlocal,
onlydelayed,
delayed,
cutoff,
)
ccall(
(:SCIPseparateSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Cuint, Cuint, Cuint, Ptr{Cuint}, Ptr{Cuint}),
scip,
sol,
pretendroot,
allowlocal,
onlydelayed,
delayed,
cutoff,
)
end
function SCIPgetCuts(scip)
ccall((:SCIPgetCuts, libscip), Ptr{Ptr{SCIP_ROW}}, (Ptr{SCIP},), scip)
end
function SCIPgetNCuts(scip)
ccall((:SCIPgetNCuts, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPclearCuts(scip)
ccall((:SCIPclearCuts, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPremoveInefficaciousCuts(scip)
ccall(
(:SCIPremoveInefficaciousCuts, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateRealarray(scip, realarray)
ccall(
(:SCIPcreateRealarray, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_REALARRAY}}),
scip,
realarray,
)
end
function SCIPfreeRealarray(scip, realarray)
ccall(
(:SCIPfreeRealarray, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_REALARRAY}}),
scip,
realarray,
)
end
function SCIPextendRealarray(scip, realarray, minidx, maxidx)
ccall(
(:SCIPextendRealarray, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_REALARRAY}, Cint, Cint),
scip,
realarray,
minidx,
maxidx,
)
end
function SCIPclearRealarray(scip, realarray)
ccall(
(:SCIPclearRealarray, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_REALARRAY}),
scip,
realarray,
)
end
function SCIPgetRealarrayVal(scip, realarray, idx)
ccall(
(:SCIPgetRealarrayVal, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_REALARRAY}, Cint),
scip,
realarray,
idx,
)
end
function SCIPsetRealarrayVal(scip, realarray, idx, val)
ccall(
(:SCIPsetRealarrayVal, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_REALARRAY}, Cint, Cdouble),
scip,
realarray,
idx,
val,
)
end
function SCIPincRealarrayVal(scip, realarray, idx, incval)
ccall(
(:SCIPincRealarrayVal, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_REALARRAY}, Cint, Cdouble),
scip,
realarray,
idx,
incval,
)
end
function SCIPgetRealarrayMinIdx(scip, realarray)
ccall(
(:SCIPgetRealarrayMinIdx, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_REALARRAY}),
scip,
realarray,
)
end
function SCIPgetRealarrayMaxIdx(scip, realarray)
ccall(
(:SCIPgetRealarrayMaxIdx, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_REALARRAY}),
scip,
realarray,
)
end
function SCIPcreateIntarray(scip, intarray)
ccall(
(:SCIPcreateIntarray, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_INTARRAY}}),
scip,
intarray,
)
end
function SCIPfreeIntarray(scip, intarray)
ccall(
(:SCIPfreeIntarray, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_INTARRAY}}),
scip,
intarray,
)
end
function SCIPextendIntarray(scip, intarray, minidx, maxidx)
ccall(
(:SCIPextendIntarray, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_INTARRAY}, Cint, Cint),
scip,
intarray,
minidx,
maxidx,
)
end
function SCIPclearIntarray(scip, intarray)
ccall(
(:SCIPclearIntarray, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_INTARRAY}),
scip,
intarray,
)
end
function SCIPgetIntarrayVal(scip, intarray, idx)
ccall(
(:SCIPgetIntarrayVal, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_INTARRAY}, Cint),
scip,
intarray,
idx,
)
end
function SCIPsetIntarrayVal(scip, intarray, idx, val)
ccall(
(:SCIPsetIntarrayVal, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_INTARRAY}, Cint, Cint),
scip,
intarray,
idx,
val,
)
end
function SCIPincIntarrayVal(scip, intarray, idx, incval)
ccall(
(:SCIPincIntarrayVal, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_INTARRAY}, Cint, Cint),
scip,
intarray,
idx,
incval,
)
end
function SCIPgetIntarrayMinIdx(scip, intarray)
ccall(
(:SCIPgetIntarrayMinIdx, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_INTARRAY}),
scip,
intarray,
)
end
function SCIPgetIntarrayMaxIdx(scip, intarray)
ccall(
(:SCIPgetIntarrayMaxIdx, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_INTARRAY}),
scip,
intarray,
)
end
function SCIPcreateBoolarray(scip, boolarray)
ccall(
(:SCIPcreateBoolarray, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_BOOLARRAY}}),
scip,
boolarray,
)
end
function SCIPfreeBoolarray(scip, boolarray)
ccall(
(:SCIPfreeBoolarray, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_BOOLARRAY}}),
scip,
boolarray,
)
end
function SCIPextendBoolarray(scip, boolarray, minidx, maxidx)
ccall(
(:SCIPextendBoolarray, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BOOLARRAY}, Cint, Cint),
scip,
boolarray,
minidx,
maxidx,
)
end
function SCIPclearBoolarray(scip, boolarray)
ccall(
(:SCIPclearBoolarray, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BOOLARRAY}),
scip,
boolarray,
)
end
function SCIPgetBoolarrayVal(scip, boolarray, idx)
ccall(
(:SCIPgetBoolarrayVal, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_BOOLARRAY}, Cint),
scip,
boolarray,
idx,
)
end
function SCIPsetBoolarrayVal(scip, boolarray, idx, val)
ccall(
(:SCIPsetBoolarrayVal, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BOOLARRAY}, Cint, Cuint),
scip,
boolarray,
idx,
val,
)
end
function SCIPgetBoolarrayMinIdx(scip, boolarray)
ccall(
(:SCIPgetBoolarrayMinIdx, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_BOOLARRAY}),
scip,
boolarray,
)
end
function SCIPgetBoolarrayMaxIdx(scip, boolarray)
ccall(
(:SCIPgetBoolarrayMaxIdx, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_BOOLARRAY}),
scip,
boolarray,
)
end
function SCIPcreatePtrarray(scip, ptrarray)
ccall(
(:SCIPcreatePtrarray, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_PTRARRAY}}),
scip,
ptrarray,
)
end
function SCIPfreePtrarray(scip, ptrarray)
ccall(
(:SCIPfreePtrarray, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_PTRARRAY}}),
scip,
ptrarray,
)
end
function SCIPextendPtrarray(scip, ptrarray, minidx, maxidx)
ccall(
(:SCIPextendPtrarray, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PTRARRAY}, Cint, Cint),
scip,
ptrarray,
minidx,
maxidx,
)
end
function SCIPclearPtrarray(scip, ptrarray)
ccall(
(:SCIPclearPtrarray, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PTRARRAY}),
scip,
ptrarray,
)
end
function SCIPgetPtrarrayVal(scip, ptrarray, idx)
ccall(
(:SCIPgetPtrarrayVal, libscip),
Ptr{Cvoid},
(Ptr{SCIP}, Ptr{SCIP_PTRARRAY}, Cint),
scip,
ptrarray,
idx,
)
end
function SCIPsetPtrarrayVal(scip, ptrarray, idx, val)
ccall(
(:SCIPsetPtrarrayVal, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PTRARRAY}, Cint, Ptr{Cvoid}),
scip,
ptrarray,
idx,
val,
)
end
function SCIPgetPtrarrayMinIdx(scip, ptrarray)
ccall(
(:SCIPgetPtrarrayMinIdx, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_PTRARRAY}),
scip,
ptrarray,
)
end
function SCIPgetPtrarrayMaxIdx(scip, ptrarray)
ccall(
(:SCIPgetPtrarrayMaxIdx, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_PTRARRAY}),
scip,
ptrarray,
)
end
function SCIPcreateDisjointset(scip, djset, ncomponents)
ccall(
(:SCIPcreateDisjointset, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_DISJOINTSET}}, Cint),
scip,
djset,
ncomponents,
)
end
function SCIPfreeDisjointset(scip, djset)
ccall(
(:SCIPfreeDisjointset, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Ptr{SCIP_DISJOINTSET}}),
scip,
djset,
)
end
function SCIPcreateDigraph(scip, digraph, nnodes)
ccall(
(:SCIPcreateDigraph, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_DIGRAPH}}, Cint),
scip,
digraph,
nnodes,
)
end
function SCIPcopyDigraph(scip, targetdigraph, sourcedigraph)
ccall(
(:SCIPcopyDigraph, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_DIGRAPH}}, Ptr{SCIP_DIGRAPH}),
scip,
targetdigraph,
sourcedigraph,
)
end
function SCIPenableDebugSol(scip)
ccall((:SCIPenableDebugSol, libscip), Cvoid, (Ptr{SCIP},), scip)
end
function SCIPdisableDebugSol(scip)
ccall((:SCIPdisableDebugSol, libscip), Cvoid, (Ptr{SCIP},), scip)
end
function SCIPcreateDecomp(scip, decomp, nblocks, original, benderslabels)
ccall(
(:SCIPcreateDecomp, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_DECOMP}}, Cint, Cuint, Cuint),
scip,
decomp,
nblocks,
original,
benderslabels,
)
end
function SCIPfreeDecomp(scip, decomp)
ccall(
(:SCIPfreeDecomp, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Ptr{SCIP_DECOMP}}),
scip,
decomp,
)
end
function SCIPaddDecomp(scip, decomp)
ccall(
(:SCIPaddDecomp, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_DECOMP}),
scip,
decomp,
)
end
function SCIPgetDecomps(scip, decomps, ndecomps, original)
ccall(
(:SCIPgetDecomps, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Ptr{Ptr{SCIP_DECOMP}}}, Ptr{Cint}, Cuint),
scip,
decomps,
ndecomps,
original,
)
end
function SCIPhasConsOnlyLinkVars(scip, decomp, cons, hasonlylinkvars)
ccall(
(:SCIPhasConsOnlyLinkVars, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_DECOMP}, Ptr{SCIP_CONS}, Ptr{Cuint}),
scip,
decomp,
cons,
hasonlylinkvars,
)
end
function SCIPcomputeDecompConsLabels(scip, decomp, conss, nconss)
ccall(
(:SCIPcomputeDecompConsLabels, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_DECOMP}, Ptr{Ptr{SCIP_CONS}}, Cint),
scip,
decomp,
conss,
nconss,
)
end
function SCIPcomputeDecompVarsLabels(scip, decomp, conss, nconss)
ccall(
(:SCIPcomputeDecompVarsLabels, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_DECOMP}, Ptr{Ptr{SCIP_CONS}}, Cint),
scip,
decomp,
conss,
nconss,
)
end
function SCIPassignDecompLinkConss(scip, decomp, conss, nconss, nskipconss)
ccall(
(:SCIPassignDecompLinkConss, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_DECOMP}, Ptr{Ptr{SCIP_CONS}}, Cint, Ptr{Cint}),
scip,
decomp,
conss,
nconss,
nskipconss,
)
end
function SCIPcomputeDecompStats(scip, decomp, uselimits)
ccall(
(:SCIPcomputeDecompStats, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_DECOMP}, Cuint),
scip,
decomp,
uselimits,
)
end
function SCIPincludeDialog(
scip,
dialog,
dialogcopy,
dialogexec,
dialogdesc,
dialogfree,
name,
desc,
issubmenu,
dialogdata,
)
ccall(
(:SCIPincludeDialog, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_DIALOG}},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cchar},
Ptr{Cchar},
Cuint,
Ptr{SCIP_DIALOGDATA},
),
scip,
dialog,
dialogcopy,
dialogexec,
dialogdesc,
dialogfree,
name,
desc,
issubmenu,
dialogdata,
)
end
function SCIPexistsDialog(scip, dialog)
ccall(
(:SCIPexistsDialog, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_DIALOG}),
scip,
dialog,
)
end
function SCIPcaptureDialog(scip, dialog)
ccall(
(:SCIPcaptureDialog, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_DIALOG}),
scip,
dialog,
)
end
function SCIPreleaseDialog(scip, dialog)
ccall(
(:SCIPreleaseDialog, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_DIALOG}}),
scip,
dialog,
)
end
function SCIPsetRootDialog(scip, dialog)
ccall(
(:SCIPsetRootDialog, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_DIALOG}),
scip,
dialog,
)
end
function SCIPgetRootDialog(scip)
ccall((:SCIPgetRootDialog, libscip), Ptr{SCIP_DIALOG}, (Ptr{SCIP},), scip)
end
function SCIPaddDialogEntry(scip, dialog, subdialog)
ccall(
(:SCIPaddDialogEntry, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_DIALOG}, Ptr{SCIP_DIALOG}),
scip,
dialog,
subdialog,
)
end
function SCIPaddDialogInputLine(scip, inputline)
ccall(
(:SCIPaddDialogInputLine, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}),
scip,
inputline,
)
end
function SCIPaddDialogHistoryLine(scip, inputline)
ccall(
(:SCIPaddDialogHistoryLine, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}),
scip,
inputline,
)
end
function SCIPstartInteraction(scip)
ccall((:SCIPstartInteraction, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeDisp(
scip,
name,
desc,
header,
dispstatus,
dispcopy,
dispfree,
dispinit,
dispexit,
dispinitsol,
dispexitsol,
dispoutput,
dispdata,
width,
priority,
position,
stripline,
)
ccall(
(:SCIPincludeDisp, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Ptr{Cchar},
SCIP_DISPSTATUS,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_DISPDATA},
Cint,
Cint,
Cint,
Cuint,
),
scip,
name,
desc,
header,
dispstatus,
dispcopy,
dispfree,
dispinit,
dispexit,
dispinitsol,
dispexitsol,
dispoutput,
dispdata,
width,
priority,
position,
stripline,
)
end
function SCIPfindDisp(scip, name)
ccall(
(:SCIPfindDisp, libscip),
Ptr{SCIP_DISP},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetDisps(scip)
ccall((:SCIPgetDisps, libscip), Ptr{Ptr{SCIP_DISP}}, (Ptr{SCIP},), scip)
end
function SCIPgetNDisps(scip)
ccall((:SCIPgetNDisps, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPautoselectDisps(scip)
ccall((:SCIPautoselectDisps, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPchgDispMode(disp, mode)
ccall(
(:SCIPchgDispMode, libscip),
Cvoid,
(Ptr{SCIP_DISP}, SCIP_DISPMODE),
disp,
mode,
)
end
function SCIPincludeEventhdlr(
scip,
name,
desc,
eventcopy,
eventfree,
eventinit,
eventexit,
eventinitsol,
eventexitsol,
eventdelete,
eventexec,
eventhdlrdata,
)
ccall(
(:SCIPincludeEventhdlr, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_EVENTHDLRDATA},
),
scip,
name,
desc,
eventcopy,
eventfree,
eventinit,
eventexit,
eventinitsol,
eventexitsol,
eventdelete,
eventexec,
eventhdlrdata,
)
end
function SCIPincludeEventhdlrBasic(
scip,
eventhdlrptr,
name,
desc,
eventexec,
eventhdlrdata,
)
ccall(
(:SCIPincludeEventhdlrBasic, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_EVENTHDLR}},
Ptr{Cchar},
Ptr{Cchar},
Ptr{Cvoid},
Ptr{SCIP_EVENTHDLRDATA},
),
scip,
eventhdlrptr,
name,
desc,
eventexec,
eventhdlrdata,
)
end
function SCIPsetEventhdlrCopy(scip, eventhdlr, eventcopy)
ccall(
(:SCIPsetEventhdlrCopy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EVENTHDLR}, Ptr{Cvoid}),
scip,
eventhdlr,
eventcopy,
)
end
function SCIPsetEventhdlrFree(scip, eventhdlr, eventfree)
ccall(
(:SCIPsetEventhdlrFree, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EVENTHDLR}, Ptr{Cvoid}),
scip,
eventhdlr,
eventfree,
)
end
function SCIPsetEventhdlrInit(scip, eventhdlr, eventinit)
ccall(
(:SCIPsetEventhdlrInit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EVENTHDLR}, Ptr{Cvoid}),
scip,
eventhdlr,
eventinit,
)
end
function SCIPsetEventhdlrExit(scip, eventhdlr, eventexit)
ccall(
(:SCIPsetEventhdlrExit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EVENTHDLR}, Ptr{Cvoid}),
scip,
eventhdlr,
eventexit,
)
end
function SCIPsetEventhdlrInitsol(scip, eventhdlr, eventinitsol)
ccall(
(:SCIPsetEventhdlrInitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EVENTHDLR}, Ptr{Cvoid}),
scip,
eventhdlr,
eventinitsol,
)
end
function SCIPsetEventhdlrExitsol(scip, eventhdlr, eventexitsol)
ccall(
(:SCIPsetEventhdlrExitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EVENTHDLR}, Ptr{Cvoid}),
scip,
eventhdlr,
eventexitsol,
)
end
function SCIPsetEventhdlrDelete(scip, eventhdlr, eventdelete)
ccall(
(:SCIPsetEventhdlrDelete, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EVENTHDLR}, Ptr{Cvoid}),
scip,
eventhdlr,
eventdelete,
)
end
function SCIPfindEventhdlr(scip, name)
ccall(
(:SCIPfindEventhdlr, libscip),
Ptr{SCIP_EVENTHDLR},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetEventhdlrs(scip)
ccall(
(:SCIPgetEventhdlrs, libscip),
Ptr{Ptr{SCIP_EVENTHDLR}},
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNEventhdlrs(scip)
ccall((:SCIPgetNEventhdlrs, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPcatchEvent(scip, eventtype, eventhdlr, eventdata, filterpos)
ccall(
(:SCIPcatchEvent, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
SCIP_EVENTTYPE,
Ptr{SCIP_EVENTHDLR},
Ptr{SCIP_EVENTDATA},
Ptr{Cint},
),
scip,
eventtype,
eventhdlr,
eventdata,
filterpos,
)
end
function SCIPdropEvent(scip, eventtype, eventhdlr, eventdata, filterpos)
ccall(
(:SCIPdropEvent, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
SCIP_EVENTTYPE,
Ptr{SCIP_EVENTHDLR},
Ptr{SCIP_EVENTDATA},
Cint,
),
scip,
eventtype,
eventhdlr,
eventdata,
filterpos,
)
end
function SCIPcatchVarEvent(
scip,
var,
eventtype,
eventhdlr,
eventdata,
filterpos,
)
ccall(
(:SCIPcatchVarEvent, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
SCIP_EVENTTYPE,
Ptr{SCIP_EVENTHDLR},
Ptr{SCIP_EVENTDATA},
Ptr{Cint},
),
scip,
var,
eventtype,
eventhdlr,
eventdata,
filterpos,
)
end
function SCIPdropVarEvent(scip, var, eventtype, eventhdlr, eventdata, filterpos)
ccall(
(:SCIPdropVarEvent, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
SCIP_EVENTTYPE,
Ptr{SCIP_EVENTHDLR},
Ptr{SCIP_EVENTDATA},
Cint,
),
scip,
var,
eventtype,
eventhdlr,
eventdata,
filterpos,
)
end
function SCIPcatchRowEvent(
scip,
row,
eventtype,
eventhdlr,
eventdata,
filterpos,
)
ccall(
(:SCIPcatchRowEvent, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_ROW},
SCIP_EVENTTYPE,
Ptr{SCIP_EVENTHDLR},
Ptr{SCIP_EVENTDATA},
Ptr{Cint},
),
scip,
row,
eventtype,
eventhdlr,
eventdata,
filterpos,
)
end
function SCIPdropRowEvent(scip, row, eventtype, eventhdlr, eventdata, filterpos)
ccall(
(:SCIPdropRowEvent, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_ROW},
SCIP_EVENTTYPE,
Ptr{SCIP_EVENTHDLR},
Ptr{SCIP_EVENTDATA},
Cint,
),
scip,
row,
eventtype,
eventhdlr,
eventdata,
filterpos,
)
end
function SCIPincludeExprhdlr(scip, exprhdlr, name, desc, precedence, eval, data)
ccall(
(:SCIPincludeExprhdlr, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_EXPRHDLR}},
Ptr{Cchar},
Ptr{Cchar},
Cuint,
Ptr{Cvoid},
Ptr{SCIP_EXPRHDLRDATA},
),
scip,
exprhdlr,
name,
desc,
precedence,
eval,
data,
)
end
function SCIPgetExprhdlrs(scip)
ccall(
(:SCIPgetExprhdlrs, libscip),
Ptr{Ptr{SCIP_EXPRHDLR}},
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNExprhdlrs(scip)
ccall((:SCIPgetNExprhdlrs, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPfindExprhdlr(scip, name)
ccall(
(:SCIPfindExprhdlr, libscip),
Ptr{SCIP_EXPRHDLR},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetExprhdlrVar(scip)
ccall(
(:SCIPgetExprhdlrVar, libscip),
Ptr{SCIP_EXPRHDLR},
(Ptr{SCIP},),
scip,
)
end
function SCIPgetExprhdlrValue(scip)
ccall(
(:SCIPgetExprhdlrValue, libscip),
Ptr{SCIP_EXPRHDLR},
(Ptr{SCIP},),
scip,
)
end
function SCIPgetExprhdlrSum(scip)
ccall(
(:SCIPgetExprhdlrSum, libscip),
Ptr{SCIP_EXPRHDLR},
(Ptr{SCIP},),
scip,
)
end
function SCIPgetExprhdlrProduct(scip)
ccall(
(:SCIPgetExprhdlrProduct, libscip),
Ptr{SCIP_EXPRHDLR},
(Ptr{SCIP},),
scip,
)
end
function SCIPgetExprhdlrPower(scip)
ccall(
(:SCIPgetExprhdlrPower, libscip),
Ptr{SCIP_EXPRHDLR},
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateExpr(
scip,
expr,
exprhdlr,
exprdata,
nchildren,
children,
ownercreate,
ownercreatedata,
)
ccall(
(:SCIPcreateExpr, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_EXPR}},
Ptr{SCIP_EXPRHDLR},
Ptr{SCIP_EXPRDATA},
Cint,
Ptr{Ptr{SCIP_EXPR}},
Ptr{Cvoid},
Ptr{Cvoid},
),
scip,
expr,
exprhdlr,
exprdata,
nchildren,
children,
ownercreate,
ownercreatedata,
)
end
function SCIPcreateExpr2(
scip,
expr,
exprhdlr,
exprdata,
child1,
child2,
ownercreate,
ownercreatedata,
)
ccall(
(:SCIPcreateExpr2, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_EXPR}},
Ptr{SCIP_EXPRHDLR},
Ptr{SCIP_EXPRDATA},
Ptr{SCIP_EXPR},
Ptr{SCIP_EXPR},
Ptr{Cvoid},
Ptr{Cvoid},
),
scip,
expr,
exprhdlr,
exprdata,
child1,
child2,
ownercreate,
ownercreatedata,
)
end
function SCIPcreateExprQuadratic(
scip,
expr,
nlinvars,
linvars,
lincoefs,
nquadterms,
quadvars1,
quadvars2,
quadcoefs,
ownercreate,
ownercreatedata,
)
ccall(
(:SCIPcreateExprQuadratic, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_EXPR}},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Ptr{Cvoid},
Ptr{Cvoid},
),
scip,
expr,
nlinvars,
linvars,
lincoefs,
nquadterms,
quadvars1,
quadvars2,
quadcoefs,
ownercreate,
ownercreatedata,
)
end
function SCIPcreateExprMonomial(
scip,
expr,
nfactors,
vars,
exponents,
ownercreate,
ownercreatedata,
)
ccall(
(:SCIPcreateExprMonomial, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_EXPR}},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Ptr{Cvoid},
Ptr{Cvoid},
),
scip,
expr,
nfactors,
vars,
exponents,
ownercreate,
ownercreatedata,
)
end
function SCIPappendExprChild(scip, expr, child)
ccall(
(:SCIPappendExprChild, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, Ptr{SCIP_EXPR}),
scip,
expr,
child,
)
end
function SCIPreplaceExprChild(scip, expr, childidx, newchild)
ccall(
(:SCIPreplaceExprChild, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, Cint, Ptr{SCIP_EXPR}),
scip,
expr,
childidx,
newchild,
)
end
function SCIPremoveExprChildren(scip, expr)
ccall(
(:SCIPremoveExprChildren, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}),
scip,
expr,
)
end
function SCIPduplicateExpr(
scip,
expr,
copyexpr,
mapexpr,
mapexprdata,
ownercreate,
ownercreatedata,
)
ccall(
(:SCIPduplicateExpr, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_EXPR},
Ptr{Ptr{SCIP_EXPR}},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
),
scip,
expr,
copyexpr,
mapexpr,
mapexprdata,
ownercreate,
ownercreatedata,
)
end
function SCIPduplicateExprShallow(
scip,
expr,
copyexpr,
ownercreate,
ownercreatedata,
)
ccall(
(:SCIPduplicateExprShallow, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_EXPR},
Ptr{Ptr{SCIP_EXPR}},
Ptr{Cvoid},
Ptr{Cvoid},
),
scip,
expr,
copyexpr,
ownercreate,
ownercreatedata,
)
end
function SCIPcopyExpr(
sourcescip,
targetscip,
expr,
copyexpr,
ownercreate,
ownercreatedata,
varmap,
consmap,
_global,
valid,
)
ccall(
(:SCIPcopyExpr, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP},
Ptr{SCIP_EXPR},
Ptr{Ptr{SCIP_EXPR}},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_HASHMAP},
Ptr{SCIP_HASHMAP},
Cuint,
Ptr{Cuint},
),
sourcescip,
targetscip,
expr,
copyexpr,
ownercreate,
ownercreatedata,
varmap,
consmap,
_global,
valid,
)
end
function SCIPparseExpr(
scip,
expr,
exprstr,
finalpos,
ownercreate,
ownercreatedata,
)
ccall(
(:SCIPparseExpr, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_EXPR}},
Ptr{Cchar},
Ptr{Ptr{Cchar}},
Ptr{Cvoid},
Ptr{Cvoid},
),
scip,
expr,
exprstr,
finalpos,
ownercreate,
ownercreatedata,
)
end
function SCIPcaptureExpr(expr)
ccall((:SCIPcaptureExpr, libscip), Cvoid, (Ptr{SCIP_EXPR},), expr)
end
function SCIPreleaseExpr(scip, expr)
ccall(
(:SCIPreleaseExpr, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_EXPR}}),
scip,
expr,
)
end
function SCIPisExprVar(scip, expr)
ccall(
(:SCIPisExprVar, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_EXPR}),
scip,
expr,
)
end
function SCIPisExprValue(scip, expr)
ccall(
(:SCIPisExprValue, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_EXPR}),
scip,
expr,
)
end
function SCIPisExprSum(scip, expr)
ccall(
(:SCIPisExprSum, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_EXPR}),
scip,
expr,
)
end
function SCIPisExprProduct(scip, expr)
ccall(
(:SCIPisExprProduct, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_EXPR}),
scip,
expr,
)
end
function SCIPisExprPower(scip, expr)
ccall(
(:SCIPisExprPower, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_EXPR}),
scip,
expr,
)
end
function SCIPprintExpr(scip, expr, file)
ccall(
(:SCIPprintExpr, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, Ptr{Libc.FILE}),
scip,
expr,
file,
)
end
function SCIPprintExprDotInit(scip, printdata, file, whattoprint)
ccall(
(:SCIPprintExprDotInit, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_EXPRPRINTDATA}},
Ptr{Libc.FILE},
SCIP_EXPRPRINT_WHAT,
),
scip,
printdata,
file,
whattoprint,
)
end
function SCIPprintExprDotInit2(scip, printdata, filename, whattoprint)
ccall(
(:SCIPprintExprDotInit2, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_EXPRPRINTDATA}},
Ptr{Cchar},
SCIP_EXPRPRINT_WHAT,
),
scip,
printdata,
filename,
whattoprint,
)
end
function SCIPprintExprDot(scip, printdata, expr)
ccall(
(:SCIPprintExprDot, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPRPRINTDATA}, Ptr{SCIP_EXPR}),
scip,
printdata,
expr,
)
end
function SCIPprintExprDotFinal(scip, printdata)
ccall(
(:SCIPprintExprDotFinal, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_EXPRPRINTDATA}}),
scip,
printdata,
)
end
function SCIPshowExpr(scip, expr)
ccall(
(:SCIPshowExpr, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}),
scip,
expr,
)
end
function SCIPdismantleExpr(scip, file, expr)
ccall(
(:SCIPdismantleExpr, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Libc.FILE}, Ptr{SCIP_EXPR}),
scip,
file,
expr,
)
end
function SCIPevalExpr(scip, expr, sol, soltag)
ccall(
(:SCIPevalExpr, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, Ptr{SCIP_SOL}, Clonglong),
scip,
expr,
sol,
soltag,
)
end
function SCIPgetExprNewSoltag(scip)
ccall((:SCIPgetExprNewSoltag, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPevalExprGradient(scip, expr, sol, soltag)
ccall(
(:SCIPevalExprGradient, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, Ptr{SCIP_SOL}, Clonglong),
scip,
expr,
sol,
soltag,
)
end
function SCIPevalExprHessianDir(scip, expr, sol, soltag, direction)
ccall(
(:SCIPevalExprHessianDir, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, Ptr{SCIP_SOL}, Clonglong, Ptr{SCIP_SOL}),
scip,
expr,
sol,
soltag,
direction,
)
end
function SCIPevalExprActivity(scip, expr)
ccall(
(:SCIPevalExprActivity, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}),
scip,
expr,
)
end
function SCIPcompareExpr(scip, expr1, expr2)
ccall(
(:SCIPcompareExpr, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, Ptr{SCIP_EXPR}),
scip,
expr1,
expr2,
)
end
function SCIPhashExpr(scip, expr, hashval)
ccall(
(:SCIPhashExpr, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, Ptr{Cuint}),
scip,
expr,
hashval,
)
end
function SCIPsimplifyExpr(
scip,
rootexpr,
simplified,
changed,
infeasible,
ownercreate,
ownercreatedata,
)
ccall(
(:SCIPsimplifyExpr, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_EXPR},
Ptr{Ptr{SCIP_EXPR}},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cvoid},
Ptr{Cvoid},
),
scip,
rootexpr,
simplified,
changed,
infeasible,
ownercreate,
ownercreatedata,
)
end
function SCIPreplaceCommonSubexpressions(scip, exprs, nexprs, replacedroot)
ccall(
(:SCIPreplaceCommonSubexpressions, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_EXPR}}, Cint, Ptr{Cuint}),
scip,
exprs,
nexprs,
replacedroot,
)
end
function SCIPcomputeExprCurvature(scip, expr)
ccall(
(:SCIPcomputeExprCurvature, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}),
scip,
expr,
)
end
function SCIPcomputeExprIntegrality(scip, expr)
ccall(
(:SCIPcomputeExprIntegrality, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}),
scip,
expr,
)
end
function SCIPgetExprNVars(scip, expr, nvars)
ccall(
(:SCIPgetExprNVars, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, Ptr{Cint}),
scip,
expr,
nvars,
)
end
function SCIPgetExprVarExprs(scip, expr, varexprs, nvarexprs)
ccall(
(:SCIPgetExprVarExprs, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, Ptr{Ptr{SCIP_EXPR}}, Ptr{Cint}),
scip,
expr,
varexprs,
nvarexprs,
)
end
function SCIPcallExprCurvature(scip, expr, exprcurvature, success, childcurv)
ccall(
(:SCIPcallExprCurvature, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_EXPR},
SCIP_EXPRCURV,
Ptr{Cuint},
Ptr{SCIP_EXPRCURV},
),
scip,
expr,
exprcurvature,
success,
childcurv,
)
end
function SCIPcallExprMonotonicity(scip, expr, childidx, result)
ccall(
(:SCIPcallExprMonotonicity, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, Cint, Ptr{SCIP_MONOTONE}),
scip,
expr,
childidx,
result,
)
end
function SCIPcallExprEval(scip, expr, childrenvalues, val)
ccall(
(:SCIPcallExprEval, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, Ptr{Cdouble}, Ptr{Cdouble}),
scip,
expr,
childrenvalues,
val,
)
end
function SCIPcallExprEvalFwdiff(scip, expr, childrenvalues, direction, val, dot)
ccall(
(:SCIPcallExprEvalFwdiff, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_EXPR},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
),
scip,
expr,
childrenvalues,
direction,
val,
dot,
)
end
function SCIPcallExprInteval(scip, expr, interval, intevalvar, intevalvardata)
ccall(
(:SCIPcallExprInteval, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, Ptr{SCIP_INTERVAL}, Ptr{Cvoid}, Ptr{Cvoid}),
scip,
expr,
interval,
intevalvar,
intevalvardata,
)
end
function SCIPcallExprEstimate(
scip,
expr,
localbounds,
globalbounds,
refpoint,
overestimate,
targetvalue,
coefs,
constant,
islocal,
success,
branchcand,
)
ccall(
(:SCIPcallExprEstimate, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_EXPR},
Ptr{SCIP_INTERVAL},
Ptr{SCIP_INTERVAL},
Ptr{Cdouble},
Cuint,
Cdouble,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
),
scip,
expr,
localbounds,
globalbounds,
refpoint,
overestimate,
targetvalue,
coefs,
constant,
islocal,
success,
branchcand,
)
end
function SCIPcallExprInitestimates(
scip,
expr,
bounds,
overestimate,
coefs,
constant,
nreturned,
)
ccall(
(:SCIPcallExprInitestimates, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_EXPR},
Ptr{SCIP_INTERVAL},
Cuint,
Ptr{Ptr{Cdouble}},
Ptr{Cdouble},
Ptr{Cint},
),
scip,
expr,
bounds,
overestimate,
coefs,
constant,
nreturned,
)
end
function SCIPcallExprSimplify(
scip,
expr,
simplifiedexpr,
ownercreate,
ownercreatedata,
)
ccall(
(:SCIPcallExprSimplify, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_EXPR},
Ptr{Ptr{SCIP_EXPR}},
Ptr{Cvoid},
Ptr{Cvoid},
),
scip,
expr,
simplifiedexpr,
ownercreate,
ownercreatedata,
)
end
function SCIPcallExprReverseprop(scip, expr, bounds, childrenbounds, infeasible)
ccall(
(:SCIPcallExprReverseprop, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_EXPR},
SCIP_INTERVAL,
Ptr{SCIP_INTERVAL},
Ptr{Cuint},
),
scip,
expr,
bounds,
childrenbounds,
infeasible,
)
end
function SCIPcreateExpriter(scip, iterator)
ccall(
(:SCIPcreateExpriter, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_EXPRITER}}),
scip,
iterator,
)
end
function SCIPfreeExpriter(iterator)
ccall(
(:SCIPfreeExpriter, libscip),
Cvoid,
(Ptr{Ptr{SCIP_EXPRITER}},),
iterator,
)
end
function SCIPcheckExprQuadratic(scip, expr, isquadratic)
ccall(
(:SCIPcheckExprQuadratic, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, Ptr{Cuint}),
scip,
expr,
isquadratic,
)
end
function SCIPfreeExprQuadratic(scip, expr)
ccall(
(:SCIPfreeExprQuadratic, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_EXPR}),
scip,
expr,
)
end
function SCIPevalExprQuadratic(scip, expr, sol)
ccall(
(:SCIPevalExprQuadratic, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, Ptr{SCIP_SOL}),
scip,
expr,
sol,
)
end
function SCIPprintExprQuadratic(scip, expr)
ccall(
(:SCIPprintExprQuadratic, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}),
scip,
expr,
)
end
function SCIPcomputeExprQuadraticCurvature(
scip,
expr,
curv,
assumevarfixed,
storeeigeninfo,
)
ccall(
(:SCIPcomputeExprQuadraticCurvature, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_EXPR},
Ptr{SCIP_EXPRCURV},
Ptr{SCIP_HASHMAP},
Cuint,
),
scip,
expr,
curv,
assumevarfixed,
storeeigeninfo,
)
end
function SCIPversion()
ccall((:SCIPversion, libscip), Cdouble, ())
end
function SCIPmajorVersion()
ccall((:SCIPmajorVersion, libscip), Cint, ())
end
function SCIPminorVersion()
ccall((:SCIPminorVersion, libscip), Cint, ())
end
function SCIPtechVersion()
ccall((:SCIPtechVersion, libscip), Cint, ())
end
function SCIPsubversion()
ccall((:SCIPsubversion, libscip), Cint, ())
end
function SCIPprintVersion(scip, file)
ccall(
(:SCIPprintVersion, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintBuildOptions(scip, file)
ccall(
(:SCIPprintBuildOptions, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintError(retcode)
ccall((:SCIPprintError, libscip), Cvoid, (SCIP_RETCODE,), retcode)
end
function SCIPcreate(scip)
ccall((:SCIPcreate, libscip), SCIP_RETCODE, (Ptr{Ptr{SCIP}},), scip)
end
function SCIPfree(scip)
ccall((:SCIPfree, libscip), SCIP_RETCODE, (Ptr{Ptr{SCIP}},), scip)
end
function SCIPgetStage(scip)
ccall((:SCIPgetStage, libscip), SCIP_STAGE, (Ptr{SCIP},), scip)
end
function SCIPprintStage(scip, file)
ccall(
(:SCIPprintStage, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPgetStatus(scip)
ccall((:SCIPgetStatus, libscip), SCIP_STATUS, (Ptr{SCIP},), scip)
end
function SCIPprintStatus(scip, file)
ccall(
(:SCIPprintStatus, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPisTransformed(scip)
ccall((:SCIPisTransformed, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPisExactSolve(scip)
ccall((:SCIPisExactSolve, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPisPresolveFinished(scip)
ccall((:SCIPisPresolveFinished, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPhasPerformedPresolve(scip)
ccall((:SCIPhasPerformedPresolve, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPpressedCtrlC(scip)
ccall((:SCIPpressedCtrlC, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPisStopped(scip)
ccall((:SCIPisStopped, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPincludeExternalCodeInformation(scip, name, description)
ccall(
(:SCIPincludeExternalCodeInformation, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Ptr{Cchar}),
scip,
name,
description,
)
end
function SCIPgetExternalCodeNames(scip)
ccall(
(:SCIPgetExternalCodeNames, libscip),
Ptr{Ptr{Cchar}},
(Ptr{SCIP},),
scip,
)
end
function SCIPgetExternalCodeDescriptions(scip)
ccall(
(:SCIPgetExternalCodeDescriptions, libscip),
Ptr{Ptr{Cchar}},
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNExternalCodes(scip)
ccall((:SCIPgetNExternalCodes, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPprintExternalCodes(scip, file)
ccall(
(:SCIPprintExternalCodes, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPincludeHeur(
scip,
name,
desc,
dispchar,
priority,
freq,
freqofs,
maxdepth,
timingmask,
usessubscip,
heurcopy,
heurfree,
heurinit,
heurexit,
heurinitsol,
heurexitsol,
heurexec,
heurdata,
)
ccall(
(:SCIPincludeHeur, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Cchar,
Cint,
Cint,
Cint,
Cint,
SCIP_HEURTIMING,
Cuint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_HEURDATA},
),
scip,
name,
desc,
dispchar,
priority,
freq,
freqofs,
maxdepth,
timingmask,
usessubscip,
heurcopy,
heurfree,
heurinit,
heurexit,
heurinitsol,
heurexitsol,
heurexec,
heurdata,
)
end
function SCIPincludeHeurBasic(
scip,
heur,
name,
desc,
dispchar,
priority,
freq,
freqofs,
maxdepth,
timingmask,
usessubscip,
heurexec,
heurdata,
)
ccall(
(:SCIPincludeHeurBasic, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_HEUR}},
Ptr{Cchar},
Ptr{Cchar},
Cchar,
Cint,
Cint,
Cint,
Cint,
SCIP_HEURTIMING,
Cuint,
Ptr{Cvoid},
Ptr{SCIP_HEURDATA},
),
scip,
heur,
name,
desc,
dispchar,
priority,
freq,
freqofs,
maxdepth,
timingmask,
usessubscip,
heurexec,
heurdata,
)
end
function SCIPsetHeurCopy(scip, heur, heurcopy)
ccall(
(:SCIPsetHeurCopy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_HEUR}, Ptr{Cvoid}),
scip,
heur,
heurcopy,
)
end
function SCIPsetHeurFree(scip, heur, heurfree)
ccall(
(:SCIPsetHeurFree, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_HEUR}, Ptr{Cvoid}),
scip,
heur,
heurfree,
)
end
function SCIPsetHeurInit(scip, heur, heurinit)
ccall(
(:SCIPsetHeurInit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_HEUR}, Ptr{Cvoid}),
scip,
heur,
heurinit,
)
end
function SCIPsetHeurExit(scip, heur, heurexit)
ccall(
(:SCIPsetHeurExit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_HEUR}, Ptr{Cvoid}),
scip,
heur,
heurexit,
)
end
function SCIPsetHeurInitsol(scip, heur, heurinitsol)
ccall(
(:SCIPsetHeurInitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_HEUR}, Ptr{Cvoid}),
scip,
heur,
heurinitsol,
)
end
function SCIPsetHeurExitsol(scip, heur, heurexitsol)
ccall(
(:SCIPsetHeurExitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_HEUR}, Ptr{Cvoid}),
scip,
heur,
heurexitsol,
)
end
function SCIPfindHeur(scip, name)
ccall(
(:SCIPfindHeur, libscip),
Ptr{SCIP_HEUR},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetHeurs(scip)
ccall((:SCIPgetHeurs, libscip), Ptr{Ptr{SCIP_HEUR}}, (Ptr{SCIP},), scip)
end
function SCIPgetNHeurs(scip)
ccall((:SCIPgetNHeurs, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPsetHeurPriority(scip, heur, priority)
ccall(
(:SCIPsetHeurPriority, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_HEUR}, Cint),
scip,
heur,
priority,
)
end
function SCIPcreateDiveset(
scip,
diveset,
heur,
name,
minreldepth,
maxreldepth,
maxlpiterquot,
maxdiveubquot,
maxdiveavgquot,
maxdiveubquotnosol,
maxdiveavgquotnosol,
lpresolvedomchgquot,
lpsolvefreq,
maxlpiterofs,
initialseed,
backtrack,
onlylpbranchcands,
ispublic,
specificsos1score,
divesetgetscore,
divesetavailable,
)
ccall(
(:SCIPcreateDiveset, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_DIVESET}},
Ptr{SCIP_HEUR},
Ptr{Cchar},
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cint,
Cint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Ptr{Cvoid},
Ptr{Cvoid},
),
scip,
diveset,
heur,
name,
minreldepth,
maxreldepth,
maxlpiterquot,
maxdiveubquot,
maxdiveavgquot,
maxdiveubquotnosol,
maxdiveavgquotnosol,
lpresolvedomchgquot,
lpsolvefreq,
maxlpiterofs,
initialseed,
backtrack,
onlylpbranchcands,
ispublic,
specificsos1score,
divesetgetscore,
divesetavailable,
)
end
function SCIPisDivesetAvailable(scip, diveset, available)
ccall(
(:SCIPisDivesetAvailable, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_DIVESET}, Ptr{Cuint}),
scip,
diveset,
available,
)
end
function SCIPhasCurrentNodeLP(scip)
ccall((:SCIPhasCurrentNodeLP, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPisLPConstructed(scip)
ccall((:SCIPisLPConstructed, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPconstructLP(scip, cutoff)
ccall(
(:SCIPconstructLP, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cuint}),
scip,
cutoff,
)
end
function SCIPflushLP(scip)
ccall((:SCIPflushLP, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPgetLPSolstat(scip)
ccall((:SCIPgetLPSolstat, libscip), SCIP_LPSOLSTAT, (Ptr{SCIP},), scip)
end
function SCIPisLPPrimalReliable(scip)
ccall((:SCIPisLPPrimalReliable, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPisLPDualReliable(scip)
ccall((:SCIPisLPDualReliable, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPisLPRelax(scip)
ccall((:SCIPisLPRelax, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPgetLPObjval(scip)
ccall((:SCIPgetLPObjval, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetLPColumnObjval(scip)
ccall((:SCIPgetLPColumnObjval, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetLPLooseObjval(scip)
ccall((:SCIPgetLPLooseObjval, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetGlobalPseudoObjval(scip)
ccall((:SCIPgetGlobalPseudoObjval, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetPseudoObjval(scip)
ccall((:SCIPgetPseudoObjval, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPisRootLPRelax(scip)
ccall((:SCIPisRootLPRelax, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPgetLPRootObjval(scip)
ccall((:SCIPgetLPRootObjval, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetLPRootColumnObjval(scip)
ccall((:SCIPgetLPRootColumnObjval, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetLPRootLooseObjval(scip)
ccall((:SCIPgetLPRootLooseObjval, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetLPFeastol(scip)
ccall((:SCIPgetLPFeastol, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPsetLPFeastol(scip, newfeastol)
ccall(
(:SCIPsetLPFeastol, libscip),
Cvoid,
(Ptr{SCIP}, Cdouble),
scip,
newfeastol,
)
end
function SCIPresetLPFeastol(scip)
ccall((:SCIPresetLPFeastol, libscip), Cvoid, (Ptr{SCIP},), scip)
end
function SCIPgetLPColsData(scip, cols, ncols)
ccall(
(:SCIPgetLPColsData, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{Ptr{SCIP_COL}}}, Ptr{Cint}),
scip,
cols,
ncols,
)
end
function SCIPgetLPCols(scip)
ccall((:SCIPgetLPCols, libscip), Ptr{Ptr{SCIP_COL}}, (Ptr{SCIP},), scip)
end
function SCIPgetNLPCols(scip)
ccall((:SCIPgetNLPCols, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNUnfixedLPCols(scip)
ccall((:SCIPgetNUnfixedLPCols, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetLPRowsData(scip, rows, nrows)
ccall(
(:SCIPgetLPRowsData, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{Ptr{SCIP_ROW}}}, Ptr{Cint}),
scip,
rows,
nrows,
)
end
function SCIPgetLPRows(scip)
ccall((:SCIPgetLPRows, libscip), Ptr{Ptr{SCIP_ROW}}, (Ptr{SCIP},), scip)
end
function SCIPgetNLPRows(scip)
ccall((:SCIPgetNLPRows, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPallColsInLP(scip)
ccall((:SCIPallColsInLP, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPisLPSolBasic(scip)
ccall((:SCIPisLPSolBasic, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPgetLPBasisInd(scip, basisind)
ccall(
(:SCIPgetLPBasisInd, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cint}),
scip,
basisind,
)
end
function SCIPgetLPBInvRow(scip, r, coefs, inds, ninds)
ccall(
(:SCIPgetLPBInvRow, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cint, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}),
scip,
r,
coefs,
inds,
ninds,
)
end
function SCIPgetLPBInvCol(scip, c, coefs, inds, ninds)
ccall(
(:SCIPgetLPBInvCol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cint, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}),
scip,
c,
coefs,
inds,
ninds,
)
end
function SCIPgetLPBInvARow(scip, r, binvrow, coefs, inds, ninds)
ccall(
(:SCIPgetLPBInvARow, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cint, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}),
scip,
r,
binvrow,
coefs,
inds,
ninds,
)
end
function SCIPgetLPBInvACol(scip, c, coefs, inds, ninds)
ccall(
(:SCIPgetLPBInvACol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cint, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}),
scip,
c,
coefs,
inds,
ninds,
)
end
function SCIPsumLPRows(scip, weights, sumcoef, sumlhs, sumrhs)
ccall(
(:SCIPsumLPRows, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cdouble},
Ptr{SCIP_REALARRAY},
Ptr{Cdouble},
Ptr{Cdouble},
),
scip,
weights,
sumcoef,
sumlhs,
sumrhs,
)
end
function SCIPinterruptLP(scip, interrupt)
ccall(
(:SCIPinterruptLP, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cuint),
scip,
interrupt,
)
end
function SCIPwriteLP(scip, filename)
ccall(
(:SCIPwriteLP, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}),
scip,
filename,
)
end
function SCIPwriteMIP(scip, filename, genericnames, origobj, lazyconss)
ccall(
(:SCIPwriteMIP, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Cuint, Cuint, Cuint),
scip,
filename,
genericnames,
origobj,
lazyconss,
)
end
const SCIP_LPi = Cvoid
const SCIP_LPI = SCIP_LPi
function SCIPgetLPI(scip, lpi)
ccall(
(:SCIPgetLPI, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_LPI}}),
scip,
lpi,
)
end
function SCIPprintLPSolutionQuality(scip, file)
ccall(
(:SCIPprintLPSolutionQuality, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPcomputeLPRelIntPoint(
scip,
relaxrows,
inclobjcutoff,
timelimit,
iterlimit,
point,
)
ccall(
(:SCIPcomputeLPRelIntPoint, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cuint, Cuint, Cdouble, Cint, Ptr{Ptr{SCIP_SOL}}),
scip,
relaxrows,
inclobjcutoff,
timelimit,
iterlimit,
point,
)
end
function SCIPgetColRedcost(scip, col)
ccall(
(:SCIPgetColRedcost, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_COL}),
scip,
col,
)
end
function SCIPgetColFarkasCoef(scip, col)
ccall(
(:SCIPgetColFarkasCoef, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_COL}),
scip,
col,
)
end
function SCIPmarkColNotRemovableLocal(scip, col)
ccall(
(:SCIPmarkColNotRemovableLocal, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_COL}),
scip,
col,
)
end
function SCIPcreateRowConshdlr(
scip,
row,
conshdlr,
name,
len,
cols,
vals,
lhs,
rhs,
_local,
modifiable,
removable,
)
ccall(
(:SCIPcreateRowConshdlr, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_ROW}},
Ptr{SCIP_CONSHDLR},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_COL}},
Ptr{Cdouble},
Cdouble,
Cdouble,
Cuint,
Cuint,
Cuint,
),
scip,
row,
conshdlr,
name,
len,
cols,
vals,
lhs,
rhs,
_local,
modifiable,
removable,
)
end
function SCIPcreateRowCons(
scip,
row,
cons,
name,
len,
cols,
vals,
lhs,
rhs,
_local,
modifiable,
removable,
)
ccall(
(:SCIPcreateRowCons, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_ROW}},
Ptr{SCIP_CONS},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_COL}},
Ptr{Cdouble},
Cdouble,
Cdouble,
Cuint,
Cuint,
Cuint,
),
scip,
row,
cons,
name,
len,
cols,
vals,
lhs,
rhs,
_local,
modifiable,
removable,
)
end
function SCIPcreateRowSepa(
scip,
row,
sepa,
name,
len,
cols,
vals,
lhs,
rhs,
_local,
modifiable,
removable,
)
ccall(
(:SCIPcreateRowSepa, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_ROW}},
Ptr{SCIP_SEPA},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_COL}},
Ptr{Cdouble},
Cdouble,
Cdouble,
Cuint,
Cuint,
Cuint,
),
scip,
row,
sepa,
name,
len,
cols,
vals,
lhs,
rhs,
_local,
modifiable,
removable,
)
end
function SCIPcreateRowUnspec(
scip,
row,
name,
len,
cols,
vals,
lhs,
rhs,
_local,
modifiable,
removable,
)
ccall(
(:SCIPcreateRowUnspec, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_ROW}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_COL}},
Ptr{Cdouble},
Cdouble,
Cdouble,
Cuint,
Cuint,
Cuint,
),
scip,
row,
name,
len,
cols,
vals,
lhs,
rhs,
_local,
modifiable,
removable,
)
end
function SCIPcreateRow(
scip,
row,
name,
len,
cols,
vals,
lhs,
rhs,
_local,
modifiable,
removable,
)
ccall(
(:SCIPcreateRow, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_ROW}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_COL}},
Ptr{Cdouble},
Cdouble,
Cdouble,
Cuint,
Cuint,
Cuint,
),
scip,
row,
name,
len,
cols,
vals,
lhs,
rhs,
_local,
modifiable,
removable,
)
end
function SCIPcreateEmptyRowConshdlr(
scip,
row,
conshdlr,
name,
lhs,
rhs,
_local,
modifiable,
removable,
)
ccall(
(:SCIPcreateEmptyRowConshdlr, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_ROW}},
Ptr{SCIP_CONSHDLR},
Ptr{Cchar},
Cdouble,
Cdouble,
Cuint,
Cuint,
Cuint,
),
scip,
row,
conshdlr,
name,
lhs,
rhs,
_local,
modifiable,
removable,
)
end
function SCIPcreateEmptyRowCons(
scip,
row,
cons,
name,
lhs,
rhs,
_local,
modifiable,
removable,
)
ccall(
(:SCIPcreateEmptyRowCons, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_ROW}},
Ptr{SCIP_CONS},
Ptr{Cchar},
Cdouble,
Cdouble,
Cuint,
Cuint,
Cuint,
),
scip,
row,
cons,
name,
lhs,
rhs,
_local,
modifiable,
removable,
)
end
function SCIPcreateEmptyRowSepa(
scip,
row,
sepa,
name,
lhs,
rhs,
_local,
modifiable,
removable,
)
ccall(
(:SCIPcreateEmptyRowSepa, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_ROW}},
Ptr{SCIP_SEPA},
Ptr{Cchar},
Cdouble,
Cdouble,
Cuint,
Cuint,
Cuint,
),
scip,
row,
sepa,
name,
lhs,
rhs,
_local,
modifiable,
removable,
)
end
function SCIPcreateEmptyRowUnspec(
scip,
row,
name,
lhs,
rhs,
_local,
modifiable,
removable,
)
ccall(
(:SCIPcreateEmptyRowUnspec, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_ROW}},
Ptr{Cchar},
Cdouble,
Cdouble,
Cuint,
Cuint,
Cuint,
),
scip,
row,
name,
lhs,
rhs,
_local,
modifiable,
removable,
)
end
function SCIPcreateEmptyRow(
scip,
row,
name,
lhs,
rhs,
_local,
modifiable,
removable,
)
ccall(
(:SCIPcreateEmptyRow, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_ROW}},
Ptr{Cchar},
Cdouble,
Cdouble,
Cuint,
Cuint,
Cuint,
),
scip,
row,
name,
lhs,
rhs,
_local,
modifiable,
removable,
)
end
function SCIPcaptureRow(scip, row)
ccall(
(:SCIPcaptureRow, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPreleaseRow(scip, row)
ccall(
(:SCIPreleaseRow, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_ROW}}),
scip,
row,
)
end
function SCIPchgRowLhs(scip, row, lhs)
ccall(
(:SCIPchgRowLhs, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROW}, Cdouble),
scip,
row,
lhs,
)
end
function SCIPchgRowRhs(scip, row, rhs)
ccall(
(:SCIPchgRowRhs, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROW}, Cdouble),
scip,
row,
rhs,
)
end
function SCIPcacheRowExtensions(scip, row)
ccall(
(:SCIPcacheRowExtensions, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPflushRowExtensions(scip, row)
ccall(
(:SCIPflushRowExtensions, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPaddVarToRow(scip, row, var, val)
ccall(
(:SCIPaddVarToRow, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROW}, Ptr{SCIP_VAR}, Cdouble),
scip,
row,
var,
val,
)
end
function SCIPaddVarsToRow(scip, row, nvars, vars, vals)
ccall(
(:SCIPaddVarsToRow, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROW}, Cint, Ptr{Ptr{SCIP_VAR}}, Ptr{Cdouble}),
scip,
row,
nvars,
vars,
vals,
)
end
function SCIPaddVarsToRowSameCoef(scip, row, nvars, vars, val)
ccall(
(:SCIPaddVarsToRowSameCoef, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROW}, Cint, Ptr{Ptr{SCIP_VAR}}, Cdouble),
scip,
row,
nvars,
vars,
val,
)
end
function SCIPcalcRowIntegralScalar(
scip,
row,
mindelta,
maxdelta,
maxdnom,
maxscale,
usecontvars,
intscalar,
success,
)
ccall(
(:SCIPcalcRowIntegralScalar, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_ROW},
Cdouble,
Cdouble,
Clonglong,
Cdouble,
Cuint,
Ptr{Cdouble},
Ptr{Cuint},
),
scip,
row,
mindelta,
maxdelta,
maxdnom,
maxscale,
usecontvars,
intscalar,
success,
)
end
function SCIPmakeRowIntegral(
scip,
row,
mindelta,
maxdelta,
maxdnom,
maxscale,
usecontvars,
success,
)
ccall(
(:SCIPmakeRowIntegral, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_ROW},
Cdouble,
Cdouble,
Clonglong,
Cdouble,
Cuint,
Ptr{Cuint},
),
scip,
row,
mindelta,
maxdelta,
maxdnom,
maxscale,
usecontvars,
success,
)
end
function SCIPmarkRowNotRemovableLocal(scip, row)
ccall(
(:SCIPmarkRowNotRemovableLocal, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPgetRowNumIntCols(scip, row)
ccall(
(:SCIPgetRowNumIntCols, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPgetRowMinCoef(scip, row)
ccall(
(:SCIPgetRowMinCoef, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPgetRowMaxCoef(scip, row)
ccall(
(:SCIPgetRowMaxCoef, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPgetRowMinActivity(scip, row)
ccall(
(:SCIPgetRowMinActivity, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPgetRowMaxActivity(scip, row)
ccall(
(:SCIPgetRowMaxActivity, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPrecalcRowLPActivity(scip, row)
ccall(
(:SCIPrecalcRowLPActivity, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPgetRowLPActivity(scip, row)
ccall(
(:SCIPgetRowLPActivity, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPgetRowLPFeasibility(scip, row)
ccall(
(:SCIPgetRowLPFeasibility, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPrecalcRowPseudoActivity(scip, row)
ccall(
(:SCIPrecalcRowPseudoActivity, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPgetRowPseudoActivity(scip, row)
ccall(
(:SCIPgetRowPseudoActivity, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPgetRowPseudoFeasibility(scip, row)
ccall(
(:SCIPgetRowPseudoFeasibility, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPrecalcRowActivity(scip, row)
ccall(
(:SCIPrecalcRowActivity, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPgetRowActivity(scip, row)
ccall(
(:SCIPgetRowActivity, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPgetRowFeasibility(scip, row)
ccall(
(:SCIPgetRowFeasibility, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPgetRowSolActivity(scip, row, sol)
ccall(
(:SCIPgetRowSolActivity, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_ROW}, Ptr{SCIP_SOL}),
scip,
row,
sol,
)
end
function SCIPgetRowSolFeasibility(scip, row, sol)
ccall(
(:SCIPgetRowSolFeasibility, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_ROW}, Ptr{SCIP_SOL}),
scip,
row,
sol,
)
end
function SCIPgetRowObjParallelism(scip, row)
ccall(
(:SCIPgetRowObjParallelism, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPprintRow(scip, row, file)
ccall(
(:SCIPprintRow, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROW}, Ptr{Libc.FILE}),
scip,
row,
file,
)
end
function SCIPstartDive(scip)
ccall((:SCIPstartDive, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPendDive(scip)
ccall((:SCIPendDive, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPchgCutoffboundDive(scip, newcutoffbound)
ccall(
(:SCIPchgCutoffboundDive, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cdouble),
scip,
newcutoffbound,
)
end
function SCIPchgVarObjDive(scip, var, newobj)
ccall(
(:SCIPchgVarObjDive, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
newobj,
)
end
function SCIPchgVarLbDive(scip, var, newbound)
ccall(
(:SCIPchgVarLbDive, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
newbound,
)
end
function SCIPchgVarUbDive(scip, var, newbound)
ccall(
(:SCIPchgVarUbDive, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
newbound,
)
end
function SCIPaddRowDive(scip, row)
ccall(
(:SCIPaddRowDive, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPchgRowLhsDive(scip, row, newlhs)
ccall(
(:SCIPchgRowLhsDive, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROW}, Cdouble),
scip,
row,
newlhs,
)
end
function SCIPchgRowRhsDive(scip, row, newrhs)
ccall(
(:SCIPchgRowRhsDive, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROW}, Cdouble),
scip,
row,
newrhs,
)
end
function SCIPgetVarObjDive(scip, var)
ccall(
(:SCIPgetVarObjDive, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetVarLbDive(scip, var)
ccall(
(:SCIPgetVarLbDive, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetVarUbDive(scip, var)
ccall(
(:SCIPgetVarUbDive, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPsolveDiveLP(scip, itlim, lperror, cutoff)
ccall(
(:SCIPsolveDiveLP, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cint, Ptr{Cuint}, Ptr{Cuint}),
scip,
itlim,
lperror,
cutoff,
)
end
function SCIPgetLastDivenode(scip)
ccall((:SCIPgetLastDivenode, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPinDive(scip)
ccall((:SCIPinDive, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPgetLPDualDegeneracy(scip, degeneracy, varconsratio)
ccall(
(:SCIPgetLPDualDegeneracy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cdouble}, Ptr{Cdouble}),
scip,
degeneracy,
varconsratio,
)
end
function SCIPgetMemUsed(scip)
ccall((:SCIPgetMemUsed, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetMemTotal(scip)
ccall((:SCIPgetMemTotal, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetMemExternEstim(scip)
ccall((:SCIPgetMemExternEstim, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPcalcMemGrowSize(scip, num)
ccall((:SCIPcalcMemGrowSize, libscip), Cint, (Ptr{SCIP}, Cint), scip, num)
end
function SCIPprintMemoryDiagnostic(scip)
ccall((:SCIPprintMemoryDiagnostic, libscip), Cvoid, (Ptr{SCIP},), scip)
end
function SCIPsetMessagehdlr(scip, messagehdlr)
ccall(
(:SCIPsetMessagehdlr, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_MESSAGEHDLR}),
scip,
messagehdlr,
)
end
function SCIPgetMessagehdlr(scip)
ccall(
(:SCIPgetMessagehdlr, libscip),
Ptr{SCIP_MESSAGEHDLR},
(Ptr{SCIP},),
scip,
)
end
function SCIPsetMessagehdlrLogfile(scip, filename)
ccall(
(:SCIPsetMessagehdlrLogfile, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Cchar}),
scip,
filename,
)
end
function SCIPsetMessagehdlrQuiet(scip, quiet)
ccall(
(:SCIPsetMessagehdlrQuiet, libscip),
Cvoid,
(Ptr{SCIP}, Cuint),
scip,
quiet,
)
end
function SCIPgetVerbLevel(scip)
ccall((:SCIPgetVerbLevel, libscip), SCIP_VERBLEVEL, (Ptr{SCIP},), scip)
end
function SCIPisNLPEnabled(scip)
ccall((:SCIPisNLPEnabled, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPenableNLP(scip)
ccall((:SCIPenableNLP, libscip), Cvoid, (Ptr{SCIP},), scip)
end
function SCIPisNLPConstructed(scip)
ccall((:SCIPisNLPConstructed, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPhasNLPContinuousNonlinearity(scip, result)
ccall(
(:SCIPhasNLPContinuousNonlinearity, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cuint}),
scip,
result,
)
end
function SCIPgetNLPVarsData(scip, vars, nvars)
ccall(
(:SCIPgetNLPVarsData, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{Ptr{SCIP_VAR}}}, Ptr{Cint}),
scip,
vars,
nvars,
)
end
function SCIPgetNLPVars(scip)
ccall((:SCIPgetNLPVars, libscip), Ptr{Ptr{SCIP_VAR}}, (Ptr{SCIP},), scip)
end
function SCIPgetNNLPVars(scip)
ccall((:SCIPgetNNLPVars, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNLPVarsNonlinearity(scip, nlcount)
ccall(
(:SCIPgetNLPVarsNonlinearity, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cint}),
scip,
nlcount,
)
end
function SCIPgetNLPVarsLbDualsol(scip)
ccall((:SCIPgetNLPVarsLbDualsol, libscip), Ptr{Cdouble}, (Ptr{SCIP},), scip)
end
function SCIPgetNLPVarsUbDualsol(scip)
ccall((:SCIPgetNLPVarsUbDualsol, libscip), Ptr{Cdouble}, (Ptr{SCIP},), scip)
end
function SCIPgetNLPNlRowsData(scip, nlrows, nnlrows)
ccall(
(:SCIPgetNLPNlRowsData, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{Ptr{SCIP_NLROW}}}, Ptr{Cint}),
scip,
nlrows,
nnlrows,
)
end
function SCIPgetNLPNlRows(scip)
ccall(
(:SCIPgetNLPNlRows, libscip),
Ptr{Ptr{SCIP_NLROW}},
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNNLPNlRows(scip)
ccall((:SCIPgetNNLPNlRows, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPaddNlRow(scip, nlrow)
ccall(
(:SCIPaddNlRow, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}),
scip,
nlrow,
)
end
function SCIPdelNlRow(scip, nlrow)
ccall(
(:SCIPdelNlRow, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}),
scip,
nlrow,
)
end
function SCIPflushNLP(scip)
ccall((:SCIPflushNLP, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPsetNLPInitialGuess(scip, initialguess)
ccall(
(:SCIPsetNLPInitialGuess, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cdouble}),
scip,
initialguess,
)
end
function SCIPsetNLPInitialGuessSol(scip, sol)
ccall(
(:SCIPsetNLPInitialGuessSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}),
scip,
sol,
)
end
function SCIPgetNLPSolstat(scip)
ccall((:SCIPgetNLPSolstat, libscip), SCIP_NLPSOLSTAT, (Ptr{SCIP},), scip)
end
function SCIPgetNLPTermstat(scip)
ccall((:SCIPgetNLPTermstat, libscip), SCIP_NLPTERMSTAT, (Ptr{SCIP},), scip)
end
function SCIPgetNLPStatistics(scip, statistics)
ccall(
(:SCIPgetNLPStatistics, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLPSTATISTICS}),
scip,
statistics,
)
end
function SCIPgetNLPObjval(scip)
ccall((:SCIPgetNLPObjval, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPhasNLPSolution(scip)
ccall((:SCIPhasNLPSolution, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPgetNLPFracVars(
scip,
fracvars,
fracvarssol,
fracvarsfrac,
nfracvars,
npriofracvars,
)
ccall(
(:SCIPgetNLPFracVars, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{Ptr{SCIP_VAR}}},
Ptr{Ptr{Cdouble}},
Ptr{Ptr{Cdouble}},
Ptr{Cint},
Ptr{Cint},
),
scip,
fracvars,
fracvarssol,
fracvarsfrac,
nfracvars,
npriofracvars,
)
end
function SCIPwriteNLP(scip, filename)
ccall(
(:SCIPwriteNLP, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}),
scip,
filename,
)
end
function SCIPgetNLPI(scip, nlpi, nlpiproblem)
ccall(
(:SCIPgetNLPI, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_NLPI}}, Ptr{Ptr{SCIP_NLPIPROBLEM}}),
scip,
nlpi,
nlpiproblem,
)
end
function SCIPstartDiveNLP(scip)
ccall((:SCIPstartDiveNLP, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPendDiveNLP(scip)
ccall((:SCIPendDiveNLP, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPchgVarObjDiveNLP(scip, var, coef)
ccall(
(:SCIPchgVarObjDiveNLP, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
coef,
)
end
function SCIPchgVarBoundsDiveNLP(scip, var, lb, ub)
ccall(
(:SCIPchgVarBoundsDiveNLP, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble, Cdouble),
scip,
var,
lb,
ub,
)
end
function SCIPchgVarsBoundsDiveNLP(scip, nvars, vars, lbs, ubs)
ccall(
(:SCIPchgVarsBoundsDiveNLP, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cint, Ptr{Ptr{SCIP_VAR}}, Ptr{Cdouble}, Ptr{Cdouble}),
scip,
nvars,
vars,
lbs,
ubs,
)
end
function SCIPcreateNlRow(
scip,
nlrow,
name,
constant,
nlinvars,
linvars,
lincoefs,
expr,
lhs,
rhs,
curvature,
)
ccall(
(:SCIPcreateNlRow, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_NLROW}},
Ptr{Cchar},
Cdouble,
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Ptr{SCIP_EXPR},
Cdouble,
Cdouble,
SCIP_EXPRCURV,
),
scip,
nlrow,
name,
constant,
nlinvars,
linvars,
lincoefs,
expr,
lhs,
rhs,
curvature,
)
end
function SCIPcreateEmptyNlRow(scip, nlrow, name, lhs, rhs)
ccall(
(:SCIPcreateEmptyNlRow, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_NLROW}}, Ptr{Cchar}, Cdouble, Cdouble),
scip,
nlrow,
name,
lhs,
rhs,
)
end
function SCIPcreateNlRowFromRow(scip, nlrow, row)
ccall(
(:SCIPcreateNlRowFromRow, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_NLROW}}, Ptr{SCIP_ROW}),
scip,
nlrow,
row,
)
end
function SCIPcaptureNlRow(scip, nlrow)
ccall(
(:SCIPcaptureNlRow, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}),
scip,
nlrow,
)
end
function SCIPreleaseNlRow(scip, nlrow)
ccall(
(:SCIPreleaseNlRow, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_NLROW}}),
scip,
nlrow,
)
end
function SCIPchgNlRowLhs(scip, nlrow, lhs)
ccall(
(:SCIPchgNlRowLhs, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}, Cdouble),
scip,
nlrow,
lhs,
)
end
function SCIPchgNlRowRhs(scip, nlrow, rhs)
ccall(
(:SCIPchgNlRowRhs, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}, Cdouble),
scip,
nlrow,
rhs,
)
end
function SCIPchgNlRowConstant(scip, nlrow, constant)
ccall(
(:SCIPchgNlRowConstant, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}, Cdouble),
scip,
nlrow,
constant,
)
end
function SCIPaddLinearCoefToNlRow(scip, nlrow, var, val)
ccall(
(:SCIPaddLinearCoefToNlRow, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}, Ptr{SCIP_VAR}, Cdouble),
scip,
nlrow,
var,
val,
)
end
function SCIPaddLinearCoefsToNlRow(scip, nlrow, nvars, vars, vals)
ccall(
(:SCIPaddLinearCoefsToNlRow, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}, Cint, Ptr{Ptr{SCIP_VAR}}, Ptr{Cdouble}),
scip,
nlrow,
nvars,
vars,
vals,
)
end
function SCIPchgNlRowLinearCoef(scip, nlrow, var, coef)
ccall(
(:SCIPchgNlRowLinearCoef, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}, Ptr{SCIP_VAR}, Cdouble),
scip,
nlrow,
var,
coef,
)
end
function SCIPsetNlRowExpr(scip, nlrow, expr)
ccall(
(:SCIPsetNlRowExpr, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}, Ptr{SCIP_EXPR}),
scip,
nlrow,
expr,
)
end
function SCIPrecalcNlRowNLPActivity(scip, nlrow)
ccall(
(:SCIPrecalcNlRowNLPActivity, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}),
scip,
nlrow,
)
end
function SCIPgetNlRowNLPActivity(scip, nlrow, activity)
ccall(
(:SCIPgetNlRowNLPActivity, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}, Ptr{Cdouble}),
scip,
nlrow,
activity,
)
end
function SCIPgetNlRowNLPFeasibility(scip, nlrow, feasibility)
ccall(
(:SCIPgetNlRowNLPFeasibility, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}, Ptr{Cdouble}),
scip,
nlrow,
feasibility,
)
end
function SCIPrecalcNlRowPseudoActivity(scip, nlrow)
ccall(
(:SCIPrecalcNlRowPseudoActivity, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}),
scip,
nlrow,
)
end
function SCIPgetNlRowPseudoActivity(scip, nlrow, pseudoactivity)
ccall(
(:SCIPgetNlRowPseudoActivity, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}, Ptr{Cdouble}),
scip,
nlrow,
pseudoactivity,
)
end
function SCIPgetNlRowPseudoFeasibility(scip, nlrow, pseudofeasibility)
ccall(
(:SCIPgetNlRowPseudoFeasibility, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}, Ptr{Cdouble}),
scip,
nlrow,
pseudofeasibility,
)
end
function SCIPrecalcNlRowActivity(scip, nlrow)
ccall(
(:SCIPrecalcNlRowActivity, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}),
scip,
nlrow,
)
end
function SCIPgetNlRowActivity(scip, nlrow, activity)
ccall(
(:SCIPgetNlRowActivity, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}, Ptr{Cdouble}),
scip,
nlrow,
activity,
)
end
function SCIPgetNlRowFeasibility(scip, nlrow, feasibility)
ccall(
(:SCIPgetNlRowFeasibility, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}, Ptr{Cdouble}),
scip,
nlrow,
feasibility,
)
end
function SCIPgetNlRowSolActivity(scip, nlrow, sol, activity)
ccall(
(:SCIPgetNlRowSolActivity, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}, Ptr{SCIP_SOL}, Ptr{Cdouble}),
scip,
nlrow,
sol,
activity,
)
end
function SCIPgetNlRowSolFeasibility(scip, nlrow, sol, feasibility)
ccall(
(:SCIPgetNlRowSolFeasibility, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}, Ptr{SCIP_SOL}, Ptr{Cdouble}),
scip,
nlrow,
sol,
feasibility,
)
end
function SCIPgetNlRowActivityBounds(scip, nlrow, minactivity, maxactivity)
ccall(
(:SCIPgetNlRowActivityBounds, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}, Ptr{Cdouble}, Ptr{Cdouble}),
scip,
nlrow,
minactivity,
maxactivity,
)
end
function SCIPprintNlRow(scip, nlrow, file)
ccall(
(:SCIPprintNlRow, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLROW}, Ptr{Libc.FILE}),
scip,
nlrow,
file,
)
end
function SCIPincludeNlpi(
scip,
name,
description,
priority,
nlpicopy,
nlpifree,
nlpigetsolverpointer,
nlpicreateproblem,
nlpifreeproblem,
nlpigetproblempointer,
nlpiaddvars,
nlpiaddconstraints,
nlpisetobjective,
nlpichgvarbounds,
nlpichgconssides,
nlpidelvarset,
nlpidelconsset,
nlpichglinearcoefs,
nlpichgexpr,
nlpichgobjconstant,
nlpisetinitialguess,
nlpisolve,
nlpigetsolstat,
nlpigettermstat,
nlpigetsolution,
nlpigetstatistics,
nlpidata,
)
ccall(
(:SCIPincludeNlpi, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_NLPIDATA},
),
scip,
name,
description,
priority,
nlpicopy,
nlpifree,
nlpigetsolverpointer,
nlpicreateproblem,
nlpifreeproblem,
nlpigetproblempointer,
nlpiaddvars,
nlpiaddconstraints,
nlpisetobjective,
nlpichgvarbounds,
nlpichgconssides,
nlpidelvarset,
nlpidelconsset,
nlpichglinearcoefs,
nlpichgexpr,
nlpichgobjconstant,
nlpisetinitialguess,
nlpisolve,
nlpigetsolstat,
nlpigettermstat,
nlpigetsolution,
nlpigetstatistics,
nlpidata,
)
end
function SCIPfindNlpi(scip, name)
ccall(
(:SCIPfindNlpi, libscip),
Ptr{SCIP_NLPI},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetNlpis(scip)
ccall((:SCIPgetNlpis, libscip), Ptr{Ptr{SCIP_NLPI}}, (Ptr{SCIP},), scip)
end
function SCIPgetNNlpis(scip)
ccall((:SCIPgetNNlpis, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPsetNlpiPriority(scip, nlpi, priority)
ccall(
(:SCIPsetNlpiPriority, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLPI}, Cint),
scip,
nlpi,
priority,
)
end
function SCIPgetNlpiSolverPointer(scip, nlpi, problem)
ccall(
(:SCIPgetNlpiSolverPointer, libscip),
Ptr{Cvoid},
(Ptr{SCIP}, Ptr{SCIP_NLPI}, Ptr{SCIP_NLPIPROBLEM}),
scip,
nlpi,
problem,
)
end
function SCIPcreateNlpiProblem(scip, nlpi, problem, name)
ccall(
(:SCIPcreateNlpiProblem, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLPI}, Ptr{Ptr{SCIP_NLPIPROBLEM}}, Ptr{Cchar}),
scip,
nlpi,
problem,
name,
)
end
function SCIPfreeNlpiProblem(scip, nlpi, problem)
ccall(
(:SCIPfreeNlpiProblem, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLPI}, Ptr{Ptr{SCIP_NLPIPROBLEM}}),
scip,
nlpi,
problem,
)
end
function SCIPgetNlpiProblemPointer(scip, nlpi, problem)
ccall(
(:SCIPgetNlpiProblemPointer, libscip),
Ptr{Cvoid},
(Ptr{SCIP}, Ptr{SCIP_NLPI}, Ptr{SCIP_NLPIPROBLEM}),
scip,
nlpi,
problem,
)
end
function SCIPaddNlpiVars(scip, nlpi, problem, nvars, lbs, ubs, varnames)
ccall(
(:SCIPaddNlpiVars, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Cint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Ptr{Cchar}},
),
scip,
nlpi,
problem,
nvars,
lbs,
ubs,
varnames,
)
end
function SCIPaddNlpiConstraints(
scip,
nlpi,
problem,
nconss,
lhss,
rhss,
nlininds,
lininds,
linvals,
exprs,
names,
)
ccall(
(:SCIPaddNlpiConstraints, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Cint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Ptr{Cint}},
Ptr{Ptr{Cdouble}},
Ptr{Ptr{SCIP_EXPR}},
Ptr{Ptr{Cchar}},
),
scip,
nlpi,
problem,
nconss,
lhss,
rhss,
nlininds,
lininds,
linvals,
exprs,
names,
)
end
function SCIPsetNlpiObjective(
scip,
nlpi,
problem,
nlins,
lininds,
linvals,
expr,
constant,
)
ccall(
(:SCIPsetNlpiObjective, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Cint,
Ptr{Cint},
Ptr{Cdouble},
Ptr{SCIP_EXPR},
Cdouble,
),
scip,
nlpi,
problem,
nlins,
lininds,
linvals,
expr,
constant,
)
end
function SCIPchgNlpiVarBounds(scip, nlpi, problem, nvars, indices, lbs, ubs)
ccall(
(:SCIPchgNlpiVarBounds, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Cint,
Ptr{Cint},
Ptr{Cdouble},
Ptr{Cdouble},
),
scip,
nlpi,
problem,
nvars,
indices,
lbs,
ubs,
)
end
function SCIPchgNlpiConsSides(scip, nlpi, problem, nconss, indices, lhss, rhss)
ccall(
(:SCIPchgNlpiConsSides, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Cint,
Ptr{Cint},
Ptr{Cdouble},
Ptr{Cdouble},
),
scip,
nlpi,
problem,
nconss,
indices,
lhss,
rhss,
)
end
function SCIPdelNlpiVarSet(scip, nlpi, problem, dstats, dstatssize)
ccall(
(:SCIPdelNlpiVarSet, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLPI}, Ptr{SCIP_NLPIPROBLEM}, Ptr{Cint}, Cint),
scip,
nlpi,
problem,
dstats,
dstatssize,
)
end
function SCIPdelNlpiConsSet(scip, nlpi, problem, dstats, dstatssize)
ccall(
(:SCIPdelNlpiConsSet, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLPI}, Ptr{SCIP_NLPIPROBLEM}, Ptr{Cint}, Cint),
scip,
nlpi,
problem,
dstats,
dstatssize,
)
end
function SCIPchgNlpiLinearCoefs(scip, nlpi, problem, idx, nvals, varidxs, vals)
ccall(
(:SCIPchgNlpiLinearCoefs, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Cint,
Cint,
Ptr{Cint},
Ptr{Cdouble},
),
scip,
nlpi,
problem,
idx,
nvals,
varidxs,
vals,
)
end
function SCIPchgNlpiExpr(scip, nlpi, problem, idxcons, expr)
ccall(
(:SCIPchgNlpiExpr, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Cint,
Ptr{SCIP_EXPR},
),
scip,
nlpi,
problem,
idxcons,
expr,
)
end
function SCIPchgNlpiObjConstant(scip, nlpi, problem, objconstant)
ccall(
(:SCIPchgNlpiObjConstant, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NLPI}, Ptr{SCIP_NLPIPROBLEM}, Cdouble),
scip,
nlpi,
problem,
objconstant,
)
end
function SCIPsetNlpiInitialGuess(
scip,
nlpi,
problem,
primalvalues,
consdualvalues,
varlbdualvalues,
varubdualvalues,
)
ccall(
(:SCIPsetNlpiInitialGuess, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
),
scip,
nlpi,
problem,
primalvalues,
consdualvalues,
varlbdualvalues,
varubdualvalues,
)
end
function SCIPgetNlpiSolstat(scip, nlpi, problem)
ccall(
(:SCIPgetNlpiSolstat, libscip),
SCIP_NLPSOLSTAT,
(Ptr{SCIP}, Ptr{SCIP_NLPI}, Ptr{SCIP_NLPIPROBLEM}),
scip,
nlpi,
problem,
)
end
function SCIPgetNlpiTermstat(scip, nlpi, problem)
ccall(
(:SCIPgetNlpiTermstat, libscip),
SCIP_NLPTERMSTAT,
(Ptr{SCIP}, Ptr{SCIP_NLPI}, Ptr{SCIP_NLPIPROBLEM}),
scip,
nlpi,
problem,
)
end
function SCIPgetNlpiSolution(
scip,
nlpi,
problem,
primalvalues,
consdualvalues,
varlbdualvalues,
varubdualvalues,
objval,
)
ccall(
(:SCIPgetNlpiSolution, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Ptr{Ptr{Cdouble}},
Ptr{Ptr{Cdouble}},
Ptr{Ptr{Cdouble}},
Ptr{Ptr{Cdouble}},
Ptr{Cdouble},
),
scip,
nlpi,
problem,
primalvalues,
consdualvalues,
varlbdualvalues,
varubdualvalues,
objval,
)
end
function SCIPgetNlpiStatistics(scip, nlpi, problem, statistics)
ccall(
(:SCIPgetNlpiStatistics, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Ptr{SCIP_NLPSTATISTICS},
),
scip,
nlpi,
problem,
statistics,
)
end
function SCIPcreateNlpiProblemFromNlRows(
scip,
nlpi,
nlpiprob,
name,
nlrows,
nnlrows,
var2idx,
nlrow2idx,
nlscore,
cutoffbound,
setobj,
onlyconvex,
)
ccall(
(:SCIPcreateNlpiProblemFromNlRows, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_NLPI},
Ptr{Ptr{SCIP_NLPIPROBLEM}},
Ptr{Cchar},
Ptr{Ptr{SCIP_NLROW}},
Cint,
Ptr{SCIP_HASHMAP},
Ptr{SCIP_HASHMAP},
Ptr{Cdouble},
Cdouble,
Cuint,
Cuint,
),
scip,
nlpi,
nlpiprob,
name,
nlrows,
nnlrows,
var2idx,
nlrow2idx,
nlscore,
cutoffbound,
setobj,
onlyconvex,
)
end
function SCIPupdateNlpiProblem(
scip,
nlpi,
nlpiprob,
var2nlpiidx,
nlpivars,
nlpinvars,
cutoffbound,
)
ccall(
(:SCIPupdateNlpiProblem, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Ptr{SCIP_HASHMAP},
Ptr{Ptr{SCIP_VAR}},
Cint,
Cdouble,
),
scip,
nlpi,
nlpiprob,
var2nlpiidx,
nlpivars,
nlpinvars,
cutoffbound,
)
end
function SCIPaddNlpiProblemRows(scip, nlpi, nlpiprob, var2idx, rows, nrows)
ccall(
(:SCIPaddNlpiProblemRows, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Ptr{SCIP_HASHMAP},
Ptr{Ptr{SCIP_ROW}},
Cint,
),
scip,
nlpi,
nlpiprob,
var2idx,
rows,
nrows,
)
end
function SCIPaddNlpiProblemNlRows(
scip,
nlpi,
nlpiprob,
var2idx,
nlrows,
nnlrows,
)
ccall(
(:SCIPaddNlpiProblemNlRows, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_NLPI},
Ptr{SCIP_NLPIPROBLEM},
Ptr{SCIP_HASHMAP},
Ptr{Ptr{SCIP_NLROW}},
Cint,
),
scip,
nlpi,
nlpiprob,
var2idx,
nlrows,
nnlrows,
)
end
function SCIPincludeNodesel(
scip,
name,
desc,
stdpriority,
memsavepriority,
nodeselcopy,
nodeselfree,
nodeselinit,
nodeselexit,
nodeselinitsol,
nodeselexitsol,
nodeselselect,
nodeselcomp,
nodeseldata,
)
ccall(
(:SCIPincludeNodesel, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_NODESELDATA},
),
scip,
name,
desc,
stdpriority,
memsavepriority,
nodeselcopy,
nodeselfree,
nodeselinit,
nodeselexit,
nodeselinitsol,
nodeselexitsol,
nodeselselect,
nodeselcomp,
nodeseldata,
)
end
function SCIPincludeNodeselBasic(
scip,
nodesel,
name,
desc,
stdpriority,
memsavepriority,
nodeselselect,
nodeselcomp,
nodeseldata,
)
ccall(
(:SCIPincludeNodeselBasic, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_NODESEL}},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_NODESELDATA},
),
scip,
nodesel,
name,
desc,
stdpriority,
memsavepriority,
nodeselselect,
nodeselcomp,
nodeseldata,
)
end
function SCIPsetNodeselCopy(scip, nodesel, nodeselcopy)
ccall(
(:SCIPsetNodeselCopy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODESEL}, Ptr{Cvoid}),
scip,
nodesel,
nodeselcopy,
)
end
function SCIPsetNodeselFree(scip, nodesel, nodeselfree)
ccall(
(:SCIPsetNodeselFree, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODESEL}, Ptr{Cvoid}),
scip,
nodesel,
nodeselfree,
)
end
function SCIPsetNodeselInit(scip, nodesel, nodeselinit)
ccall(
(:SCIPsetNodeselInit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODESEL}, Ptr{Cvoid}),
scip,
nodesel,
nodeselinit,
)
end
function SCIPsetNodeselExit(scip, nodesel, nodeselexit)
ccall(
(:SCIPsetNodeselExit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODESEL}, Ptr{Cvoid}),
scip,
nodesel,
nodeselexit,
)
end
function SCIPsetNodeselInitsol(scip, nodesel, nodeselinitsol)
ccall(
(:SCIPsetNodeselInitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODESEL}, Ptr{Cvoid}),
scip,
nodesel,
nodeselinitsol,
)
end
function SCIPsetNodeselExitsol(scip, nodesel, nodeselexitsol)
ccall(
(:SCIPsetNodeselExitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODESEL}, Ptr{Cvoid}),
scip,
nodesel,
nodeselexitsol,
)
end
function SCIPfindNodesel(scip, name)
ccall(
(:SCIPfindNodesel, libscip),
Ptr{SCIP_NODESEL},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetNodesels(scip)
ccall(
(:SCIPgetNodesels, libscip),
Ptr{Ptr{SCIP_NODESEL}},
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNNodesels(scip)
ccall((:SCIPgetNNodesels, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPsetNodeselStdPriority(scip, nodesel, priority)
ccall(
(:SCIPsetNodeselStdPriority, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODESEL}, Cint),
scip,
nodesel,
priority,
)
end
function SCIPsetNodeselMemsavePriority(scip, nodesel, priority)
ccall(
(:SCIPsetNodeselMemsavePriority, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODESEL}, Cint),
scip,
nodesel,
priority,
)
end
function SCIPgetNodesel(scip)
ccall((:SCIPgetNodesel, libscip), Ptr{SCIP_NODESEL}, (Ptr{SCIP},), scip)
end
function SCIPepsilon(scip)
ccall((:SCIPepsilon, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPsumepsilon(scip)
ccall((:SCIPsumepsilon, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPlpfeastol(scip)
ccall((:SCIPlpfeastol, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPbarrierconvtol(scip)
ccall((:SCIPbarrierconvtol, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPcutoffbounddelta(scip)
ccall((:SCIPcutoffbounddelta, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPrelaxfeastol(scip)
ccall((:SCIPrelaxfeastol, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPchgFeastol(scip, feastol)
ccall(
(:SCIPchgFeastol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cdouble),
scip,
feastol,
)
end
function SCIPchgLpfeastol(scip, lpfeastol, printnewvalue)
ccall(
(:SCIPchgLpfeastol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cdouble, Cuint),
scip,
lpfeastol,
printnewvalue,
)
end
function SCIPchgDualfeastol(scip, dualfeastol)
ccall(
(:SCIPchgDualfeastol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cdouble),
scip,
dualfeastol,
)
end
function SCIPchgBarrierconvtol(scip, barrierconvtol)
ccall(
(:SCIPchgBarrierconvtol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cdouble),
scip,
barrierconvtol,
)
end
function SCIPchgRelaxfeastol(scip, relaxfeastol)
ccall(
(:SCIPchgRelaxfeastol, libscip),
Cdouble,
(Ptr{SCIP}, Cdouble),
scip,
relaxfeastol,
)
end
function SCIPmarkLimitChanged(scip)
ccall((:SCIPmarkLimitChanged, libscip), Cvoid, (Ptr{SCIP},), scip)
end
function SCIPinfinity(scip)
ccall((:SCIPinfinity, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetHugeValue(scip)
ccall((:SCIPgetHugeValue, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPisEQ(scip, val1, val2)
ccall(
(:SCIPisEQ, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisLT(scip, val1, val2)
ccall(
(:SCIPisLT, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisLE(scip, val1, val2)
ccall(
(:SCIPisLE, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisGT(scip, val1, val2)
ccall(
(:SCIPisGT, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisGE(scip, val1, val2)
ccall(
(:SCIPisGE, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisInfinity(scip, val)
ccall((:SCIPisInfinity, libscip), Cuint, (Ptr{SCIP}, Cdouble), scip, val)
end
function SCIPisHugeValue(scip, val)
ccall((:SCIPisHugeValue, libscip), Cuint, (Ptr{SCIP}, Cdouble), scip, val)
end
function SCIPisZero(scip, val)
ccall((:SCIPisZero, libscip), Cuint, (Ptr{SCIP}, Cdouble), scip, val)
end
function SCIPisPositive(scip, val)
ccall((:SCIPisPositive, libscip), Cuint, (Ptr{SCIP}, Cdouble), scip, val)
end
function SCIPisNegative(scip, val)
ccall((:SCIPisNegative, libscip), Cuint, (Ptr{SCIP}, Cdouble), scip, val)
end
function SCIPisIntegral(scip, val)
ccall((:SCIPisIntegral, libscip), Cuint, (Ptr{SCIP}, Cdouble), scip, val)
end
function SCIPisScalingIntegral(scip, val, scalar)
ccall(
(:SCIPisScalingIntegral, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val,
scalar,
)
end
function SCIPisFracIntegral(scip, val)
ccall(
(:SCIPisFracIntegral, libscip),
Cuint,
(Ptr{SCIP}, Cdouble),
scip,
val,
)
end
function SCIPfloor(scip, val)
ccall((:SCIPfloor, libscip), Cdouble, (Ptr{SCIP}, Cdouble), scip, val)
end
function SCIPceil(scip, val)
ccall((:SCIPceil, libscip), Cdouble, (Ptr{SCIP}, Cdouble), scip, val)
end
function SCIPround(scip, val)
ccall((:SCIPround, libscip), Cdouble, (Ptr{SCIP}, Cdouble), scip, val)
end
function SCIPfrac(scip, val)
ccall((:SCIPfrac, libscip), Cdouble, (Ptr{SCIP}, Cdouble), scip, val)
end
function SCIPisSumEQ(scip, val1, val2)
ccall(
(:SCIPisSumEQ, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisSumLT(scip, val1, val2)
ccall(
(:SCIPisSumLT, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisSumLE(scip, val1, val2)
ccall(
(:SCIPisSumLE, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisSumGT(scip, val1, val2)
ccall(
(:SCIPisSumGT, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisSumGE(scip, val1, val2)
ccall(
(:SCIPisSumGE, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisSumZero(scip, val)
ccall((:SCIPisSumZero, libscip), Cuint, (Ptr{SCIP}, Cdouble), scip, val)
end
function SCIPisSumPositive(scip, val)
ccall((:SCIPisSumPositive, libscip), Cuint, (Ptr{SCIP}, Cdouble), scip, val)
end
function SCIPisSumNegative(scip, val)
ccall((:SCIPisSumNegative, libscip), Cuint, (Ptr{SCIP}, Cdouble), scip, val)
end
function SCIPisFeasEQ(scip, val1, val2)
ccall(
(:SCIPisFeasEQ, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisFeasLT(scip, val1, val2)
ccall(
(:SCIPisFeasLT, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisFeasLE(scip, val1, val2)
ccall(
(:SCIPisFeasLE, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisFeasGT(scip, val1, val2)
ccall(
(:SCIPisFeasGT, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisFeasGE(scip, val1, val2)
ccall(
(:SCIPisFeasGE, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisFeasZero(scip, val)
ccall((:SCIPisFeasZero, libscip), Cuint, (Ptr{SCIP}, Cdouble), scip, val)
end
function SCIPisFeasPositive(scip, val)
ccall(
(:SCIPisFeasPositive, libscip),
Cuint,
(Ptr{SCIP}, Cdouble),
scip,
val,
)
end
function SCIPisFeasNegative(scip, val)
ccall(
(:SCIPisFeasNegative, libscip),
Cuint,
(Ptr{SCIP}, Cdouble),
scip,
val,
)
end
function SCIPisFeasIntegral(scip, val)
ccall(
(:SCIPisFeasIntegral, libscip),
Cuint,
(Ptr{SCIP}, Cdouble),
scip,
val,
)
end
function SCIPisFeasFracIntegral(scip, val)
ccall(
(:SCIPisFeasFracIntegral, libscip),
Cuint,
(Ptr{SCIP}, Cdouble),
scip,
val,
)
end
function SCIPfeasFloor(scip, val)
ccall((:SCIPfeasFloor, libscip), Cdouble, (Ptr{SCIP}, Cdouble), scip, val)
end
function SCIPfeasCeil(scip, val)
ccall((:SCIPfeasCeil, libscip), Cdouble, (Ptr{SCIP}, Cdouble), scip, val)
end
function SCIPfeasRound(scip, val)
ccall((:SCIPfeasRound, libscip), Cdouble, (Ptr{SCIP}, Cdouble), scip, val)
end
function SCIPfeasFrac(scip, val)
ccall((:SCIPfeasFrac, libscip), Cdouble, (Ptr{SCIP}, Cdouble), scip, val)
end
function SCIPisDualfeasEQ(scip, val1, val2)
ccall(
(:SCIPisDualfeasEQ, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisDualfeasLT(scip, val1, val2)
ccall(
(:SCIPisDualfeasLT, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisDualfeasLE(scip, val1, val2)
ccall(
(:SCIPisDualfeasLE, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisDualfeasGT(scip, val1, val2)
ccall(
(:SCIPisDualfeasGT, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisDualfeasGE(scip, val1, val2)
ccall(
(:SCIPisDualfeasGE, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisDualfeasZero(scip, val)
ccall(
(:SCIPisDualfeasZero, libscip),
Cuint,
(Ptr{SCIP}, Cdouble),
scip,
val,
)
end
function SCIPisDualfeasPositive(scip, val)
ccall(
(:SCIPisDualfeasPositive, libscip),
Cuint,
(Ptr{SCIP}, Cdouble),
scip,
val,
)
end
function SCIPisDualfeasNegative(scip, val)
ccall(
(:SCIPisDualfeasNegative, libscip),
Cuint,
(Ptr{SCIP}, Cdouble),
scip,
val,
)
end
function SCIPisDualfeasIntegral(scip, val)
ccall(
(:SCIPisDualfeasIntegral, libscip),
Cuint,
(Ptr{SCIP}, Cdouble),
scip,
val,
)
end
function SCIPisDualfeasFracIntegral(scip, val)
ccall(
(:SCIPisDualfeasFracIntegral, libscip),
Cuint,
(Ptr{SCIP}, Cdouble),
scip,
val,
)
end
function SCIPdualfeasFloor(scip, val)
ccall(
(:SCIPdualfeasFloor, libscip),
Cdouble,
(Ptr{SCIP}, Cdouble),
scip,
val,
)
end
function SCIPdualfeasCeil(scip, val)
ccall(
(:SCIPdualfeasCeil, libscip),
Cdouble,
(Ptr{SCIP}, Cdouble),
scip,
val,
)
end
function SCIPdualfeasRound(scip, val)
ccall(
(:SCIPdualfeasRound, libscip),
Cdouble,
(Ptr{SCIP}, Cdouble),
scip,
val,
)
end
function SCIPdualfeasFrac(scip, val)
ccall(
(:SCIPdualfeasFrac, libscip),
Cdouble,
(Ptr{SCIP}, Cdouble),
scip,
val,
)
end
function SCIPisLbBetter(scip, newlb, oldlb, oldub)
ccall(
(:SCIPisLbBetter, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble, Cdouble),
scip,
newlb,
oldlb,
oldub,
)
end
function SCIPisUbBetter(scip, newub, oldlb, oldub)
ccall(
(:SCIPisUbBetter, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble, Cdouble),
scip,
newub,
oldlb,
oldub,
)
end
function SCIPisRelEQ(scip, val1, val2)
ccall(
(:SCIPisRelEQ, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisRelLT(scip, val1, val2)
ccall(
(:SCIPisRelLT, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisRelLE(scip, val1, val2)
ccall(
(:SCIPisRelLE, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisRelGT(scip, val1, val2)
ccall(
(:SCIPisRelGT, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisRelGE(scip, val1, val2)
ccall(
(:SCIPisRelGE, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisSumRelEQ(scip, val1, val2)
ccall(
(:SCIPisSumRelEQ, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisSumRelLT(scip, val1, val2)
ccall(
(:SCIPisSumRelLT, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisSumRelLE(scip, val1, val2)
ccall(
(:SCIPisSumRelLE, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisSumRelGT(scip, val1, val2)
ccall(
(:SCIPisSumRelGT, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPisSumRelGE(scip, val1, val2)
ccall(
(:SCIPisSumRelGE, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
val1,
val2,
)
end
function SCIPconvertRealToInt(scip, real)
ccall(
(:SCIPconvertRealToInt, libscip),
Cint,
(Ptr{SCIP}, Cdouble),
scip,
real,
)
end
function SCIPconvertRealToLongint(scip, real)
ccall(
(:SCIPconvertRealToLongint, libscip),
Clonglong,
(Ptr{SCIP}, Cdouble),
scip,
real,
)
end
function SCIPisUpdateUnreliable(scip, newvalue, oldvalue)
ccall(
(:SCIPisUpdateUnreliable, libscip),
Cuint,
(Ptr{SCIP}, Cdouble, Cdouble),
scip,
newvalue,
oldvalue,
)
end
function SCIPprintReal(scip, file, val, width, precision)
ccall(
(:SCIPprintReal, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}, Cdouble, Cint, Cint),
scip,
file,
val,
width,
precision,
)
end
function SCIPparseReal(scip, str, value, endptr)
ccall(
(:SCIPparseReal, libscip),
Cuint,
(Ptr{SCIP}, Ptr{Cchar}, Ptr{Cdouble}, Ptr{Ptr{Cchar}}),
scip,
str,
value,
endptr,
)
end
function SCIPaddBoolParam(
scip,
name,
desc,
valueptr,
isadvanced,
defaultvalue,
paramchgd,
paramdata,
)
ccall(
(:SCIPaddBoolParam, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Ptr{Cuint},
Cuint,
Cuint,
Ptr{Cvoid},
Ptr{SCIP_PARAMDATA},
),
scip,
name,
desc,
valueptr,
isadvanced,
defaultvalue,
paramchgd,
paramdata,
)
end
function SCIPaddIntParam(
scip,
name,
desc,
valueptr,
isadvanced,
defaultvalue,
minvalue,
maxvalue,
paramchgd,
paramdata,
)
ccall(
(:SCIPaddIntParam, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Ptr{Cint},
Cuint,
Cint,
Cint,
Cint,
Ptr{Cvoid},
Ptr{SCIP_PARAMDATA},
),
scip,
name,
desc,
valueptr,
isadvanced,
defaultvalue,
minvalue,
maxvalue,
paramchgd,
paramdata,
)
end
function SCIPaddLongintParam(
scip,
name,
desc,
valueptr,
isadvanced,
defaultvalue,
minvalue,
maxvalue,
paramchgd,
paramdata,
)
ccall(
(:SCIPaddLongintParam, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Ptr{Clonglong},
Cuint,
Clonglong,
Clonglong,
Clonglong,
Ptr{Cvoid},
Ptr{SCIP_PARAMDATA},
),
scip,
name,
desc,
valueptr,
isadvanced,
defaultvalue,
minvalue,
maxvalue,
paramchgd,
paramdata,
)
end
function SCIPaddRealParam(
scip,
name,
desc,
valueptr,
isadvanced,
defaultvalue,
minvalue,
maxvalue,
paramchgd,
paramdata,
)
ccall(
(:SCIPaddRealParam, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Ptr{Cdouble},
Cuint,
Cdouble,
Cdouble,
Cdouble,
Ptr{Cvoid},
Ptr{SCIP_PARAMDATA},
),
scip,
name,
desc,
valueptr,
isadvanced,
defaultvalue,
minvalue,
maxvalue,
paramchgd,
paramdata,
)
end
function SCIPaddCharParam(
scip,
name,
desc,
valueptr,
isadvanced,
defaultvalue,
allowedvalues,
paramchgd,
paramdata,
)
ccall(
(:SCIPaddCharParam, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Ptr{Cchar},
Cuint,
Cchar,
Ptr{Cchar},
Ptr{Cvoid},
Ptr{SCIP_PARAMDATA},
),
scip,
name,
desc,
valueptr,
isadvanced,
defaultvalue,
allowedvalues,
paramchgd,
paramdata,
)
end
function SCIPaddStringParam(
scip,
name,
desc,
valueptr,
isadvanced,
defaultvalue,
paramchgd,
paramdata,
)
ccall(
(:SCIPaddStringParam, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Ptr{Ptr{Cchar}},
Cuint,
Ptr{Cchar},
Ptr{Cvoid},
Ptr{SCIP_PARAMDATA},
),
scip,
name,
desc,
valueptr,
isadvanced,
defaultvalue,
paramchgd,
paramdata,
)
end
function SCIPisParamFixed(scip, name)
ccall(
(:SCIPisParamFixed, libscip),
Cuint,
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetParam(scip, name)
ccall(
(:SCIPgetParam, libscip),
Ptr{SCIP_PARAM},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetBoolParam(scip, name, value)
ccall(
(:SCIPgetBoolParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Ptr{Cuint}),
scip,
name,
value,
)
end
function SCIPgetIntParam(scip, name, value)
ccall(
(:SCIPgetIntParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Ptr{Cint}),
scip,
name,
value,
)
end
function SCIPgetLongintParam(scip, name, value)
ccall(
(:SCIPgetLongintParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Ptr{Clonglong}),
scip,
name,
value,
)
end
function SCIPgetRealParam(scip, name, value)
ccall(
(:SCIPgetRealParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Ptr{Cdouble}),
scip,
name,
value,
)
end
function SCIPgetCharParam(scip, name, value)
ccall(
(:SCIPgetCharParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Ptr{Cchar}),
scip,
name,
value,
)
end
function SCIPgetStringParam(scip, name, value)
ccall(
(:SCIPgetStringParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Ptr{Ptr{Cchar}}),
scip,
name,
value,
)
end
function SCIPfixParam(scip, name)
ccall(
(:SCIPfixParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPunfixParam(scip, name)
ccall(
(:SCIPunfixParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPchgBoolParam(scip, param, value)
ccall(
(:SCIPchgBoolParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PARAM}, Cuint),
scip,
param,
value,
)
end
function SCIPsetBoolParam(scip, name, value)
ccall(
(:SCIPsetBoolParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Cuint),
scip,
name,
value,
)
end
function SCIPisBoolParamValid(scip, param, value)
ccall(
(:SCIPisBoolParamValid, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_PARAM}, Cuint),
scip,
param,
value,
)
end
function SCIPchgIntParam(scip, param, value)
ccall(
(:SCIPchgIntParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PARAM}, Cint),
scip,
param,
value,
)
end
function SCIPsetIntParam(scip, name, value)
ccall(
(:SCIPsetIntParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Cint),
scip,
name,
value,
)
end
function SCIPisIntParamValid(scip, param, value)
ccall(
(:SCIPisIntParamValid, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_PARAM}, Cint),
scip,
param,
value,
)
end
function SCIPchgLongintParam(scip, param, value)
ccall(
(:SCIPchgLongintParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PARAM}, Clonglong),
scip,
param,
value,
)
end
function SCIPsetLongintParam(scip, name, value)
ccall(
(:SCIPsetLongintParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Clonglong),
scip,
name,
value,
)
end
function SCIPisLongintParamValid(scip, param, value)
ccall(
(:SCIPisLongintParamValid, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_PARAM}, Clonglong),
scip,
param,
value,
)
end
function SCIPchgRealParam(scip, param, value)
ccall(
(:SCIPchgRealParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PARAM}, Cdouble),
scip,
param,
value,
)
end
function SCIPsetRealParam(scip, name, value)
ccall(
(:SCIPsetRealParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Cdouble),
scip,
name,
value,
)
end
function SCIPisRealParamValid(scip, param, value)
ccall(
(:SCIPisRealParamValid, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_PARAM}, Cdouble),
scip,
param,
value,
)
end
function SCIPchgCharParam(scip, param, value)
ccall(
(:SCIPchgCharParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PARAM}, Cchar),
scip,
param,
value,
)
end
function SCIPsetCharParam(scip, name, value)
ccall(
(:SCIPsetCharParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Cchar),
scip,
name,
value,
)
end
function SCIPisCharParamValid(scip, param, value)
ccall(
(:SCIPisCharParamValid, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_PARAM}, Cchar),
scip,
param,
value,
)
end
function SCIPchgStringParam(scip, param, value)
ccall(
(:SCIPchgStringParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PARAM}, Ptr{Cchar}),
scip,
param,
value,
)
end
function SCIPsetStringParam(scip, name, value)
ccall(
(:SCIPsetStringParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Ptr{Cchar}),
scip,
name,
value,
)
end
function SCIPisStringParamValid(scip, param, value)
ccall(
(:SCIPisStringParamValid, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_PARAM}, Ptr{Cchar}),
scip,
param,
value,
)
end
function SCIPreadParams(scip, filename)
ccall(
(:SCIPreadParams, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}),
scip,
filename,
)
end
function SCIPwriteParam(scip, param, filename, comments, onlychanged)
ccall(
(:SCIPwriteParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PARAM}, Ptr{Cchar}, Cuint, Cuint),
scip,
param,
filename,
comments,
onlychanged,
)
end
function SCIPwriteParams(scip, filename, comments, onlychanged)
ccall(
(:SCIPwriteParams, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Cuint, Cuint),
scip,
filename,
comments,
onlychanged,
)
end
function SCIPresetParam(scip, name)
ccall(
(:SCIPresetParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPresetParams(scip)
ccall((:SCIPresetParams, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPsetEmphasis(scip, paramemphasis, quiet)
ccall(
(:SCIPsetEmphasis, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, SCIP_PARAMEMPHASIS, Cuint),
scip,
paramemphasis,
quiet,
)
end
function SCIPsetSubscipsOff(scip, quiet)
ccall(
(:SCIPsetSubscipsOff, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cuint),
scip,
quiet,
)
end
function SCIPsetHeuristics(scip, paramsetting, quiet)
ccall(
(:SCIPsetHeuristics, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, SCIP_PARAMSETTING, Cuint),
scip,
paramsetting,
quiet,
)
end
function SCIPsetPresolving(scip, paramsetting, quiet)
ccall(
(:SCIPsetPresolving, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, SCIP_PARAMSETTING, Cuint),
scip,
paramsetting,
quiet,
)
end
function SCIPsetSeparating(scip, paramsetting, quiet)
ccall(
(:SCIPsetSeparating, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, SCIP_PARAMSETTING, Cuint),
scip,
paramsetting,
quiet,
)
end
function SCIPgetParams(scip)
ccall((:SCIPgetParams, libscip), Ptr{Ptr{SCIP_PARAM}}, (Ptr{SCIP},), scip)
end
function SCIPgetNParams(scip)
ccall((:SCIPgetNParams, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetSubscipsOff(scip)
ccall((:SCIPgetSubscipsOff, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPincludePresol(
scip,
name,
desc,
priority,
maxrounds,
timing,
presolcopy,
presolfree,
presolinit,
presolexit,
presolinitpre,
presolexitpre,
presolexec,
presoldata,
)
ccall(
(:SCIPincludePresol, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cint,
SCIP_PRESOLTIMING,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_PRESOLDATA},
),
scip,
name,
desc,
priority,
maxrounds,
timing,
presolcopy,
presolfree,
presolinit,
presolexit,
presolinitpre,
presolexitpre,
presolexec,
presoldata,
)
end
function SCIPincludePresolBasic(
scip,
presolptr,
name,
desc,
priority,
maxrounds,
timing,
presolexec,
presoldata,
)
ccall(
(:SCIPincludePresolBasic, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_PRESOL}},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cint,
SCIP_PRESOLTIMING,
Ptr{Cvoid},
Ptr{SCIP_PRESOLDATA},
),
scip,
presolptr,
name,
desc,
priority,
maxrounds,
timing,
presolexec,
presoldata,
)
end
function SCIPsetPresolCopy(scip, presol, presolcopy)
ccall(
(:SCIPsetPresolCopy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PRESOL}, Ptr{Cvoid}),
scip,
presol,
presolcopy,
)
end
function SCIPsetPresolFree(scip, presol, presolfree)
ccall(
(:SCIPsetPresolFree, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PRESOL}, Ptr{Cvoid}),
scip,
presol,
presolfree,
)
end
function SCIPsetPresolInit(scip, presol, presolinit)
ccall(
(:SCIPsetPresolInit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PRESOL}, Ptr{Cvoid}),
scip,
presol,
presolinit,
)
end
function SCIPsetPresolExit(scip, presol, presolexit)
ccall(
(:SCIPsetPresolExit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PRESOL}, Ptr{Cvoid}),
scip,
presol,
presolexit,
)
end
function SCIPsetPresolInitpre(scip, presol, presolinitpre)
ccall(
(:SCIPsetPresolInitpre, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PRESOL}, Ptr{Cvoid}),
scip,
presol,
presolinitpre,
)
end
function SCIPsetPresolExitpre(scip, presol, presolexitpre)
ccall(
(:SCIPsetPresolExitpre, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PRESOL}, Ptr{Cvoid}),
scip,
presol,
presolexitpre,
)
end
function SCIPfindPresol(scip, name)
ccall(
(:SCIPfindPresol, libscip),
Ptr{SCIP_PRESOL},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetPresols(scip)
ccall((:SCIPgetPresols, libscip), Ptr{Ptr{SCIP_PRESOL}}, (Ptr{SCIP},), scip)
end
function SCIPgetNPresols(scip)
ccall((:SCIPgetNPresols, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPsetPresolPriority(scip, presol, priority)
ccall(
(:SCIPsetPresolPriority, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PRESOL}, Cint),
scip,
presol,
priority,
)
end
function SCIPgetNPresolRounds(scip)
ccall((:SCIPgetNPresolRounds, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPincludePricer(
scip,
name,
desc,
priority,
delay,
pricercopy,
pricerfree,
pricerinit,
pricerexit,
pricerinitsol,
pricerexitsol,
pricerredcost,
pricerfarkas,
pricerdata,
)
ccall(
(:SCIPincludePricer, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cuint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_PRICERDATA},
),
scip,
name,
desc,
priority,
delay,
pricercopy,
pricerfree,
pricerinit,
pricerexit,
pricerinitsol,
pricerexitsol,
pricerredcost,
pricerfarkas,
pricerdata,
)
end
function SCIPincludePricerBasic(
scip,
pricerptr,
name,
desc,
priority,
delay,
pricerredcost,
pricerfarkas,
pricerdata,
)
ccall(
(:SCIPincludePricerBasic, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_PRICER}},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cuint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_PRICERDATA},
),
scip,
pricerptr,
name,
desc,
priority,
delay,
pricerredcost,
pricerfarkas,
pricerdata,
)
end
function SCIPsetPricerCopy(scip, pricer, pricercopy)
ccall(
(:SCIPsetPricerCopy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PRICER}, Ptr{Cvoid}),
scip,
pricer,
pricercopy,
)
end
function SCIPsetPricerFree(scip, pricer, pricerfree)
ccall(
(:SCIPsetPricerFree, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PRICER}, Ptr{Cvoid}),
scip,
pricer,
pricerfree,
)
end
function SCIPsetPricerInit(scip, pricer, pricerinit)
ccall(
(:SCIPsetPricerInit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PRICER}, Ptr{Cvoid}),
scip,
pricer,
pricerinit,
)
end
function SCIPsetPricerExit(scip, pricer, pricerexit)
ccall(
(:SCIPsetPricerExit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PRICER}, Ptr{Cvoid}),
scip,
pricer,
pricerexit,
)
end
function SCIPsetPricerInitsol(scip, pricer, pricerinitsol)
ccall(
(:SCIPsetPricerInitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PRICER}, Ptr{Cvoid}),
scip,
pricer,
pricerinitsol,
)
end
function SCIPsetPricerExitsol(scip, pricer, pricerexitsol)
ccall(
(:SCIPsetPricerExitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PRICER}, Ptr{Cvoid}),
scip,
pricer,
pricerexitsol,
)
end
function SCIPfindPricer(scip, name)
ccall(
(:SCIPfindPricer, libscip),
Ptr{SCIP_PRICER},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetPricers(scip)
ccall((:SCIPgetPricers, libscip), Ptr{Ptr{SCIP_PRICER}}, (Ptr{SCIP},), scip)
end
function SCIPgetNPricers(scip)
ccall((:SCIPgetNPricers, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNActivePricers(scip)
ccall((:SCIPgetNActivePricers, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPsetPricerPriority(scip, pricer, priority)
ccall(
(:SCIPsetPricerPriority, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PRICER}, Cint),
scip,
pricer,
priority,
)
end
function SCIPactivatePricer(scip, pricer)
ccall(
(:SCIPactivatePricer, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PRICER}),
scip,
pricer,
)
end
function SCIPdeactivatePricer(scip, pricer)
ccall(
(:SCIPdeactivatePricer, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PRICER}),
scip,
pricer,
)
end
function SCIPcreateProb(
scip,
name,
probdelorig,
probtrans,
probdeltrans,
probinitsol,
probexitsol,
probcopy,
probdata,
)
ccall(
(:SCIPcreateProb, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_PROBDATA},
),
scip,
name,
probdelorig,
probtrans,
probdeltrans,
probinitsol,
probexitsol,
probcopy,
probdata,
)
end
function SCIPcreateProbBasic(scip, name)
ccall(
(:SCIPcreateProbBasic, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPsetProbDelorig(scip, probdelorig)
ccall(
(:SCIPsetProbDelorig, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cvoid}),
scip,
probdelorig,
)
end
function SCIPsetProbTrans(scip, probtrans)
ccall(
(:SCIPsetProbTrans, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cvoid}),
scip,
probtrans,
)
end
function SCIPsetProbDeltrans(scip, probdeltrans)
ccall(
(:SCIPsetProbDeltrans, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cvoid}),
scip,
probdeltrans,
)
end
function SCIPsetProbInitsol(scip, probinitsol)
ccall(
(:SCIPsetProbInitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cvoid}),
scip,
probinitsol,
)
end
function SCIPsetProbExitsol(scip, probexitsol)
ccall(
(:SCIPsetProbExitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cvoid}),
scip,
probexitsol,
)
end
function SCIPsetProbCopy(scip, probcopy)
ccall(
(:SCIPsetProbCopy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cvoid}),
scip,
probcopy,
)
end
function SCIPreadProb(scip, filename, extension)
ccall(
(:SCIPreadProb, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Ptr{Cchar}),
scip,
filename,
extension,
)
end
function SCIPwriteOrigProblem(scip, filename, extension, genericnames)
ccall(
(:SCIPwriteOrigProblem, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Ptr{Cchar}, Cuint),
scip,
filename,
extension,
genericnames,
)
end
function SCIPwriteTransProblem(scip, filename, extension, genericnames)
ccall(
(:SCIPwriteTransProblem, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Ptr{Cchar}, Cuint),
scip,
filename,
extension,
genericnames,
)
end
function SCIPfreeProb(scip)
ccall((:SCIPfreeProb, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPpermuteProb(
scip,
randseed,
permuteconss,
permutebinvars,
permuteintvars,
permuteimplvars,
permutecontvars,
)
ccall(
(:SCIPpermuteProb, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cuint, Cuint, Cuint, Cuint, Cuint, Cuint),
scip,
randseed,
permuteconss,
permutebinvars,
permuteintvars,
permuteimplvars,
permutecontvars,
)
end
function SCIPgetProbData(scip)
ccall((:SCIPgetProbData, libscip), Ptr{SCIP_PROBDATA}, (Ptr{SCIP},), scip)
end
function SCIPsetProbData(scip, probdata)
ccall(
(:SCIPsetProbData, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PROBDATA}),
scip,
probdata,
)
end
function SCIPgetProbName(scip)
ccall((:SCIPgetProbName, libscip), Ptr{Cchar}, (Ptr{SCIP},), scip)
end
function SCIPsetProbName(scip, name)
ccall(
(:SCIPsetProbName, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPchgReoptObjective(scip, objsense, vars, coefs, nvars)
ccall(
(:SCIPchgReoptObjective, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, SCIP_OBJSENSE, Ptr{Ptr{SCIP_VAR}}, Ptr{Cdouble}, Cint),
scip,
objsense,
vars,
coefs,
nvars,
)
end
function SCIPgetObjsense(scip)
ccall((:SCIPgetObjsense, libscip), SCIP_OBJSENSE, (Ptr{SCIP},), scip)
end
function SCIPsetObjsense(scip, objsense)
ccall(
(:SCIPsetObjsense, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, SCIP_OBJSENSE),
scip,
objsense,
)
end
function SCIPaddObjoffset(scip, addval)
ccall(
(:SCIPaddObjoffset, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cdouble),
scip,
addval,
)
end
function SCIPaddOrigObjoffset(scip, addval)
ccall(
(:SCIPaddOrigObjoffset, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cdouble),
scip,
addval,
)
end
function SCIPgetOrigObjoffset(scip)
ccall((:SCIPgetOrigObjoffset, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetOrigObjscale(scip)
ccall((:SCIPgetOrigObjscale, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetTransObjoffset(scip)
ccall((:SCIPgetTransObjoffset, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetTransObjscale(scip)
ccall((:SCIPgetTransObjscale, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPsetObjlimit(scip, objlimit)
ccall(
(:SCIPsetObjlimit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cdouble),
scip,
objlimit,
)
end
function SCIPgetObjlimit(scip)
ccall((:SCIPgetObjlimit, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPsetObjIntegral(scip)
ccall((:SCIPsetObjIntegral, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPisObjIntegral(scip)
ccall((:SCIPisObjIntegral, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPgetObjNorm(scip)
ccall((:SCIPgetObjNorm, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPaddVar(scip, var)
ccall(
(:SCIPaddVar, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPaddPricedVar(scip, var, score)
ccall(
(:SCIPaddPricedVar, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
score,
)
end
function SCIPdelVar(scip, var, deleted)
ccall(
(:SCIPdelVar, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Ptr{Cuint}),
scip,
var,
deleted,
)
end
function SCIPgetVarsData(
scip,
vars,
nvars,
nbinvars,
nintvars,
nimplvars,
ncontvars,
)
ccall(
(:SCIPgetVarsData, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{Ptr{SCIP_VAR}}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
),
scip,
vars,
nvars,
nbinvars,
nintvars,
nimplvars,
ncontvars,
)
end
function SCIPgetVars(scip)
ccall((:SCIPgetVars, libscip), Ptr{Ptr{SCIP_VAR}}, (Ptr{SCIP},), scip)
end
function SCIPgetNVars(scip)
ccall((:SCIPgetNVars, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNBinVars(scip)
ccall((:SCIPgetNBinVars, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNIntVars(scip)
ccall((:SCIPgetNIntVars, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNImplVars(scip)
ccall((:SCIPgetNImplVars, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNContVars(scip)
ccall((:SCIPgetNContVars, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNObjVars(scip)
ccall((:SCIPgetNObjVars, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetFixedVars(scip)
ccall((:SCIPgetFixedVars, libscip), Ptr{Ptr{SCIP_VAR}}, (Ptr{SCIP},), scip)
end
function SCIPgetNFixedVars(scip)
ccall((:SCIPgetNFixedVars, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetOrigVarsData(
scip,
vars,
nvars,
nbinvars,
nintvars,
nimplvars,
ncontvars,
)
ccall(
(:SCIPgetOrigVarsData, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{Ptr{SCIP_VAR}}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
),
scip,
vars,
nvars,
nbinvars,
nintvars,
nimplvars,
ncontvars,
)
end
function SCIPgetOrigVars(scip)
ccall((:SCIPgetOrigVars, libscip), Ptr{Ptr{SCIP_VAR}}, (Ptr{SCIP},), scip)
end
function SCIPgetNOrigVars(scip)
ccall((:SCIPgetNOrigVars, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNOrigBinVars(scip)
ccall((:SCIPgetNOrigBinVars, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNOrigIntVars(scip)
ccall((:SCIPgetNOrigIntVars, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNOrigImplVars(scip)
ccall((:SCIPgetNOrigImplVars, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNOrigContVars(scip)
ccall((:SCIPgetNOrigContVars, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNTotalVars(scip)
ccall((:SCIPgetNTotalVars, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetSolVarsData(
scip,
sol,
vars,
nvars,
nbinvars,
nintvars,
nimplvars,
ncontvars,
)
ccall(
(:SCIPgetSolVarsData, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_SOL},
Ptr{Ptr{Ptr{SCIP_VAR}}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
),
scip,
sol,
vars,
nvars,
nbinvars,
nintvars,
nimplvars,
ncontvars,
)
end
function SCIPfindVar(scip, name)
ccall(
(:SCIPfindVar, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPallVarsInProb(scip)
ccall((:SCIPallVarsInProb, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPaddCons(scip, cons)
ccall(
(:SCIPaddCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPdelCons(scip, cons)
ccall(
(:SCIPdelCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPfindOrigCons(scip, name)
ccall(
(:SCIPfindOrigCons, libscip),
Ptr{SCIP_CONS},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPfindCons(scip, name)
ccall(
(:SCIPfindCons, libscip),
Ptr{SCIP_CONS},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetNUpgrConss(scip)
ccall((:SCIPgetNUpgrConss, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNConss(scip)
ccall((:SCIPgetNConss, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetConss(scip)
ccall((:SCIPgetConss, libscip), Ptr{Ptr{SCIP_CONS}}, (Ptr{SCIP},), scip)
end
function SCIPgetNOrigConss(scip)
ccall((:SCIPgetNOrigConss, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetOrigConss(scip)
ccall((:SCIPgetOrigConss, libscip), Ptr{Ptr{SCIP_CONS}}, (Ptr{SCIP},), scip)
end
function SCIPgetNCheckConss(scip)
ccall((:SCIPgetNCheckConss, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPaddConflict(
scip,
node,
cons,
validnode,
conftype,
iscutoffinvolved,
)
ccall(
(:SCIPaddConflict, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_NODE},
Ptr{SCIP_CONS},
Ptr{SCIP_NODE},
SCIP_CONFTYPE,
Cuint,
),
scip,
node,
cons,
validnode,
conftype,
iscutoffinvolved,
)
end
function SCIPclearConflictStore(scip, event)
ccall(
(:SCIPclearConflictStore, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EVENT}),
scip,
event,
)
end
function SCIPaddConsNode(scip, node, cons, validnode)
ccall(
(:SCIPaddConsNode, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODE}, Ptr{SCIP_CONS}, Ptr{SCIP_NODE}),
scip,
node,
cons,
validnode,
)
end
function SCIPaddConsLocal(scip, cons, validnode)
ccall(
(:SCIPaddConsLocal, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_NODE}),
scip,
cons,
validnode,
)
end
function SCIPdelConsNode(scip, node, cons)
ccall(
(:SCIPdelConsNode, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODE}, Ptr{SCIP_CONS}),
scip,
node,
cons,
)
end
function SCIPdelConsLocal(scip, cons)
ccall(
(:SCIPdelConsLocal, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetLocalOrigEstimate(scip)
ccall((:SCIPgetLocalOrigEstimate, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetLocalTransEstimate(scip)
ccall((:SCIPgetLocalTransEstimate, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetLocalDualbound(scip)
ccall((:SCIPgetLocalDualbound, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetLocalLowerbound(scip)
ccall((:SCIPgetLocalLowerbound, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetNodeDualbound(scip, node)
ccall(
(:SCIPgetNodeDualbound, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_NODE}),
scip,
node,
)
end
function SCIPgetNodeLowerbound(scip, node)
ccall(
(:SCIPgetNodeLowerbound, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_NODE}),
scip,
node,
)
end
function SCIPupdateLocalDualbound(scip, newbound)
ccall(
(:SCIPupdateLocalDualbound, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cdouble),
scip,
newbound,
)
end
function SCIPupdateLocalLowerbound(scip, newbound)
ccall(
(:SCIPupdateLocalLowerbound, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cdouble),
scip,
newbound,
)
end
function SCIPupdateNodeDualbound(scip, node, newbound)
ccall(
(:SCIPupdateNodeDualbound, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODE}, Cdouble),
scip,
node,
newbound,
)
end
function SCIPupdateNodeLowerbound(scip, node, newbound)
ccall(
(:SCIPupdateNodeLowerbound, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODE}, Cdouble),
scip,
node,
newbound,
)
end
function SCIPchgChildPrio(scip, child, priority)
ccall(
(:SCIPchgChildPrio, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODE}, Cdouble),
scip,
child,
priority,
)
end
function SCIPinProbing(scip)
ccall((:SCIPinProbing, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPstartProbing(scip)
ccall((:SCIPstartProbing, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPnewProbingNode(scip)
ccall((:SCIPnewProbingNode, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPgetProbingDepth(scip)
ccall((:SCIPgetProbingDepth, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPbacktrackProbing(scip, probingdepth)
ccall(
(:SCIPbacktrackProbing, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cint),
scip,
probingdepth,
)
end
function SCIPendProbing(scip)
ccall((:SCIPendProbing, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPchgVarLbProbing(scip, var, newbound)
ccall(
(:SCIPchgVarLbProbing, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
newbound,
)
end
function SCIPchgVarUbProbing(scip, var, newbound)
ccall(
(:SCIPchgVarUbProbing, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
newbound,
)
end
function SCIPgetVarObjProbing(scip, var)
ccall(
(:SCIPgetVarObjProbing, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPfixVarProbing(scip, var, fixedval)
ccall(
(:SCIPfixVarProbing, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
fixedval,
)
end
function SCIPchgVarObjProbing(scip, var, newobj)
ccall(
(:SCIPchgVarObjProbing, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
newobj,
)
end
function SCIPisObjChangedProbing(scip)
ccall((:SCIPisObjChangedProbing, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPpropagateProbing(scip, maxproprounds, cutoff, ndomredsfound)
ccall(
(:SCIPpropagateProbing, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cint, Ptr{Cuint}, Ptr{Clonglong}),
scip,
maxproprounds,
cutoff,
ndomredsfound,
)
end
function SCIPpropagateProbingImplications(scip, cutoff)
ccall(
(:SCIPpropagateProbingImplications, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cuint}),
scip,
cutoff,
)
end
function SCIPsolveProbingLP(scip, itlim, lperror, cutoff)
ccall(
(:SCIPsolveProbingLP, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cint, Ptr{Cuint}, Ptr{Cuint}),
scip,
itlim,
lperror,
cutoff,
)
end
function SCIPsolveProbingLPWithPricing(
scip,
pretendroot,
displayinfo,
maxpricerounds,
lperror,
cutoff,
)
ccall(
(:SCIPsolveProbingLPWithPricing, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cuint, Cuint, Cint, Ptr{Cuint}, Ptr{Cuint}),
scip,
pretendroot,
displayinfo,
maxpricerounds,
lperror,
cutoff,
)
end
const SCIP_LPiState = Cvoid
const SCIP_LPISTATE = SCIP_LPiState
const SCIP_LPiNorms = Cvoid
const SCIP_LPINORMS = SCIP_LPiNorms
function SCIPsetProbingLPState(scip, lpistate, lpinorms, primalfeas, dualfeas)
ccall(
(:SCIPsetProbingLPState, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_LPISTATE}},
Ptr{Ptr{SCIP_LPINORMS}},
Cuint,
Cuint,
),
scip,
lpistate,
lpinorms,
primalfeas,
dualfeas,
)
end
function SCIPaddRowProbing(scip, row)
ccall(
(:SCIPaddRowProbing, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROW}),
scip,
row,
)
end
function SCIPapplyCutsProbing(scip, cutoff)
ccall(
(:SCIPapplyCutsProbing, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cuint}),
scip,
cutoff,
)
end
function SCIPsolveProbingRelax(scip, cutoff)
ccall(
(:SCIPsolveProbingRelax, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cuint}),
scip,
cutoff,
)
end
function SCIPsnprintfProbingStats(scip, strbuf, len)
ccall(
(:SCIPsnprintfProbingStats, libscip),
Ptr{Cchar},
(Ptr{SCIP}, Ptr{Cchar}, Cint),
scip,
strbuf,
len,
)
end
function SCIPgetDivesetScore(
scip,
diveset,
divetype,
divecand,
divecandsol,
divecandfrac,
candscore,
roundup,
)
ccall(
(:SCIPgetDivesetScore, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIVESET},
SCIP_DIVETYPE,
Ptr{SCIP_VAR},
Cdouble,
Cdouble,
Ptr{Cdouble},
Ptr{Cuint},
),
scip,
diveset,
divetype,
divecand,
divecandsol,
divecandfrac,
candscore,
roundup,
)
end
function SCIPupdateDivesetLPStats(scip, diveset, niterstoadd, divecontext)
ccall(
(:SCIPupdateDivesetLPStats, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_DIVESET}, Clonglong, SCIP_DIVECONTEXT),
scip,
diveset,
niterstoadd,
divecontext,
)
end
function SCIPupdateDivesetStats(
scip,
diveset,
nprobingnodes,
nbacktracks,
nsolsfound,
nbestsolsfound,
nconflictsfound,
leavewassol,
divecontext,
)
ccall(
(:SCIPupdateDivesetStats, libscip),
Cvoid,
(
Ptr{SCIP},
Ptr{SCIP_DIVESET},
Cint,
Cint,
Clonglong,
Clonglong,
Clonglong,
Cuint,
SCIP_DIVECONTEXT,
),
scip,
diveset,
nprobingnodes,
nbacktracks,
nsolsfound,
nbestsolsfound,
nconflictsfound,
leavewassol,
divecontext,
)
end
function SCIPgetDiveBoundChanges(scip, diveset, sol, success, infeasible)
ccall(
(:SCIPgetDiveBoundChanges, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_DIVESET}, Ptr{SCIP_SOL}, Ptr{Cuint}, Ptr{Cuint}),
scip,
diveset,
sol,
success,
infeasible,
)
end
function SCIPaddDiveBoundChange(scip, var, dir, value, preferred)
ccall(
(:SCIPaddDiveBoundChange, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_BRANCHDIR, Cdouble, Cuint),
scip,
var,
dir,
value,
preferred,
)
end
function SCIPgetDiveBoundChangeData(
scip,
variables,
directions,
values,
ndivebdchgs,
preferred,
)
ccall(
(:SCIPgetDiveBoundChangeData, libscip),
Cvoid,
(
Ptr{SCIP},
Ptr{Ptr{Ptr{SCIP_VAR}}},
Ptr{Ptr{SCIP_BRANCHDIR}},
Ptr{Ptr{Cdouble}},
Ptr{Cint},
Cuint,
),
scip,
variables,
directions,
values,
ndivebdchgs,
preferred,
)
end
function SCIPclearDiveBoundChanges(scip)
ccall((:SCIPclearDiveBoundChanges, libscip), Cvoid, (Ptr{SCIP},), scip)
end
function SCIPincludeProp(
scip,
name,
desc,
priority,
freq,
delay,
timingmask,
presolpriority,
presolmaxrounds,
presoltiming,
propcopy,
propfree,
propinit,
propexit,
propinitpre,
propexitpre,
propinitsol,
propexitsol,
proppresol,
propexec,
propresprop,
propdata,
)
ccall(
(:SCIPincludeProp, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cint,
Cuint,
SCIP_PROPTIMING,
Cint,
Cint,
SCIP_PRESOLTIMING,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_PROPDATA},
),
scip,
name,
desc,
priority,
freq,
delay,
timingmask,
presolpriority,
presolmaxrounds,
presoltiming,
propcopy,
propfree,
propinit,
propexit,
propinitpre,
propexitpre,
propinitsol,
propexitsol,
proppresol,
propexec,
propresprop,
propdata,
)
end
function SCIPincludePropBasic(
scip,
propptr,
name,
desc,
priority,
freq,
delay,
timingmask,
propexec,
propdata,
)
ccall(
(:SCIPincludePropBasic, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_PROP}},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cint,
Cuint,
SCIP_PROPTIMING,
Ptr{Cvoid},
Ptr{SCIP_PROPDATA},
),
scip,
propptr,
name,
desc,
priority,
freq,
delay,
timingmask,
propexec,
propdata,
)
end
function SCIPsetPropCopy(scip, prop, propcopy)
ccall(
(:SCIPsetPropCopy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PROP}, Ptr{Cvoid}),
scip,
prop,
propcopy,
)
end
function SCIPsetPropFree(scip, prop, propfree)
ccall(
(:SCIPsetPropFree, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PROP}, Ptr{Cvoid}),
scip,
prop,
propfree,
)
end
function SCIPsetPropInit(scip, prop, propinit)
ccall(
(:SCIPsetPropInit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PROP}, Ptr{Cvoid}),
scip,
prop,
propinit,
)
end
function SCIPsetPropExit(scip, prop, propexit)
ccall(
(:SCIPsetPropExit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PROP}, Ptr{Cvoid}),
scip,
prop,
propexit,
)
end
function SCIPsetPropInitsol(scip, prop, propinitsol)
ccall(
(:SCIPsetPropInitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PROP}, Ptr{Cvoid}),
scip,
prop,
propinitsol,
)
end
function SCIPsetPropExitsol(scip, prop, propexitsol)
ccall(
(:SCIPsetPropExitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PROP}, Ptr{Cvoid}),
scip,
prop,
propexitsol,
)
end
function SCIPsetPropInitpre(scip, prop, propinitpre)
ccall(
(:SCIPsetPropInitpre, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PROP}, Ptr{Cvoid}),
scip,
prop,
propinitpre,
)
end
function SCIPsetPropExitpre(scip, prop, propexitpre)
ccall(
(:SCIPsetPropExitpre, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PROP}, Ptr{Cvoid}),
scip,
prop,
propexitpre,
)
end
function SCIPsetPropPresol(
scip,
prop,
proppresol,
presolpriority,
presolmaxrounds,
presoltiming,
)
ccall(
(:SCIPsetPropPresol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PROP}, Ptr{Cvoid}, Cint, Cint, SCIP_PRESOLTIMING),
scip,
prop,
proppresol,
presolpriority,
presolmaxrounds,
presoltiming,
)
end
function SCIPsetPropResprop(scip, prop, propresprop)
ccall(
(:SCIPsetPropResprop, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PROP}, Ptr{Cvoid}),
scip,
prop,
propresprop,
)
end
function SCIPfindProp(scip, name)
ccall(
(:SCIPfindProp, libscip),
Ptr{SCIP_PROP},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetProps(scip)
ccall((:SCIPgetProps, libscip), Ptr{Ptr{SCIP_PROP}}, (Ptr{SCIP},), scip)
end
function SCIPgetNProps(scip)
ccall((:SCIPgetNProps, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPsetPropPriority(scip, prop, priority)
ccall(
(:SCIPsetPropPriority, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PROP}, Cint),
scip,
prop,
priority,
)
end
function SCIPsetPropPresolPriority(scip, prop, presolpriority)
ccall(
(:SCIPsetPropPresolPriority, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_PROP}, Cint),
scip,
prop,
presolpriority,
)
end
function SCIPcreateRandom(scip, randnumgen, initialseed, useglobalseed)
ccall(
(:SCIPcreateRandom, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_RANDNUMGEN}}, Cuint, Cuint),
scip,
randnumgen,
initialseed,
useglobalseed,
)
end
function SCIPfreeRandom(scip, randnumgen)
ccall(
(:SCIPfreeRandom, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Ptr{SCIP_RANDNUMGEN}}),
scip,
randnumgen,
)
end
function SCIPsetRandomSeed(scip, randnumgen, seed)
ccall(
(:SCIPsetRandomSeed, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_RANDNUMGEN}, Cuint),
scip,
randnumgen,
seed,
)
end
function SCIPinitializeRandomSeed(scip, initialseedvalue)
ccall(
(:SCIPinitializeRandomSeed, libscip),
Cuint,
(Ptr{SCIP}, Cuint),
scip,
initialseedvalue,
)
end
function SCIPincludeReader(
scip,
name,
desc,
extension,
readercopy,
readerfree,
readerread,
readerwrite,
readerdata,
)
ccall(
(:SCIPincludeReader, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Ptr{Cchar},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_READERDATA},
),
scip,
name,
desc,
extension,
readercopy,
readerfree,
readerread,
readerwrite,
readerdata,
)
end
function SCIPincludeReaderBasic(
scip,
readerptr,
name,
desc,
extension,
readerdata,
)
ccall(
(:SCIPincludeReaderBasic, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_READER}},
Ptr{Cchar},
Ptr{Cchar},
Ptr{Cchar},
Ptr{SCIP_READERDATA},
),
scip,
readerptr,
name,
desc,
extension,
readerdata,
)
end
function SCIPsetReaderCopy(scip, reader, readercopy)
ccall(
(:SCIPsetReaderCopy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_READER}, Ptr{Cvoid}),
scip,
reader,
readercopy,
)
end
function SCIPsetReaderFree(scip, reader, readerfree)
ccall(
(:SCIPsetReaderFree, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_READER}, Ptr{Cvoid}),
scip,
reader,
readerfree,
)
end
function SCIPsetReaderRead(scip, reader, readerread)
ccall(
(:SCIPsetReaderRead, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_READER}, Ptr{Cvoid}),
scip,
reader,
readerread,
)
end
function SCIPsetReaderWrite(scip, reader, readerwrite)
ccall(
(:SCIPsetReaderWrite, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_READER}, Ptr{Cvoid}),
scip,
reader,
readerwrite,
)
end
function SCIPfindReader(scip, name)
ccall(
(:SCIPfindReader, libscip),
Ptr{SCIP_READER},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetReaders(scip)
ccall((:SCIPgetReaders, libscip), Ptr{Ptr{SCIP_READER}}, (Ptr{SCIP},), scip)
end
function SCIPgetNReaders(scip)
ccall((:SCIPgetNReaders, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPincludeRelax(
scip,
name,
desc,
priority,
freq,
relaxcopy,
relaxfree,
relaxinit,
relaxexit,
relaxinitsol,
relaxexitsol,
relaxexec,
relaxdata,
)
ccall(
(:SCIPincludeRelax, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_RELAXDATA},
),
scip,
name,
desc,
priority,
freq,
relaxcopy,
relaxfree,
relaxinit,
relaxexit,
relaxinitsol,
relaxexitsol,
relaxexec,
relaxdata,
)
end
function SCIPincludeRelaxBasic(
scip,
relaxptr,
name,
desc,
priority,
freq,
relaxexec,
relaxdata,
)
ccall(
(:SCIPincludeRelaxBasic, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_RELAX}},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cint,
Ptr{Cvoid},
Ptr{SCIP_RELAXDATA},
),
scip,
relaxptr,
name,
desc,
priority,
freq,
relaxexec,
relaxdata,
)
end
function SCIPsetRelaxCopy(scip, relax, relaxcopy)
ccall(
(:SCIPsetRelaxCopy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_RELAX}, Ptr{Cvoid}),
scip,
relax,
relaxcopy,
)
end
function SCIPsetRelaxFree(scip, relax, relaxfree)
ccall(
(:SCIPsetRelaxFree, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_RELAX}, Ptr{Cvoid}),
scip,
relax,
relaxfree,
)
end
function SCIPsetRelaxInit(scip, relax, relaxinit)
ccall(
(:SCIPsetRelaxInit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_RELAX}, Ptr{Cvoid}),
scip,
relax,
relaxinit,
)
end
function SCIPsetRelaxExit(scip, relax, relaxexit)
ccall(
(:SCIPsetRelaxExit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_RELAX}, Ptr{Cvoid}),
scip,
relax,
relaxexit,
)
end
function SCIPsetRelaxInitsol(scip, relax, relaxinitsol)
ccall(
(:SCIPsetRelaxInitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_RELAX}, Ptr{Cvoid}),
scip,
relax,
relaxinitsol,
)
end
function SCIPsetRelaxExitsol(scip, relax, relaxexitsol)
ccall(
(:SCIPsetRelaxExitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_RELAX}, Ptr{Cvoid}),
scip,
relax,
relaxexitsol,
)
end
function SCIPfindRelax(scip, name)
ccall(
(:SCIPfindRelax, libscip),
Ptr{SCIP_RELAX},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetRelaxs(scip)
ccall((:SCIPgetRelaxs, libscip), Ptr{Ptr{SCIP_RELAX}}, (Ptr{SCIP},), scip)
end
function SCIPgetNRelaxs(scip)
ccall((:SCIPgetNRelaxs, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPsetRelaxPriority(scip, relax, priority)
ccall(
(:SCIPsetRelaxPriority, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_RELAX}, Cint),
scip,
relax,
priority,
)
end
function SCIPgetReoptChildIDs(scip, node, ids, mem, nids)
ccall(
(:SCIPgetReoptChildIDs, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODE}, Ptr{Cuint}, Cint, Ptr{Cint}),
scip,
node,
ids,
mem,
nids,
)
end
function SCIPgetReoptLeaveIDs(scip, node, ids, mem, nids)
ccall(
(:SCIPgetReoptLeaveIDs, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODE}, Ptr{Cuint}, Cint, Ptr{Cint}),
scip,
node,
ids,
mem,
nids,
)
end
function SCIPgetNReoptnodes(scip, node)
ccall(
(:SCIPgetNReoptnodes, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_NODE}),
scip,
node,
)
end
function SCIPgetNReoptLeaves(scip, node)
ccall(
(:SCIPgetNReoptLeaves, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_NODE}),
scip,
node,
)
end
function SCIPgetReoptnode(scip, id)
ccall(
(:SCIPgetReoptnode, libscip),
Ptr{SCIP_REOPTNODE},
(Ptr{SCIP}, Cuint),
scip,
id,
)
end
function SCIPaddReoptnodeBndchg(scip, reoptnode, var, bound, boundtype)
ccall(
(:SCIPaddReoptnodeBndchg, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_REOPTNODE},
Ptr{SCIP_VAR},
Cdouble,
SCIP_BOUNDTYPE,
),
scip,
reoptnode,
var,
bound,
boundtype,
)
end
function SCIPsetReoptCompression(
scip,
representation,
nrepresentatives,
success,
)
ccall(
(:SCIPsetReoptCompression, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_REOPTNODE}}, Cint, Ptr{Cuint}),
scip,
representation,
nrepresentatives,
success,
)
end
function SCIPaddReoptnodeCons(
scip,
reoptnode,
vars,
vals,
boundtypes,
lhs,
rhs,
nvars,
constype,
linear,
)
ccall(
(:SCIPaddReoptnodeCons, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_REOPTNODE},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Ptr{SCIP_BOUNDTYPE},
Cdouble,
Cdouble,
Cint,
REOPT_CONSTYPE,
Cuint,
),
scip,
reoptnode,
vars,
vals,
boundtypes,
lhs,
rhs,
nvars,
constype,
linear,
)
end
function SCIPgetReoptnodePath(
scip,
reoptnode,
vars,
vals,
boundtypes,
mem,
nvars,
nafterdualvars,
)
ccall(
(:SCIPgetReoptnodePath, libscip),
Cvoid,
(
Ptr{SCIP},
Ptr{SCIP_REOPTNODE},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Ptr{SCIP_BOUNDTYPE},
Cint,
Ptr{Cint},
Ptr{Cint},
),
scip,
reoptnode,
vars,
vals,
boundtypes,
mem,
nvars,
nafterdualvars,
)
end
function SCIPinitRepresentation(scip, representatives, nrepresentatives)
ccall(
(:SCIPinitRepresentation, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_REOPTNODE}}, Cint),
scip,
representatives,
nrepresentatives,
)
end
function SCIPresetRepresentation(scip, representatives, nrepresentatives)
ccall(
(:SCIPresetRepresentation, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_REOPTNODE}}, Cint),
scip,
representatives,
nrepresentatives,
)
end
function SCIPfreeRepresentation(scip, representatives, nrepresentatives)
ccall(
(:SCIPfreeRepresentation, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_REOPTNODE}}, Cint),
scip,
representatives,
nrepresentatives,
)
end
function SCIPapplyReopt(
scip,
reoptnode,
id,
estimate,
childnodes,
ncreatedchilds,
naddedconss,
childnodessize,
success,
)
ccall(
(:SCIPapplyReopt, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_REOPTNODE},
Cuint,
Cdouble,
Ptr{Ptr{SCIP_NODE}},
Ptr{Cint},
Ptr{Cint},
Cint,
Ptr{Cuint},
),
scip,
reoptnode,
id,
estimate,
childnodes,
ncreatedchilds,
naddedconss,
childnodessize,
success,
)
end
function SCIPresetReoptnodeDualcons(scip, node)
ccall(
(:SCIPresetReoptnodeDualcons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODE}),
scip,
node,
)
end
function SCIPsplitReoptRoot(scip, ncreatedchilds, naddedconss)
ccall(
(:SCIPsplitReoptRoot, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cint}, Ptr{Cint}),
scip,
ncreatedchilds,
naddedconss,
)
end
function SCIPreoptimizeNode(scip, node)
ccall(
(:SCIPreoptimizeNode, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_NODE}),
scip,
node,
)
end
function SCIPdeleteReoptnode(scip, reoptnode)
ccall(
(:SCIPdeleteReoptnode, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_REOPTNODE}}),
scip,
reoptnode,
)
end
function SCIPgetReoptSimilarity(scip, run1, run2)
ccall(
(:SCIPgetReoptSimilarity, libscip),
Cdouble,
(Ptr{SCIP}, Cint, Cint),
scip,
run1,
run2,
)
end
function SCIPgetVarCoefChg(scip, varidx, negated, entering, leaving)
ccall(
(:SCIPgetVarCoefChg, libscip),
Cvoid,
(Ptr{SCIP}, Cint, Ptr{Cuint}, Ptr{Cuint}, Ptr{Cuint}),
scip,
varidx,
negated,
entering,
leaving,
)
end
function SCIPincludeSepa(
scip,
name,
desc,
priority,
freq,
maxbounddist,
usessubscip,
delay,
sepacopy,
sepafree,
sepainit,
sepaexit,
sepainitsol,
sepaexitsol,
sepaexeclp,
sepaexecsol,
sepadata,
)
ccall(
(:SCIPincludeSepa, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cint,
Cdouble,
Cuint,
Cuint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_SEPADATA},
),
scip,
name,
desc,
priority,
freq,
maxbounddist,
usessubscip,
delay,
sepacopy,
sepafree,
sepainit,
sepaexit,
sepainitsol,
sepaexitsol,
sepaexeclp,
sepaexecsol,
sepadata,
)
end
function SCIPincludeSepaBasic(
scip,
sepa,
name,
desc,
priority,
freq,
maxbounddist,
usessubscip,
delay,
sepaexeclp,
sepaexecsol,
sepadata,
)
ccall(
(:SCIPincludeSepaBasic, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_SEPA}},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cint,
Cdouble,
Cuint,
Cuint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_SEPADATA},
),
scip,
sepa,
name,
desc,
priority,
freq,
maxbounddist,
usessubscip,
delay,
sepaexeclp,
sepaexecsol,
sepadata,
)
end
function SCIPsetSepaCopy(scip, sepa, sepacopy)
ccall(
(:SCIPsetSepaCopy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SEPA}, Ptr{Cvoid}),
scip,
sepa,
sepacopy,
)
end
function SCIPsetSepaFree(scip, sepa, sepafree)
ccall(
(:SCIPsetSepaFree, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SEPA}, Ptr{Cvoid}),
scip,
sepa,
sepafree,
)
end
function SCIPsetSepaInit(scip, sepa, sepainit)
ccall(
(:SCIPsetSepaInit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SEPA}, Ptr{Cvoid}),
scip,
sepa,
sepainit,
)
end
function SCIPsetSepaExit(scip, sepa, sepaexit)
ccall(
(:SCIPsetSepaExit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SEPA}, Ptr{Cvoid}),
scip,
sepa,
sepaexit,
)
end
function SCIPsetSepaInitsol(scip, sepa, sepainitsol)
ccall(
(:SCIPsetSepaInitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SEPA}, Ptr{Cvoid}),
scip,
sepa,
sepainitsol,
)
end
function SCIPsetSepaExitsol(scip, sepa, sepaexitsol)
ccall(
(:SCIPsetSepaExitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SEPA}, Ptr{Cvoid}),
scip,
sepa,
sepaexitsol,
)
end
function SCIPfindSepa(scip, name)
ccall(
(:SCIPfindSepa, libscip),
Ptr{SCIP_SEPA},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetSepas(scip)
ccall((:SCIPgetSepas, libscip), Ptr{Ptr{SCIP_SEPA}}, (Ptr{SCIP},), scip)
end
function SCIPgetNSepas(scip)
ccall((:SCIPgetNSepas, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPsetSepaPriority(scip, sepa, priority)
ccall(
(:SCIPsetSepaPriority, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SEPA}, Cint),
scip,
sepa,
priority,
)
end
function SCIPsetSepaIsParentsepa(scip, sepa)
ccall(
(:SCIPsetSepaIsParentsepa, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_SEPA}),
scip,
sepa,
)
end
function SCIPsetSepaParentsepa(scip, sepa, parentsepa)
ccall(
(:SCIPsetSepaParentsepa, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_SEPA}, Ptr{SCIP_SEPA}),
scip,
sepa,
parentsepa,
)
end
function SCIPgetSepaMinEfficacy(scip)
ccall((:SCIPgetSepaMinEfficacy, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPincludeCutsel(
scip,
name,
desc,
priority,
cutselcopy,
cutselfree,
cutselinit,
cutselexit,
cutselinitsol,
cutselexitsol,
cutselselect,
cutseldata,
)
ccall(
(:SCIPincludeCutsel, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_CUTSELDATA},
),
scip,
name,
desc,
priority,
cutselcopy,
cutselfree,
cutselinit,
cutselexit,
cutselinitsol,
cutselexitsol,
cutselselect,
cutseldata,
)
end
function SCIPincludeCutselBasic(
scip,
cutsel,
name,
desc,
priority,
cutselselect,
cutseldata,
)
ccall(
(:SCIPincludeCutselBasic, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CUTSEL}},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Ptr{Cvoid},
Ptr{SCIP_CUTSELDATA},
),
scip,
cutsel,
name,
desc,
priority,
cutselselect,
cutseldata,
)
end
function SCIPsetCutselCopy(scip, cutsel, cutselcopy)
ccall(
(:SCIPsetCutselCopy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CUTSEL}, Ptr{Cvoid}),
scip,
cutsel,
cutselcopy,
)
end
function SCIPsetCutselFree(scip, cutsel, cutselfree)
ccall(
(:SCIPsetCutselFree, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CUTSEL}, Ptr{Cvoid}),
scip,
cutsel,
cutselfree,
)
end
function SCIPsetCutselInit(scip, cutsel, cutselinit)
ccall(
(:SCIPsetCutselInit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CUTSEL}, Ptr{Cvoid}),
scip,
cutsel,
cutselinit,
)
end
function SCIPsetCutselExit(scip, cutsel, cutselexit)
ccall(
(:SCIPsetCutselExit, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CUTSEL}, Ptr{Cvoid}),
scip,
cutsel,
cutselexit,
)
end
function SCIPsetCutselInitsol(scip, cutsel, cutselinitsol)
ccall(
(:SCIPsetCutselInitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CUTSEL}, Ptr{Cvoid}),
scip,
cutsel,
cutselinitsol,
)
end
function SCIPsetCutselExitsol(scip, cutsel, cutselexitsol)
ccall(
(:SCIPsetCutselExitsol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CUTSEL}, Ptr{Cvoid}),
scip,
cutsel,
cutselexitsol,
)
end
function SCIPfindCutsel(scip, name)
ccall(
(:SCIPfindCutsel, libscip),
Ptr{SCIP_CUTSEL},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetCutsels(scip)
ccall((:SCIPgetCutsels, libscip), Ptr{Ptr{SCIP_CUTSEL}}, (Ptr{SCIP},), scip)
end
function SCIPgetNCutsels(scip)
ccall((:SCIPgetNCutsels, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPsetCutselPriority(scip, cutsel, priority)
ccall(
(:SCIPsetCutselPriority, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CUTSEL}, Cint),
scip,
cutsel,
priority,
)
end
function SCIPcreateSol(scip, sol, heur)
ccall(
(:SCIPcreateSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_SOL}}, Ptr{SCIP_HEUR}),
scip,
sol,
heur,
)
end
function SCIPcreateLPSol(scip, sol, heur)
ccall(
(:SCIPcreateLPSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_SOL}}, Ptr{SCIP_HEUR}),
scip,
sol,
heur,
)
end
function SCIPcreateNLPSol(scip, sol, heur)
ccall(
(:SCIPcreateNLPSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_SOL}}, Ptr{SCIP_HEUR}),
scip,
sol,
heur,
)
end
function SCIPcreateRelaxSol(scip, sol, heur)
ccall(
(:SCIPcreateRelaxSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_SOL}}, Ptr{SCIP_HEUR}),
scip,
sol,
heur,
)
end
function SCIPcreatePseudoSol(scip, sol, heur)
ccall(
(:SCIPcreatePseudoSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_SOL}}, Ptr{SCIP_HEUR}),
scip,
sol,
heur,
)
end
function SCIPcreateCurrentSol(scip, sol, heur)
ccall(
(:SCIPcreateCurrentSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_SOL}}, Ptr{SCIP_HEUR}),
scip,
sol,
heur,
)
end
function SCIPcreatePartialSol(scip, sol, heur)
ccall(
(:SCIPcreatePartialSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_SOL}}, Ptr{SCIP_HEUR}),
scip,
sol,
heur,
)
end
function SCIPcreateUnknownSol(scip, sol, heur)
ccall(
(:SCIPcreateUnknownSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_SOL}}, Ptr{SCIP_HEUR}),
scip,
sol,
heur,
)
end
function SCIPcreateOrigSol(scip, sol, heur)
ccall(
(:SCIPcreateOrigSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_SOL}}, Ptr{SCIP_HEUR}),
scip,
sol,
heur,
)
end
function SCIPcreateSolCopy(scip, sol, sourcesol)
ccall(
(:SCIPcreateSolCopy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_SOL}}, Ptr{SCIP_SOL}),
scip,
sol,
sourcesol,
)
end
function SCIPcreateSolCopyOrig(scip, sol, sourcesol)
ccall(
(:SCIPcreateSolCopyOrig, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_SOL}}, Ptr{SCIP_SOL}),
scip,
sol,
sourcesol,
)
end
function SCIPcreateFiniteSolCopy(scip, sol, sourcesol, success)
ccall(
(:SCIPcreateFiniteSolCopy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_SOL}}, Ptr{SCIP_SOL}, Ptr{Cuint}),
scip,
sol,
sourcesol,
success,
)
end
function SCIPfreeSol(scip, sol)
ccall(
(:SCIPfreeSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_SOL}}),
scip,
sol,
)
end
function SCIPlinkLPSol(scip, sol)
ccall(
(:SCIPlinkLPSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}),
scip,
sol,
)
end
function SCIPlinkNLPSol(scip, sol)
ccall(
(:SCIPlinkNLPSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}),
scip,
sol,
)
end
function SCIPlinkRelaxSol(scip, sol)
ccall(
(:SCIPlinkRelaxSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}),
scip,
sol,
)
end
function SCIPlinkPseudoSol(scip, sol)
ccall(
(:SCIPlinkPseudoSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}),
scip,
sol,
)
end
function SCIPlinkCurrentSol(scip, sol)
ccall(
(:SCIPlinkCurrentSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}),
scip,
sol,
)
end
function SCIPclearSol(scip, sol)
ccall(
(:SCIPclearSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}),
scip,
sol,
)
end
function SCIPunlinkSol(scip, sol)
ccall(
(:SCIPunlinkSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}),
scip,
sol,
)
end
function SCIPsetSolVal(scip, sol, var, val)
ccall(
(:SCIPsetSolVal, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Ptr{SCIP_VAR}, Cdouble),
scip,
sol,
var,
val,
)
end
function SCIPsetSolVals(scip, sol, nvars, vars, vals)
ccall(
(:SCIPsetSolVals, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Cint, Ptr{Ptr{SCIP_VAR}}, Ptr{Cdouble}),
scip,
sol,
nvars,
vars,
vals,
)
end
function SCIPincSolVal(scip, sol, var, incval)
ccall(
(:SCIPincSolVal, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Ptr{SCIP_VAR}, Cdouble),
scip,
sol,
var,
incval,
)
end
function SCIPgetSolVal(scip, sol, var)
ccall(
(:SCIPgetSolVal, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Ptr{SCIP_VAR}),
scip,
sol,
var,
)
end
function SCIPgetSolVals(scip, sol, nvars, vars, vals)
ccall(
(:SCIPgetSolVals, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Cint, Ptr{Ptr{SCIP_VAR}}, Ptr{Cdouble}),
scip,
sol,
nvars,
vars,
vals,
)
end
function SCIPgetSolOrigObj(scip, sol)
ccall(
(:SCIPgetSolOrigObj, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_SOL}),
scip,
sol,
)
end
function SCIPgetSolTransObj(scip, sol)
ccall(
(:SCIPgetSolTransObj, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_SOL}),
scip,
sol,
)
end
function SCIPrecomputeSolObj(scip, sol)
ccall(
(:SCIPrecomputeSolObj, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}),
scip,
sol,
)
end
function SCIPtransformObj(scip, obj)
ccall(
(:SCIPtransformObj, libscip),
Cdouble,
(Ptr{SCIP}, Cdouble),
scip,
obj,
)
end
function SCIPretransformObj(scip, obj)
ccall(
(:SCIPretransformObj, libscip),
Cdouble,
(Ptr{SCIP}, Cdouble),
scip,
obj,
)
end
function SCIPgetSolTime(scip, sol)
ccall(
(:SCIPgetSolTime, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_SOL}),
scip,
sol,
)
end
function SCIPgetSolRunnum(scip, sol)
ccall(
(:SCIPgetSolRunnum, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_SOL}),
scip,
sol,
)
end
function SCIPgetSolNodenum(scip, sol)
ccall(
(:SCIPgetSolNodenum, libscip),
Clonglong,
(Ptr{SCIP}, Ptr{SCIP_SOL}),
scip,
sol,
)
end
function SCIPgetSolHeur(scip, sol)
ccall(
(:SCIPgetSolHeur, libscip),
Ptr{SCIP_HEUR},
(Ptr{SCIP}, Ptr{SCIP_SOL}),
scip,
sol,
)
end
function SCIPareSolsEqual(scip, sol1, sol2)
ccall(
(:SCIPareSolsEqual, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Ptr{SCIP_SOL}),
scip,
sol1,
sol2,
)
end
function SCIPadjustImplicitSolVals(scip, sol, uselprows)
ccall(
(:SCIPadjustImplicitSolVals, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Cuint),
scip,
sol,
uselprows,
)
end
function SCIPprintSol(scip, sol, file, printzeros)
ccall(
(:SCIPprintSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Ptr{Libc.FILE}, Cuint),
scip,
sol,
file,
printzeros,
)
end
function SCIPprintTransSol(scip, sol, file, printzeros)
ccall(
(:SCIPprintTransSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Ptr{Libc.FILE}, Cuint),
scip,
sol,
file,
printzeros,
)
end
function SCIPprintMIPStart(scip, sol, file)
ccall(
(:SCIPprintMIPStart, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Ptr{Libc.FILE}),
scip,
sol,
file,
)
end
function SCIPgetDualSolVal(scip, cons, dualsolval, boundconstraint)
ccall(
(:SCIPgetDualSolVal, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{Cdouble}, Ptr{Cuint}),
scip,
cons,
dualsolval,
boundconstraint,
)
end
function SCIPisDualSolAvailable(scip, printreason)
ccall(
(:SCIPisDualSolAvailable, libscip),
Cuint,
(Ptr{SCIP}, Cuint),
scip,
printreason,
)
end
function SCIPprintDualSol(scip, file, printzeros)
ccall(
(:SCIPprintDualSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Libc.FILE}, Cuint),
scip,
file,
printzeros,
)
end
function SCIPprintRay(scip, sol, file, printzeros)
ccall(
(:SCIPprintRay, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Ptr{Libc.FILE}, Cuint),
scip,
sol,
file,
printzeros,
)
end
function SCIPgetNSols(scip)
ccall((:SCIPgetNSols, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetSols(scip)
ccall((:SCIPgetSols, libscip), Ptr{Ptr{SCIP_SOL}}, (Ptr{SCIP},), scip)
end
function SCIPgetBestSol(scip)
ccall((:SCIPgetBestSol, libscip), Ptr{SCIP_SOL}, (Ptr{SCIP},), scip)
end
function SCIPprintBestSol(scip, file, printzeros)
ccall(
(:SCIPprintBestSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Libc.FILE}, Cuint),
scip,
file,
printzeros,
)
end
function SCIPprintBestTransSol(scip, file, printzeros)
ccall(
(:SCIPprintBestTransSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Libc.FILE}, Cuint),
scip,
file,
printzeros,
)
end
function SCIProundSol(scip, sol, success)
ccall(
(:SCIProundSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Ptr{Cuint}),
scip,
sol,
success,
)
end
function SCIPretransformSol(scip, sol)
ccall(
(:SCIPretransformSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}),
scip,
sol,
)
end
function SCIPreadSol(scip, filename)
ccall(
(:SCIPreadSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}),
scip,
filename,
)
end
function SCIPreadSolFile(scip, filename, sol, xml, partial, error)
ccall(
(:SCIPreadSolFile, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Ptr{SCIP_SOL}, Cuint, Ptr{Cuint}, Ptr{Cuint}),
scip,
filename,
sol,
xml,
partial,
error,
)
end
function SCIPaddSol(scip, sol, stored)
ccall(
(:SCIPaddSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Ptr{Cuint}),
scip,
sol,
stored,
)
end
function SCIPaddSolFree(scip, sol, stored)
ccall(
(:SCIPaddSolFree, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_SOL}}, Ptr{Cuint}),
scip,
sol,
stored,
)
end
function SCIPaddCurrentSol(scip, heur, stored)
ccall(
(:SCIPaddCurrentSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_HEUR}, Ptr{Cuint}),
scip,
heur,
stored,
)
end
function SCIPtrySol(
scip,
sol,
printreason,
completely,
checkbounds,
checkintegrality,
checklprows,
stored,
)
ccall(
(:SCIPtrySol, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_SOL},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Ptr{Cuint},
),
scip,
sol,
printreason,
completely,
checkbounds,
checkintegrality,
checklprows,
stored,
)
end
function SCIPtrySolFree(
scip,
sol,
printreason,
completely,
checkbounds,
checkintegrality,
checklprows,
stored,
)
ccall(
(:SCIPtrySolFree, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_SOL}},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Ptr{Cuint},
),
scip,
sol,
printreason,
completely,
checkbounds,
checkintegrality,
checklprows,
stored,
)
end
function SCIPtryCurrentSol(
scip,
heur,
printreason,
completely,
checkintegrality,
checklprows,
stored,
)
ccall(
(:SCIPtryCurrentSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_HEUR}, Cuint, Cuint, Cuint, Cuint, Ptr{Cuint}),
scip,
heur,
printreason,
completely,
checkintegrality,
checklprows,
stored,
)
end
function SCIPgetPartialSols(scip)
ccall(
(:SCIPgetPartialSols, libscip),
Ptr{Ptr{SCIP_SOL}},
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNPartialSols(scip)
ccall((:SCIPgetNPartialSols, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPcheckSol(
scip,
sol,
printreason,
completely,
checkbounds,
checkintegrality,
checklprows,
feasible,
)
ccall(
(:SCIPcheckSol, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_SOL},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Ptr{Cuint},
),
scip,
sol,
printreason,
completely,
checkbounds,
checkintegrality,
checklprows,
feasible,
)
end
function SCIPcheckSolOrig(scip, sol, feasible, printreason, completely)
ccall(
(:SCIPcheckSolOrig, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Ptr{Cuint}, Cuint, Cuint),
scip,
sol,
feasible,
printreason,
completely,
)
end
function SCIPupdateSolIntegralityViolation(scip, sol, absviol)
ccall(
(:SCIPupdateSolIntegralityViolation, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Cdouble),
scip,
sol,
absviol,
)
end
function SCIPupdateSolBoundViolation(scip, sol, absviol, relviol)
ccall(
(:SCIPupdateSolBoundViolation, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Cdouble, Cdouble),
scip,
sol,
absviol,
relviol,
)
end
function SCIPupdateSolLPRowViolation(scip, sol, absviol, relviol)
ccall(
(:SCIPupdateSolLPRowViolation, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Cdouble, Cdouble),
scip,
sol,
absviol,
relviol,
)
end
function SCIPupdateSolConsViolation(scip, sol, absviol, relviol)
ccall(
(:SCIPupdateSolConsViolation, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Cdouble, Cdouble),
scip,
sol,
absviol,
relviol,
)
end
function SCIPupdateSolLPConsViolation(scip, sol, absviol, relviol)
ccall(
(:SCIPupdateSolLPConsViolation, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Cdouble, Cdouble),
scip,
sol,
absviol,
relviol,
)
end
function SCIPactivateSolViolationUpdates(scip)
ccall(
(:SCIPactivateSolViolationUpdates, libscip),
Cvoid,
(Ptr{SCIP},),
scip,
)
end
function SCIPdeactivateSolViolationUpdates(scip)
ccall(
(:SCIPdeactivateSolViolationUpdates, libscip),
Cvoid,
(Ptr{SCIP},),
scip,
)
end
function SCIPhasPrimalRay(scip)
ccall((:SCIPhasPrimalRay, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPgetPrimalRayVal(scip, var)
ccall(
(:SCIPgetPrimalRayVal, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPupdatePrimalRay(scip, primalray)
ccall(
(:SCIPupdatePrimalRay, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}),
scip,
primalray,
)
end
function SCIPtransformProb(scip)
ccall((:SCIPtransformProb, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPpresolve(scip)
ccall((:SCIPpresolve, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPsolve(scip)
ccall((:SCIPsolve, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPsolveParallel(scip)
ccall((:SCIPsolveParallel, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPsolveConcurrent(scip)
ccall((:SCIPsolveConcurrent, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPfreeSolve(scip, restart)
ccall(
(:SCIPfreeSolve, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cuint),
scip,
restart,
)
end
function SCIPfreeTransform(scip)
ccall((:SCIPfreeTransform, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPinterruptSolve(scip)
ccall((:SCIPinterruptSolve, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPisSolveInterrupted(scip)
ccall((:SCIPisSolveInterrupted, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPrestartSolve(scip)
ccall((:SCIPrestartSolve, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPisInRestart(scip)
ccall((:SCIPisInRestart, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPfreeReoptSolve(scip)
ccall((:SCIPfreeReoptSolve, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPenableReoptimization(scip, enable)
ccall(
(:SCIPenableReoptimization, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cuint),
scip,
enable,
)
end
function SCIPisReoptEnabled(scip)
ccall((:SCIPisReoptEnabled, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPgetReoptSolsRun(scip, run, sols, allocmem, nsols)
ccall(
(:SCIPgetReoptSolsRun, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cint, Ptr{Ptr{SCIP_SOL}}, Cint, Ptr{Cint}),
scip,
run,
sols,
allocmem,
nsols,
)
end
function SCIPresetReoptSolMarks(scip)
ccall((:SCIPresetReoptSolMarks, libscip), Cvoid, (Ptr{SCIP},), scip)
end
function SCIPcheckReoptRestart(scip, node, restart)
ccall(
(:SCIPcheckReoptRestart, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODE}, Ptr{Cuint}),
scip,
node,
restart,
)
end
function SCIPaddReoptDualBndchg(scip, node, var, newbound, oldbound)
ccall(
(:SCIPaddReoptDualBndchg, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODE}, Ptr{SCIP_VAR}, Cdouble, Cdouble),
scip,
node,
var,
newbound,
oldbound,
)
end
function SCIPgetReoptLastOptSol(scip)
ccall((:SCIPgetReoptLastOptSol, libscip), Ptr{SCIP_SOL}, (Ptr{SCIP},), scip)
end
function SCIPgetReoptOldObjCoef(scip, var, run, objcoef)
ccall(
(:SCIPgetReoptOldObjCoef, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cint, Ptr{Cdouble}),
scip,
var,
run,
objcoef,
)
end
function SCIPgetNRuns(scip)
ccall((:SCIPgetNRuns, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNReoptRuns(scip)
ccall((:SCIPgetNReoptRuns, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPaddNNodes(scip, nnodes)
ccall(
(:SCIPaddNNodes, libscip),
Cvoid,
(Ptr{SCIP}, Clonglong),
scip,
nnodes,
)
end
function SCIPgetNNodes(scip)
ccall((:SCIPgetNNodes, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNTotalNodes(scip)
ccall((:SCIPgetNTotalNodes, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNFeasibleLeaves(scip)
ccall((:SCIPgetNFeasibleLeaves, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNInfeasibleLeaves(scip)
ccall((:SCIPgetNInfeasibleLeaves, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNObjlimLeaves(scip)
ccall((:SCIPgetNObjlimLeaves, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNRootboundChgs(scip)
ccall((:SCIPgetNRootboundChgs, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNRootboundChgsRun(scip)
ccall((:SCIPgetNRootboundChgsRun, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNDelayedCutoffs(scip)
ccall((:SCIPgetNDelayedCutoffs, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNLPs(scip)
ccall((:SCIPgetNLPs, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNLPIterations(scip)
ccall((:SCIPgetNLPIterations, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNNZs(scip)
ccall((:SCIPgetNNZs, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNRootLPIterations(scip)
ccall((:SCIPgetNRootLPIterations, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNRootFirstLPIterations(scip)
ccall(
(:SCIPgetNRootFirstLPIterations, libscip),
Clonglong,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNPrimalLPs(scip)
ccall((:SCIPgetNPrimalLPs, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNPrimalLPIterations(scip)
ccall((:SCIPgetNPrimalLPIterations, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNDualLPs(scip)
ccall((:SCIPgetNDualLPs, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNDualLPIterations(scip)
ccall((:SCIPgetNDualLPIterations, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNBarrierLPs(scip)
ccall((:SCIPgetNBarrierLPs, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNBarrierLPIterations(scip)
ccall(
(:SCIPgetNBarrierLPIterations, libscip),
Clonglong,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNResolveLPs(scip)
ccall((:SCIPgetNResolveLPs, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNResolveLPIterations(scip)
ccall(
(:SCIPgetNResolveLPIterations, libscip),
Clonglong,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNPrimalResolveLPs(scip)
ccall((:SCIPgetNPrimalResolveLPs, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNPrimalResolveLPIterations(scip)
ccall(
(:SCIPgetNPrimalResolveLPIterations, libscip),
Clonglong,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNDualResolveLPs(scip)
ccall((:SCIPgetNDualResolveLPs, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNDualResolveLPIterations(scip)
ccall(
(:SCIPgetNDualResolveLPIterations, libscip),
Clonglong,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNNodeLPs(scip)
ccall((:SCIPgetNNodeLPs, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNNodeZeroIterationLPs(scip)
ccall(
(:SCIPgetNNodeZeroIterationLPs, libscip),
Clonglong,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNNodeLPIterations(scip)
ccall((:SCIPgetNNodeLPIterations, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNNodeInitLPs(scip)
ccall((:SCIPgetNNodeInitLPs, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNNodeInitLPIterations(scip)
ccall(
(:SCIPgetNNodeInitLPIterations, libscip),
Clonglong,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNDivingLPs(scip)
ccall((:SCIPgetNDivingLPs, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNDivingLPIterations(scip)
ccall((:SCIPgetNDivingLPIterations, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNStrongbranchs(scip)
ccall((:SCIPgetNStrongbranchs, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNStrongbranchLPIterations(scip)
ccall(
(:SCIPgetNStrongbranchLPIterations, libscip),
Clonglong,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNRootStrongbranchs(scip)
ccall((:SCIPgetNRootStrongbranchs, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNRootStrongbranchLPIterations(scip)
ccall(
(:SCIPgetNRootStrongbranchLPIterations, libscip),
Clonglong,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNPriceRounds(scip)
ccall((:SCIPgetNPriceRounds, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNPricevars(scip)
ccall((:SCIPgetNPricevars, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNPricevarsFound(scip)
ccall((:SCIPgetNPricevarsFound, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNPricevarsApplied(scip)
ccall((:SCIPgetNPricevarsApplied, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNSepaRounds(scip)
ccall((:SCIPgetNSepaRounds, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNCutsFound(scip)
ccall((:SCIPgetNCutsFound, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNCutsFoundRound(scip)
ccall((:SCIPgetNCutsFoundRound, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNCutsApplied(scip)
ccall((:SCIPgetNCutsApplied, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNConflictConssFound(scip)
ccall((:SCIPgetNConflictConssFound, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNConflictConssFoundNode(scip)
ccall((:SCIPgetNConflictConssFoundNode, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNConflictConssApplied(scip)
ccall(
(:SCIPgetNConflictConssApplied, libscip),
Clonglong,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNConflictDualproofsApplied(scip)
ccall(
(:SCIPgetNConflictDualproofsApplied, libscip),
Clonglong,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetMaxDepth(scip)
ccall((:SCIPgetMaxDepth, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetMaxTotalDepth(scip)
ccall((:SCIPgetMaxTotalDepth, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNBacktracks(scip)
ccall((:SCIPgetNBacktracks, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNActiveConss(scip)
ccall((:SCIPgetNActiveConss, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNEnabledConss(scip)
ccall((:SCIPgetNEnabledConss, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetAvgDualbound(scip)
ccall((:SCIPgetAvgDualbound, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetAvgLowerbound(scip)
ccall((:SCIPgetAvgLowerbound, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetDualbound(scip)
ccall((:SCIPgetDualbound, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetLowerbound(scip)
ccall((:SCIPgetLowerbound, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetDualboundRoot(scip)
ccall((:SCIPgetDualboundRoot, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetLowerboundRoot(scip)
ccall((:SCIPgetLowerboundRoot, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetFirstLPDualboundRoot(scip)
ccall((:SCIPgetFirstLPDualboundRoot, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetFirstLPLowerboundRoot(scip)
ccall((:SCIPgetFirstLPLowerboundRoot, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetFirstPrimalBound(scip)
ccall((:SCIPgetFirstPrimalBound, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetPrimalbound(scip)
ccall((:SCIPgetPrimalbound, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetUpperbound(scip)
ccall((:SCIPgetUpperbound, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetCutoffbound(scip)
ccall((:SCIPgetCutoffbound, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPupdateCutoffbound(scip, cutoffbound)
ccall(
(:SCIPupdateCutoffbound, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cdouble),
scip,
cutoffbound,
)
end
function SCIPisPrimalboundSol(scip)
ccall((:SCIPisPrimalboundSol, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPgetGap(scip)
ccall((:SCIPgetGap, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetTransGap(scip)
ccall((:SCIPgetTransGap, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetNSolsFound(scip)
ccall((:SCIPgetNSolsFound, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNLimSolsFound(scip)
ccall((:SCIPgetNLimSolsFound, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetNBestSolsFound(scip)
ccall((:SCIPgetNBestSolsFound, libscip), Clonglong, (Ptr{SCIP},), scip)
end
function SCIPgetAvgPseudocost(scip, solvaldelta)
ccall(
(:SCIPgetAvgPseudocost, libscip),
Cdouble,
(Ptr{SCIP}, Cdouble),
scip,
solvaldelta,
)
end
function SCIPgetAvgPseudocostCurrentRun(scip, solvaldelta)
ccall(
(:SCIPgetAvgPseudocostCurrentRun, libscip),
Cdouble,
(Ptr{SCIP}, Cdouble),
scip,
solvaldelta,
)
end
function SCIPgetAvgPseudocostCount(scip, dir)
ccall(
(:SCIPgetAvgPseudocostCount, libscip),
Cdouble,
(Ptr{SCIP}, SCIP_BRANCHDIR),
scip,
dir,
)
end
function SCIPgetAvgPseudocostCountCurrentRun(scip, dir)
ccall(
(:SCIPgetAvgPseudocostCountCurrentRun, libscip),
Cdouble,
(Ptr{SCIP}, SCIP_BRANCHDIR),
scip,
dir,
)
end
function SCIPgetPseudocostCount(scip, dir, onlycurrentrun)
ccall(
(:SCIPgetPseudocostCount, libscip),
Cdouble,
(Ptr{SCIP}, SCIP_BRANCHDIR, Cuint),
scip,
dir,
onlycurrentrun,
)
end
function SCIPgetAvgPseudocostScore(scip)
ccall((:SCIPgetAvgPseudocostScore, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetPseudocostVariance(scip, branchdir, onlycurrentrun)
ccall(
(:SCIPgetPseudocostVariance, libscip),
Cdouble,
(Ptr{SCIP}, SCIP_BRANCHDIR, Cuint),
scip,
branchdir,
onlycurrentrun,
)
end
function SCIPgetAvgPseudocostScoreCurrentRun(scip)
ccall(
(:SCIPgetAvgPseudocostScoreCurrentRun, libscip),
Cdouble,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetAvgConflictScore(scip)
ccall((:SCIPgetAvgConflictScore, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetAvgConflictScoreCurrentRun(scip)
ccall(
(:SCIPgetAvgConflictScoreCurrentRun, libscip),
Cdouble,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetAvgConflictlengthScore(scip)
ccall(
(:SCIPgetAvgConflictlengthScore, libscip),
Cdouble,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetAvgConflictlengthScoreCurrentRun(scip)
ccall(
(:SCIPgetAvgConflictlengthScoreCurrentRun, libscip),
Cdouble,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetAvgInferences(scip, dir)
ccall(
(:SCIPgetAvgInferences, libscip),
Cdouble,
(Ptr{SCIP}, SCIP_BRANCHDIR),
scip,
dir,
)
end
function SCIPgetAvgInferencesCurrentRun(scip, dir)
ccall(
(:SCIPgetAvgInferencesCurrentRun, libscip),
Cdouble,
(Ptr{SCIP}, SCIP_BRANCHDIR),
scip,
dir,
)
end
function SCIPgetAvgInferenceScore(scip)
ccall((:SCIPgetAvgInferenceScore, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetAvgInferenceScoreCurrentRun(scip)
ccall(
(:SCIPgetAvgInferenceScoreCurrentRun, libscip),
Cdouble,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetAvgCutoffs(scip, dir)
ccall(
(:SCIPgetAvgCutoffs, libscip),
Cdouble,
(Ptr{SCIP}, SCIP_BRANCHDIR),
scip,
dir,
)
end
function SCIPgetAvgCutoffsCurrentRun(scip, dir)
ccall(
(:SCIPgetAvgCutoffsCurrentRun, libscip),
Cdouble,
(Ptr{SCIP}, SCIP_BRANCHDIR),
scip,
dir,
)
end
function SCIPgetAvgCutoffScore(scip)
ccall((:SCIPgetAvgCutoffScore, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetAvgCutoffScoreCurrentRun(scip)
ccall(
(:SCIPgetAvgCutoffScoreCurrentRun, libscip),
Cdouble,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetDeterministicTime(scip)
ccall((:SCIPgetDeterministicTime, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPprintOrigProblem(scip, file, extension, genericnames)
ccall(
(:SCIPprintOrigProblem, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Libc.FILE}, Ptr{Cchar}, Cuint),
scip,
file,
extension,
genericnames,
)
end
function SCIPprintTransProblem(scip, file, extension, genericnames)
ccall(
(:SCIPprintTransProblem, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Libc.FILE}, Ptr{Cchar}, Cuint),
scip,
file,
extension,
genericnames,
)
end
function SCIPprintStatusStatistics(scip, file)
ccall(
(:SCIPprintStatusStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintTimingStatistics(scip, file)
ccall(
(:SCIPprintTimingStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintOrigProblemStatistics(scip, file)
ccall(
(:SCIPprintOrigProblemStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintTransProblemStatistics(scip, file)
ccall(
(:SCIPprintTransProblemStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintPresolverStatistics(scip, file)
ccall(
(:SCIPprintPresolverStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintConstraintStatistics(scip, file)
ccall(
(:SCIPprintConstraintStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintConstraintTimingStatistics(scip, file)
ccall(
(:SCIPprintConstraintTimingStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintPropagatorStatistics(scip, file)
ccall(
(:SCIPprintPropagatorStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintConflictStatistics(scip, file)
ccall(
(:SCIPprintConflictStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintSeparatorStatistics(scip, file)
ccall(
(:SCIPprintSeparatorStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintCutselectorStatistics(scip, file)
ccall(
(:SCIPprintCutselectorStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintPricerStatistics(scip, file)
ccall(
(:SCIPprintPricerStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintBranchruleStatistics(scip, file)
ccall(
(:SCIPprintBranchruleStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintHeuristicStatistics(scip, file)
ccall(
(:SCIPprintHeuristicStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintCompressionStatistics(scip, file)
ccall(
(:SCIPprintCompressionStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintLPStatistics(scip, file)
ccall(
(:SCIPprintLPStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintNLPStatistics(scip, file)
ccall(
(:SCIPprintNLPStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintRelaxatorStatistics(scip, file)
ccall(
(:SCIPprintRelaxatorStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintTreeStatistics(scip, file)
ccall(
(:SCIPprintTreeStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintRootStatistics(scip, file)
ccall(
(:SCIPprintRootStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintSolutionStatistics(scip, file)
ccall(
(:SCIPprintSolutionStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintConcsolverStatistics(scip, file)
ccall(
(:SCIPprintConcsolverStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintBendersStatistics(scip, file)
ccall(
(:SCIPprintBendersStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintExpressionHandlerStatistics(scip, file)
ccall(
(:SCIPprintExpressionHandlerStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintNLPIStatistics(scip, file)
ccall(
(:SCIPprintNLPIStatistics, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintStatistics(scip, file)
ccall(
(:SCIPprintStatistics, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintReoptStatistics(scip, file)
ccall(
(:SCIPprintReoptStatistics, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintBranchingStatistics(scip, file)
ccall(
(:SCIPprintBranchingStatistics, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Libc.FILE}),
scip,
file,
)
end
function SCIPprintDisplayLine(scip, file, verblevel, endline)
ccall(
(:SCIPprintDisplayLine, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Libc.FILE}, SCIP_VERBLEVEL, Cuint),
scip,
file,
verblevel,
endline,
)
end
function SCIPgetNImplications(scip)
ccall((:SCIPgetNImplications, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPwriteImplicationConflictGraph(scip, filename)
ccall(
(:SCIPwriteImplicationConflictGraph, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}),
scip,
filename,
)
end
function SCIPstoreSolutionGap(scip)
ccall((:SCIPstoreSolutionGap, libscip), Cvoid, (Ptr{SCIP},), scip)
end
function SCIPincludeTable(
scip,
name,
desc,
active,
tablecopy,
tablefree,
tableinit,
tableexit,
tableinitsol,
tableexitsol,
tableoutput,
tabledata,
position,
earlieststage,
)
ccall(
(:SCIPincludeTable, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Cchar},
Cuint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_TABLEDATA},
Cint,
SCIP_STAGE,
),
scip,
name,
desc,
active,
tablecopy,
tablefree,
tableinit,
tableexit,
tableinitsol,
tableexitsol,
tableoutput,
tabledata,
position,
earlieststage,
)
end
function SCIPfindTable(scip, name)
ccall(
(:SCIPfindTable, libscip),
Ptr{SCIP_TABLE},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
name,
)
end
function SCIPgetTables(scip)
ccall((:SCIPgetTables, libscip), Ptr{Ptr{SCIP_TABLE}}, (Ptr{SCIP},), scip)
end
function SCIPgetNTables(scip)
ccall((:SCIPgetNTables, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetTimeOfDay(scip)
ccall((:SCIPgetTimeOfDay, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPcreateClock(scip, clck)
ccall(
(:SCIPcreateClock, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_CLOCK}}),
scip,
clck,
)
end
function SCIPcreateCPUClock(scip, clck)
ccall(
(:SCIPcreateCPUClock, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_CLOCK}}),
scip,
clck,
)
end
function SCIPcreateWallClock(scip, clck)
ccall(
(:SCIPcreateWallClock, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_CLOCK}}),
scip,
clck,
)
end
function SCIPfreeClock(scip, clck)
ccall(
(:SCIPfreeClock, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_CLOCK}}),
scip,
clck,
)
end
function SCIPresetClock(scip, clck)
ccall(
(:SCIPresetClock, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CLOCK}),
scip,
clck,
)
end
function SCIPstartClock(scip, clck)
ccall(
(:SCIPstartClock, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CLOCK}),
scip,
clck,
)
end
function SCIPstopClock(scip, clck)
ccall(
(:SCIPstopClock, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CLOCK}),
scip,
clck,
)
end
function SCIPsetClockEnabled(clck, enable)
ccall(
(:SCIPsetClockEnabled, libscip),
Cvoid,
(Ptr{SCIP_CLOCK}, Cuint),
clck,
enable,
)
end
function SCIPenableOrDisableStatisticTiming(scip)
ccall(
(:SCIPenableOrDisableStatisticTiming, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPstartSolvingTime(scip)
ccall((:SCIPstartSolvingTime, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPstopSolvingTime(scip)
ccall((:SCIPstopSolvingTime, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPgetClockTime(scip, clck)
ccall(
(:SCIPgetClockTime, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CLOCK}),
scip,
clck,
)
end
function SCIPsetClockTime(scip, clck, sec)
ccall(
(:SCIPsetClockTime, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CLOCK}, Cdouble),
scip,
clck,
sec,
)
end
function SCIPgetTotalTime(scip)
ccall((:SCIPgetTotalTime, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetSolvingTime(scip)
ccall((:SCIPgetSolvingTime, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetReadingTime(scip)
ccall((:SCIPgetReadingTime, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetPresolvingTime(scip)
ccall((:SCIPgetPresolvingTime, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetFirstLPTime(scip)
ccall((:SCIPgetFirstLPTime, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPgetFocusNode(scip)
ccall((:SCIPgetFocusNode, libscip), Ptr{SCIP_NODE}, (Ptr{SCIP},), scip)
end
function SCIPgetCurrentNode(scip)
ccall((:SCIPgetCurrentNode, libscip), Ptr{SCIP_NODE}, (Ptr{SCIP},), scip)
end
function SCIPgetDepth(scip)
ccall((:SCIPgetDepth, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetFocusDepth(scip)
ccall((:SCIPgetFocusDepth, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetPlungeDepth(scip)
ccall((:SCIPgetPlungeDepth, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetRootNode(scip)
ccall((:SCIPgetRootNode, libscip), Ptr{SCIP_NODE}, (Ptr{SCIP},), scip)
end
function SCIPgetEffectiveRootDepth(scip)
ccall((:SCIPgetEffectiveRootDepth, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPinRepropagation(scip)
ccall((:SCIPinRepropagation, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPgetChildren(scip, children, nchildren)
ccall(
(:SCIPgetChildren, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{Ptr{SCIP_NODE}}}, Ptr{Cint}),
scip,
children,
nchildren,
)
end
function SCIPgetNChildren(scip)
ccall((:SCIPgetNChildren, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetSiblings(scip, siblings, nsiblings)
ccall(
(:SCIPgetSiblings, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{Ptr{SCIP_NODE}}}, Ptr{Cint}),
scip,
siblings,
nsiblings,
)
end
function SCIPgetNSiblings(scip)
ccall((:SCIPgetNSiblings, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetLeaves(scip, leaves, nleaves)
ccall(
(:SCIPgetLeaves, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{Ptr{SCIP_NODE}}}, Ptr{Cint}),
scip,
leaves,
nleaves,
)
end
function SCIPgetNLeaves(scip)
ccall((:SCIPgetNLeaves, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNNodesLeft(scip)
ccall((:SCIPgetNNodesLeft, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetPrioChild(scip)
ccall((:SCIPgetPrioChild, libscip), Ptr{SCIP_NODE}, (Ptr{SCIP},), scip)
end
function SCIPgetPrioSibling(scip)
ccall((:SCIPgetPrioSibling, libscip), Ptr{SCIP_NODE}, (Ptr{SCIP},), scip)
end
function SCIPgetBestChild(scip)
ccall((:SCIPgetBestChild, libscip), Ptr{SCIP_NODE}, (Ptr{SCIP},), scip)
end
function SCIPgetBestSibling(scip)
ccall((:SCIPgetBestSibling, libscip), Ptr{SCIP_NODE}, (Ptr{SCIP},), scip)
end
function SCIPgetBestLeaf(scip)
ccall((:SCIPgetBestLeaf, libscip), Ptr{SCIP_NODE}, (Ptr{SCIP},), scip)
end
function SCIPgetBestNode(scip)
ccall((:SCIPgetBestNode, libscip), Ptr{SCIP_NODE}, (Ptr{SCIP},), scip)
end
function SCIPgetBestboundNode(scip)
ccall((:SCIPgetBestboundNode, libscip), Ptr{SCIP_NODE}, (Ptr{SCIP},), scip)
end
function SCIPgetOpenNodesData(
scip,
leaves,
children,
siblings,
nleaves,
nchildren,
nsiblings,
)
ccall(
(:SCIPgetOpenNodesData, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{Ptr{SCIP_NODE}}},
Ptr{Ptr{Ptr{SCIP_NODE}}},
Ptr{Ptr{Ptr{SCIP_NODE}}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
),
scip,
leaves,
children,
siblings,
nleaves,
nchildren,
nsiblings,
)
end
function SCIPcutoffNode(scip, node)
ccall(
(:SCIPcutoffNode, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODE}),
scip,
node,
)
end
function SCIPpruneTree(scip)
ccall((:SCIPpruneTree, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPrepropagateNode(scip, node)
ccall(
(:SCIPrepropagateNode, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODE}),
scip,
node,
)
end
function SCIPgetCutoffdepth(scip)
ccall((:SCIPgetCutoffdepth, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetRepropdepth(scip)
ccall((:SCIPgetRepropdepth, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPprintNodeRootPath(scip, node, file)
ccall(
(:SCIPprintNodeRootPath, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODE}, Ptr{Libc.FILE}),
scip,
node,
file,
)
end
function SCIPsetFocusnodeLP(scip, solvelp)
ccall(
(:SCIPsetFocusnodeLP, libscip),
Cvoid,
(Ptr{SCIP}, Cuint),
scip,
solvelp,
)
end
function SCIPwasNodeLastBranchParent(scip, node)
ccall(
(:SCIPwasNodeLastBranchParent, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_NODE}),
scip,
node,
)
end
function SCIPvalidateSolve(
scip,
primalreference,
dualreference,
reftol,
quiet,
feasible,
primalboundcheck,
dualboundcheck,
)
ccall(
(:SCIPvalidateSolve, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Cdouble,
Cdouble,
Cdouble,
Cuint,
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
),
scip,
primalreference,
dualreference,
reftol,
quiet,
feasible,
primalboundcheck,
dualboundcheck,
)
end
function SCIPcreateVar(
scip,
var,
name,
lb,
ub,
obj,
vartype,
initial,
removable,
vardelorig,
vartrans,
vardeltrans,
varcopy,
vardata,
)
ccall(
(:SCIPcreateVar, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cchar},
Cdouble,
Cdouble,
Cdouble,
SCIP_VARTYPE,
Cuint,
Cuint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_VARDATA},
),
scip,
var,
name,
lb,
ub,
obj,
vartype,
initial,
removable,
vardelorig,
vartrans,
vardeltrans,
varcopy,
vardata,
)
end
function SCIPcreateVarBasic(scip, var, name, lb, ub, obj, vartype)
ccall(
(:SCIPcreateVarBasic, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cchar},
Cdouble,
Cdouble,
Cdouble,
SCIP_VARTYPE,
),
scip,
var,
name,
lb,
ub,
obj,
vartype,
)
end
function SCIPwriteVarName(scip, file, var, type)
ccall(
(:SCIPwriteVarName, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Libc.FILE}, Ptr{SCIP_VAR}, Cuint),
scip,
file,
var,
type,
)
end
function SCIPwriteVarsList(scip, file, vars, nvars, type, delimiter)
ccall(
(:SCIPwriteVarsList, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Libc.FILE}, Ptr{Ptr{SCIP_VAR}}, Cint, Cuint, Cchar),
scip,
file,
vars,
nvars,
type,
delimiter,
)
end
function SCIPwriteVarsLinearsum(scip, file, vars, vals, nvars, type)
ccall(
(:SCIPwriteVarsLinearsum, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Libc.FILE},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cint,
Cuint,
),
scip,
file,
vars,
vals,
nvars,
type,
)
end
function SCIPwriteVarsPolynomial(
scip,
file,
monomialvars,
monomialexps,
monomialcoefs,
monomialnvars,
nmonomials,
type,
)
ccall(
(:SCIPwriteVarsPolynomial, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Libc.FILE},
Ptr{Ptr{Ptr{SCIP_VAR}}},
Ptr{Ptr{Cdouble}},
Ptr{Cdouble},
Ptr{Cint},
Cint,
Cuint,
),
scip,
file,
monomialvars,
monomialexps,
monomialcoefs,
monomialnvars,
nmonomials,
type,
)
end
function SCIPparseVar(
scip,
var,
str,
initial,
removable,
varcopy,
vardelorig,
vartrans,
vardeltrans,
vardata,
endptr,
success,
)
ccall(
(:SCIPparseVar, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cchar},
Cuint,
Cuint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_VARDATA},
Ptr{Ptr{Cchar}},
Ptr{Cuint},
),
scip,
var,
str,
initial,
removable,
varcopy,
vardelorig,
vartrans,
vardeltrans,
vardata,
endptr,
success,
)
end
function SCIPparseVarName(scip, str, var, endptr)
ccall(
(:SCIPparseVarName, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Ptr{Ptr{SCIP_VAR}}, Ptr{Ptr{Cchar}}),
scip,
str,
var,
endptr,
)
end
function SCIPparseVarsList(
scip,
str,
vars,
nvars,
varssize,
requiredsize,
endptr,
delimiter,
success,
)
ccall(
(:SCIPparseVarsList, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cint},
Cint,
Ptr{Cint},
Ptr{Ptr{Cchar}},
Cchar,
Ptr{Cuint},
),
scip,
str,
vars,
nvars,
varssize,
requiredsize,
endptr,
delimiter,
success,
)
end
function SCIPparseVarsLinearsum(
scip,
str,
vars,
vals,
nvars,
varssize,
requiredsize,
endptr,
success,
)
ccall(
(:SCIPparseVarsLinearsum, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Ptr{Cint},
Cint,
Ptr{Cint},
Ptr{Ptr{Cchar}},
Ptr{Cuint},
),
scip,
str,
vars,
vals,
nvars,
varssize,
requiredsize,
endptr,
success,
)
end
function SCIPparseVarsPolynomial(
scip,
str,
monomialvars,
monomialexps,
monomialcoefs,
monomialnvars,
nmonomials,
endptr,
success,
)
ccall(
(:SCIPparseVarsPolynomial, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cchar},
Ptr{Ptr{Ptr{Ptr{SCIP_VAR}}}},
Ptr{Ptr{Ptr{Cdouble}}},
Ptr{Ptr{Cdouble}},
Ptr{Ptr{Cint}},
Ptr{Cint},
Ptr{Ptr{Cchar}},
Ptr{Cuint},
),
scip,
str,
monomialvars,
monomialexps,
monomialcoefs,
monomialnvars,
nmonomials,
endptr,
success,
)
end
function SCIPfreeParseVarsPolynomialData(
scip,
monomialvars,
monomialexps,
monomialcoefs,
monomialnvars,
nmonomials,
)
ccall(
(:SCIPfreeParseVarsPolynomialData, libscip),
Cvoid,
(
Ptr{SCIP},
Ptr{Ptr{Ptr{Ptr{SCIP_VAR}}}},
Ptr{Ptr{Ptr{Cdouble}}},
Ptr{Ptr{Cdouble}},
Ptr{Ptr{Cint}},
Cint,
),
scip,
monomialvars,
monomialexps,
monomialcoefs,
monomialnvars,
nmonomials,
)
end
function SCIPcaptureVar(scip, var)
ccall(
(:SCIPcaptureVar, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPreleaseVar(scip, var)
ccall(
(:SCIPreleaseVar, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_VAR}}),
scip,
var,
)
end
function SCIPchgVarName(scip, var, name)
ccall(
(:SCIPchgVarName, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Ptr{Cchar}),
scip,
var,
name,
)
end
function SCIPtransformVar(scip, var, transvar)
ccall(
(:SCIPtransformVar, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Ptr{Ptr{SCIP_VAR}}),
scip,
var,
transvar,
)
end
function SCIPtransformVars(scip, nvars, vars, transvars)
ccall(
(:SCIPtransformVars, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cint, Ptr{Ptr{SCIP_VAR}}, Ptr{Ptr{SCIP_VAR}}),
scip,
nvars,
vars,
transvars,
)
end
function SCIPgetTransformedVar(scip, var, transvar)
ccall(
(:SCIPgetTransformedVar, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Ptr{Ptr{SCIP_VAR}}),
scip,
var,
transvar,
)
end
function SCIPgetTransformedVars(scip, nvars, vars, transvars)
ccall(
(:SCIPgetTransformedVars, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cint, Ptr{Ptr{SCIP_VAR}}, Ptr{Ptr{SCIP_VAR}}),
scip,
nvars,
vars,
transvars,
)
end
function SCIPgetNegatedVar(scip, var, negvar)
ccall(
(:SCIPgetNegatedVar, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Ptr{Ptr{SCIP_VAR}}),
scip,
var,
negvar,
)
end
function SCIPgetNegatedVars(scip, nvars, vars, negvars)
ccall(
(:SCIPgetNegatedVars, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cint, Ptr{Ptr{SCIP_VAR}}, Ptr{Ptr{SCIP_VAR}}),
scip,
nvars,
vars,
negvars,
)
end
function SCIPgetBinvarRepresentative(scip, var, repvar, negated)
ccall(
(:SCIPgetBinvarRepresentative, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Ptr{Ptr{SCIP_VAR}}, Ptr{Cuint}),
scip,
var,
repvar,
negated,
)
end
function SCIPgetBinvarRepresentatives(scip, nvars, vars, repvars, negated)
ccall(
(:SCIPgetBinvarRepresentatives, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cint, Ptr{Ptr{SCIP_VAR}}, Ptr{Ptr{SCIP_VAR}}, Ptr{Cuint}),
scip,
nvars,
vars,
repvars,
negated,
)
end
function SCIPflattenVarAggregationGraph(scip, var)
ccall(
(:SCIPflattenVarAggregationGraph, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetProbvarLinearSum(
scip,
vars,
scalars,
nvars,
varssize,
constant,
requiredsize,
mergemultiples,
)
ccall(
(:SCIPgetProbvarLinearSum, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Ptr{Cint},
Cint,
Ptr{Cdouble},
Ptr{Cint},
Cuint,
),
scip,
vars,
scalars,
nvars,
varssize,
constant,
requiredsize,
mergemultiples,
)
end
function SCIPgetProbvarSum(scip, var, scalar, constant)
ccall(
(:SCIPgetProbvarSum, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_VAR}}, Ptr{Cdouble}, Ptr{Cdouble}),
scip,
var,
scalar,
constant,
)
end
function SCIPgetActiveVars(scip, vars, nvars, varssize, requiredsize)
ccall(
(:SCIPgetActiveVars, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_VAR}}, Ptr{Cint}, Cint, Ptr{Cint}),
scip,
vars,
nvars,
varssize,
requiredsize,
)
end
function SCIPgetVarRedcost(scip, var)
ccall(
(:SCIPgetVarRedcost, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetVarImplRedcost(scip, var, varfixing)
ccall(
(:SCIPgetVarImplRedcost, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cuint),
scip,
var,
varfixing,
)
end
function SCIPgetVarFarkasCoef(scip, var)
ccall(
(:SCIPgetVarFarkasCoef, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetVarLbAtIndex(scip, var, bdchgidx, after)
ccall(
(:SCIPgetVarLbAtIndex, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Ptr{SCIP_BDCHGIDX}, Cuint),
scip,
var,
bdchgidx,
after,
)
end
function SCIPgetVarUbAtIndex(scip, var, bdchgidx, after)
ccall(
(:SCIPgetVarUbAtIndex, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Ptr{SCIP_BDCHGIDX}, Cuint),
scip,
var,
bdchgidx,
after,
)
end
function SCIPgetVarBdAtIndex(scip, var, boundtype, bdchgidx, after)
ccall(
(:SCIPgetVarBdAtIndex, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_BOUNDTYPE, Ptr{SCIP_BDCHGIDX}, Cuint),
scip,
var,
boundtype,
bdchgidx,
after,
)
end
function SCIPgetVarWasFixedAtIndex(scip, var, bdchgidx, after)
ccall(
(:SCIPgetVarWasFixedAtIndex, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Ptr{SCIP_BDCHGIDX}, Cuint),
scip,
var,
bdchgidx,
after,
)
end
function SCIPgetVarSol(scip, var)
ccall(
(:SCIPgetVarSol, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetVarSols(scip, nvars, vars, vals)
ccall(
(:SCIPgetVarSols, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cint, Ptr{Ptr{SCIP_VAR}}, Ptr{Cdouble}),
scip,
nvars,
vars,
vals,
)
end
function SCIPclearRelaxSolVals(scip, relax)
ccall(
(:SCIPclearRelaxSolVals, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_RELAX}),
scip,
relax,
)
end
function SCIPsetRelaxSolVal(scip, relax, var, val)
ccall(
(:SCIPsetRelaxSolVal, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_RELAX}, Ptr{SCIP_VAR}, Cdouble),
scip,
relax,
var,
val,
)
end
function SCIPsetRelaxSolVals(scip, relax, nvars, vars, vals, includeslp)
ccall(
(:SCIPsetRelaxSolVals, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_RELAX},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cuint,
),
scip,
relax,
nvars,
vars,
vals,
includeslp,
)
end
function SCIPsetRelaxSolValsSol(scip, relax, sol, includeslp)
ccall(
(:SCIPsetRelaxSolValsSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_RELAX}, Ptr{SCIP_SOL}, Cuint),
scip,
relax,
sol,
includeslp,
)
end
function SCIPisRelaxSolValid(scip)
ccall((:SCIPisRelaxSolValid, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPmarkRelaxSolValid(scip, relax, includeslp)
ccall(
(:SCIPmarkRelaxSolValid, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_RELAX}, Cuint),
scip,
relax,
includeslp,
)
end
function SCIPmarkRelaxSolInvalid(scip)
ccall((:SCIPmarkRelaxSolInvalid, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPgetRelaxSolVal(scip, var)
ccall(
(:SCIPgetRelaxSolVal, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetRelaxSolObj(scip)
ccall((:SCIPgetRelaxSolObj, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPisStrongbranchDownFirst(scip, var)
ccall(
(:SCIPisStrongbranchDownFirst, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPstartStrongbranch(scip, enablepropagation)
ccall(
(:SCIPstartStrongbranch, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cuint),
scip,
enablepropagation,
)
end
function SCIPendStrongbranch(scip)
ccall((:SCIPendStrongbranch, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPgetVarStrongbranchFrac(
scip,
var,
itlim,
idempotent,
down,
up,
downvalid,
upvalid,
downinf,
upinf,
downconflict,
upconflict,
lperror,
)
ccall(
(:SCIPgetVarStrongbranchFrac, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Cint,
Cuint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
),
scip,
var,
itlim,
idempotent,
down,
up,
downvalid,
upvalid,
downinf,
upinf,
downconflict,
upconflict,
lperror,
)
end
function SCIPgetVarStrongbranchWithPropagation(
scip,
var,
solval,
lpobjval,
itlim,
maxproprounds,
down,
up,
downvalid,
upvalid,
ndomredsdown,
ndomredsup,
downinf,
upinf,
downconflict,
upconflict,
lperror,
newlbs,
newubs,
)
ccall(
(:SCIPgetVarStrongbranchWithPropagation, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Cdouble,
Cdouble,
Cint,
Cint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Clonglong},
Ptr{Clonglong},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cdouble},
Ptr{Cdouble},
),
scip,
var,
solval,
lpobjval,
itlim,
maxproprounds,
down,
up,
downvalid,
upvalid,
ndomredsdown,
ndomredsup,
downinf,
upinf,
downconflict,
upconflict,
lperror,
newlbs,
newubs,
)
end
function SCIPgetVarStrongbranchInt(
scip,
var,
itlim,
idempotent,
down,
up,
downvalid,
upvalid,
downinf,
upinf,
downconflict,
upconflict,
lperror,
)
ccall(
(:SCIPgetVarStrongbranchInt, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Cint,
Cuint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
),
scip,
var,
itlim,
idempotent,
down,
up,
downvalid,
upvalid,
downinf,
upinf,
downconflict,
upconflict,
lperror,
)
end
function SCIPgetVarsStrongbranchesFrac(
scip,
vars,
nvars,
itlim,
down,
up,
downvalid,
upvalid,
downinf,
upinf,
downconflict,
upconflict,
lperror,
)
ccall(
(:SCIPgetVarsStrongbranchesFrac, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_VAR}},
Cint,
Cint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
),
scip,
vars,
nvars,
itlim,
down,
up,
downvalid,
upvalid,
downinf,
upinf,
downconflict,
upconflict,
lperror,
)
end
function SCIPgetVarsStrongbranchesInt(
scip,
vars,
nvars,
itlim,
down,
up,
downvalid,
upvalid,
downinf,
upinf,
downconflict,
upconflict,
lperror,
)
ccall(
(:SCIPgetVarsStrongbranchesInt, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_VAR}},
Cint,
Cint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
),
scip,
vars,
nvars,
itlim,
down,
up,
downvalid,
upvalid,
downinf,
upinf,
downconflict,
upconflict,
lperror,
)
end
function SCIPgetLastStrongbranchLPSolStat(scip, branchdir)
ccall(
(:SCIPgetLastStrongbranchLPSolStat, libscip),
SCIP_LPSOLSTAT,
(Ptr{SCIP}, SCIP_BRANCHDIR),
scip,
branchdir,
)
end
function SCIPgetVarStrongbranchLast(
scip,
var,
down,
up,
downvalid,
upvalid,
solval,
lpobjval,
)
ccall(
(:SCIPgetVarStrongbranchLast, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cdouble},
Ptr{Cdouble},
),
scip,
var,
down,
up,
downvalid,
upvalid,
solval,
lpobjval,
)
end
function SCIPsetVarStrongbranchData(
scip,
var,
lpobjval,
primsol,
down,
up,
downvalid,
upvalid,
iter,
itlim,
)
ccall(
(:SCIPsetVarStrongbranchData, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cuint,
Cuint,
Clonglong,
Cint,
),
scip,
var,
lpobjval,
primsol,
down,
up,
downvalid,
upvalid,
iter,
itlim,
)
end
function SCIPtryStrongbranchLPSol(scip, foundsol, cutoff)
ccall(
(:SCIPtryStrongbranchLPSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cuint}, Ptr{Cuint}),
scip,
foundsol,
cutoff,
)
end
function SCIPgetVarStrongbranchNode(scip, var)
ccall(
(:SCIPgetVarStrongbranchNode, libscip),
Clonglong,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetVarStrongbranchLPAge(scip, var)
ccall(
(:SCIPgetVarStrongbranchLPAge, libscip),
Clonglong,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetVarNStrongbranchs(scip, var)
ccall(
(:SCIPgetVarNStrongbranchs, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPaddVarLocksType(scip, var, locktype, nlocksdown, nlocksup)
ccall(
(:SCIPaddVarLocksType, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_LOCKTYPE, Cint, Cint),
scip,
var,
locktype,
nlocksdown,
nlocksup,
)
end
function SCIPaddVarLocks(scip, var, nlocksdown, nlocksup)
ccall(
(:SCIPaddVarLocks, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cint, Cint),
scip,
var,
nlocksdown,
nlocksup,
)
end
function SCIPlockVarCons(scip, var, cons, lockdown, lockup)
ccall(
(:SCIPlockVarCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Ptr{SCIP_CONS}, Cuint, Cuint),
scip,
var,
cons,
lockdown,
lockup,
)
end
function SCIPunlockVarCons(scip, var, cons, lockdown, lockup)
ccall(
(:SCIPunlockVarCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Ptr{SCIP_CONS}, Cuint, Cuint),
scip,
var,
cons,
lockdown,
lockup,
)
end
function SCIPchgVarObj(scip, var, newobj)
ccall(
(:SCIPchgVarObj, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
newobj,
)
end
function SCIPaddVarObj(scip, var, addobj)
ccall(
(:SCIPaddVarObj, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
addobj,
)
end
function SCIPadjustedVarLb(scip, var, lb)
ccall(
(:SCIPadjustedVarLb, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
lb,
)
end
function SCIPadjustedVarUb(scip, var, ub)
ccall(
(:SCIPadjustedVarUb, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
ub,
)
end
function SCIPchgVarLb(scip, var, newbound)
ccall(
(:SCIPchgVarLb, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
newbound,
)
end
function SCIPchgVarUb(scip, var, newbound)
ccall(
(:SCIPchgVarUb, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
newbound,
)
end
function SCIPchgVarLbNode(scip, node, var, newbound)
ccall(
(:SCIPchgVarLbNode, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODE}, Ptr{SCIP_VAR}, Cdouble),
scip,
node,
var,
newbound,
)
end
function SCIPchgVarUbNode(scip, node, var, newbound)
ccall(
(:SCIPchgVarUbNode, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_NODE}, Ptr{SCIP_VAR}, Cdouble),
scip,
node,
var,
newbound,
)
end
function SCIPchgVarLbGlobal(scip, var, newbound)
ccall(
(:SCIPchgVarLbGlobal, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
newbound,
)
end
function SCIPchgVarUbGlobal(scip, var, newbound)
ccall(
(:SCIPchgVarUbGlobal, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
newbound,
)
end
function SCIPchgVarLbLazy(scip, var, lazylb)
ccall(
(:SCIPchgVarLbLazy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
lazylb,
)
end
function SCIPchgVarUbLazy(scip, var, lazyub)
ccall(
(:SCIPchgVarUbLazy, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
lazyub,
)
end
function SCIPtightenVarLb(scip, var, newbound, force, infeasible, tightened)
ccall(
(:SCIPtightenVarLb, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble, Cuint, Ptr{Cuint}, Ptr{Cuint}),
scip,
var,
newbound,
force,
infeasible,
tightened,
)
end
function SCIPtightenVarUb(scip, var, newbound, force, infeasible, tightened)
ccall(
(:SCIPtightenVarUb, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble, Cuint, Ptr{Cuint}, Ptr{Cuint}),
scip,
var,
newbound,
force,
infeasible,
tightened,
)
end
function SCIPinferVarFixCons(
scip,
var,
fixedval,
infercons,
inferinfo,
force,
infeasible,
tightened,
)
ccall(
(:SCIPinferVarFixCons, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Cdouble,
Ptr{SCIP_CONS},
Cint,
Cuint,
Ptr{Cuint},
Ptr{Cuint},
),
scip,
var,
fixedval,
infercons,
inferinfo,
force,
infeasible,
tightened,
)
end
function SCIPinferVarLbCons(
scip,
var,
newbound,
infercons,
inferinfo,
force,
infeasible,
tightened,
)
ccall(
(:SCIPinferVarLbCons, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Cdouble,
Ptr{SCIP_CONS},
Cint,
Cuint,
Ptr{Cuint},
Ptr{Cuint},
),
scip,
var,
newbound,
infercons,
inferinfo,
force,
infeasible,
tightened,
)
end
function SCIPinferVarUbCons(
scip,
var,
newbound,
infercons,
inferinfo,
force,
infeasible,
tightened,
)
ccall(
(:SCIPinferVarUbCons, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Cdouble,
Ptr{SCIP_CONS},
Cint,
Cuint,
Ptr{Cuint},
Ptr{Cuint},
),
scip,
var,
newbound,
infercons,
inferinfo,
force,
infeasible,
tightened,
)
end
function SCIPinferBinvarCons(
scip,
var,
fixedval,
infercons,
inferinfo,
infeasible,
tightened,
)
ccall(
(:SCIPinferBinvarCons, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Cuint,
Ptr{SCIP_CONS},
Cint,
Ptr{Cuint},
Ptr{Cuint},
),
scip,
var,
fixedval,
infercons,
inferinfo,
infeasible,
tightened,
)
end
function SCIPinferVarFixProp(
scip,
var,
fixedval,
inferprop,
inferinfo,
force,
infeasible,
tightened,
)
ccall(
(:SCIPinferVarFixProp, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Cdouble,
Ptr{SCIP_PROP},
Cint,
Cuint,
Ptr{Cuint},
Ptr{Cuint},
),
scip,
var,
fixedval,
inferprop,
inferinfo,
force,
infeasible,
tightened,
)
end
function SCIPinferVarLbProp(
scip,
var,
newbound,
inferprop,
inferinfo,
force,
infeasible,
tightened,
)
ccall(
(:SCIPinferVarLbProp, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Cdouble,
Ptr{SCIP_PROP},
Cint,
Cuint,
Ptr{Cuint},
Ptr{Cuint},
),
scip,
var,
newbound,
inferprop,
inferinfo,
force,
infeasible,
tightened,
)
end
function SCIPinferVarUbProp(
scip,
var,
newbound,
inferprop,
inferinfo,
force,
infeasible,
tightened,
)
ccall(
(:SCIPinferVarUbProp, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Cdouble,
Ptr{SCIP_PROP},
Cint,
Cuint,
Ptr{Cuint},
Ptr{Cuint},
),
scip,
var,
newbound,
inferprop,
inferinfo,
force,
infeasible,
tightened,
)
end
function SCIPinferBinvarProp(
scip,
var,
fixedval,
inferprop,
inferinfo,
infeasible,
tightened,
)
ccall(
(:SCIPinferBinvarProp, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Cuint,
Ptr{SCIP_PROP},
Cint,
Ptr{Cuint},
Ptr{Cuint},
),
scip,
var,
fixedval,
inferprop,
inferinfo,
infeasible,
tightened,
)
end
function SCIPtightenVarLbGlobal(
scip,
var,
newbound,
force,
infeasible,
tightened,
)
ccall(
(:SCIPtightenVarLbGlobal, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble, Cuint, Ptr{Cuint}, Ptr{Cuint}),
scip,
var,
newbound,
force,
infeasible,
tightened,
)
end
function SCIPtightenVarUbGlobal(
scip,
var,
newbound,
force,
infeasible,
tightened,
)
ccall(
(:SCIPtightenVarUbGlobal, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble, Cuint, Ptr{Cuint}, Ptr{Cuint}),
scip,
var,
newbound,
force,
infeasible,
tightened,
)
end
function SCIPcomputeVarLbGlobal(scip, var)
ccall(
(:SCIPcomputeVarLbGlobal, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPcomputeVarUbGlobal(scip, var)
ccall(
(:SCIPcomputeVarUbGlobal, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPcomputeVarLbLocal(scip, var)
ccall(
(:SCIPcomputeVarLbLocal, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPcomputeVarUbLocal(scip, var)
ccall(
(:SCIPcomputeVarUbLocal, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetVarMultaggrLbGlobal(scip, var)
ccall(
(:SCIPgetVarMultaggrLbGlobal, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetVarMultaggrUbGlobal(scip, var)
ccall(
(:SCIPgetVarMultaggrUbGlobal, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetVarMultaggrLbLocal(scip, var)
ccall(
(:SCIPgetVarMultaggrLbLocal, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetVarMultaggrUbLocal(scip, var)
ccall(
(:SCIPgetVarMultaggrUbLocal, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetVarClosestVlb(scip, var, sol, closestvlb, closestvlbidx)
ccall(
(:SCIPgetVarClosestVlb, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Ptr{SCIP_SOL}, Ptr{Cdouble}, Ptr{Cint}),
scip,
var,
sol,
closestvlb,
closestvlbidx,
)
end
function SCIPgetVarClosestVub(scip, var, sol, closestvub, closestvubidx)
ccall(
(:SCIPgetVarClosestVub, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Ptr{SCIP_SOL}, Ptr{Cdouble}, Ptr{Cint}),
scip,
var,
sol,
closestvub,
closestvubidx,
)
end
function SCIPaddVarVlb(
scip,
var,
vlbvar,
vlbcoef,
vlbconstant,
infeasible,
nbdchgs,
)
ccall(
(:SCIPaddVarVlb, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Ptr{SCIP_VAR},
Cdouble,
Cdouble,
Ptr{Cuint},
Ptr{Cint},
),
scip,
var,
vlbvar,
vlbcoef,
vlbconstant,
infeasible,
nbdchgs,
)
end
function SCIPaddVarVub(
scip,
var,
vubvar,
vubcoef,
vubconstant,
infeasible,
nbdchgs,
)
ccall(
(:SCIPaddVarVub, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Ptr{SCIP_VAR},
Cdouble,
Cdouble,
Ptr{Cuint},
Ptr{Cint},
),
scip,
var,
vubvar,
vubcoef,
vubconstant,
infeasible,
nbdchgs,
)
end
function SCIPaddVarImplication(
scip,
var,
varfixing,
implvar,
impltype,
implbound,
infeasible,
nbdchgs,
)
ccall(
(:SCIPaddVarImplication, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Cuint,
Ptr{SCIP_VAR},
SCIP_BOUNDTYPE,
Cdouble,
Ptr{Cuint},
Ptr{Cint},
),
scip,
var,
varfixing,
implvar,
impltype,
implbound,
infeasible,
nbdchgs,
)
end
function SCIPaddClique(
scip,
vars,
values,
nvars,
isequation,
infeasible,
nbdchgs,
)
ccall(
(:SCIPaddClique, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cuint},
Cint,
Cuint,
Ptr{Cuint},
Ptr{Cint},
),
scip,
vars,
values,
nvars,
isequation,
infeasible,
nbdchgs,
)
end
function SCIPcalcCliquePartition(scip, vars, nvars, cliquepartition, ncliques)
ccall(
(:SCIPcalcCliquePartition, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_VAR}}, Cint, Ptr{Cint}, Ptr{Cint}),
scip,
vars,
nvars,
cliquepartition,
ncliques,
)
end
function SCIPcalcNegatedCliquePartition(
scip,
vars,
nvars,
cliquepartition,
ncliques,
)
ccall(
(:SCIPcalcNegatedCliquePartition, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_VAR}}, Cint, Ptr{Cint}, Ptr{Cint}),
scip,
vars,
nvars,
cliquepartition,
ncliques,
)
end
function SCIPcleanupCliques(scip, infeasible)
ccall(
(:SCIPcleanupCliques, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cuint}),
scip,
infeasible,
)
end
function SCIPgetNCliques(scip)
ccall((:SCIPgetNCliques, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetNCliquesCreated(scip)
ccall((:SCIPgetNCliquesCreated, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPgetCliques(scip)
ccall((:SCIPgetCliques, libscip), Ptr{Ptr{SCIP_CLIQUE}}, (Ptr{SCIP},), scip)
end
function SCIPhaveVarsCommonClique(
scip,
var1,
value1,
var2,
value2,
regardimplics,
)
ccall(
(:SCIPhaveVarsCommonClique, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cuint, Ptr{SCIP_VAR}, Cuint, Cuint),
scip,
var1,
value1,
var2,
value2,
regardimplics,
)
end
function SCIPwriteCliqueGraph(scip, fname, writenodeweights)
ccall(
(:SCIPwriteCliqueGraph, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Cuint),
scip,
fname,
writenodeweights,
)
end
function SCIPremoveVarFromGlobalStructures(scip, var)
ccall(
(:SCIPremoveVarFromGlobalStructures, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPchgVarBranchFactor(scip, var, branchfactor)
ccall(
(:SCIPchgVarBranchFactor, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
branchfactor,
)
end
function SCIPscaleVarBranchFactor(scip, var, scale)
ccall(
(:SCIPscaleVarBranchFactor, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
scale,
)
end
function SCIPaddVarBranchFactor(scip, var, addfactor)
ccall(
(:SCIPaddVarBranchFactor, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
addfactor,
)
end
function SCIPchgVarBranchPriority(scip, var, branchpriority)
ccall(
(:SCIPchgVarBranchPriority, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cint),
scip,
var,
branchpriority,
)
end
function SCIPupdateVarBranchPriority(scip, var, branchpriority)
ccall(
(:SCIPupdateVarBranchPriority, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cint),
scip,
var,
branchpriority,
)
end
function SCIPaddVarBranchPriority(scip, var, addpriority)
ccall(
(:SCIPaddVarBranchPriority, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cint),
scip,
var,
addpriority,
)
end
function SCIPchgVarBranchDirection(scip, var, branchdirection)
ccall(
(:SCIPchgVarBranchDirection, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_BRANCHDIR),
scip,
var,
branchdirection,
)
end
function SCIPchgVarType(scip, var, vartype, infeasible)
ccall(
(:SCIPchgVarType, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_VARTYPE, Ptr{Cuint}),
scip,
var,
vartype,
infeasible,
)
end
function SCIPfixVar(scip, var, fixedval, infeasible, fixed)
ccall(
(:SCIPfixVar, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble, Ptr{Cuint}, Ptr{Cuint}),
scip,
var,
fixedval,
infeasible,
fixed,
)
end
function SCIPaggregateVars(
scip,
varx,
vary,
scalarx,
scalary,
rhs,
infeasible,
redundant,
aggregated,
)
ccall(
(:SCIPaggregateVars, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Ptr{SCIP_VAR},
Cdouble,
Cdouble,
Cdouble,
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
),
scip,
varx,
vary,
scalarx,
scalary,
rhs,
infeasible,
redundant,
aggregated,
)
end
function SCIPmultiaggregateVar(
scip,
var,
naggvars,
aggvars,
scalars,
constant,
infeasible,
aggregated,
)
ccall(
(:SCIPmultiaggregateVar, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cdouble,
Ptr{Cuint},
Ptr{Cuint},
),
scip,
var,
naggvars,
aggvars,
scalars,
constant,
infeasible,
aggregated,
)
end
function SCIPdoNotAggr(scip)
ccall((:SCIPdoNotAggr, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPdoNotMultaggr(scip)
ccall((:SCIPdoNotMultaggr, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPdoNotAggrVar(scip, var)
ccall(
(:SCIPdoNotAggrVar, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPdoNotMultaggrVar(scip, var)
ccall(
(:SCIPdoNotMultaggrVar, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPallowDualReds(scip)
ccall((:SCIPallowDualReds, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPallowStrongDualReds(scip)
ccall((:SCIPallowStrongDualReds, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPallowObjProp(scip)
ccall((:SCIPallowObjProp, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPallowWeakDualReds(scip)
ccall((:SCIPallowWeakDualReds, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPmarkDoNotAggrVar(scip, var)
ccall(
(:SCIPmarkDoNotAggrVar, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPmarkDoNotMultaggrVar(scip, var)
ccall(
(:SCIPmarkDoNotMultaggrVar, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPenableVarHistory(scip)
ccall((:SCIPenableVarHistory, libscip), Cvoid, (Ptr{SCIP},), scip)
end
function SCIPdisableVarHistory(scip)
ccall((:SCIPdisableVarHistory, libscip), Cvoid, (Ptr{SCIP},), scip)
end
function SCIPupdateVarPseudocost(scip, var, solvaldelta, objdelta, weight)
ccall(
(:SCIPupdateVarPseudocost, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble, Cdouble, Cdouble),
scip,
var,
solvaldelta,
objdelta,
weight,
)
end
function SCIPgetVarPseudocostVal(scip, var, solvaldelta)
ccall(
(:SCIPgetVarPseudocostVal, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
solvaldelta,
)
end
function SCIPgetVarPseudocostValCurrentRun(scip, var, solvaldelta)
ccall(
(:SCIPgetVarPseudocostValCurrentRun, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
solvaldelta,
)
end
function SCIPgetVarPseudocost(scip, var, dir)
ccall(
(:SCIPgetVarPseudocost, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_BRANCHDIR),
scip,
var,
dir,
)
end
function SCIPgetVarPseudocostCurrentRun(scip, var, dir)
ccall(
(:SCIPgetVarPseudocostCurrentRun, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_BRANCHDIR),
scip,
var,
dir,
)
end
function SCIPgetVarPseudocostCount(scip, var, dir)
ccall(
(:SCIPgetVarPseudocostCount, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_BRANCHDIR),
scip,
var,
dir,
)
end
function SCIPgetVarPseudocostCountCurrentRun(scip, var, dir)
ccall(
(:SCIPgetVarPseudocostCountCurrentRun, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_BRANCHDIR),
scip,
var,
dir,
)
end
function SCIPgetVarPseudocostVariance(scip, var, dir, onlycurrentrun)
ccall(
(:SCIPgetVarPseudocostVariance, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_BRANCHDIR, Cuint),
scip,
var,
dir,
onlycurrentrun,
)
end
function SCIPcalculatePscostConfidenceBound(
scip,
var,
dir,
onlycurrentrun,
clevel,
)
ccall(
(:SCIPcalculatePscostConfidenceBound, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_BRANCHDIR, Cuint, SCIP_CONFIDENCELEVEL),
scip,
var,
dir,
onlycurrentrun,
clevel,
)
end
function SCIPsignificantVarPscostDifference(
scip,
varx,
fracx,
vary,
fracy,
dir,
clevel,
onesided,
)
ccall(
(:SCIPsignificantVarPscostDifference, libscip),
Cuint,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Cdouble,
Ptr{SCIP_VAR},
Cdouble,
SCIP_BRANCHDIR,
SCIP_CONFIDENCELEVEL,
Cuint,
),
scip,
varx,
fracx,
vary,
fracy,
dir,
clevel,
onesided,
)
end
function SCIPpscostThresholdProbabilityTest(
scip,
var,
frac,
threshold,
dir,
clevel,
)
ccall(
(:SCIPpscostThresholdProbabilityTest, libscip),
Cuint,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Cdouble,
Cdouble,
SCIP_BRANCHDIR,
SCIP_CONFIDENCELEVEL,
),
scip,
var,
frac,
threshold,
dir,
clevel,
)
end
function SCIPisVarPscostRelerrorReliable(scip, var, threshold, clevel)
ccall(
(:SCIPisVarPscostRelerrorReliable, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble, SCIP_CONFIDENCELEVEL),
scip,
var,
threshold,
clevel,
)
end
function SCIPgetVarPseudocostScore(scip, var, solval)
ccall(
(:SCIPgetVarPseudocostScore, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
solval,
)
end
function SCIPgetVarPseudocostScoreCurrentRun(scip, var, solval)
ccall(
(:SCIPgetVarPseudocostScoreCurrentRun, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
solval,
)
end
function SCIPgetVarVSIDS(scip, var, dir)
ccall(
(:SCIPgetVarVSIDS, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_BRANCHDIR),
scip,
var,
dir,
)
end
function SCIPgetVarVSIDSCurrentRun(scip, var, dir)
ccall(
(:SCIPgetVarVSIDSCurrentRun, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_BRANCHDIR),
scip,
var,
dir,
)
end
function SCIPgetVarConflictScore(scip, var)
ccall(
(:SCIPgetVarConflictScore, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetVarConflictScoreCurrentRun(scip, var)
ccall(
(:SCIPgetVarConflictScoreCurrentRun, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetVarConflictlengthScore(scip, var)
ccall(
(:SCIPgetVarConflictlengthScore, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetVarConflictlengthScoreCurrentRun(scip, var)
ccall(
(:SCIPgetVarConflictlengthScoreCurrentRun, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetVarAvgConflictlength(scip, var, dir)
ccall(
(:SCIPgetVarAvgConflictlength, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_BRANCHDIR),
scip,
var,
dir,
)
end
function SCIPgetVarAvgConflictlengthCurrentRun(scip, var, dir)
ccall(
(:SCIPgetVarAvgConflictlengthCurrentRun, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_BRANCHDIR),
scip,
var,
dir,
)
end
function SCIPgetVarAvgInferences(scip, var, dir)
ccall(
(:SCIPgetVarAvgInferences, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_BRANCHDIR),
scip,
var,
dir,
)
end
function SCIPgetVarAvgInferencesCurrentRun(scip, var, dir)
ccall(
(:SCIPgetVarAvgInferencesCurrentRun, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_BRANCHDIR),
scip,
var,
dir,
)
end
function SCIPgetVarAvgInferenceScore(scip, var)
ccall(
(:SCIPgetVarAvgInferenceScore, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetVarAvgInferenceScoreCurrentRun(scip, var)
ccall(
(:SCIPgetVarAvgInferenceScoreCurrentRun, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPinitVarBranchStats(
scip,
var,
downpscost,
uppscost,
downvsids,
upvsids,
downconflen,
upconflen,
downinfer,
upinfer,
downcutoff,
upcutoff,
)
ccall(
(:SCIPinitVarBranchStats, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
),
scip,
var,
downpscost,
uppscost,
downvsids,
upvsids,
downconflen,
upconflen,
downinfer,
upinfer,
downcutoff,
upcutoff,
)
end
function SCIPinitVarValueBranchStats(
scip,
var,
value,
downvsids,
upvsids,
downconflen,
upconflen,
downinfer,
upinfer,
downcutoff,
upcutoff,
)
ccall(
(:SCIPinitVarValueBranchStats, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
),
scip,
var,
value,
downvsids,
upvsids,
downconflen,
upconflen,
downinfer,
upinfer,
downcutoff,
upcutoff,
)
end
function SCIPgetVarAvgCutoffs(scip, var, dir)
ccall(
(:SCIPgetVarAvgCutoffs, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_BRANCHDIR),
scip,
var,
dir,
)
end
function SCIPgetVarAvgCutoffsCurrentRun(scip, var, dir)
ccall(
(:SCIPgetVarAvgCutoffsCurrentRun, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, SCIP_BRANCHDIR),
scip,
var,
dir,
)
end
function SCIPgetVarAvgCutoffScore(scip, var)
ccall(
(:SCIPgetVarAvgCutoffScore, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetVarAvgCutoffScoreCurrentRun(scip, var)
ccall(
(:SCIPgetVarAvgCutoffScoreCurrentRun, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
var,
)
end
function SCIPgetVarAvgInferenceCutoffScore(scip, var, cutoffweight)
ccall(
(:SCIPgetVarAvgInferenceCutoffScore, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
cutoffweight,
)
end
function SCIPgetVarAvgInferenceCutoffScoreCurrentRun(scip, var, cutoffweight)
ccall(
(:SCIPgetVarAvgInferenceCutoffScoreCurrentRun, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Cdouble),
scip,
var,
cutoffweight,
)
end
function SCIPprintVar(scip, var, file)
ccall(
(:SCIPprintVar, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_VAR}, Ptr{Libc.FILE}),
scip,
var,
file,
)
end
function SCIPselectVarPseudoStrongBranching(
scip,
pseudocands,
skipdown,
skipup,
npseudocands,
npriopseudocands,
bestpseudocand,
bestdown,
bestup,
bestscore,
bestdownvalid,
bestupvalid,
provedbound,
result,
)
ccall(
(:SCIPselectVarPseudoStrongBranching, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cuint},
Ptr{Cuint},
Cint,
Cint,
Ptr{Cint},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cdouble},
Ptr{SCIP_RESULT},
),
scip,
pseudocands,
skipdown,
skipup,
npseudocands,
npriopseudocands,
bestpseudocand,
bestdown,
bestup,
bestscore,
bestdownvalid,
bestupvalid,
provedbound,
result,
)
end
function SCIPincludeBranchruleAllfullstrong(scip)
ccall(
(:SCIPincludeBranchruleAllfullstrong, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeBranchruleCloud(scip)
ccall(
(:SCIPincludeBranchruleCloud, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeBranchruleDistribution(scip)
ccall(
(:SCIPincludeBranchruleDistribution, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPvarCalcDistributionParameters(
scip,
varlb,
varub,
vartype,
mean,
variance,
)
ccall(
(:SCIPvarCalcDistributionParameters, libscip),
Cvoid,
(Ptr{SCIP}, Cdouble, Cdouble, SCIP_VARTYPE, Ptr{Cdouble}, Ptr{Cdouble}),
scip,
varlb,
varub,
vartype,
mean,
variance,
)
end
function SCIPcalcCumulativeDistribution(scip, mean, variance, value)
ccall(
(:SCIPcalcCumulativeDistribution, libscip),
Cdouble,
(Ptr{SCIP}, Cdouble, Cdouble, Cdouble),
scip,
mean,
variance,
value,
)
end
function SCIProwCalcProbability(
scip,
row,
mu,
sigma2,
rowinfinitiesdown,
rowinfinitiesup,
)
ccall(
(:SCIProwCalcProbability, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_ROW}, Cdouble, Cdouble, Cint, Cint),
scip,
row,
mu,
sigma2,
rowinfinitiesdown,
rowinfinitiesup,
)
end
function SCIPupdateDistributionScore(
scip,
currentprob,
newprobup,
newprobdown,
upscore,
downscore,
scoreparam,
)
ccall(
(:SCIPupdateDistributionScore, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Cdouble,
Cdouble,
Cdouble,
Ptr{Cdouble},
Ptr{Cdouble},
Cchar,
),
scip,
currentprob,
newprobup,
newprobdown,
upscore,
downscore,
scoreparam,
)
end
function SCIPincludeBranchruleFullstrong(scip)
ccall(
(:SCIPincludeBranchruleFullstrong, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPselectVarStrongBranching(
scip,
lpcands,
lpcandssol,
lpcandsfrac,
skipdown,
skipup,
nlpcands,
npriolpcands,
ncomplete,
start,
maxproprounds,
probingbounds,
forcestrongbranch,
bestcand,
bestdown,
bestup,
bestscore,
bestdownvalid,
bestupvalid,
provedbound,
result,
)
ccall(
(:SCIPselectVarStrongBranching, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Cint,
Cint,
Cint,
Ptr{Cint},
Cint,
Cuint,
Cuint,
Ptr{Cint},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cdouble},
Ptr{SCIP_RESULT},
),
scip,
lpcands,
lpcandssol,
lpcandsfrac,
skipdown,
skipup,
nlpcands,
npriolpcands,
ncomplete,
start,
maxproprounds,
probingbounds,
forcestrongbranch,
bestcand,
bestdown,
bestup,
bestscore,
bestdownvalid,
bestupvalid,
provedbound,
result,
)
end
function SCIPincludeBranchruleInference(scip)
ccall(
(:SCIPincludeBranchruleInference, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeBranchruleLeastinf(scip)
ccall(
(:SCIPincludeBranchruleLeastinf, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeBranchruleLookahead(scip)
ccall(
(:SCIPincludeBranchruleLookahead, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeBranchruleMostinf(scip)
ccall(
(:SCIPincludeBranchruleMostinf, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeBranchruleMultAggr(scip)
ccall(
(:SCIPincludeBranchruleMultAggr, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeBranchruleNodereopt(scip)
ccall(
(:SCIPincludeBranchruleNodereopt, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeBranchrulePscost(scip)
ccall(
(:SCIPincludeBranchrulePscost, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPselectBranchVarPscost(
scip,
branchcands,
branchcandssol,
branchcandsscore,
nbranchcands,
var,
brpoint,
)
ccall(
(:SCIPselectBranchVarPscost, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Ptr{Cdouble},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
),
scip,
branchcands,
branchcandssol,
branchcandsscore,
nbranchcands,
var,
brpoint,
)
end
function SCIPincludeBranchruleRandom(scip)
ccall(
(:SCIPincludeBranchruleRandom, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeBranchruleRelpscost(scip)
ccall(
(:SCIPincludeBranchruleRelpscost, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPexecRelpscostBranching(
scip,
branchcands,
branchcandssol,
branchcandsfrac,
nbranchcands,
executebranching,
result,
)
ccall(
(:SCIPexecRelpscostBranching, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Ptr{Cdouble},
Cint,
Cuint,
Ptr{SCIP_RESULT},
),
scip,
branchcands,
branchcandssol,
branchcandsfrac,
nbranchcands,
executebranching,
result,
)
end
function SCIPincludeBranchruleVanillafullstrong(scip)
ccall(
(:SCIPincludeBranchruleVanillafullstrong, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetVanillafullstrongData(
scip,
cands,
candscores,
ncands,
npriocands,
bestcand,
)
ccall(
(:SCIPgetVanillafullstrongData, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{Ptr{SCIP_VAR}}},
Ptr{Ptr{Cdouble}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
),
scip,
cands,
candscores,
ncands,
npriocands,
bestcand,
)
end
function SCIPincludeComprLargestrepr(scip)
ccall(
(:SCIPincludeComprLargestrepr, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeComprWeakcompr(scip)
ccall(
(:SCIPincludeComprWeakcompr, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeConshdlrAnd(scip)
ccall((:SCIPincludeConshdlrAnd, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPcreateConsAnd(
scip,
cons,
name,
resvar,
nvars,
vars,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsAnd, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{SCIP_VAR},
Cint,
Ptr{Ptr{SCIP_VAR}},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
resvar,
nvars,
vars,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicAnd(scip, cons, name, resvar, nvars, vars)
ccall(
(:SCIPcreateConsBasicAnd, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{SCIP_VAR},
Cint,
Ptr{Ptr{SCIP_VAR}},
),
scip,
cons,
name,
resvar,
nvars,
vars,
)
end
function SCIPgetNVarsAnd(scip, cons)
ccall(
(:SCIPgetNVarsAnd, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetVarsAnd(scip, cons)
ccall(
(:SCIPgetVarsAnd, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetResultantAnd(scip, cons)
ccall(
(:SCIPgetResultantAnd, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPisAndConsSorted(scip, cons)
ccall(
(:SCIPisAndConsSorted, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPsortAndCons(scip, cons)
ccall(
(:SCIPsortAndCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPchgAndConsCheckFlagWhenUpgr(scip, cons, flag)
ccall(
(:SCIPchgAndConsCheckFlagWhenUpgr, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cuint),
scip,
cons,
flag,
)
end
function SCIPchgAndConsRemovableFlagWhenUpgr(scip, cons, flag)
ccall(
(:SCIPchgAndConsRemovableFlagWhenUpgr, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cuint),
scip,
cons,
flag,
)
end
function SCIPincludeConshdlrBenders(scip)
ccall(
(:SCIPincludeConshdlrBenders, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPconsBendersEnforceSolution(
scip,
sol,
conshdlr,
result,
type,
checkint,
)
ccall(
(:SCIPconsBendersEnforceSolution, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_SOL},
Ptr{SCIP_CONSHDLR},
Ptr{SCIP_RESULT},
SCIP_BENDERSENFOTYPE,
Cuint,
),
scip,
sol,
conshdlr,
result,
type,
checkint,
)
end
function SCIPincludeConshdlrBenderslp(scip)
ccall(
(:SCIPincludeConshdlrBenderslp, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeConshdlrBounddisjunction(scip)
ccall(
(:SCIPincludeConshdlrBounddisjunction, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateConsBounddisjunction(
scip,
cons,
name,
nvars,
vars,
boundtypes,
bounds,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsBounddisjunction, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{SCIP_BOUNDTYPE},
Ptr{Cdouble},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
nvars,
vars,
boundtypes,
bounds,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicBounddisjunction(
scip,
cons,
name,
nvars,
vars,
boundtypes,
bounds,
)
ccall(
(:SCIPcreateConsBasicBounddisjunction, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{SCIP_BOUNDTYPE},
Ptr{Cdouble},
),
scip,
cons,
name,
nvars,
vars,
boundtypes,
bounds,
)
end
function SCIPcreateConsBounddisjunctionRedundant(
scip,
cons,
name,
nvars,
vars,
boundtypes,
bounds,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsBounddisjunctionRedundant, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{SCIP_BOUNDTYPE},
Ptr{Cdouble},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
nvars,
vars,
boundtypes,
bounds,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicBounddisjunctionRedundant(
scip,
cons,
name,
nvars,
vars,
boundtypes,
bounds,
)
ccall(
(:SCIPcreateConsBasicBounddisjunctionRedundant, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{SCIP_BOUNDTYPE},
Ptr{Cdouble},
),
scip,
cons,
name,
nvars,
vars,
boundtypes,
bounds,
)
end
function SCIPgetNVarsBounddisjunction(scip, cons)
ccall(
(:SCIPgetNVarsBounddisjunction, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetVarsBounddisjunction(scip, cons)
ccall(
(:SCIPgetVarsBounddisjunction, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetBoundtypesBounddisjunction(scip, cons)
ccall(
(:SCIPgetBoundtypesBounddisjunction, libscip),
Ptr{SCIP_BOUNDTYPE},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetBoundsBounddisjunction(scip, cons)
ccall(
(:SCIPgetBoundsBounddisjunction, libscip),
Ptr{Cdouble},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPincludeConshdlrCardinality(scip)
ccall(
(:SCIPincludeConshdlrCardinality, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateConsCardinality(
scip,
cons,
name,
nvars,
vars,
cardval,
indvars,
weights,
initial,
separate,
enforce,
check,
propagate,
_local,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsCardinality, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
nvars,
vars,
cardval,
indvars,
weights,
initial,
separate,
enforce,
check,
propagate,
_local,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicCardinality(
scip,
cons,
name,
nvars,
vars,
cardval,
indvars,
weights,
)
ccall(
(:SCIPcreateConsBasicCardinality, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
),
scip,
cons,
name,
nvars,
vars,
cardval,
indvars,
weights,
)
end
function SCIPchgCardvalCardinality(scip, cons, cardval)
ccall(
(:SCIPchgCardvalCardinality, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cint),
scip,
cons,
cardval,
)
end
function SCIPaddVarCardinality(scip, cons, var, indvar, weight)
ccall(
(:SCIPaddVarCardinality, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_VAR}, Ptr{SCIP_VAR}, Cdouble),
scip,
cons,
var,
indvar,
weight,
)
end
function SCIPappendVarCardinality(scip, cons, var, indvar)
ccall(
(:SCIPappendVarCardinality, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_VAR}, Ptr{SCIP_VAR}),
scip,
cons,
var,
indvar,
)
end
function SCIPgetNVarsCardinality(scip, cons)
ccall(
(:SCIPgetNVarsCardinality, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetVarsCardinality(scip, cons)
ccall(
(:SCIPgetVarsCardinality, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetCardvalCardinality(scip, cons)
ccall(
(:SCIPgetCardvalCardinality, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetWeightsCardinality(scip, cons)
ccall(
(:SCIPgetWeightsCardinality, libscip),
Ptr{Cdouble},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPincludeConshdlrConjunction(scip)
ccall(
(:SCIPincludeConshdlrConjunction, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateConsConjunction(
scip,
cons,
name,
nconss,
conss,
enforce,
check,
_local,
modifiable,
dynamic,
)
ccall(
(:SCIPcreateConsConjunction, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_CONS}},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
nconss,
conss,
enforce,
check,
_local,
modifiable,
dynamic,
)
end
function SCIPcreateConsBasicConjunction(scip, cons, name, nconss, conss)
ccall(
(:SCIPcreateConsBasicConjunction, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_CONS}}, Ptr{Cchar}, Cint, Ptr{Ptr{SCIP_CONS}}),
scip,
cons,
name,
nconss,
conss,
)
end
function SCIPaddConsElemConjunction(scip, cons, addcons)
ccall(
(:SCIPaddConsElemConjunction, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_CONS}),
scip,
cons,
addcons,
)
end
function SCIPincludeConshdlrCountsols(scip)
ccall(
(:SCIPincludeConshdlrCountsols, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPdialogExecCountPresolve(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecCountPresolve, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecCount(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecCount, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecWriteAllsolutions(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecWriteAllsolutions, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPcount(scip)
ccall((:SCIPcount, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPgetNCountedSols(scip, valid)
ccall(
(:SCIPgetNCountedSols, libscip),
Clonglong,
(Ptr{SCIP}, Ptr{Cuint}),
scip,
valid,
)
end
function SCIPgetNCountedSolsstr(scip, buffer, buffersize, requiredsize)
ccall(
(:SCIPgetNCountedSolsstr, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Ptr{Cchar}}, Cint, Ptr{Cint}),
scip,
buffer,
buffersize,
requiredsize,
)
end
function SCIPgetNCountedFeasSubtrees(scip)
ccall(
(:SCIPgetNCountedFeasSubtrees, libscip),
Clonglong,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetCountedSparseSols(scip, vars, nvars, sols, nsols)
ccall(
(:SCIPgetCountedSparseSols, libscip),
Cvoid,
(
Ptr{SCIP},
Ptr{Ptr{Ptr{SCIP_VAR}}},
Ptr{Cint},
Ptr{Ptr{Ptr{SCIP_SPARSESOL}}},
Ptr{Cint},
),
scip,
vars,
nvars,
sols,
nsols,
)
end
function SCIPsetParamsCountsols(scip)
ccall((:SCIPsetParamsCountsols, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeConshdlrCumulative(scip)
ccall(
(:SCIPincludeConshdlrCumulative, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateConsCumulative(
scip,
cons,
name,
nvars,
vars,
durations,
demands,
capacity,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsCumulative, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cint},
Ptr{Cint},
Cint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
nvars,
vars,
durations,
demands,
capacity,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicCumulative(
scip,
cons,
name,
nvars,
vars,
durations,
demands,
capacity,
)
ccall(
(:SCIPcreateConsBasicCumulative, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cint},
Ptr{Cint},
Cint,
),
scip,
cons,
name,
nvars,
vars,
durations,
demands,
capacity,
)
end
function SCIPsetHminCumulative(scip, cons, hmin)
ccall(
(:SCIPsetHminCumulative, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cint),
scip,
cons,
hmin,
)
end
function SCIPgetHminCumulative(scip, cons)
ccall(
(:SCIPgetHminCumulative, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPsetHmaxCumulative(scip, cons, hmax)
ccall(
(:SCIPsetHmaxCumulative, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cint),
scip,
cons,
hmax,
)
end
function SCIPgetHmaxCumulative(scip, cons)
ccall(
(:SCIPgetHmaxCumulative, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetVarsCumulative(scip, cons)
ccall(
(:SCIPgetVarsCumulative, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetNVarsCumulative(scip, cons)
ccall(
(:SCIPgetNVarsCumulative, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetCapacityCumulative(scip, cons)
ccall(
(:SCIPgetCapacityCumulative, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetDurationsCumulative(scip, cons)
ccall(
(:SCIPgetDurationsCumulative, libscip),
Ptr{Cint},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetDemandsCumulative(scip, cons)
ccall(
(:SCIPgetDemandsCumulative, libscip),
Ptr{Cint},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPcheckCumulativeCondition(
scip,
sol,
nvars,
vars,
durations,
demands,
capacity,
hmin,
hmax,
violated,
cons,
printreason,
)
ccall(
(:SCIPcheckCumulativeCondition, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_SOL},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cint},
Ptr{Cint},
Cint,
Cint,
Cint,
Ptr{Cuint},
Ptr{SCIP_CONS},
Cuint,
),
scip,
sol,
nvars,
vars,
durations,
demands,
capacity,
hmin,
hmax,
violated,
cons,
printreason,
)
end
function SCIPnormalizeCumulativeCondition(
scip,
nvars,
vars,
durations,
demands,
capacity,
nchgcoefs,
nchgsides,
)
ccall(
(:SCIPnormalizeCumulativeCondition, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
),
scip,
nvars,
vars,
durations,
demands,
capacity,
nchgcoefs,
nchgsides,
)
end
function SCIPsplitCumulativeCondition(
scip,
nvars,
vars,
durations,
demands,
capacity,
hmin,
hmax,
split,
)
ccall(
(:SCIPsplitCumulativeCondition, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cint},
Ptr{Cint},
Cint,
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
),
scip,
nvars,
vars,
durations,
demands,
capacity,
hmin,
hmax,
split,
)
end
function SCIPpresolveCumulativeCondition(
scip,
nvars,
vars,
durations,
hmin,
hmax,
downlocks,
uplocks,
cons,
delvars,
nfixedvars,
nchgsides,
cutoff,
)
ccall(
(:SCIPpresolveCumulativeCondition, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cint},
Cint,
Cint,
Ptr{Cuint},
Ptr{Cuint},
Ptr{SCIP_CONS},
Ptr{Cuint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
),
scip,
nvars,
vars,
durations,
hmin,
hmax,
downlocks,
uplocks,
cons,
delvars,
nfixedvars,
nchgsides,
cutoff,
)
end
function SCIPpropCumulativeCondition(
scip,
presoltiming,
nvars,
vars,
durations,
demands,
capacity,
hmin,
hmax,
cons,
nchgbds,
initialized,
explanation,
cutoff,
)
ccall(
(:SCIPpropCumulativeCondition, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
SCIP_PRESOLTIMING,
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cint},
Ptr{Cint},
Cint,
Cint,
Cint,
Ptr{SCIP_CONS},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
),
scip,
presoltiming,
nvars,
vars,
durations,
demands,
capacity,
hmin,
hmax,
cons,
nchgbds,
initialized,
explanation,
cutoff,
)
end
function SCIPrespropCumulativeCondition(
scip,
nvars,
vars,
durations,
demands,
capacity,
hmin,
hmax,
infervar,
inferinfo,
boundtype,
bdchgidx,
relaxedbd,
explanation,
result,
)
ccall(
(:SCIPrespropCumulativeCondition, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cint},
Ptr{Cint},
Cint,
Cint,
Cint,
Ptr{SCIP_VAR},
Cint,
SCIP_BOUNDTYPE,
Ptr{SCIP_BDCHGIDX},
Cdouble,
Ptr{Cuint},
Ptr{SCIP_RESULT},
),
scip,
nvars,
vars,
durations,
demands,
capacity,
hmin,
hmax,
infervar,
inferinfo,
boundtype,
bdchgidx,
relaxedbd,
explanation,
result,
)
end
function SCIPvisualizeConsCumulative(scip, cons)
ccall(
(:SCIPvisualizeConsCumulative, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPsetSolveCumulative(scip, solveCumulative)
ccall(
(:SCIPsetSolveCumulative, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cvoid}),
scip,
solveCumulative,
)
end
function SCIPsolveCumulative(
scip,
njobs,
ests,
lsts,
objvals,
durations,
demands,
capacity,
hmin,
hmax,
timelimit,
memorylimit,
maxnodes,
solved,
infeasible,
unbounded,
error,
)
ccall(
(:SCIPsolveCumulative, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Cint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Cint,
Cint,
Cint,
Cdouble,
Cdouble,
Clonglong,
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
),
scip,
njobs,
ests,
lsts,
objvals,
durations,
demands,
capacity,
hmin,
hmax,
timelimit,
memorylimit,
maxnodes,
solved,
infeasible,
unbounded,
error,
)
end
function SCIPcreateWorstCaseProfile(
scip,
profile,
nvars,
vars,
durations,
demands,
)
ccall(
(:SCIPcreateWorstCaseProfile, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_PROFILE},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cint},
Ptr{Cint},
),
scip,
profile,
nvars,
vars,
durations,
demands,
)
end
function SCIPcomputeHmin(scip, profile, capacity)
ccall(
(:SCIPcomputeHmin, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_PROFILE}, Cint),
scip,
profile,
capacity,
)
end
function SCIPcomputeHmax(scip, profile, capacity)
ccall(
(:SCIPcomputeHmax, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_PROFILE}, Cint),
scip,
profile,
capacity,
)
end
function SCIPincludeConshdlrDisjunction(scip)
ccall(
(:SCIPincludeConshdlrDisjunction, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateConsDisjunction(
scip,
cons,
name,
nconss,
conss,
relaxcons,
initial,
enforce,
check,
_local,
modifiable,
dynamic,
)
ccall(
(:SCIPcreateConsDisjunction, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_CONS}},
Ptr{SCIP_CONS},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
nconss,
conss,
relaxcons,
initial,
enforce,
check,
_local,
modifiable,
dynamic,
)
end
function SCIPcreateConsBasicDisjunction(
scip,
cons,
name,
nconss,
conss,
relaxcons,
)
ccall(
(:SCIPcreateConsBasicDisjunction, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_CONS}},
Ptr{SCIP_CONS},
),
scip,
cons,
name,
nconss,
conss,
relaxcons,
)
end
function SCIPaddConsElemDisjunction(scip, cons, addcons)
ccall(
(:SCIPaddConsElemDisjunction, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_CONS}),
scip,
cons,
addcons,
)
end
function SCIPincludeConshdlrIndicator(scip)
ccall(
(:SCIPincludeConshdlrIndicator, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateConsIndicator(
scip,
cons,
name,
binvar,
nvars,
vars,
vals,
rhs,
initial,
separate,
enforce,
check,
propagate,
_local,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsIndicator, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{SCIP_VAR},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cdouble,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
binvar,
nvars,
vars,
vals,
rhs,
initial,
separate,
enforce,
check,
propagate,
_local,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicIndicator(
scip,
cons,
name,
binvar,
nvars,
vars,
vals,
rhs,
)
ccall(
(:SCIPcreateConsBasicIndicator, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{SCIP_VAR},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cdouble,
),
scip,
cons,
name,
binvar,
nvars,
vars,
vals,
rhs,
)
end
function SCIPcreateConsIndicatorGeneric(
scip,
cons,
name,
binvar,
nvars,
vars,
vals,
rhs,
activeone,
lessthanineq,
initial,
separate,
enforce,
check,
propagate,
_local,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsIndicatorGeneric, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{SCIP_VAR},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cdouble,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
binvar,
nvars,
vars,
vals,
rhs,
activeone,
lessthanineq,
initial,
separate,
enforce,
check,
propagate,
_local,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsIndicatorLinCons(
scip,
cons,
name,
binvar,
lincons,
slackvar,
initial,
separate,
enforce,
check,
propagate,
_local,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsIndicatorLinCons, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{SCIP_VAR},
Ptr{SCIP_CONS},
Ptr{SCIP_VAR},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
binvar,
lincons,
slackvar,
initial,
separate,
enforce,
check,
propagate,
_local,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsIndicatorGenericLinCons(
scip,
cons,
name,
binvar,
lincons,
slackvar,
activeone,
initial,
separate,
enforce,
check,
propagate,
_local,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsIndicatorGenericLinCons, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{SCIP_VAR},
Ptr{SCIP_CONS},
Ptr{SCIP_VAR},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
binvar,
lincons,
slackvar,
activeone,
initial,
separate,
enforce,
check,
propagate,
_local,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicIndicatorLinCons(
scip,
cons,
name,
binvar,
lincons,
slackvar,
)
ccall(
(:SCIPcreateConsBasicIndicatorLinCons, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{SCIP_VAR},
Ptr{SCIP_CONS},
Ptr{SCIP_VAR},
),
scip,
cons,
name,
binvar,
lincons,
slackvar,
)
end
function SCIPaddVarIndicator(scip, cons, var, val)
ccall(
(:SCIPaddVarIndicator, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_VAR}, Cdouble),
scip,
cons,
var,
val,
)
end
function SCIPgetLinearConsIndicator(cons)
ccall(
(:SCIPgetLinearConsIndicator, libscip),
Ptr{SCIP_CONS},
(Ptr{SCIP_CONS},),
cons,
)
end
function SCIPsetLinearConsIndicator(scip, cons, lincons)
ccall(
(:SCIPsetLinearConsIndicator, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_CONS}),
scip,
cons,
lincons,
)
end
function SCIPsetBinaryVarIndicator(scip, cons, binvar)
ccall(
(:SCIPsetBinaryVarIndicator, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_VAR}),
scip,
cons,
binvar,
)
end
function SCIPgetActiveOnIndicator(cons)
ccall((:SCIPgetActiveOnIndicator, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPgetBinaryVarIndicator(cons)
ccall(
(:SCIPgetBinaryVarIndicator, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP_CONS},),
cons,
)
end
function SCIPgetBinaryVarIndicatorGeneric(cons)
ccall(
(:SCIPgetBinaryVarIndicatorGeneric, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP_CONS},),
cons,
)
end
function SCIPgetSlackVarIndicator(cons)
ccall(
(:SCIPgetSlackVarIndicator, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP_CONS},),
cons,
)
end
function SCIPsetSlackVarUb(scip, cons, ub)
ccall(
(:SCIPsetSlackVarUb, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cdouble),
scip,
cons,
ub,
)
end
function SCIPisViolatedIndicator(scip, cons, sol)
ccall(
(:SCIPisViolatedIndicator, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_SOL}),
scip,
cons,
sol,
)
end
function SCIPmakeIndicatorFeasible(scip, cons, sol, changed)
ccall(
(:SCIPmakeIndicatorFeasible, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_SOL}, Ptr{Cuint}),
scip,
cons,
sol,
changed,
)
end
function SCIPmakeIndicatorsFeasible(scip, conshdlr, sol, changed)
ccall(
(:SCIPmakeIndicatorsFeasible, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{SCIP_SOL}, Ptr{Cuint}),
scip,
conshdlr,
sol,
changed,
)
end
function SCIPaddLinearConsIndicator(scip, conshdlr, lincons)
ccall(
(:SCIPaddLinearConsIndicator, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{SCIP_CONS}),
scip,
conshdlr,
lincons,
)
end
function SCIPaddRowIndicator(scip, conshdlr, row)
ccall(
(:SCIPaddRowIndicator, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{SCIP_ROW}),
scip,
conshdlr,
row,
)
end
function SCIPincludeConshdlrIntegral(scip)
ccall(
(:SCIPincludeConshdlrIntegral, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeConshdlrKnapsack(scip)
ccall(
(:SCIPincludeConshdlrKnapsack, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateConsKnapsack(
scip,
cons,
name,
nvars,
vars,
weights,
capacity,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsKnapsack, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Clonglong},
Clonglong,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
nvars,
vars,
weights,
capacity,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicKnapsack(
scip,
cons,
name,
nvars,
vars,
weights,
capacity,
)
ccall(
(:SCIPcreateConsBasicKnapsack, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Clonglong},
Clonglong,
),
scip,
cons,
name,
nvars,
vars,
weights,
capacity,
)
end
function SCIPaddCoefKnapsack(scip, cons, var, weight)
ccall(
(:SCIPaddCoefKnapsack, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_VAR}, Clonglong),
scip,
cons,
var,
weight,
)
end
function SCIPgetCapacityKnapsack(scip, cons)
ccall(
(:SCIPgetCapacityKnapsack, libscip),
Clonglong,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPchgCapacityKnapsack(scip, cons, capacity)
ccall(
(:SCIPchgCapacityKnapsack, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Clonglong),
scip,
cons,
capacity,
)
end
function SCIPgetNVarsKnapsack(scip, cons)
ccall(
(:SCIPgetNVarsKnapsack, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetVarsKnapsack(scip, cons)
ccall(
(:SCIPgetVarsKnapsack, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetWeightsKnapsack(scip, cons)
ccall(
(:SCIPgetWeightsKnapsack, libscip),
Ptr{Clonglong},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetDualsolKnapsack(scip, cons)
ccall(
(:SCIPgetDualsolKnapsack, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetDualfarkasKnapsack(scip, cons)
ccall(
(:SCIPgetDualfarkasKnapsack, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetRowKnapsack(scip, cons)
ccall(
(:SCIPgetRowKnapsack, libscip),
Ptr{SCIP_ROW},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPsolveKnapsackExactly(
scip,
nitems,
weights,
profits,
capacity,
items,
solitems,
nonsolitems,
nsolitems,
nnonsolitems,
solval,
success,
)
ccall(
(:SCIPsolveKnapsackExactly, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Cint,
Ptr{Clonglong},
Ptr{Cdouble},
Clonglong,
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Ptr{Cuint},
),
scip,
nitems,
weights,
profits,
capacity,
items,
solitems,
nonsolitems,
nsolitems,
nnonsolitems,
solval,
success,
)
end
function SCIPsolveKnapsackApproximately(
scip,
nitems,
weights,
profits,
capacity,
items,
solitems,
nonsolitems,
nsolitems,
nnonsolitems,
solval,
)
ccall(
(:SCIPsolveKnapsackApproximately, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Cint,
Ptr{Clonglong},
Ptr{Cdouble},
Clonglong,
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
),
scip,
nitems,
weights,
profits,
capacity,
items,
solitems,
nonsolitems,
nsolitems,
nnonsolitems,
solval,
)
end
function SCIPseparateKnapsackCuts(
scip,
cons,
sepa,
vars,
nvars,
weights,
capacity,
sol,
usegubs,
cutoff,
ncuts,
)
ccall(
(:SCIPseparateKnapsackCuts, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_CONS},
Ptr{SCIP_SEPA},
Ptr{Ptr{SCIP_VAR}},
Cint,
Ptr{Clonglong},
Clonglong,
Ptr{SCIP_SOL},
Cuint,
Ptr{Cuint},
Ptr{Cint},
),
scip,
cons,
sepa,
vars,
nvars,
weights,
capacity,
sol,
usegubs,
cutoff,
ncuts,
)
end
function SCIPseparateRelaxedKnapsack(
scip,
cons,
sepa,
nknapvars,
knapvars,
knapvals,
valscale,
rhs,
sol,
cutoff,
ncuts,
)
ccall(
(:SCIPseparateRelaxedKnapsack, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_CONS},
Ptr{SCIP_SEPA},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cdouble,
Cdouble,
Ptr{SCIP_SOL},
Ptr{Cuint},
Ptr{Cint},
),
scip,
cons,
sepa,
nknapvars,
knapvars,
knapvals,
valscale,
rhs,
sol,
cutoff,
ncuts,
)
end
function SCIPcleanupConssKnapsack(scip, onlychecked, infeasible)
ccall(
(:SCIPcleanupConssKnapsack, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cuint, Ptr{Cuint}),
scip,
onlychecked,
infeasible,
)
end
function SCIPincludeConshdlrLinear(scip)
ccall(
(:SCIPincludeConshdlrLinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
const SCIP_LinConsUpgrade = Cvoid
const SCIP_LINCONSUPGRADE = SCIP_LinConsUpgrade
function SCIPincludeLinconsUpgrade(scip, linconsupgd, priority, conshdlrname)
ccall(
(:SCIPincludeLinconsUpgrade, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cvoid}, Cint, Ptr{Cchar}),
scip,
linconsupgd,
priority,
conshdlrname,
)
end
function SCIPcreateConsLinear(
scip,
cons,
name,
nvars,
vars,
vals,
lhs,
rhs,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsLinear, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cdouble,
Cdouble,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
nvars,
vars,
vals,
lhs,
rhs,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicLinear(
scip,
cons,
name,
nvars,
vars,
vals,
lhs,
rhs,
)
ccall(
(:SCIPcreateConsBasicLinear, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cdouble,
Cdouble,
),
scip,
cons,
name,
nvars,
vars,
vals,
lhs,
rhs,
)
end
function SCIPcopyConsLinear(
scip,
cons,
sourcescip,
name,
nvars,
sourcevars,
sourcecoefs,
lhs,
rhs,
varmap,
consmap,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
_global,
valid,
)
ccall(
(:SCIPcopyConsLinear, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{SCIP},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cdouble,
Cdouble,
Ptr{SCIP_HASHMAP},
Ptr{SCIP_HASHMAP},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Ptr{Cuint},
),
scip,
cons,
sourcescip,
name,
nvars,
sourcevars,
sourcecoefs,
lhs,
rhs,
varmap,
consmap,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
_global,
valid,
)
end
function SCIPaddCoefLinear(scip, cons, var, val)
ccall(
(:SCIPaddCoefLinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_VAR}, Cdouble),
scip,
cons,
var,
val,
)
end
function SCIPchgCoefLinear(scip, cons, var, val)
ccall(
(:SCIPchgCoefLinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_VAR}, Cdouble),
scip,
cons,
var,
val,
)
end
function SCIPdelCoefLinear(scip, cons, var)
ccall(
(:SCIPdelCoefLinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_VAR}),
scip,
cons,
var,
)
end
function SCIPgetLhsLinear(scip, cons)
ccall(
(:SCIPgetLhsLinear, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetRhsLinear(scip, cons)
ccall(
(:SCIPgetRhsLinear, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPchgLhsLinear(scip, cons, lhs)
ccall(
(:SCIPchgLhsLinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cdouble),
scip,
cons,
lhs,
)
end
function SCIPchgRhsLinear(scip, cons, rhs)
ccall(
(:SCIPchgRhsLinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cdouble),
scip,
cons,
rhs,
)
end
function SCIPgetNVarsLinear(scip, cons)
ccall(
(:SCIPgetNVarsLinear, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetVarsLinear(scip, cons)
ccall(
(:SCIPgetVarsLinear, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetValsLinear(scip, cons)
ccall(
(:SCIPgetValsLinear, libscip),
Ptr{Cdouble},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetActivityLinear(scip, cons, sol)
ccall(
(:SCIPgetActivityLinear, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_SOL}),
scip,
cons,
sol,
)
end
function SCIPgetFeasibilityLinear(scip, cons, sol)
ccall(
(:SCIPgetFeasibilityLinear, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_SOL}),
scip,
cons,
sol,
)
end
function SCIPgetDualsolLinear(scip, cons)
ccall(
(:SCIPgetDualsolLinear, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetDualfarkasLinear(scip, cons)
ccall(
(:SCIPgetDualfarkasLinear, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetRowLinear(scip, cons)
ccall(
(:SCIPgetRowLinear, libscip),
Ptr{SCIP_ROW},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPupgradeConsLinear(scip, cons, upgdcons)
ccall(
(:SCIPupgradeConsLinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{Ptr{SCIP_CONS}}),
scip,
cons,
upgdcons,
)
end
function SCIPclassifyConstraintTypesLinear(scip, linconsstats)
ccall(
(:SCIPclassifyConstraintTypesLinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_LINCONSSTATS}),
scip,
linconsstats,
)
end
function SCIPcleanupConssLinear(scip, onlychecked, infeasible)
ccall(
(:SCIPcleanupConssLinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cuint, Ptr{Cuint}),
scip,
onlychecked,
infeasible,
)
end
function SCIPincludeConshdlrLinking(scip)
ccall(
(:SCIPincludeConshdlrLinking, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateConsLinking(
scip,
cons,
name,
linkvar,
binvars,
vals,
nbinvars,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsLinking, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{SCIP_VAR},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
linkvar,
binvars,
vals,
nbinvars,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicLinking(
scip,
cons,
name,
linkvar,
binvars,
vals,
nbinvars,
)
ccall(
(:SCIPcreateConsBasicLinking, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{SCIP_VAR},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cint,
),
scip,
cons,
name,
linkvar,
binvars,
vals,
nbinvars,
)
end
function SCIPexistsConsLinking(scip, linkvar)
ccall(
(:SCIPexistsConsLinking, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
linkvar,
)
end
function SCIPgetConsLinking(scip, linkvar)
ccall(
(:SCIPgetConsLinking, libscip),
Ptr{SCIP_CONS},
(Ptr{SCIP}, Ptr{SCIP_VAR}),
scip,
linkvar,
)
end
function SCIPgetLinkvarLinking(scip, cons)
ccall(
(:SCIPgetLinkvarLinking, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetBinvarsLinking(scip, cons, binvars, nbinvars)
ccall(
(:SCIPgetBinvarsLinking, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{Ptr{Ptr{SCIP_VAR}}}, Ptr{Cint}),
scip,
cons,
binvars,
nbinvars,
)
end
function SCIPgetNBinvarsLinking(scip, cons)
ccall(
(:SCIPgetNBinvarsLinking, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetValsLinking(scip, cons)
ccall(
(:SCIPgetValsLinking, libscip),
Ptr{Cdouble},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetBinvarsDataLinking(cons, binvars, vals, nbinvars)
ccall(
(:SCIPgetBinvarsDataLinking, libscip),
SCIP_RETCODE,
(Ptr{SCIP_CONS}, Ptr{Ptr{Ptr{SCIP_VAR}}}, Ptr{Ptr{Cdouble}}, Ptr{Cint}),
cons,
binvars,
vals,
nbinvars,
)
end
function SCIPincludeConshdlrLogicor(scip)
ccall(
(:SCIPincludeConshdlrLogicor, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateConsLogicor(
scip,
cons,
name,
nvars,
vars,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsLogicor, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
nvars,
vars,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicLogicor(scip, cons, name, nvars, vars)
ccall(
(:SCIPcreateConsBasicLogicor, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_CONS}}, Ptr{Cchar}, Cint, Ptr{Ptr{SCIP_VAR}}),
scip,
cons,
name,
nvars,
vars,
)
end
function SCIPaddCoefLogicor(scip, cons, var)
ccall(
(:SCIPaddCoefLogicor, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_VAR}),
scip,
cons,
var,
)
end
function SCIPgetNVarsLogicor(scip, cons)
ccall(
(:SCIPgetNVarsLogicor, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetVarsLogicor(scip, cons)
ccall(
(:SCIPgetVarsLogicor, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetDualsolLogicor(scip, cons)
ccall(
(:SCIPgetDualsolLogicor, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetDualfarkasLogicor(scip, cons)
ccall(
(:SCIPgetDualfarkasLogicor, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetRowLogicor(scip, cons)
ccall(
(:SCIPgetRowLogicor, libscip),
Ptr{SCIP_ROW},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPcleanupConssLogicor(
scip,
onlychecked,
naddconss,
ndelconss,
nchgcoefs,
)
ccall(
(:SCIPcleanupConssLogicor, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cuint, Ptr{Cint}, Ptr{Cint}, Ptr{Cint}),
scip,
onlychecked,
naddconss,
ndelconss,
nchgcoefs,
)
end
struct SCIP_ConsNonlinear_Auxexpr
coefs::NTuple{3,Cdouble}
cst::Cdouble
auxvar::Ptr{SCIP_VAR}
underestimate::Cuint
overestimate::Cuint
end
const SCIP_CONSNONLINEAR_AUXEXPR = SCIP_ConsNonlinear_Auxexpr
struct __JL_Ctag_674
data::NTuple{8,UInt8}
end
function Base.getproperty(x::Ptr{__JL_Ctag_674}, f::Symbol)
f === :exprs && return Ptr{Ptr{Ptr{SCIP_CONSNONLINEAR_AUXEXPR}}}(x + 0)
f === :var && return Ptr{Ptr{SCIP_VAR}}(x + 0)
return getfield(x, f)
end
function Base.getproperty(x::__JL_Ctag_674, f::Symbol)
r = Ref{__JL_Ctag_674}(x)
ptr = Base.unsafe_convert(Ptr{__JL_Ctag_674}, r)
fptr = getproperty(ptr, f)
GC.@preserve r unsafe_load(fptr)
end
function Base.setproperty!(x::Ptr{__JL_Ctag_674}, f::Symbol, v)
unsafe_store!(getproperty(x, f), v)
end
struct SCIP_ConsNonlinear_BilinTerm
data::NTuple{48,UInt8}
end
function Base.getproperty(x::Ptr{SCIP_ConsNonlinear_BilinTerm}, f::Symbol)
f === :x && return Ptr{Ptr{SCIP_VAR}}(x + 0)
f === :y && return Ptr{Ptr{SCIP_VAR}}(x + 8)
f === :aux && return Ptr{__JL_Ctag_674}(x + 16)
f === :nauxexprs && return Ptr{Cint}(x + 24)
f === :auxexprssize && return Ptr{Cint}(x + 28)
f === :nlockspos && return Ptr{Cint}(x + 32)
f === :nlocksneg && return Ptr{Cint}(x + 36)
f === :existing && return Ptr{Cuint}(x + 40)
return getfield(x, f)
end
function Base.getproperty(x::SCIP_ConsNonlinear_BilinTerm, f::Symbol)
r = Ref{SCIP_ConsNonlinear_BilinTerm}(x)
ptr = Base.unsafe_convert(Ptr{SCIP_ConsNonlinear_BilinTerm}, r)
fptr = getproperty(ptr, f)
GC.@preserve r unsafe_load(fptr)
end
function Base.setproperty!(x::Ptr{SCIP_ConsNonlinear_BilinTerm}, f::Symbol, v)
unsafe_store!(getproperty(x, f), v)
end
const SCIP_CONSNONLINEAR_BILINTERM = SCIP_ConsNonlinear_BilinTerm
function SCIPincludeConshdlrNonlinear(scip)
ccall(
(:SCIPincludeConshdlrNonlinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeConsUpgradeNonlinear(
scip,
nlconsupgd,
priority,
active,
conshdlrname,
)
ccall(
(:SCIPincludeConsUpgradeNonlinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cvoid}, Cint, Cuint, Ptr{Cchar}),
scip,
nlconsupgd,
priority,
active,
conshdlrname,
)
end
function SCIPcreateConsNonlinear(
scip,
cons,
name,
expr,
lhs,
rhs,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
)
ccall(
(:SCIPcreateConsNonlinear, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{SCIP_EXPR},
Cdouble,
Cdouble,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
expr,
lhs,
rhs,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
)
end
function SCIPcreateConsBasicNonlinear(scip, cons, name, expr, lhs, rhs)
ccall(
(:SCIPcreateConsBasicNonlinear, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{SCIP_EXPR},
Cdouble,
Cdouble,
),
scip,
cons,
name,
expr,
lhs,
rhs,
)
end
function SCIPcreateConsQuadraticNonlinear(
scip,
cons,
name,
nlinvars,
linvars,
lincoefs,
nquadterms,
quadvars1,
quadvars2,
quadcoefs,
lhs,
rhs,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
)
ccall(
(:SCIPcreateConsQuadraticNonlinear, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cdouble,
Cdouble,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
nlinvars,
linvars,
lincoefs,
nquadterms,
quadvars1,
quadvars2,
quadcoefs,
lhs,
rhs,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
)
end
function SCIPcreateConsBasicQuadraticNonlinear(
scip,
cons,
name,
nlinvars,
linvars,
lincoefs,
nquadterms,
quadvars1,
quadvars2,
quadcoefs,
lhs,
rhs,
)
ccall(
(:SCIPcreateConsBasicQuadraticNonlinear, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cdouble,
Cdouble,
),
scip,
cons,
name,
nlinvars,
linvars,
lincoefs,
nquadterms,
quadvars1,
quadvars2,
quadcoefs,
lhs,
rhs,
)
end
function SCIPcreateConsBasicSignpowerNonlinear(
scip,
cons,
name,
x,
z,
exponent,
xoffset,
zcoef,
lhs,
rhs,
)
ccall(
(:SCIPcreateConsBasicSignpowerNonlinear, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{SCIP_VAR},
Ptr{SCIP_VAR},
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
),
scip,
cons,
name,
x,
z,
exponent,
xoffset,
zcoef,
lhs,
rhs,
)
end
function SCIPgetCurBoundsTagNonlinear(conshdlr)
ccall(
(:SCIPgetCurBoundsTagNonlinear, libscip),
Clonglong,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPgetLastBoundRelaxTagNonlinear(conshdlr)
ccall(
(:SCIPgetLastBoundRelaxTagNonlinear, libscip),
Clonglong,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPincrementCurBoundsTagNonlinear(conshdlr, boundrelax)
ccall(
(:SCIPincrementCurBoundsTagNonlinear, libscip),
Cvoid,
(Ptr{SCIP_CONSHDLR}, Cuint),
conshdlr,
boundrelax,
)
end
function SCIPgetVarExprHashmapNonlinear(conshdlr)
ccall(
(:SCIPgetVarExprHashmapNonlinear, libscip),
Ptr{SCIP_HASHMAP},
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPprocessRowprepNonlinear(
scip,
nlhdlr,
cons,
expr,
rowprep,
overestimate,
auxvar,
auxvalue,
allowweakcuts,
branchscoresuccess,
inenforcement,
sol,
result,
)
ccall(
(:SCIPprocessRowprepNonlinear, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_NLHDLR},
Ptr{SCIP_CONS},
Ptr{SCIP_EXPR},
Ptr{SCIP_ROWPREP},
Cuint,
Ptr{SCIP_VAR},
Cdouble,
Cuint,
Cuint,
Cuint,
Ptr{SCIP_SOL},
Ptr{SCIP_RESULT},
),
scip,
nlhdlr,
cons,
expr,
rowprep,
overestimate,
auxvar,
auxvalue,
allowweakcuts,
branchscoresuccess,
inenforcement,
sol,
result,
)
end
function SCIPcollectBilinTermsNonlinear(scip, conshdlr, conss, nconss)
ccall(
(:SCIPcollectBilinTermsNonlinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{Ptr{SCIP_CONS}}, Cint),
scip,
conshdlr,
conss,
nconss,
)
end
function SCIPgetNBilinTermsNonlinear(conshdlr)
ccall(
(:SCIPgetNBilinTermsNonlinear, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPgetBilinTermsNonlinear(conshdlr)
ccall(
(:SCIPgetBilinTermsNonlinear, libscip),
Ptr{SCIP_CONSNONLINEAR_BILINTERM},
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPgetBilinTermIdxNonlinear(conshdlr, x, y)
ccall(
(:SCIPgetBilinTermIdxNonlinear, libscip),
Cint,
(Ptr{SCIP_CONSHDLR}, Ptr{SCIP_VAR}, Ptr{SCIP_VAR}),
conshdlr,
x,
y,
)
end
function SCIPgetBilinTermNonlinear(conshdlr, x, y)
ccall(
(:SCIPgetBilinTermNonlinear, libscip),
Ptr{SCIP_CONSNONLINEAR_BILINTERM},
(Ptr{SCIP_CONSHDLR}, Ptr{SCIP_VAR}, Ptr{SCIP_VAR}),
conshdlr,
x,
y,
)
end
function SCIPevalBilinAuxExprNonlinear(scip, x, y, auxexpr, sol)
ccall(
(:SCIPevalBilinAuxExprNonlinear, libscip),
Cdouble,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Ptr{SCIP_VAR},
Ptr{SCIP_CONSNONLINEAR_AUXEXPR},
Ptr{SCIP_SOL},
),
scip,
x,
y,
auxexpr,
sol,
)
end
function SCIPinsertBilinearTermExistingNonlinear(
scip,
conshdlr,
x,
y,
auxvar,
nlockspos,
nlocksneg,
)
ccall(
(:SCIPinsertBilinearTermExistingNonlinear, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_CONSHDLR},
Ptr{SCIP_VAR},
Ptr{SCIP_VAR},
Ptr{SCIP_VAR},
Cint,
Cint,
),
scip,
conshdlr,
x,
y,
auxvar,
nlockspos,
nlocksneg,
)
end
function SCIPinsertBilinearTermImplicitNonlinear(
scip,
conshdlr,
x,
y,
auxvar,
coefx,
coefy,
coefaux,
cst,
overestimate,
)
ccall(
(:SCIPinsertBilinearTermImplicitNonlinear, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_CONSHDLR},
Ptr{SCIP_VAR},
Ptr{SCIP_VAR},
Ptr{SCIP_VAR},
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cuint,
),
scip,
conshdlr,
x,
y,
auxvar,
coefx,
coefy,
coefaux,
cst,
overestimate,
)
end
function SCIPcomputeFacetVertexPolyhedralNonlinear(
scip,
conshdlr,
overestimate,
_function,
fundata,
xstar,
box,
nallvars,
targetvalue,
success,
facetcoefs,
facetconstant,
)
ccall(
(:SCIPcomputeFacetVertexPolyhedralNonlinear, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_CONSHDLR},
Cuint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cdouble},
Ptr{Cdouble},
Cint,
Cdouble,
Ptr{Cuint},
Ptr{Cdouble},
Ptr{Cdouble},
),
scip,
conshdlr,
overestimate,
_function,
fundata,
xstar,
box,
nallvars,
targetvalue,
success,
facetcoefs,
facetconstant,
)
end
function SCIPgetExprNonlinear(cons)
ccall(
(:SCIPgetExprNonlinear, libscip),
Ptr{SCIP_EXPR},
(Ptr{SCIP_CONS},),
cons,
)
end
function SCIPgetLhsNonlinear(cons)
ccall((:SCIPgetLhsNonlinear, libscip), Cdouble, (Ptr{SCIP_CONS},), cons)
end
function SCIPgetRhsNonlinear(cons)
ccall((:SCIPgetRhsNonlinear, libscip), Cdouble, (Ptr{SCIP_CONS},), cons)
end
function SCIPgetNlRowNonlinear(scip, cons, nlrow)
ccall(
(:SCIPgetNlRowNonlinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{Ptr{SCIP_NLROW}}),
scip,
cons,
nlrow,
)
end
function SCIPgetCurvatureNonlinear(cons)
ccall(
(:SCIPgetCurvatureNonlinear, libscip),
SCIP_EXPRCURV,
(Ptr{SCIP_CONS},),
cons,
)
end
function SCIPcheckQuadraticNonlinear(scip, cons, isquadratic)
ccall(
(:SCIPcheckQuadraticNonlinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{Cuint}),
scip,
cons,
isquadratic,
)
end
function SCIPchgLhsNonlinear(scip, cons, lhs)
ccall(
(:SCIPchgLhsNonlinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cdouble),
scip,
cons,
lhs,
)
end
function SCIPchgRhsNonlinear(scip, cons, rhs)
ccall(
(:SCIPchgRhsNonlinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cdouble),
scip,
cons,
rhs,
)
end
function SCIPchgExprNonlinear(scip, cons, expr)
ccall(
(:SCIPchgExprNonlinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_EXPR}),
scip,
cons,
expr,
)
end
function SCIPaddLinearVarNonlinear(scip, cons, var, coef)
ccall(
(:SCIPaddLinearVarNonlinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_VAR}, Cdouble),
scip,
cons,
var,
coef,
)
end
function SCIPaddExprNonlinear(scip, cons, expr, coef)
ccall(
(:SCIPaddExprNonlinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_EXPR}, Cdouble),
scip,
cons,
expr,
coef,
)
end
function SCIPgetAbsViolationNonlinear(scip, cons, sol, viol)
ccall(
(:SCIPgetAbsViolationNonlinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_SOL}, Ptr{Cdouble}),
scip,
cons,
sol,
viol,
)
end
function SCIPgetRelViolationNonlinear(scip, cons, sol, viol)
ccall(
(:SCIPgetRelViolationNonlinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_SOL}, Ptr{Cdouble}),
scip,
cons,
sol,
viol,
)
end
function SCIPgetLinvarMayDecreaseNonlinear(scip, cons, var, coef)
ccall(
(:SCIPgetLinvarMayDecreaseNonlinear, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{Ptr{SCIP_VAR}}, Ptr{Cdouble}),
scip,
cons,
var,
coef,
)
end
function SCIPgetLinvarMayIncreaseNonlinear(scip, cons, var, coef)
ccall(
(:SCIPgetLinvarMayIncreaseNonlinear, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{Ptr{SCIP_VAR}}, Ptr{Cdouble}),
scip,
cons,
var,
coef,
)
end
function SCIPgetExprNLocksPosNonlinear(expr)
ccall(
(:SCIPgetExprNLocksPosNonlinear, libscip),
Cint,
(Ptr{SCIP_EXPR},),
expr,
)
end
function SCIPgetExprNLocksNegNonlinear(expr)
ccall(
(:SCIPgetExprNLocksNegNonlinear, libscip),
Cint,
(Ptr{SCIP_EXPR},),
expr,
)
end
function SCIPgetExprAuxVarNonlinear(expr)
ccall(
(:SCIPgetExprAuxVarNonlinear, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP_EXPR},),
expr,
)
end
function SCIPgetExprNEnfosNonlinear(expr)
ccall((:SCIPgetExprNEnfosNonlinear, libscip), Cint, (Ptr{SCIP_EXPR},), expr)
end
function SCIPgetExprEnfoDataNonlinear(
expr,
idx,
nlhdlr,
nlhdlrexprdata,
nlhdlrparticipation,
sepabelowusesactivity,
sepaaboveusesactivity,
auxvalue,
)
ccall(
(:SCIPgetExprEnfoDataNonlinear, libscip),
Cvoid,
(
Ptr{SCIP_EXPR},
Cint,
Ptr{Ptr{SCIP_NLHDLR}},
Ptr{Ptr{SCIP_NLHDLREXPRDATA}},
Ptr{SCIP_NLHDLR_METHOD},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cdouble},
),
expr,
idx,
nlhdlr,
nlhdlrexprdata,
nlhdlrparticipation,
sepabelowusesactivity,
sepaaboveusesactivity,
auxvalue,
)
end
function SCIPsetExprEnfoAuxValueNonlinear(expr, idx, auxvalue)
ccall(
(:SCIPsetExprEnfoAuxValueNonlinear, libscip),
Cvoid,
(Ptr{SCIP_EXPR}, Cint, Cdouble),
expr,
idx,
auxvalue,
)
end
function SCIPgetExprNPropUsesActivityNonlinear(expr)
ccall(
(:SCIPgetExprNPropUsesActivityNonlinear, libscip),
Cuint,
(Ptr{SCIP_EXPR},),
expr,
)
end
function SCIPgetExprNSepaUsesActivityNonlinear(expr)
ccall(
(:SCIPgetExprNSepaUsesActivityNonlinear, libscip),
Cuint,
(Ptr{SCIP_EXPR},),
expr,
)
end
function SCIPgetExprNAuxvarUsesNonlinear(expr)
ccall(
(:SCIPgetExprNAuxvarUsesNonlinear, libscip),
Cuint,
(Ptr{SCIP_EXPR},),
expr,
)
end
function SCIPregisterExprUsageNonlinear(
scip,
expr,
useauxvar,
useactivityforprop,
useactivityforsepabelow,
useactivityforsepaabove,
)
ccall(
(:SCIPregisterExprUsageNonlinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, Cuint, Cuint, Cuint, Cuint),
scip,
expr,
useauxvar,
useactivityforprop,
useactivityforsepabelow,
useactivityforsepaabove,
)
end
function SCIPgetExprAbsOrigViolationNonlinear(
scip,
expr,
sol,
soltag,
viol,
violunder,
violover,
)
ccall(
(:SCIPgetExprAbsOrigViolationNonlinear, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_EXPR},
Ptr{SCIP_SOL},
Clonglong,
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
),
scip,
expr,
sol,
soltag,
viol,
violunder,
violover,
)
end
function SCIPgetExprAbsAuxViolationNonlinear(
scip,
expr,
auxvalue,
sol,
viol,
violunder,
violover,
)
ccall(
(:SCIPgetExprAbsAuxViolationNonlinear, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_EXPR},
Cdouble,
Ptr{SCIP_SOL},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
),
scip,
expr,
auxvalue,
sol,
viol,
violunder,
violover,
)
end
function SCIPgetExprRelAuxViolationNonlinear(
scip,
expr,
auxvalue,
sol,
viol,
violunder,
violover,
)
ccall(
(:SCIPgetExprRelAuxViolationNonlinear, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_EXPR},
Cdouble,
Ptr{SCIP_SOL},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
),
scip,
expr,
auxvalue,
sol,
viol,
violunder,
violover,
)
end
function SCIPgetExprBoundsNonlinear(scip, expr)
ccall(
(:SCIPgetExprBoundsNonlinear, libscip),
SCIP_INTERVAL,
(Ptr{SCIP}, Ptr{SCIP_EXPR}),
scip,
expr,
)
end
function SCIPtightenExprIntervalNonlinear(
scip,
expr,
newbounds,
cutoff,
ntightenings,
)
ccall(
(:SCIPtightenExprIntervalNonlinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, SCIP_INTERVAL, Ptr{Cuint}, Ptr{Cint}),
scip,
expr,
newbounds,
cutoff,
ntightenings,
)
end
function SCIPmarkExprPropagateNonlinear(scip, expr)
ccall(
(:SCIPmarkExprPropagateNonlinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}),
scip,
expr,
)
end
function SCIPaddExprViolScoreNonlinear(scip, expr, violscore)
ccall(
(:SCIPaddExprViolScoreNonlinear, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, Cdouble),
scip,
expr,
violscore,
)
end
function SCIPaddExprsViolScoreNonlinear(
scip,
exprs,
nexprs,
violscore,
sol,
success,
)
ccall(
(:SCIPaddExprsViolScoreNonlinear, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_EXPR}},
Cint,
Cdouble,
Ptr{SCIP_SOL},
Ptr{Cuint},
),
scip,
exprs,
nexprs,
violscore,
sol,
success,
)
end
function SCIPgetExprViolScoreNonlinear(expr)
ccall(
(:SCIPgetExprViolScoreNonlinear, libscip),
Cdouble,
(Ptr{SCIP_EXPR},),
expr,
)
end
function SCIPgetExprPartialDiffNonlinear(scip, expr, var)
ccall(
(:SCIPgetExprPartialDiffNonlinear, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, Ptr{SCIP_VAR}),
scip,
expr,
var,
)
end
function SCIPgetExprPartialDiffGradientDirNonlinear(scip, expr, var)
ccall(
(:SCIPgetExprPartialDiffGradientDirNonlinear, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, Ptr{SCIP_VAR}),
scip,
expr,
var,
)
end
function SCIPevalExprQuadraticAuxNonlinear(scip, expr, sol)
ccall(
(:SCIPevalExprQuadraticAuxNonlinear, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, Ptr{SCIP_SOL}),
scip,
expr,
sol,
)
end
function SCIPincludeNlhdlrNonlinear(
scip,
nlhdlr,
name,
desc,
detectpriority,
enfopriority,
detect,
evalaux,
nlhdlrdata,
)
ccall(
(:SCIPincludeNlhdlrNonlinear, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_NLHDLR}},
Ptr{Cchar},
Ptr{Cchar},
Cint,
Cint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_NLHDLRDATA},
),
scip,
nlhdlr,
name,
desc,
detectpriority,
enfopriority,
detect,
evalaux,
nlhdlrdata,
)
end
function SCIPfindNlhdlrNonlinear(conshdlr, name)
ccall(
(:SCIPfindNlhdlrNonlinear, libscip),
Ptr{SCIP_NLHDLR},
(Ptr{SCIP_CONSHDLR}, Ptr{Cchar}),
conshdlr,
name,
)
end
function SCIPgetNlhdlrExprDataNonlinear(nlhdlr, expr)
ccall(
(:SCIPgetNlhdlrExprDataNonlinear, libscip),
Ptr{SCIP_NLHDLREXPRDATA},
(Ptr{SCIP_NLHDLR}, Ptr{SCIP_EXPR}),
nlhdlr,
expr,
)
end
function SCIPincludeConshdlrOr(scip)
ccall((:SCIPincludeConshdlrOr, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPcreateConsOr(
scip,
cons,
name,
resvar,
nvars,
vars,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsOr, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{SCIP_VAR},
Cint,
Ptr{Ptr{SCIP_VAR}},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
resvar,
nvars,
vars,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicOr(scip, cons, name, resvar, nvars, vars)
ccall(
(:SCIPcreateConsBasicOr, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{SCIP_VAR},
Cint,
Ptr{Ptr{SCIP_VAR}},
),
scip,
cons,
name,
resvar,
nvars,
vars,
)
end
function SCIPgetNVarsOr(scip, cons)
ccall(
(:SCIPgetNVarsOr, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetVarsOr(scip, cons)
ccall(
(:SCIPgetVarsOr, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetResultantOr(scip, cons)
ccall(
(:SCIPgetResultantOr, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPincludeConshdlrOrbisack(scip)
ccall(
(:SCIPincludeConshdlrOrbisack, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcheckSolutionOrbisack(
scip,
sol,
vars1,
vars2,
nrows,
printreason,
feasible,
)
ccall(
(:SCIPcheckSolutionOrbisack, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_SOL},
Ptr{Ptr{SCIP_VAR}},
Ptr{Ptr{SCIP_VAR}},
Cint,
Cuint,
Ptr{Cuint},
),
scip,
sol,
vars1,
vars2,
nrows,
printreason,
feasible,
)
end
function SCIPcreateConsOrbisack(
scip,
cons,
name,
vars1,
vars2,
nrows,
ispporbisack,
isparttype,
ismodelcons,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsOrbisack, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{Ptr{SCIP_VAR}},
Ptr{Ptr{SCIP_VAR}},
Cint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
vars1,
vars2,
nrows,
ispporbisack,
isparttype,
ismodelcons,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicOrbisack(
scip,
cons,
name,
vars1,
vars2,
nrows,
ispporbisack,
isparttype,
ismodelcons,
)
ccall(
(:SCIPcreateConsBasicOrbisack, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{Ptr{SCIP_VAR}},
Ptr{Ptr{SCIP_VAR}},
Cint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
vars1,
vars2,
nrows,
ispporbisack,
isparttype,
ismodelcons,
)
end
const SYM_SPEC = UInt32
@enum SYM_Rhssense::UInt32 begin
SYM_SENSE_UNKOWN = 0
SYM_SENSE_INEQUALITY = 1
SYM_SENSE_EQUATION = 2
SYM_SENSE_XOR = 3
SYM_SENSE_AND = 4
SYM_SENSE_OR = 5
SYM_SENSE_BOUNDIS_TYPE_1 = 6
SYM_SENSE_BOUNDIS_TYPE_2 = 7
end
const SYM_RHSSENSE = SYM_Rhssense
const SYM_HANDLETYPE = UInt32
const SYM_Vartype = Cvoid
const SYM_VARTYPE = SYM_Vartype
const SYM_Optype = Cvoid
const SYM_OPTYPE = SYM_Optype
const SYM_Consttype = Cvoid
const SYM_CONSTTYPE = SYM_Consttype
const SYM_Rhstype = Cvoid
const SYM_RHSTYPE = SYM_Rhstype
const SYM_Matrixdata = Cvoid
const SYM_MATRIXDATA = SYM_Matrixdata
const SYM_Exprdata = Cvoid
const SYM_EXPRDATA = SYM_Exprdata
@enum SCIP_LeaderRule::UInt32 begin
SCIP_LEADERRULE_FIRSTINORBIT = 0
SCIP_LEADERRULE_LASTINORBIT = 1
SCIP_LEADERRULE_MAXCONFLICTSINORBIT = 2
SCIP_LEADERRULE_MAXCONFLICTS = 3
end
const SCIP_LEADERRULE = SCIP_LeaderRule
@enum SCIP_LeaderTiebreakRule::UInt32 begin
SCIP_LEADERTIEBREAKRULE_MINORBIT = 0
SCIP_LEADERTIEBREAKRULE_MAXORBIT = 1
SCIP_LEADERTIEBREAKRULE_MAXCONFLICTSINORBIT = 2
end
@enum SCIP_SSTType::UInt32 begin
SCIP_SSTTYPE_BINARY = 1
SCIP_SSTTYPE_INTEGER = 2
SCIP_SSTTYPE_IMPLINT = 4
SCIP_SSTTYPE_CONTINUOUS = 8
end
const SCIP_SSTTYPE = SCIP_SSTType
@enum SCIP_OrbitopeType::UInt32 begin
SCIP_ORBITOPETYPE_FULL = 0
SCIP_ORBITOPETYPE_PARTITIONING = 1
SCIP_ORBITOPETYPE_PACKING = 2
end
const SCIP_ORBITOPETYPE = SCIP_OrbitopeType
@enum SCIP_RecomputesymType::UInt32 begin
SCIP_RECOMPUTESYM_NEVER = 0
SCIP_RECOMPUTESYM_ALWAYS = 1
SCIP_RECOMPUTESYM_OFFOUNDRED = 2
end
const SCIP_RECOMPUTESYMTYPE = SCIP_RecomputesymType
function SCIPincludeConshdlrOrbitope(scip)
ccall(
(:SCIPincludeConshdlrOrbitope, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateConsOrbitope(
scip,
cons,
name,
vars,
orbitopetype,
nspcons,
nblocks,
usedynamicprop,
mayinteract,
resolveprop,
ismodelcons,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsOrbitope, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{Ptr{Ptr{SCIP_VAR}}},
SCIP_ORBITOPETYPE,
Cint,
Cint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
vars,
orbitopetype,
nspcons,
nblocks,
usedynamicprop,
mayinteract,
resolveprop,
ismodelcons,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicOrbitope(
scip,
cons,
name,
vars,
orbitopetype,
nspcons,
nblocks,
usedynamicprop,
resolveprop,
ismodelcons,
mayinteract,
)
ccall(
(:SCIPcreateConsBasicOrbitope, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{Ptr{Ptr{SCIP_VAR}}},
SCIP_ORBITOPETYPE,
Cint,
Cint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
vars,
orbitopetype,
nspcons,
nblocks,
usedynamicprop,
resolveprop,
ismodelcons,
mayinteract,
)
end
function SCIPincludeConshdlrPseudoboolean(scip)
ccall(
(:SCIPincludeConshdlrPseudoboolean, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
@enum SCIP_LinearConsType::Int32 begin
SCIP_LINEARCONSTYPE_INVALIDCONS = -1
SCIP_LINEARCONSTYPE_LINEAR = 0
SCIP_LINEARCONSTYPE_LOGICOR = 1
SCIP_LINEARCONSTYPE_KNAPSACK = 2
SCIP_LINEARCONSTYPE_SETPPC = 3
end
const SCIP_LINEARCONSTYPE = SCIP_LinearConsType
function SCIPcreateConsPseudobooleanWithConss(
scip,
cons,
name,
lincons,
linconstype,
andconss,
andcoefs,
nandconss,
indvar,
weight,
issoftcons,
intvar,
lhs,
rhs,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsPseudobooleanWithConss, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{SCIP_CONS},
SCIP_LINEARCONSTYPE,
Ptr{Ptr{SCIP_CONS}},
Ptr{Cdouble},
Cint,
Ptr{SCIP_VAR},
Cdouble,
Cuint,
Ptr{SCIP_VAR},
Cdouble,
Cdouble,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
lincons,
linconstype,
andconss,
andcoefs,
nandconss,
indvar,
weight,
issoftcons,
intvar,
lhs,
rhs,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsPseudoboolean(
scip,
cons,
name,
linvars,
nlinvars,
linvals,
terms,
nterms,
ntermvars,
termvals,
indvar,
weight,
issoftcons,
intvar,
lhs,
rhs,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsPseudoboolean, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{Ptr{SCIP_VAR}},
Cint,
Ptr{Cdouble},
Ptr{Ptr{Ptr{SCIP_VAR}}},
Cint,
Ptr{Cint},
Ptr{Cdouble},
Ptr{SCIP_VAR},
Cdouble,
Cuint,
Ptr{SCIP_VAR},
Cdouble,
Cdouble,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
linvars,
nlinvars,
linvals,
terms,
nterms,
ntermvars,
termvals,
indvar,
weight,
issoftcons,
intvar,
lhs,
rhs,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicPseudoboolean(
scip,
cons,
name,
linvars,
nlinvars,
linvals,
terms,
nterms,
ntermvars,
termvals,
indvar,
weight,
issoftcons,
intvar,
lhs,
rhs,
)
ccall(
(:SCIPcreateConsBasicPseudoboolean, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{Ptr{SCIP_VAR}},
Cint,
Ptr{Cdouble},
Ptr{Ptr{Ptr{SCIP_VAR}}},
Cint,
Ptr{Cint},
Ptr{Cdouble},
Ptr{SCIP_VAR},
Cdouble,
Cuint,
Ptr{SCIP_VAR},
Cdouble,
Cdouble,
),
scip,
cons,
name,
linvars,
nlinvars,
linvals,
terms,
nterms,
ntermvars,
termvals,
indvar,
weight,
issoftcons,
intvar,
lhs,
rhs,
)
end
function SCIPaddCoefPseudoboolean(scip, cons, var, val)
ccall(
(:SCIPaddCoefPseudoboolean, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_VAR}, Cdouble),
scip,
cons,
var,
val,
)
end
function SCIPaddTermPseudoboolean(scip, cons, vars, nvars, val)
ccall(
(:SCIPaddTermPseudoboolean, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{Ptr{SCIP_VAR}}, Cint, Cdouble),
scip,
cons,
vars,
nvars,
val,
)
end
function SCIPgetIndVarPseudoboolean(scip, cons)
ccall(
(:SCIPgetIndVarPseudoboolean, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetLinearConsPseudoboolean(scip, cons)
ccall(
(:SCIPgetLinearConsPseudoboolean, libscip),
Ptr{SCIP_CONS},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetLinearConsTypePseudoboolean(scip, cons)
ccall(
(:SCIPgetLinearConsTypePseudoboolean, libscip),
SCIP_LINEARCONSTYPE,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetNLinVarsWithoutAndPseudoboolean(scip, cons)
ccall(
(:SCIPgetNLinVarsWithoutAndPseudoboolean, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetLinDatasWithoutAndPseudoboolean(
scip,
cons,
linvars,
lincoefs,
nlinvars,
)
ccall(
(:SCIPgetLinDatasWithoutAndPseudoboolean, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_CONS},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Ptr{Cint},
),
scip,
cons,
linvars,
lincoefs,
nlinvars,
)
end
function SCIPgetAndDatasPseudoboolean(scip, cons, andconss, andcoefs, nandconss)
ccall(
(:SCIPgetAndDatasPseudoboolean, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_CONS},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cdouble},
Ptr{Cint},
),
scip,
cons,
andconss,
andcoefs,
nandconss,
)
end
function SCIPgetNAndsPseudoboolean(scip, cons)
ccall(
(:SCIPgetNAndsPseudoboolean, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPchgLhsPseudoboolean(scip, cons, lhs)
ccall(
(:SCIPchgLhsPseudoboolean, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cdouble),
scip,
cons,
lhs,
)
end
function SCIPchgRhsPseudoboolean(scip, cons, rhs)
ccall(
(:SCIPchgRhsPseudoboolean, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Cdouble),
scip,
cons,
rhs,
)
end
function SCIPgetLhsPseudoboolean(scip, cons)
ccall(
(:SCIPgetLhsPseudoboolean, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetRhsPseudoboolean(scip, cons)
ccall(
(:SCIPgetRhsPseudoboolean, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPincludeConshdlrSetppc(scip)
ccall(
(:SCIPincludeConshdlrSetppc, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
@enum SCIP_SetppcType::UInt32 begin
SCIP_SETPPCTYPE_PARTITIONING = 0
SCIP_SETPPCTYPE_PACKING = 1
SCIP_SETPPCTYPE_COVERING = 2
end
const SCIP_SETPPCTYPE = SCIP_SetppcType
function SCIPcreateConsSetpart(
scip,
cons,
name,
nvars,
vars,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsSetpart, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
nvars,
vars,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicSetpart(scip, cons, name, nvars, vars)
ccall(
(:SCIPcreateConsBasicSetpart, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_CONS}}, Ptr{Cchar}, Cint, Ptr{Ptr{SCIP_VAR}}),
scip,
cons,
name,
nvars,
vars,
)
end
function SCIPcreateConsSetpack(
scip,
cons,
name,
nvars,
vars,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsSetpack, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
nvars,
vars,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicSetpack(scip, cons, name, nvars, vars)
ccall(
(:SCIPcreateConsBasicSetpack, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_CONS}}, Ptr{Cchar}, Cint, Ptr{Ptr{SCIP_VAR}}),
scip,
cons,
name,
nvars,
vars,
)
end
function SCIPcreateConsSetcover(
scip,
cons,
name,
nvars,
vars,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsSetcover, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
nvars,
vars,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicSetcover(scip, cons, name, nvars, vars)
ccall(
(:SCIPcreateConsBasicSetcover, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_CONS}}, Ptr{Cchar}, Cint, Ptr{Ptr{SCIP_VAR}}),
scip,
cons,
name,
nvars,
vars,
)
end
function SCIPaddCoefSetppc(scip, cons, var)
ccall(
(:SCIPaddCoefSetppc, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_VAR}),
scip,
cons,
var,
)
end
function SCIPgetNVarsSetppc(scip, cons)
ccall(
(:SCIPgetNVarsSetppc, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetVarsSetppc(scip, cons)
ccall(
(:SCIPgetVarsSetppc, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetTypeSetppc(scip, cons)
ccall(
(:SCIPgetTypeSetppc, libscip),
SCIP_SETPPCTYPE,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetDualsolSetppc(scip, cons)
ccall(
(:SCIPgetDualsolSetppc, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetDualfarkasSetppc(scip, cons)
ccall(
(:SCIPgetDualfarkasSetppc, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetRowSetppc(scip, cons)
ccall(
(:SCIPgetRowSetppc, libscip),
Ptr{SCIP_ROW},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetNFixedonesSetppc(scip, cons)
ccall(
(:SCIPgetNFixedonesSetppc, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetNFixedzerosSetppc(scip, cons)
ccall(
(:SCIPgetNFixedzerosSetppc, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPcleanupConssSetppc(
scip,
onlychecked,
infeasible,
naddconss,
ndelconss,
nchgcoefs,
nfixedvars,
)
ccall(
(:SCIPcleanupConssSetppc, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Cuint,
Ptr{Cuint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
),
scip,
onlychecked,
infeasible,
naddconss,
ndelconss,
nchgcoefs,
nfixedvars,
)
end
function SCIPincludeConshdlrSOS1(scip)
ccall((:SCIPincludeConshdlrSOS1, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPcreateConsSOS1(
scip,
cons,
name,
nvars,
vars,
weights,
initial,
separate,
enforce,
check,
propagate,
_local,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsSOS1, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
nvars,
vars,
weights,
initial,
separate,
enforce,
check,
propagate,
_local,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicSOS1(scip, cons, name, nvars, vars, weights)
ccall(
(:SCIPcreateConsBasicSOS1, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
),
scip,
cons,
name,
nvars,
vars,
weights,
)
end
function SCIPaddVarSOS1(scip, cons, var, weight)
ccall(
(:SCIPaddVarSOS1, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_VAR}, Cdouble),
scip,
cons,
var,
weight,
)
end
function SCIPappendVarSOS1(scip, cons, var)
ccall(
(:SCIPappendVarSOS1, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_VAR}),
scip,
cons,
var,
)
end
function SCIPgetNVarsSOS1(scip, cons)
ccall(
(:SCIPgetNVarsSOS1, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetVarsSOS1(scip, cons)
ccall(
(:SCIPgetVarsSOS1, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetWeightsSOS1(scip, cons)
ccall(
(:SCIPgetWeightsSOS1, libscip),
Ptr{Cdouble},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetConflictgraphSOS1(conshdlr)
ccall(
(:SCIPgetConflictgraphSOS1, libscip),
Ptr{SCIP_DIGRAPH},
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPgetNSOS1Vars(conshdlr)
ccall((:SCIPgetNSOS1Vars, libscip), Cint, (Ptr{SCIP_CONSHDLR},), conshdlr)
end
function SCIPvarIsSOS1(conshdlr, var)
ccall(
(:SCIPvarIsSOS1, libscip),
Cuint,
(Ptr{SCIP_CONSHDLR}, Ptr{SCIP_VAR}),
conshdlr,
var,
)
end
function SCIPvarGetNodeSOS1(conshdlr, var)
ccall(
(:SCIPvarGetNodeSOS1, libscip),
Cint,
(Ptr{SCIP_CONSHDLR}, Ptr{SCIP_VAR}),
conshdlr,
var,
)
end
function SCIPnodeGetVarSOS1(conflictgraph, node)
ccall(
(:SCIPnodeGetVarSOS1, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP_DIGRAPH}, Cint),
conflictgraph,
node,
)
end
function SCIPmakeSOS1sFeasible(scip, conshdlr, sol, changed, success)
ccall(
(:SCIPmakeSOS1sFeasible, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONSHDLR}, Ptr{SCIP_SOL}, Ptr{Cuint}, Ptr{Cuint}),
scip,
conshdlr,
sol,
changed,
success,
)
end
function SCIPincludeConshdlrSOS2(scip)
ccall((:SCIPincludeConshdlrSOS2, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPcreateConsSOS2(
scip,
cons,
name,
nvars,
vars,
weights,
initial,
separate,
enforce,
check,
propagate,
_local,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsSOS2, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
nvars,
vars,
weights,
initial,
separate,
enforce,
check,
propagate,
_local,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicSOS2(scip, cons, name, nvars, vars, weights)
ccall(
(:SCIPcreateConsBasicSOS2, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
),
scip,
cons,
name,
nvars,
vars,
weights,
)
end
function SCIPaddVarSOS2(scip, cons, var, weight)
ccall(
(:SCIPaddVarSOS2, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_VAR}, Cdouble),
scip,
cons,
var,
weight,
)
end
function SCIPappendVarSOS2(scip, cons, var)
ccall(
(:SCIPappendVarSOS2, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_VAR}),
scip,
cons,
var,
)
end
function SCIPgetNVarsSOS2(scip, cons)
ccall(
(:SCIPgetNVarsSOS2, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetVarsSOS2(scip, cons)
ccall(
(:SCIPgetVarsSOS2, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetWeightsSOS2(scip, cons)
ccall(
(:SCIPgetWeightsSOS2, libscip),
Ptr{Cdouble},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPincludeConshdlrSuperindicator(scip)
ccall(
(:SCIPincludeConshdlrSuperindicator, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateConsSuperindicator(
scip,
cons,
name,
binvar,
slackcons,
initial,
separate,
enforce,
check,
propagate,
_local,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsSuperindicator, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{SCIP_VAR},
Ptr{SCIP_CONS},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
binvar,
slackcons,
initial,
separate,
enforce,
check,
propagate,
_local,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicSuperindicator(scip, cons, name, binvar, slackcons)
ccall(
(:SCIPcreateConsBasicSuperindicator, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{SCIP_VAR},
Ptr{SCIP_CONS},
),
scip,
cons,
name,
binvar,
slackcons,
)
end
function SCIPgetBinaryVarSuperindicator(cons)
ccall(
(:SCIPgetBinaryVarSuperindicator, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP_CONS},),
cons,
)
end
function SCIPgetSlackConsSuperindicator(cons)
ccall(
(:SCIPgetSlackConsSuperindicator, libscip),
Ptr{SCIP_CONS},
(Ptr{SCIP_CONS},),
cons,
)
end
function SCIPtransformMinUC(scip, success)
ccall(
(:SCIPtransformMinUC, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cuint}),
scip,
success,
)
end
function SCIPdialogExecChangeMinUC(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecChangeMinUC, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPincludeConshdlrSymresack(scip)
ccall(
(:SCIPincludeConshdlrSymresack, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateSymbreakCons(
scip,
cons,
name,
perm,
vars,
nvars,
ismodelcons,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateSymbreakCons, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{Cint},
Ptr{Ptr{SCIP_VAR}},
Cint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
perm,
vars,
nvars,
ismodelcons,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsSymresack(
scip,
cons,
name,
perm,
vars,
nvars,
ismodelcons,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsSymresack, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{Cint},
Ptr{Ptr{SCIP_VAR}},
Cint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
perm,
vars,
nvars,
ismodelcons,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicSymresack(
scip,
cons,
name,
perm,
vars,
nvars,
ismodelcons,
)
ccall(
(:SCIPcreateConsBasicSymresack, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{Cint},
Ptr{Ptr{SCIP_VAR}},
Cint,
Cuint,
),
scip,
cons,
name,
perm,
vars,
nvars,
ismodelcons,
)
end
function SCIPincludeConshdlrVarbound(scip)
ccall(
(:SCIPincludeConshdlrVarbound, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateConsVarbound(
scip,
cons,
name,
var,
vbdvar,
vbdcoef,
lhs,
rhs,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsVarbound, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{SCIP_VAR},
Ptr{SCIP_VAR},
Cdouble,
Cdouble,
Cdouble,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
var,
vbdvar,
vbdcoef,
lhs,
rhs,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicVarbound(
scip,
cons,
name,
var,
vbdvar,
vbdcoef,
lhs,
rhs,
)
ccall(
(:SCIPcreateConsBasicVarbound, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Ptr{SCIP_VAR},
Ptr{SCIP_VAR},
Cdouble,
Cdouble,
Cdouble,
),
scip,
cons,
name,
var,
vbdvar,
vbdcoef,
lhs,
rhs,
)
end
function SCIPgetLhsVarbound(scip, cons)
ccall(
(:SCIPgetLhsVarbound, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetRhsVarbound(scip, cons)
ccall(
(:SCIPgetRhsVarbound, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetVarVarbound(scip, cons)
ccall(
(:SCIPgetVarVarbound, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetVbdvarVarbound(scip, cons)
ccall(
(:SCIPgetVbdvarVarbound, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetVbdcoefVarbound(scip, cons)
ccall(
(:SCIPgetVbdcoefVarbound, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetDualsolVarbound(scip, cons)
ccall(
(:SCIPgetDualsolVarbound, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetDualfarkasVarbound(scip, cons)
ccall(
(:SCIPgetDualfarkasVarbound, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetRowVarbound(scip, cons)
ccall(
(:SCIPgetRowVarbound, libscip),
Ptr{SCIP_ROW},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPcleanupConssVarbound(
scip,
onlychecked,
infeasible,
naddconss,
ndelconss,
nchgbds,
)
ccall(
(:SCIPcleanupConssVarbound, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cuint, Ptr{Cuint}, Ptr{Cint}, Ptr{Cint}, Ptr{Cint}),
scip,
onlychecked,
infeasible,
naddconss,
ndelconss,
nchgbds,
)
end
function SCIPincludeConshdlrXor(scip)
ccall((:SCIPincludeConshdlrXor, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPcreateConsXor(
scip,
cons,
name,
rhs,
nvars,
vars,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
ccall(
(:SCIPcreateConsXor, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cuint,
Cint,
Ptr{Ptr{SCIP_VAR}},
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
Cuint,
),
scip,
cons,
name,
rhs,
nvars,
vars,
initial,
separate,
enforce,
check,
propagate,
_local,
modifiable,
dynamic,
removable,
stickingatnode,
)
end
function SCIPcreateConsBasicXor(scip, cons, name, rhs, nvars, vars)
ccall(
(:SCIPcreateConsBasicXor, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_CONS}},
Ptr{Cchar},
Cuint,
Cint,
Ptr{Ptr{SCIP_VAR}},
),
scip,
cons,
name,
rhs,
nvars,
vars,
)
end
function SCIPgetNVarsXor(scip, cons)
ccall(
(:SCIPgetNVarsXor, libscip),
Cint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetVarsXor(scip, cons)
ccall(
(:SCIPgetVarsXor, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetIntVarXor(scip, cons)
ccall(
(:SCIPgetIntVarXor, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPgetRhsXor(scip, cons)
ccall(
(:SCIPgetRhsXor, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPincludeConshdlrComponents(scip)
ccall(
(:SCIPincludeConshdlrComponents, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeDispDefault(scip)
ccall((:SCIPincludeDispDefault, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPdialogExecMenu(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecMenu, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecMenuLazy(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecMenuLazy, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecChangeAddCons(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecChangeAddCons, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecChangeBounds(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecChangeBounds, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecChangeFreetransproblem(
scip,
dialog,
dialoghdlr,
nextdialog,
)
ccall(
(:SCIPdialogExecChangeFreetransproblem, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecChangeObjSense(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecChangeObjSense, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecChecksol(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecChecksol, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecCliquegraph(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecCliquegraph, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayBenders(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayBenders, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayBranching(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayBranching, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayCompression(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayCompression, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayConflict(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayConflict, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayConshdlrs(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayConshdlrs, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayDisplaycols(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayDisplaycols, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayExprhdlrs(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayExprhdlrs, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayCutselectors(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayCutselectors, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayHeuristics(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayHeuristics, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayMemory(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayMemory, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayNodeselectors(
scip,
dialog,
dialoghdlr,
nextdialog,
)
ccall(
(:SCIPdialogExecDisplayNodeselectors, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayNlpi(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayNlpi, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayParameters(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayParameters, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayPresolvers(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayPresolvers, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayPricers(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayPricers, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayProblem(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayProblem, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayPropagators(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayPropagators, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayReaders(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayReaders, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayRelaxators(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayRelaxators, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplaySeparators(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplaySeparators, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplaySolution(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplaySolution, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayFiniteSolution(
scip,
dialog,
dialoghdlr,
nextdialog,
)
ccall(
(:SCIPdialogExecDisplayFiniteSolution, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayDualSolution(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayDualSolution, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplaySolutionPool(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplaySolutionPool, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplaySubproblem(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplaySubproblem, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplaySubSolution(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplaySubSolution, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayStatistics(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayStatistics, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayReoptStatistics(
scip,
dialog,
dialoghdlr,
nextdialog,
)
ccall(
(:SCIPdialogExecDisplayReoptStatistics, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayTransproblem(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayTransproblem, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayValue(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecDisplayValue, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayVarbranchstatistics(
scip,
dialog,
dialoghdlr,
nextdialog,
)
ccall(
(:SCIPdialogExecDisplayVarbranchstatistics, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayLPSolutionQuality(
scip,
dialog,
dialoghdlr,
nextdialog,
)
ccall(
(:SCIPdialogExecDisplayLPSolutionQuality, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayTranssolution(
scip,
dialog,
dialoghdlr,
nextdialog,
)
ccall(
(:SCIPdialogExecDisplayTranssolution, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecHelp(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecHelp, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecFree(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecFree, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecNewstart(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecNewstart, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecTransform(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecTransform, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecOptimize(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecOptimize, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecConcurrentOpt(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecConcurrentOpt, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecPresolve(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecPresolve, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecQuit(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecQuit, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecRead(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecRead, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetDefault(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecSetDefault, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetLoad(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecSetLoad, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetSave(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecSetSave, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetDiffsave(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecSetDiffsave, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetParam(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecSetParam, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogDescSetParam(scip, dialog)
ccall(
(:SCIPdialogDescSetParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_DIALOG}),
scip,
dialog,
)
end
function SCIPdialogExecFixParam(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecFixParam, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogDescFixParam(scip, dialog)
ccall(
(:SCIPdialogDescFixParam, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_DIALOG}),
scip,
dialog,
)
end
function SCIPdialogExecSetBranchingDirection(
scip,
dialog,
dialoghdlr,
nextdialog,
)
ccall(
(:SCIPdialogExecSetBranchingDirection, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetBranchingPriority(
scip,
dialog,
dialoghdlr,
nextdialog,
)
ccall(
(:SCIPdialogExecSetBranchingPriority, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetHeuristicsAggressive(
scip,
dialog,
dialoghdlr,
nextdialog,
)
ccall(
(:SCIPdialogExecSetHeuristicsAggressive, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetHeuristicsDefault(
scip,
dialog,
dialoghdlr,
nextdialog,
)
ccall(
(:SCIPdialogExecSetHeuristicsDefault, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetHeuristicsFast(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecSetHeuristicsFast, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetHeuristicsOff(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecSetHeuristicsOff, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetPresolvingAggressive(
scip,
dialog,
dialoghdlr,
nextdialog,
)
ccall(
(:SCIPdialogExecSetPresolvingAggressive, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetPresolvingDefault(
scip,
dialog,
dialoghdlr,
nextdialog,
)
ccall(
(:SCIPdialogExecSetPresolvingDefault, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetPresolvingFast(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecSetPresolvingFast, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetPresolvingOff(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecSetPresolvingOff, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetSeparatingAggressive(
scip,
dialog,
dialoghdlr,
nextdialog,
)
ccall(
(:SCIPdialogExecSetSeparatingAggressive, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetSeparatingDefault(
scip,
dialog,
dialoghdlr,
nextdialog,
)
ccall(
(:SCIPdialogExecSetSeparatingDefault, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetSeparatingFast(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecSetSeparatingFast, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetSeparatingOff(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecSetSeparatingOff, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetEmphasisCounter(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecSetEmphasisCounter, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetEmphasisCpsolver(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecSetEmphasisCpsolver, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetEmphasisEasycip(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecSetEmphasisEasycip, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetEmphasisFeasibility(
scip,
dialog,
dialoghdlr,
nextdialog,
)
ccall(
(:SCIPdialogExecSetEmphasisFeasibility, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetEmphasisHardlp(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecSetEmphasisHardlp, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetEmphasisOptimality(
scip,
dialog,
dialoghdlr,
nextdialog,
)
ccall(
(:SCIPdialogExecSetEmphasisOptimality, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetEmphasisNumerics(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecSetEmphasisNumerics, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetEmphasisBenchmark(
scip,
dialog,
dialoghdlr,
nextdialog,
)
ccall(
(:SCIPdialogExecSetEmphasisBenchmark, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecSetLimitsObjective(scip, dialog, dialoghdlr, nextdialog)
ccall(
(:SCIPdialogExecSetLimitsObjective, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPdialogExecDisplayLinearConsClassification(
scip,
dialog,
dialoghdlr,
nextdialog,
)
ccall(
(:SCIPdialogExecDisplayLinearConsClassification, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_DIALOG},
Ptr{SCIP_DIALOGHDLR},
Ptr{Ptr{SCIP_DIALOG}},
),
scip,
dialog,
dialoghdlr,
nextdialog,
)
end
function SCIPcreateRootDialog(scip, root)
ccall(
(:SCIPcreateRootDialog, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_DIALOG}}),
scip,
root,
)
end
function SCIPincludeDialogDefaultBasic(scip)
ccall(
(:SCIPincludeDialogDefaultBasic, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeDialogDefaultSet(scip)
ccall(
(:SCIPincludeDialogDefaultSet, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeDialogDefaultFix(scip)
ccall(
(:SCIPincludeDialogDefaultFix, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeEventHdlrEstim(scip)
ccall(
(:SCIPincludeEventHdlrEstim, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetTreesizeEstimation(scip)
ccall((:SCIPgetTreesizeEstimation, libscip), Cdouble, (Ptr{SCIP},), scip)
end
function SCIPincludeEventHdlrSolvingphase(scip)
ccall(
(:SCIPincludeEventHdlrSolvingphase, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeEventHdlrSofttimelimit(scip)
ccall(
(:SCIPincludeEventHdlrSofttimelimit, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateExprAbs(scip, expr, child, ownercreate, ownercreatedata)
ccall(
(:SCIPcreateExprAbs, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_EXPR}},
Ptr{SCIP_EXPR},
Ptr{Cvoid},
Ptr{Cvoid},
),
scip,
expr,
child,
ownercreate,
ownercreatedata,
)
end
function SCIPincludeExprhdlrAbs(scip)
ccall((:SCIPincludeExprhdlrAbs, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeExprhdlrEntropy(scip)
ccall(
(:SCIPincludeExprhdlrEntropy, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateExprEntropy(scip, expr, child, ownercreate, ownercreatedata)
ccall(
(:SCIPcreateExprEntropy, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_EXPR}},
Ptr{SCIP_EXPR},
Ptr{Cvoid},
Ptr{Cvoid},
),
scip,
expr,
child,
ownercreate,
ownercreatedata,
)
end
function SCIPcreateExprExp(scip, expr, child, ownercreate, ownercreatedata)
ccall(
(:SCIPcreateExprExp, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_EXPR}},
Ptr{SCIP_EXPR},
Ptr{Cvoid},
Ptr{Cvoid},
),
scip,
expr,
child,
ownercreate,
ownercreatedata,
)
end
function SCIPisExprExp(scip, expr)
ccall(
(:SCIPisExprExp, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_EXPR}),
scip,
expr,
)
end
function SCIPincludeExprhdlrExp(scip)
ccall((:SCIPincludeExprhdlrExp, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPcreateExprLog(scip, expr, child, ownercreate, ownercreatedata)
ccall(
(:SCIPcreateExprLog, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_EXPR}},
Ptr{SCIP_EXPR},
Ptr{Cvoid},
Ptr{Cvoid},
),
scip,
expr,
child,
ownercreate,
ownercreatedata,
)
end
function SCIPisExprLog(scip, expr)
ccall(
(:SCIPisExprLog, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_EXPR}),
scip,
expr,
)
end
function SCIPincludeExprhdlrLog(scip)
ccall((:SCIPincludeExprhdlrLog, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPcreateExprPow(
scip,
expr,
child,
exponent,
ownercreate,
ownercreatedata,
)
ccall(
(:SCIPcreateExprPow, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_EXPR}},
Ptr{SCIP_EXPR},
Cdouble,
Ptr{Cvoid},
Ptr{Cvoid},
),
scip,
expr,
child,
exponent,
ownercreate,
ownercreatedata,
)
end
function SCIPcreateExprSignpower(
scip,
expr,
child,
exponent,
ownercreate,
ownercreatedata,
)
ccall(
(:SCIPcreateExprSignpower, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_EXPR}},
Ptr{SCIP_EXPR},
Cdouble,
Ptr{Cvoid},
Ptr{Cvoid},
),
scip,
expr,
child,
exponent,
ownercreate,
ownercreatedata,
)
end
function SCIPisExprSignpower(scip, expr)
ccall(
(:SCIPisExprSignpower, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_EXPR}),
scip,
expr,
)
end
function SCIPincludeExprhdlrPow(scip)
ccall((:SCIPincludeExprhdlrPow, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeExprhdlrSignpower(scip)
ccall(
(:SCIPincludeExprhdlrSignpower, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPaddSquareLinearization(
scip,
sqrcoef,
refpoint,
isint,
lincoef,
linconstant,
success,
)
ccall(
(:SCIPaddSquareLinearization, libscip),
Cvoid,
(
Ptr{SCIP},
Cdouble,
Cdouble,
Cuint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
),
scip,
sqrcoef,
refpoint,
isint,
lincoef,
linconstant,
success,
)
end
function SCIPaddSquareSecant(
scip,
sqrcoef,
lb,
ub,
lincoef,
linconstant,
success,
)
ccall(
(:SCIPaddSquareSecant, libscip),
Cvoid,
(
Ptr{SCIP},
Cdouble,
Cdouble,
Cdouble,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
),
scip,
sqrcoef,
lb,
ub,
lincoef,
linconstant,
success,
)
end
function SCIPincludeExprhdlrProduct(scip)
ccall(
(:SCIPincludeExprhdlrProduct, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateExprProduct(
scip,
expr,
nchildren,
children,
coefficient,
ownercreate,
ownercreatedata,
)
ccall(
(:SCIPcreateExprProduct, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_EXPR}},
Cint,
Ptr{Ptr{SCIP_EXPR}},
Cdouble,
Ptr{Cvoid},
Ptr{Cvoid},
),
scip,
expr,
nchildren,
children,
coefficient,
ownercreate,
ownercreatedata,
)
end
function SCIPincludeExprhdlrSum(scip)
ccall((:SCIPincludeExprhdlrSum, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPcreateExprSum(
scip,
expr,
nchildren,
children,
coefficients,
constant,
ownercreate,
ownercreatedata,
)
ccall(
(:SCIPcreateExprSum, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_EXPR}},
Cint,
Ptr{Ptr{SCIP_EXPR}},
Ptr{Cdouble},
Cdouble,
Ptr{Cvoid},
Ptr{Cvoid},
),
scip,
expr,
nchildren,
children,
coefficients,
constant,
ownercreate,
ownercreatedata,
)
end
function SCIPsetConstantExprSum(expr, constant)
ccall(
(:SCIPsetConstantExprSum, libscip),
Cvoid,
(Ptr{SCIP_EXPR}, Cdouble),
expr,
constant,
)
end
function SCIPappendExprSumExpr(scip, expr, child, childcoef)
ccall(
(:SCIPappendExprSumExpr, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_EXPR}, Ptr{SCIP_EXPR}, Cdouble),
scip,
expr,
child,
childcoef,
)
end
function SCIPmultiplyByConstantExprSum(expr, constant)
ccall(
(:SCIPmultiplyByConstantExprSum, libscip),
Cvoid,
(Ptr{SCIP_EXPR}, Cdouble),
expr,
constant,
)
end
function SCIPincludeExprhdlrSin(scip)
ccall((:SCIPincludeExprhdlrSin, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeExprhdlrCos(scip)
ccall((:SCIPincludeExprhdlrCos, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPcreateExprSin(scip, expr, child, ownercreate, ownercreatedata)
ccall(
(:SCIPcreateExprSin, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_EXPR}},
Ptr{SCIP_EXPR},
Ptr{Cvoid},
Ptr{Cvoid},
),
scip,
expr,
child,
ownercreate,
ownercreatedata,
)
end
function SCIPcreateExprCos(scip, expr, child, ownercreate, ownercreatedata)
ccall(
(:SCIPcreateExprCos, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_EXPR}},
Ptr{SCIP_EXPR},
Ptr{Cvoid},
Ptr{Cvoid},
),
scip,
expr,
child,
ownercreate,
ownercreatedata,
)
end
function SCIPincludeExprhdlrValue(scip)
ccall(
(:SCIPincludeExprhdlrValue, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateExprValue(scip, expr, value, ownercreate, ownercreatedata)
ccall(
(:SCIPcreateExprValue, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_EXPR}}, Cdouble, Ptr{Cvoid}, Ptr{Cvoid}),
scip,
expr,
value,
ownercreate,
ownercreatedata,
)
end
function SCIPincludeExprhdlrVar(scip)
ccall((:SCIPincludeExprhdlrVar, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPcreateExprVar(scip, expr, var, ownercreate, ownercreatedata)
ccall(
(:SCIPcreateExprVar, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_EXPR}}, Ptr{SCIP_VAR}, Ptr{Cvoid}, Ptr{Cvoid}),
scip,
expr,
var,
ownercreate,
ownercreatedata,
)
end
function SCIPincludeHeurActconsdiving(scip)
ccall(
(:SCIPincludeHeurActconsdiving, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurAdaptivediving(scip)
ccall(
(:SCIPincludeHeurAdaptivediving, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurBound(scip)
ccall((:SCIPincludeHeurBound, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurClique(scip)
ccall((:SCIPincludeHeurClique, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurCoefdiving(scip)
ccall(
(:SCIPincludeHeurCoefdiving, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurCompletesol(scip)
ccall(
(:SCIPincludeHeurCompletesol, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurConflictdiving(scip)
ccall(
(:SCIPincludeHeurConflictdiving, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurCrossover(scip)
ccall(
(:SCIPincludeHeurCrossover, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurDins(scip)
ccall((:SCIPincludeHeurDins, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurDistributiondiving(scip)
ccall(
(:SCIPincludeHeurDistributiondiving, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurDps(scip)
ccall((:SCIPincludeHeurDps, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurDualval(scip)
ccall((:SCIPincludeHeurDualval, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPapplyHeurDualval(scip, heur, result, refpoint)
ccall(
(:SCIPapplyHeurDualval, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_HEUR}, Ptr{SCIP_RESULT}, Ptr{SCIP_SOL}),
scip,
heur,
result,
refpoint,
)
end
function SCIPincludeHeurFarkasdiving(scip)
ccall(
(:SCIPincludeHeurFarkasdiving, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurFeaspump(scip)
ccall((:SCIPincludeHeurFeaspump, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurFixandinfer(scip)
ccall(
(:SCIPincludeHeurFixandinfer, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurFracdiving(scip)
ccall(
(:SCIPincludeHeurFracdiving, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurGins(scip)
ccall((:SCIPincludeHeurGins, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurGuideddiving(scip)
ccall(
(:SCIPincludeHeurGuideddiving, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurIndicator(scip)
ccall(
(:SCIPincludeHeurIndicator, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPheurPassIndicator(scip, heur, nindconss, indconss, solcand, obj)
ccall(
(:SCIPheurPassIndicator, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_HEUR},
Cint,
Ptr{Ptr{SCIP_CONS}},
Ptr{Cuint},
Cdouble,
),
scip,
heur,
nindconss,
indconss,
solcand,
obj,
)
end
function SCIPincludeHeurIntdiving(scip)
ccall(
(:SCIPincludeHeurIntdiving, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurIntshifting(scip)
ccall(
(:SCIPincludeHeurIntshifting, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurLinesearchdiving(scip)
ccall(
(:SCIPincludeHeurLinesearchdiving, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurLocalbranching(scip)
ccall(
(:SCIPincludeHeurLocalbranching, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurLocks(scip)
ccall((:SCIPincludeHeurLocks, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPapplyLockFixings(scip, heurdata, cutoff, allrowsfulfilled)
ccall(
(:SCIPapplyLockFixings, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_HEURDATA}, Ptr{Cuint}, Ptr{Cuint}),
scip,
heurdata,
cutoff,
allrowsfulfilled,
)
end
function SCIPincludeHeurLpface(scip)
ccall((:SCIPincludeHeurLpface, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurAlns(scip)
ccall((:SCIPincludeHeurAlns, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurMultistart(scip)
ccall(
(:SCIPincludeHeurMultistart, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurMutation(scip)
ccall((:SCIPincludeHeurMutation, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurMpec(scip)
ccall((:SCIPincludeHeurMpec, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurNlpdiving(scip)
ccall(
(:SCIPincludeHeurNlpdiving, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurObjpscostdiving(scip)
ccall(
(:SCIPincludeHeurObjpscostdiving, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurOctane(scip)
ccall((:SCIPincludeHeurOctane, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurOfins(scip)
ccall((:SCIPincludeHeurOfins, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurOneopt(scip)
ccall((:SCIPincludeHeurOneopt, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurPADM(scip)
ccall((:SCIPincludeHeurPADM, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurPscostdiving(scip)
ccall(
(:SCIPincludeHeurPscostdiving, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurProximity(scip)
ccall(
(:SCIPincludeHeurProximity, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPapplyProximity(
scip,
heur,
result,
minimprove,
nnodes,
nlpiters,
nusednodes,
nusedlpiters,
freesubscip,
)
ccall(
(:SCIPapplyProximity, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_HEUR},
Ptr{SCIP_RESULT},
Cdouble,
Clonglong,
Clonglong,
Ptr{Clonglong},
Ptr{Clonglong},
Cuint,
),
scip,
heur,
result,
minimprove,
nnodes,
nlpiters,
nusednodes,
nusedlpiters,
freesubscip,
)
end
function SCIPdeleteSubproblemProximity(scip)
ccall(
(:SCIPdeleteSubproblemProximity, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurRandrounding(scip)
ccall(
(:SCIPincludeHeurRandrounding, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurRens(scip)
ccall((:SCIPincludeHeurRens, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPapplyRens(
scip,
heur,
result,
minfixingrate,
minimprove,
maxnodes,
nstallnodes,
startsol,
binarybounds,
uselprows,
)
ccall(
(:SCIPapplyRens, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_HEUR},
Ptr{SCIP_RESULT},
Cdouble,
Cdouble,
Clonglong,
Clonglong,
Cchar,
Cuint,
Cuint,
),
scip,
heur,
result,
minfixingrate,
minimprove,
maxnodes,
nstallnodes,
startsol,
binarybounds,
uselprows,
)
end
function SCIPincludeHeurReoptsols(scip)
ccall(
(:SCIPincludeHeurReoptsols, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPreoptsolsGetNCheckedsols(scip)
ccall((:SCIPreoptsolsGetNCheckedsols, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPreoptsolsGetNImprovingsols(scip)
ccall((:SCIPreoptsolsGetNImprovingsols, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurRepair(scip)
ccall((:SCIPincludeHeurRepair, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurRins(scip)
ccall((:SCIPincludeHeurRins, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurRootsoldiving(scip)
ccall(
(:SCIPincludeHeurRootsoldiving, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurRounding(scip)
ccall((:SCIPincludeHeurRounding, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurShiftandpropagate(scip)
ccall(
(:SCIPincludeHeurShiftandpropagate, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurShifting(scip)
ccall((:SCIPincludeHeurShifting, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurSimplerounding(scip)
ccall(
(:SCIPincludeHeurSimplerounding, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurSubNlp(scip)
ccall((:SCIPincludeHeurSubNlp, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPapplyHeurSubNlp(scip, heur, result, refpoint, resultsol)
ccall(
(:SCIPapplyHeurSubNlp, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_HEUR},
Ptr{SCIP_RESULT},
Ptr{SCIP_SOL},
Ptr{SCIP_SOL},
),
scip,
heur,
result,
refpoint,
resultsol,
)
end
function SCIPupdateStartpointHeurSubNlp(scip, heur, solcand, violation)
ccall(
(:SCIPupdateStartpointHeurSubNlp, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_HEUR}, Ptr{SCIP_SOL}, Cdouble),
scip,
heur,
solcand,
violation,
)
end
function SCIPgetStartCandidateHeurSubNlp(scip, heur)
ccall(
(:SCIPgetStartCandidateHeurSubNlp, libscip),
Ptr{SCIP_SOL},
(Ptr{SCIP}, Ptr{SCIP_HEUR}),
scip,
heur,
)
end
function SCIPincludeHeurTrivial(scip)
ccall((:SCIPincludeHeurTrivial, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurTrivialnegation(scip)
ccall(
(:SCIPincludeHeurTrivialnegation, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurTrustregion(scip)
ccall(
(:SCIPincludeHeurTrustregion, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurTrySol(scip)
ccall((:SCIPincludeHeurTrySol, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPheurPassSolTrySol(scip, heur, sol)
ccall(
(:SCIPheurPassSolTrySol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_HEUR}, Ptr{SCIP_SOL}),
scip,
heur,
sol,
)
end
function SCIPheurPassSolAddSol(scip, heur, sol)
ccall(
(:SCIPheurPassSolAddSol, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_HEUR}, Ptr{SCIP_SOL}),
scip,
heur,
sol,
)
end
function SCIPincludeHeurTwoopt(scip)
ccall((:SCIPincludeHeurTwoopt, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurUndercover(scip)
ccall(
(:SCIPincludeHeurUndercover, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcomputeCoverUndercover(
scip,
coversize,
cover,
timelimit,
memorylimit,
objlimit,
globalbounds,
onlyconvexify,
coverbd,
coveringobj,
success,
)
ccall(
(:SCIPcomputeCoverUndercover, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cint},
Ptr{Ptr{SCIP_VAR}},
Cdouble,
Cdouble,
Cdouble,
Cuint,
Cuint,
Cuint,
Cchar,
Ptr{Cuint},
),
scip,
coversize,
cover,
timelimit,
memorylimit,
objlimit,
globalbounds,
onlyconvexify,
coverbd,
coveringobj,
success,
)
end
function SCIPincludeHeurVbounds(scip)
ccall((:SCIPincludeHeurVbounds, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeHeurVeclendiving(scip)
ccall(
(:SCIPincludeHeurVeclendiving, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeHeurZeroobj(scip)
ccall((:SCIPincludeHeurZeroobj, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPapplyZeroobj(scip, heur, result, minimprove, nnodes)
ccall(
(:SCIPapplyZeroobj, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_HEUR}, Ptr{SCIP_RESULT}, Cdouble, Clonglong),
scip,
heur,
result,
minimprove,
nnodes,
)
end
function SCIPincludeHeurZirounding(scip)
ccall(
(:SCIPincludeHeurZirounding, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeNlhdlrBilinear(scip)
ccall(
(:SCIPincludeNlhdlrBilinear, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetNlhdlrBilinearExprs(nlhdlr)
ccall(
(:SCIPgetNlhdlrBilinearExprs, libscip),
Ptr{Ptr{SCIP_EXPR}},
(Ptr{SCIP_NLHDLR},),
nlhdlr,
)
end
function SCIPgetNlhdlrBilinearExprsdata(nlhdlr)
ccall(
(:SCIPgetNlhdlrBilinearExprsdata, libscip),
Ptr{Ptr{SCIP_NLHDLREXPRDATA}},
(Ptr{SCIP_NLHDLR},),
nlhdlr,
)
end
function SCIPgetNlhdlrBilinearNExprs(nlhdlr)
ccall(
(:SCIPgetNlhdlrBilinearNExprs, libscip),
Cint,
(Ptr{SCIP_NLHDLR},),
nlhdlr,
)
end
function SCIPaddNlhdlrBilinearIneq(
scip,
nlhdlr,
expr,
xcoef,
ycoef,
constant,
success,
)
ccall(
(:SCIPaddNlhdlrBilinearIneq, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_NLHDLR},
Ptr{SCIP_EXPR},
Cdouble,
Cdouble,
Cdouble,
Ptr{Cuint},
),
scip,
nlhdlr,
expr,
xcoef,
ycoef,
constant,
success,
)
end
function SCIPaddBilinLinearization(
scip,
bilincoef,
refpointx,
refpointy,
lincoefx,
lincoefy,
linconstant,
success,
)
ccall(
(:SCIPaddBilinLinearization, libscip),
Cvoid,
(
Ptr{SCIP},
Cdouble,
Cdouble,
Cdouble,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
),
scip,
bilincoef,
refpointx,
refpointy,
lincoefx,
lincoefy,
linconstant,
success,
)
end
function SCIPaddBilinMcCormick(
scip,
bilincoef,
lbx,
ubx,
refpointx,
lby,
uby,
refpointy,
overestimate,
lincoefx,
lincoefy,
linconstant,
success,
)
ccall(
(:SCIPaddBilinMcCormick, libscip),
Cvoid,
(
Ptr{SCIP},
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cuint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
),
scip,
bilincoef,
lbx,
ubx,
refpointx,
lby,
uby,
refpointy,
overestimate,
lincoefx,
lincoefy,
linconstant,
success,
)
end
function SCIPcomputeBilinEnvelope1(
scip,
bilincoef,
lbx,
ubx,
refpointx,
lby,
uby,
refpointy,
overestimate,
xcoef,
ycoef,
constant,
lincoefx,
lincoefy,
linconstant,
success,
)
ccall(
(:SCIPcomputeBilinEnvelope1, libscip),
Cvoid,
(
Ptr{SCIP},
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cuint,
Cdouble,
Cdouble,
Cdouble,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
),
scip,
bilincoef,
lbx,
ubx,
refpointx,
lby,
uby,
refpointy,
overestimate,
xcoef,
ycoef,
constant,
lincoefx,
lincoefy,
linconstant,
success,
)
end
function SCIPcomputeBilinEnvelope2(
scip,
bilincoef,
lbx,
ubx,
refpointx,
lby,
uby,
refpointy,
overestimate,
alpha1,
beta1,
gamma1,
alpha2,
beta2,
gamma2,
lincoefx,
lincoefy,
linconstant,
success,
)
ccall(
(:SCIPcomputeBilinEnvelope2, libscip),
Cvoid,
(
Ptr{SCIP},
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cuint,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
),
scip,
bilincoef,
lbx,
ubx,
refpointx,
lby,
uby,
refpointy,
overestimate,
alpha1,
beta1,
gamma1,
alpha2,
beta2,
gamma2,
lincoefx,
lincoefy,
linconstant,
success,
)
end
function SCIPincludeNlhdlrConvex(scip)
ccall((:SCIPincludeNlhdlrConvex, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeNlhdlrConcave(scip)
ccall(
(:SCIPincludeNlhdlrConcave, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPhasExprCurvature(scip, expr, curv, success, assumevarfixed)
ccall(
(:SCIPhasExprCurvature, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_EXPR},
SCIP_EXPRCURV,
Ptr{Cuint},
Ptr{SCIP_HASHMAP},
),
scip,
expr,
curv,
success,
assumevarfixed,
)
end
function SCIPincludeNlhdlrDefault(scip)
ccall(
(:SCIPincludeNlhdlrDefault, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeNlhdlrPerspective(scip)
ccall(
(:SCIPincludeNlhdlrPerspective, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeNlhdlrQuadratic(scip)
ccall(
(:SCIPincludeNlhdlrQuadratic, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeNlhdlrQuotient(scip)
ccall(
(:SCIPincludeNlhdlrQuotient, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeNlhdlrSoc(scip)
ccall((:SCIPincludeNlhdlrSoc, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPisSOCNonlinear(
scip,
cons,
compeigenvalues,
success,
sidetype,
vars,
offsets,
transcoefs,
transcoefsidx,
termbegins,
nvars,
nterms,
)
ccall(
(:SCIPisSOCNonlinear, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_CONS},
Cuint,
Ptr{Cuint},
Ptr{SCIP_SIDETYPE},
Ptr{Ptr{Ptr{SCIP_VAR}}},
Ptr{Ptr{Cdouble}},
Ptr{Ptr{Cdouble}},
Ptr{Ptr{Cint}},
Ptr{Ptr{Cint}},
Ptr{Cint},
Ptr{Cint},
),
scip,
cons,
compeigenvalues,
success,
sidetype,
vars,
offsets,
transcoefs,
transcoefsidx,
termbegins,
nvars,
nterms,
)
end
function SCIPfreeSOCArraysNonlinear(
scip,
vars,
offsets,
transcoefs,
transcoefsidx,
termbegins,
nvars,
nterms,
)
ccall(
(:SCIPfreeSOCArraysNonlinear, libscip),
Cvoid,
(
Ptr{SCIP},
Ptr{Ptr{Ptr{SCIP_VAR}}},
Ptr{Ptr{Cdouble}},
Ptr{Ptr{Cdouble}},
Ptr{Ptr{Cint}},
Ptr{Ptr{Cint}},
Cint,
Cint,
),
scip,
vars,
offsets,
transcoefs,
transcoefsidx,
termbegins,
nvars,
nterms,
)
end
function SCIPincludeNodeselBfs(scip)
ccall((:SCIPincludeNodeselBfs, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeNodeselBreadthfirst(scip)
ccall(
(:SCIPincludeNodeselBreadthfirst, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeNodeselDfs(scip)
ccall((:SCIPincludeNodeselDfs, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeNodeselEstimate(scip)
ccall(
(:SCIPincludeNodeselEstimate, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeNodeselHybridestim(scip)
ccall(
(:SCIPincludeNodeselHybridestim, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeNodeselUct(scip)
ccall((:SCIPincludeNodeselUct, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeNodeselRestartdfs(scip)
ccall(
(:SCIPincludeNodeselRestartdfs, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludePresolBoundshift(scip)
ccall(
(:SCIPincludePresolBoundshift, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludePresolConvertinttobin(scip)
ccall(
(:SCIPincludePresolConvertinttobin, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludePresolDomcol(scip)
ccall((:SCIPincludePresolDomcol, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludePresolDualagg(scip)
ccall(
(:SCIPincludePresolDualagg, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludePresolDualcomp(scip)
ccall(
(:SCIPincludePresolDualcomp, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludePresolDualinfer(scip)
ccall(
(:SCIPincludePresolDualinfer, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludePresolGateextraction(scip)
ccall(
(:SCIPincludePresolGateextraction, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludePresolImplics(scip)
ccall(
(:SCIPincludePresolImplics, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludePresolInttobinary(scip)
ccall(
(:SCIPincludePresolInttobinary, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludePresolRedvub(scip)
ccall((:SCIPincludePresolRedvub, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludePresolQPKKTref(scip)
ccall(
(:SCIPincludePresolQPKKTref, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludePresolTrivial(scip)
ccall(
(:SCIPincludePresolTrivial, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludePresolTworowbnd(scip)
ccall(
(:SCIPincludePresolTworowbnd, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludePresolSparsify(scip)
ccall(
(:SCIPincludePresolSparsify, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludePresolDualsparsify(scip)
ccall(
(:SCIPincludePresolDualsparsify, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludePresolStuffing(scip)
ccall(
(:SCIPincludePresolStuffing, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludePropDualfix(scip)
ccall((:SCIPincludePropDualfix, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPgenVBoundAdd(
scip,
genvboundprop,
vars,
var,
coefs,
ncoefs,
coefprimalbound,
constant,
boundtype,
)
ccall(
(:SCIPgenVBoundAdd, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_PROP},
Ptr{Ptr{SCIP_VAR}},
Ptr{SCIP_VAR},
Ptr{Cdouble},
Cint,
Cdouble,
Cdouble,
SCIP_BOUNDTYPE,
),
scip,
genvboundprop,
vars,
var,
coefs,
ncoefs,
coefprimalbound,
constant,
boundtype,
)
end
function SCIPincludePropGenvbounds(scip)
ccall(
(:SCIPincludePropGenvbounds, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludePropNlobbt(scip)
ccall((:SCIPincludePropNlobbt, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludePropObbt(scip)
ccall((:SCIPincludePropObbt, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludePropProbing(scip)
ccall((:SCIPincludePropProbing, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPapplyProbingVar(
scip,
vars,
nvars,
probingpos,
boundtype,
bound,
maxproprounds,
impllbs,
implubs,
proplbs,
propubs,
cutoff,
)
ccall(
(:SCIPapplyProbingVar, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_VAR}},
Cint,
Cint,
SCIP_BOUNDTYPE,
Cdouble,
Cint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
),
scip,
vars,
nvars,
probingpos,
boundtype,
bound,
maxproprounds,
impllbs,
implubs,
proplbs,
propubs,
cutoff,
)
end
function SCIPanalyzeDeductionsProbing(
scip,
probingvar,
leftub,
rightlb,
nvars,
vars,
leftimpllbs,
leftimplubs,
leftproplbs,
leftpropubs,
rightimpllbs,
rightimplubs,
rightproplbs,
rightpropubs,
nfixedvars,
naggrvars,
nimplications,
nchgbds,
cutoff,
)
ccall(
(:SCIPanalyzeDeductionsProbing, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VAR},
Cdouble,
Cdouble,
Cint,
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
),
scip,
probingvar,
leftub,
rightlb,
nvars,
vars,
leftimpllbs,
leftimplubs,
leftproplbs,
leftpropubs,
rightimpllbs,
rightimplubs,
rightproplbs,
rightpropubs,
nfixedvars,
naggrvars,
nimplications,
nchgbds,
cutoff,
)
end
function SCIPincludePropPseudoobj(scip)
ccall(
(:SCIPincludePropPseudoobj, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPpropagateCutoffboundVar(
scip,
prop,
var,
cutoffbound,
pseudoobjval,
tightened,
)
ccall(
(:SCIPpropagateCutoffboundVar, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_PROP},
Ptr{SCIP_VAR},
Cdouble,
Cdouble,
Ptr{Cuint},
),
scip,
prop,
var,
cutoffbound,
pseudoobjval,
tightened,
)
end
function SCIPincludePropRedcost(scip)
ccall((:SCIPincludePropRedcost, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludePropRootredcost(scip)
ccall(
(:SCIPincludePropRootredcost, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludePropSymmetry(scip)
ccall((:SCIPincludePropSymmetry, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPgetSymmetry(
scip,
npermvars,
permvars,
permvarmap,
nperms,
perms,
permstrans,
log10groupsize,
binvaraffected,
components,
componentbegins,
vartocomponent,
ncomponents,
)
ccall(
(:SCIPgetSymmetry, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Cint},
Ptr{Ptr{Ptr{SCIP_VAR}}},
Ptr{Ptr{SCIP_HASHMAP}},
Ptr{Cint},
Ptr{Ptr{Ptr{Cint}}},
Ptr{Ptr{Ptr{Cint}}},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Ptr{Cint}},
Ptr{Ptr{Cint}},
Ptr{Ptr{Cint}},
Ptr{Cint},
),
scip,
npermvars,
permvars,
permvarmap,
nperms,
perms,
permstrans,
log10groupsize,
binvaraffected,
components,
componentbegins,
vartocomponent,
ncomponents,
)
end
function SCIPisOrbitalfixingEnabled(scip)
ccall((:SCIPisOrbitalfixingEnabled, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPgetSymmetryNGenerators(scip)
ccall((:SCIPgetSymmetryNGenerators, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPincludePropVbounds(scip)
ccall((:SCIPincludePropVbounds, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPisPropagatedVbounds(scip)
ccall((:SCIPisPropagatedVbounds, libscip), Cuint, (Ptr{SCIP},), scip)
end
function SCIPexecPropVbounds(scip, force, result)
ccall(
(:SCIPexecPropVbounds, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cuint, Ptr{SCIP_RESULT}),
scip,
force,
result,
)
end
function SCIPincludeReaderBnd(scip)
ccall((:SCIPincludeReaderBnd, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeReaderCcg(scip)
ccall((:SCIPincludeReaderCcg, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPwriteCcg(
scip,
file,
name,
transformed,
vars,
nvars,
conss,
nconss,
result,
)
ccall(
(:SCIPwriteCcg, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Libc.FILE},
Ptr{Cchar},
Cuint,
Ptr{Ptr{SCIP_VAR}},
Cint,
Ptr{Ptr{SCIP_CONS}},
Cint,
Ptr{SCIP_RESULT},
),
scip,
file,
name,
transformed,
vars,
nvars,
conss,
nconss,
result,
)
end
function SCIPincludeReaderCip(scip)
ccall((:SCIPincludeReaderCip, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeReaderCnf(scip)
ccall((:SCIPincludeReaderCnf, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeReaderCor(scip)
ccall((:SCIPincludeReaderCor, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPreadCor(scip, filename, result)
ccall(
(:SCIPreadCor, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Ptr{SCIP_RESULT}),
scip,
filename,
result,
)
end
function SCIPcorHasRead(reader)
ccall((:SCIPcorHasRead, libscip), Cuint, (Ptr{SCIP_READER},), reader)
end
function SCIPcorGetNVarNames(reader)
ccall((:SCIPcorGetNVarNames, libscip), Cint, (Ptr{SCIP_READER},), reader)
end
function SCIPcorGetNConsNames(reader)
ccall((:SCIPcorGetNConsNames, libscip), Cint, (Ptr{SCIP_READER},), reader)
end
function SCIPcorGetVarName(reader, i)
ccall(
(:SCIPcorGetVarName, libscip),
Ptr{Cchar},
(Ptr{SCIP_READER}, Cint),
reader,
i,
)
end
function SCIPcorGetConsName(reader, i)
ccall(
(:SCIPcorGetConsName, libscip),
Ptr{Cchar},
(Ptr{SCIP_READER}, Cint),
reader,
i,
)
end
function SCIPincludeReaderDec(scip)
ccall((:SCIPincludeReaderDec, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeReaderDiff(scip)
ccall((:SCIPincludeReaderDiff, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPreadDiff(scip, reader, filename, result)
ccall(
(:SCIPreadDiff, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_READER}, Ptr{Cchar}, Ptr{SCIP_RESULT}),
scip,
reader,
filename,
result,
)
end
function SCIPwriteDiff(
scip,
file,
name,
transformed,
objsense,
objscale,
objoffset,
vars,
nvars,
nbinvars,
nintvars,
nimplvars,
ncontvars,
conss,
nconss,
result,
)
ccall(
(:SCIPwriteDiff, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Libc.FILE},
Ptr{Cchar},
Cuint,
SCIP_OBJSENSE,
Cdouble,
Cdouble,
Ptr{Ptr{SCIP_VAR}},
Cint,
Cint,
Cint,
Cint,
Cint,
Ptr{Ptr{SCIP_CONS}},
Cint,
Ptr{SCIP_RESULT},
),
scip,
file,
name,
transformed,
objsense,
objscale,
objoffset,
vars,
nvars,
nbinvars,
nintvars,
nimplvars,
ncontvars,
conss,
nconss,
result,
)
end
function SCIPincludeReaderFix(scip)
ccall((:SCIPincludeReaderFix, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeReaderFzn(scip)
ccall((:SCIPincludeReaderFzn, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPprintSolReaderFzn(scip, sol, file)
ccall(
(:SCIPprintSolReaderFzn, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}, Ptr{Libc.FILE}),
scip,
sol,
file,
)
end
function SCIPincludeReaderGms(scip)
ccall((:SCIPincludeReaderGms, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPwriteGms(
scip,
file,
name,
transformed,
objsense,
objscale,
objoffset,
vars,
nvars,
nbinvars,
nintvars,
nimplvars,
ncontvars,
conss,
nconss,
result,
)
ccall(
(:SCIPwriteGms, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Libc.FILE},
Ptr{Cchar},
Cuint,
SCIP_OBJSENSE,
Cdouble,
Cdouble,
Ptr{Ptr{SCIP_VAR}},
Cint,
Cint,
Cint,
Cint,
Cint,
Ptr{Ptr{SCIP_CONS}},
Cint,
Ptr{SCIP_RESULT},
),
scip,
file,
name,
transformed,
objsense,
objscale,
objoffset,
vars,
nvars,
nbinvars,
nintvars,
nimplvars,
ncontvars,
conss,
nconss,
result,
)
end
function SCIPincludeReaderLp(scip)
ccall((:SCIPincludeReaderLp, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPreadLp(scip, reader, filename, result)
ccall(
(:SCIPreadLp, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_READER}, Ptr{Cchar}, Ptr{SCIP_RESULT}),
scip,
reader,
filename,
result,
)
end
function SCIPwriteLp(
scip,
file,
name,
transformed,
objsense,
objscale,
objoffset,
vars,
nvars,
nbinvars,
nintvars,
nimplvars,
ncontvars,
conss,
nconss,
result,
)
ccall(
(:SCIPwriteLp, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Libc.FILE},
Ptr{Cchar},
Cuint,
SCIP_OBJSENSE,
Cdouble,
Cdouble,
Ptr{Ptr{SCIP_VAR}},
Cint,
Cint,
Cint,
Cint,
Cint,
Ptr{Ptr{SCIP_CONS}},
Cint,
Ptr{SCIP_RESULT},
),
scip,
file,
name,
transformed,
objsense,
objscale,
objoffset,
vars,
nvars,
nbinvars,
nintvars,
nimplvars,
ncontvars,
conss,
nconss,
result,
)
end
function SCIPincludeReaderMps(scip)
ccall((:SCIPincludeReaderMps, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPreadMps(
scip,
reader,
filename,
result,
varnames,
consnames,
varnamessize,
consnamessize,
nvarnames,
nconsnames,
)
ccall(
(:SCIPreadMps, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_READER},
Ptr{Cchar},
Ptr{SCIP_RESULT},
Ptr{Ptr{Ptr{Cchar}}},
Ptr{Ptr{Ptr{Cchar}}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
),
scip,
reader,
filename,
result,
varnames,
consnames,
varnamessize,
consnamessize,
nvarnames,
nconsnames,
)
end
function SCIPwriteMps(
scip,
reader,
file,
name,
transformed,
objsense,
objscale,
objoffset,
vars,
nvars,
nbinvars,
nintvars,
nimplvars,
ncontvars,
fixedvars,
nfixedvars,
conss,
nconss,
result,
)
ccall(
(:SCIPwriteMps, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_READER},
Ptr{Libc.FILE},
Ptr{Cchar},
Cuint,
SCIP_OBJSENSE,
Cdouble,
Cdouble,
Ptr{Ptr{SCIP_VAR}},
Cint,
Cint,
Cint,
Cint,
Cint,
Ptr{Ptr{SCIP_VAR}},
Cint,
Ptr{Ptr{SCIP_CONS}},
Cint,
Ptr{SCIP_RESULT},
),
scip,
reader,
file,
name,
transformed,
objsense,
objscale,
objoffset,
vars,
nvars,
nbinvars,
nintvars,
nimplvars,
ncontvars,
fixedvars,
nfixedvars,
conss,
nconss,
result,
)
end
function SCIPincludeReaderMst(scip)
ccall((:SCIPincludeReaderMst, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeReaderNl(scip)
ccall((:SCIPincludeReaderNl, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPwriteSolutionNl(scip)
ccall((:SCIPwriteSolutionNl, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeReaderOpb(scip)
ccall((:SCIPincludeReaderOpb, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPreadOpb(scip, reader, filename, result)
ccall(
(:SCIPreadOpb, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_READER}, Ptr{Cchar}, Ptr{SCIP_RESULT}),
scip,
reader,
filename,
result,
)
end
function SCIPwriteOpb(
scip,
file,
name,
transformed,
objsense,
objscale,
objoffset,
vars,
nvars,
nbinvars,
nintvars,
nimplvars,
ncontvars,
fixedvars,
nfixedvars,
conss,
nconss,
genericnames,
result,
)
ccall(
(:SCIPwriteOpb, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Libc.FILE},
Ptr{Cchar},
Cuint,
SCIP_OBJSENSE,
Cdouble,
Cdouble,
Ptr{Ptr{SCIP_VAR}},
Cint,
Cint,
Cint,
Cint,
Cint,
Ptr{Ptr{SCIP_VAR}},
Cint,
Ptr{Ptr{SCIP_CONS}},
Cint,
Cuint,
Ptr{SCIP_RESULT},
),
scip,
file,
name,
transformed,
objsense,
objscale,
objoffset,
vars,
nvars,
nbinvars,
nintvars,
nimplvars,
ncontvars,
fixedvars,
nfixedvars,
conss,
nconss,
genericnames,
result,
)
end
function SCIPincludeReaderOsil(scip)
ccall((:SCIPincludeReaderOsil, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeReaderPip(scip)
ccall((:SCIPincludeReaderPip, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPreadPip(scip, reader, filename, result)
ccall(
(:SCIPreadPip, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_READER}, Ptr{Cchar}, Ptr{SCIP_RESULT}),
scip,
reader,
filename,
result,
)
end
function SCIPwritePip(
scip,
file,
name,
transformed,
objsense,
objscale,
objoffset,
vars,
nvars,
nbinvars,
nintvars,
nimplvars,
ncontvars,
conss,
nconss,
result,
)
ccall(
(:SCIPwritePip, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Libc.FILE},
Ptr{Cchar},
Cuint,
SCIP_OBJSENSE,
Cdouble,
Cdouble,
Ptr{Ptr{SCIP_VAR}},
Cint,
Cint,
Cint,
Cint,
Cint,
Ptr{Ptr{SCIP_CONS}},
Cint,
Ptr{SCIP_RESULT},
),
scip,
file,
name,
transformed,
objsense,
objscale,
objoffset,
vars,
nvars,
nbinvars,
nintvars,
nimplvars,
ncontvars,
conss,
nconss,
result,
)
end
function SCIPincludeReaderPpm(scip)
ccall((:SCIPincludeReaderPpm, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPwritePpm(
scip,
file,
name,
readerdata,
transformed,
vars,
nvars,
conss,
nconss,
result,
)
ccall(
(:SCIPwritePpm, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Libc.FILE},
Ptr{Cchar},
Ptr{SCIP_READERDATA},
Cuint,
Ptr{Ptr{SCIP_VAR}},
Cint,
Ptr{Ptr{SCIP_CONS}},
Cint,
Ptr{SCIP_RESULT},
),
scip,
file,
name,
readerdata,
transformed,
vars,
nvars,
conss,
nconss,
result,
)
end
function SCIPincludeReaderPbm(scip)
ccall((:SCIPincludeReaderPbm, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPwritePbm(
scip,
file,
name,
readerdata,
transformed,
nvars,
conss,
nconss,
result,
)
ccall(
(:SCIPwritePbm, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Libc.FILE},
Ptr{Cchar},
Ptr{SCIP_READERDATA},
Cuint,
Cint,
Ptr{Ptr{SCIP_CONS}},
Cint,
Ptr{SCIP_RESULT},
),
scip,
file,
name,
readerdata,
transformed,
nvars,
conss,
nconss,
result,
)
end
function SCIPincludeReaderRlp(scip)
ccall((:SCIPincludeReaderRlp, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeReaderSmps(scip)
ccall((:SCIPincludeReaderSmps, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeReaderSol(scip)
ccall((:SCIPincludeReaderSol, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeReaderSto(scip)
ccall((:SCIPincludeReaderSto, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPreadSto(scip, filename, result)
ccall(
(:SCIPreadSto, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Ptr{SCIP_RESULT}),
scip,
filename,
result,
)
end
function SCIPwriteSto(
scip,
file,
name,
transformed,
objsense,
objscale,
objoffset,
vars,
nvars,
nbinvars,
nintvars,
nimplvars,
ncontvars,
conss,
nconss,
result,
)
ccall(
(:SCIPwriteSto, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Libc.FILE},
Ptr{Cchar},
Cuint,
SCIP_OBJSENSE,
Cdouble,
Cdouble,
Ptr{Ptr{SCIP_VAR}},
Cint,
Cint,
Cint,
Cint,
Cint,
Ptr{Ptr{SCIP_CONS}},
Cint,
Ptr{SCIP_RESULT},
),
scip,
file,
name,
transformed,
objsense,
objscale,
objoffset,
vars,
nvars,
nbinvars,
nintvars,
nimplvars,
ncontvars,
conss,
nconss,
result,
)
end
function SCIPstoGetNScenarios(scip)
ccall((:SCIPstoGetNScenarios, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPincludeReaderTim(scip)
ccall((:SCIPincludeReaderTim, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPreadTim(scip, filename, result)
ccall(
(:SCIPreadTim, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Cchar}, Ptr{SCIP_RESULT}),
scip,
filename,
result,
)
end
function SCIPtimHasRead(reader)
ccall((:SCIPtimHasRead, libscip), Cuint, (Ptr{SCIP_READER},), reader)
end
function SCIPtimGetNStages(scip)
ccall((:SCIPtimGetNStages, libscip), Cint, (Ptr{SCIP},), scip)
end
function SCIPtimGetStageName(scip, stagenum)
ccall(
(:SCIPtimGetStageName, libscip),
Ptr{Cchar},
(Ptr{SCIP}, Cint),
scip,
stagenum,
)
end
function SCIPtimConsGetStageName(scip, consname)
ccall(
(:SCIPtimConsGetStageName, libscip),
Ptr{Cchar},
(Ptr{SCIP}, Ptr{Cchar}),
scip,
consname,
)
end
function SCIPtimFindStage(scip, stage)
ccall(
(:SCIPtimFindStage, libscip),
Cint,
(Ptr{SCIP}, Ptr{Cchar}),
scip,
stage,
)
end
function SCIPtimGetStageVars(scip, stagenum)
ccall(
(:SCIPtimGetStageVars, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP}, Cint),
scip,
stagenum,
)
end
function SCIPtimGetStageConss(scip, stagenum)
ccall(
(:SCIPtimGetStageConss, libscip),
Ptr{Ptr{SCIP_CONS}},
(Ptr{SCIP}, Cint),
scip,
stagenum,
)
end
function SCIPtimGetStageNVars(scip, stagenum)
ccall(
(:SCIPtimGetStageNVars, libscip),
Cint,
(Ptr{SCIP}, Cint),
scip,
stagenum,
)
end
function SCIPtimGetStageNConss(scip, stagenum)
ccall(
(:SCIPtimGetStageNConss, libscip),
Cint,
(Ptr{SCIP}, Cint),
scip,
stagenum,
)
end
function SCIPincludeReaderWbo(scip)
ccall((:SCIPincludeReaderWbo, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeReaderZpl(scip)
ccall((:SCIPincludeReaderZpl, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeSepaEccuts(scip)
ccall((:SCIPincludeSepaEccuts, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeSepaCGMIP(scip)
ccall((:SCIPincludeSepaCGMIP, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeSepaClique(scip)
ccall((:SCIPincludeSepaClique, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeSepaClosecuts(scip)
ccall(
(:SCIPincludeSepaClosecuts, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPsetBasePointClosecuts(scip, sol)
ccall(
(:SCIPsetBasePointClosecuts, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_SOL}),
scip,
sol,
)
end
function SCIPincludeSepaAggregation(scip)
ccall(
(:SCIPincludeSepaAggregation, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeSepaConvexproj(scip)
ccall(
(:SCIPincludeSepaConvexproj, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeSepaDisjunctive(scip)
ccall(
(:SCIPincludeSepaDisjunctive, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeSepaGauge(scip)
ccall((:SCIPincludeSepaGauge, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeSepaGomory(scip)
ccall((:SCIPincludeSepaGomory, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeSepaImpliedbounds(scip)
ccall(
(:SCIPincludeSepaImpliedbounds, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeSepaInterminor(scip)
ccall(
(:SCIPincludeSepaInterminor, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeSepaIntobj(scip)
ccall((:SCIPincludeSepaIntobj, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeSepaMcf(scip)
ccall((:SCIPincludeSepaMcf, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeSepaMinor(scip)
ccall((:SCIPincludeSepaMinor, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeSepaMixing(scip)
ccall((:SCIPincludeSepaMixing, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeSepaOddcycle(scip)
ccall((:SCIPincludeSepaOddcycle, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeSepaRapidlearning(scip)
ccall(
(:SCIPincludeSepaRapidlearning, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeSepaRlt(scip)
ccall((:SCIPincludeSepaRlt, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeSepaZerohalf(scip)
ccall((:SCIPincludeSepaZerohalf, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPprocessShellArguments(scip, argc, argv, defaultsetname)
ccall(
(:SCIPprocessShellArguments, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cint, Ptr{Ptr{Cchar}}, Ptr{Cchar}),
scip,
argc,
argv,
defaultsetname,
)
end
function SCIPrunShell(argc, argv, defaultsetname)
ccall(
(:SCIPrunShell, libscip),
SCIP_RETCODE,
(Cint, Ptr{Ptr{Cchar}}, Ptr{Cchar}),
argc,
argv,
defaultsetname,
)
end
function SCIPcomputeOrbitsSym(
scip,
permvars,
npermvars,
perms,
nperms,
orbits,
orbitbegins,
norbits,
)
ccall(
(:SCIPcomputeOrbitsSym, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_VAR}},
Cint,
Ptr{Ptr{Cint}},
Cint,
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
),
scip,
permvars,
npermvars,
perms,
nperms,
orbits,
orbitbegins,
norbits,
)
end
function SCIPcomputeOrbitsFilterSym(
scip,
npermvars,
permstrans,
nperms,
inactiveperms,
orbits,
orbitbegins,
norbits,
components,
componentbegins,
vartocomponent,
componentblocked,
ncomponents,
nmovedpermvars,
)
ccall(
(:SCIPcomputeOrbitsFilterSym, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Cint,
Ptr{Ptr{Cint}},
Cint,
Ptr{UInt8},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Cint,
Cint,
),
scip,
npermvars,
permstrans,
nperms,
inactiveperms,
orbits,
orbitbegins,
norbits,
components,
componentbegins,
vartocomponent,
componentblocked,
ncomponents,
nmovedpermvars,
)
end
function SCIPcomputeOrbitsComponentsSym(
scip,
npermvars,
permstrans,
nperms,
components,
componentbegins,
vartocomponent,
ncomponents,
orbits,
orbitbegins,
norbits,
varorbitmap,
)
ccall(
(:SCIPcomputeOrbitsComponentsSym, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Cint,
Ptr{Ptr{Cint}},
Cint,
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Cint,
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
),
scip,
npermvars,
permstrans,
nperms,
components,
componentbegins,
vartocomponent,
ncomponents,
orbits,
orbitbegins,
norbits,
varorbitmap,
)
end
function SCIPcomputeOrbitVar(
scip,
npermvars,
perms,
permstrans,
components,
componentbegins,
ignoredvars,
varfound,
varidx,
component,
orbit,
orbitsize,
)
ccall(
(:SCIPcomputeOrbitVar, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Cint,
Ptr{Ptr{Cint}},
Ptr{Ptr{Cint}},
Ptr{Cint},
Ptr{Cint},
Ptr{UInt8},
Ptr{UInt8},
Cint,
Cint,
Ptr{Cint},
Ptr{Cint},
),
scip,
npermvars,
perms,
permstrans,
components,
componentbegins,
ignoredvars,
varfound,
varidx,
component,
orbit,
orbitsize,
)
end
function SCIPisInvolutionPerm(
perm,
vars,
nvars,
ntwocyclesperm,
nbincyclesperm,
earlytermination,
)
ccall(
(:SCIPisInvolutionPerm, libscip),
SCIP_RETCODE,
(Ptr{Cint}, Ptr{Ptr{SCIP_VAR}}, Cint, Ptr{Cint}, Ptr{Cint}, Cuint),
perm,
vars,
nvars,
ntwocyclesperm,
nbincyclesperm,
earlytermination,
)
end
function SCIPdetermineNVarsAffectedSym(
scip,
perms,
nperms,
permvars,
npermvars,
nvarsaffected,
)
ccall(
(:SCIPdetermineNVarsAffectedSym, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{Cint}}, Cint, Ptr{Ptr{SCIP_VAR}}, Cint, Ptr{Cint}),
scip,
perms,
nperms,
permvars,
npermvars,
nvarsaffected,
)
end
function SCIPcomputeComponentsSym(
scip,
perms,
nperms,
permvars,
npermvars,
transposed,
components,
componentbegins,
vartocomponent,
componentblocked,
ncomponents,
)
ccall(
(:SCIPcomputeComponentsSym, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{Cint}},
Cint,
Ptr{Ptr{SCIP_VAR}},
Cint,
Cuint,
Ptr{Ptr{Cint}},
Ptr{Ptr{Cint}},
Ptr{Ptr{Cint}},
Ptr{Ptr{Cuint}},
Ptr{Cint},
),
scip,
perms,
nperms,
permvars,
npermvars,
transposed,
components,
componentbegins,
vartocomponent,
componentblocked,
ncomponents,
)
end
function SCIPextendSubOrbitope(
suborbitope,
nrows,
nfilledcols,
coltoextend,
perm,
leftextension,
nusedelems,
permvars,
rowisbinary,
success,
infeasible,
)
ccall(
(:SCIPextendSubOrbitope, libscip),
SCIP_RETCODE,
(
Ptr{Ptr{Cint}},
Cint,
Cint,
Cint,
Ptr{Cint},
Cuint,
Ptr{Ptr{Cint}},
Ptr{Ptr{SCIP_VAR}},
Ptr{UInt8},
Ptr{Cuint},
Ptr{Cuint},
),
suborbitope,
nrows,
nfilledcols,
coltoextend,
perm,
leftextension,
nusedelems,
permvars,
rowisbinary,
success,
infeasible,
)
end
function SCIPgenerateOrbitopeVarsMatrix(
scip,
vars,
nrows,
ncols,
permvars,
npermvars,
orbitopevaridx,
columnorder,
nusedelems,
rowisbinary,
infeasible,
storelexorder,
lexorder,
nvarsorder,
maxnvarsorder,
)
ccall(
(:SCIPgenerateOrbitopeVarsMatrix, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{Ptr{Ptr{SCIP_VAR}}}},
Cint,
Cint,
Ptr{Ptr{SCIP_VAR}},
Cint,
Ptr{Ptr{Cint}},
Ptr{Cint},
Ptr{Cint},
Ptr{UInt8},
Ptr{Cuint},
Cuint,
Ptr{Ptr{Cint}},
Ptr{Cint},
Ptr{Cint},
),
scip,
vars,
nrows,
ncols,
permvars,
npermvars,
orbitopevaridx,
columnorder,
nusedelems,
rowisbinary,
infeasible,
storelexorder,
lexorder,
nvarsorder,
maxnvarsorder,
)
end
function SCIPisPackingPartitioningOrbitope(
scip,
vars,
nrows,
ncols,
pprows,
npprows,
type,
)
ccall(
(:SCIPisPackingPartitioningOrbitope, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{Ptr{SCIP_VAR}}},
Cint,
Cint,
Ptr{Ptr{Cuint}},
Ptr{Cint},
Ptr{SCIP_ORBITOPETYPE},
),
scip,
vars,
nrows,
ncols,
pprows,
npprows,
type,
)
end
function SCIPincludeTableDefault(scip)
ccall((:SCIPincludeTableDefault, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeConcurrentScipSolvers(scip)
ccall(
(:SCIPincludeConcurrentScipSolvers, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPincludeBendersDefault(scip)
ccall(
(:SCIPincludeBendersDefault, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateBendersDefault(scip, subproblems, nsubproblems)
ccall(
(:SCIPcreateBendersDefault, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP}}, Cint),
scip,
subproblems,
nsubproblems,
)
end
function SCIPincludeCutselHybrid(scip)
ccall((:SCIPincludeCutselHybrid, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPselectCutsHybrid(
scip,
cuts,
forcedcuts,
randnumgen,
goodscorefac,
badscorefac,
goodmaxparall,
maxparall,
dircutoffdistweight,
efficacyweight,
objparalweight,
intsupportweight,
ncuts,
nforcedcuts,
maxselectedcuts,
nselectedcuts,
)
ccall(
(:SCIPselectCutsHybrid, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_ROW}},
Ptr{Ptr{SCIP_ROW}},
Ptr{SCIP_RANDNUMGEN},
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cdouble,
Cint,
Cint,
Cint,
Ptr{Cint},
),
scip,
cuts,
forcedcuts,
randnumgen,
goodscorefac,
badscorefac,
goodmaxparall,
maxparall,
dircutoffdistweight,
efficacyweight,
objparalweight,
intsupportweight,
ncuts,
nforcedcuts,
maxselectedcuts,
nselectedcuts,
)
end
function SCIPincludeExprhdlrVaridx(scip)
ccall(
(:SCIPincludeExprhdlrVaridx, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPcreateExprVaridx(scip, expr, varidx, ownercreate, ownercreatedata)
ccall(
(:SCIPcreateExprVaridx, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_EXPR}}, Cint, Ptr{Cvoid}, Ptr{Cvoid}),
scip,
expr,
varidx,
ownercreate,
ownercreatedata,
)
end
function SCIPisExprVaridx(scip, expr)
ccall(
(:SCIPisExprVaridx, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_EXPR}),
scip,
expr,
)
end
function SCIPgetIndexExprVaridx(expr)
ccall((:SCIPgetIndexExprVaridx, libscip), Cint, (Ptr{SCIP_EXPR},), expr)
end
function SCIPsetIndexExprVaridx(expr, newindex)
ccall(
(:SCIPsetIndexExprVaridx, libscip),
Cvoid,
(Ptr{SCIP_EXPR}, Cint),
expr,
newindex,
)
end
function SCIPincludeNlpSolverIpopt(scip)
ccall(
(:SCIPincludeNlpSolverIpopt, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetSolverNameIpopt()
ccall((:SCIPgetSolverNameIpopt, libscip), Ptr{Cchar}, ())
end
function SCIPgetSolverDescIpopt()
ccall((:SCIPgetSolverDescIpopt, libscip), Ptr{Cchar}, ())
end
function SCIPisIpoptAvailableIpopt()
ccall((:SCIPisIpoptAvailableIpopt, libscip), Cuint, ())
end
function SCIPgetNlpiOracleIpopt(nlpiproblem)
ccall(
(:SCIPgetNlpiOracleIpopt, libscip),
Ptr{Cvoid},
(Ptr{SCIP_NLPIPROBLEM},),
nlpiproblem,
)
end
function SCIPcallLapackDsyevIpopt(computeeigenvectors, N, a, w)
ccall(
(:SCIPcallLapackDsyevIpopt, libscip),
SCIP_RETCODE,
(Cuint, Cint, Ptr{Cdouble}, Ptr{Cdouble}),
computeeigenvectors,
N,
a,
w,
)
end
function SCIPsolveLinearEquationsIpopt(N, A, b, x, success)
ccall(
(:SCIPsolveLinearEquationsIpopt, libscip),
SCIP_RETCODE,
(Cint, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cuint}),
N,
A,
b,
x,
success,
)
end
function SCIPincludeNlpSolverFilterSQP(scip)
ccall(
(:SCIPincludeNlpSolverFilterSQP, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPgetSolverNameFilterSQP()
ccall((:SCIPgetSolverNameFilterSQP, libscip), Ptr{Cchar}, ())
end
function SCIPgetSolverDescFilterSQP()
ccall((:SCIPgetSolverDescFilterSQP, libscip), Ptr{Cchar}, ())
end
function SCIPisFilterSQPAvailableFilterSQP()
ccall((:SCIPisFilterSQPAvailableFilterSQP, libscip), Cuint, ())
end
function SCIPincludeNlpSolverWorhp(scip, useip)
ccall(
(:SCIPincludeNlpSolverWorhp, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Cuint),
scip,
useip,
)
end
function SCIPgetSolverNameWorhp()
ccall((:SCIPgetSolverNameWorhp, libscip), Ptr{Cchar}, ())
end
function SCIPgetSolverDescWorhp()
ccall((:SCIPgetSolverDescWorhp, libscip), Ptr{Cchar}, ())
end
function SCIPisWorhpAvailableWorhp()
ccall((:SCIPisWorhpAvailableWorhp, libscip), Cuint, ())
end
function SCIPincludeNlpSolverAll(scip)
ccall((:SCIPincludeNlpSolverAll, libscip), SCIP_RETCODE, (Ptr{SCIP},), scip)
end
function SCIPincludeDefaultPlugins(scip)
ccall(
(:SCIPincludeDefaultPlugins, libscip),
SCIP_RETCODE,
(Ptr{SCIP},),
scip,
)
end
function SCIPbanditSelect(bandit, action)
ccall(
(:SCIPbanditSelect, libscip),
SCIP_RETCODE,
(Ptr{SCIP_BANDIT}, Ptr{Cint}),
bandit,
action,
)
end
function SCIPbanditUpdate(bandit, action, score)
ccall(
(:SCIPbanditUpdate, libscip),
SCIP_RETCODE,
(Ptr{SCIP_BANDIT}, Cint, Cdouble),
bandit,
action,
score,
)
end
function SCIPbanditvtableGetName(banditvtable)
ccall(
(:SCIPbanditvtableGetName, libscip),
Ptr{Cchar},
(Ptr{SCIP_BANDITVTABLE},),
banditvtable,
)
end
function SCIPbanditGetRandnumgen(bandit)
ccall(
(:SCIPbanditGetRandnumgen, libscip),
Ptr{SCIP_RANDNUMGEN},
(Ptr{SCIP_BANDIT},),
bandit,
)
end
function SCIPbanditGetNActions(bandit)
ccall((:SCIPbanditGetNActions, libscip), Cint, (Ptr{SCIP_BANDIT},), bandit)
end
function SCIPcreateBanditEpsgreedy(
scip,
epsgreedy,
priorities,
eps,
preferrecent,
decayfactor,
avglim,
nactions,
initseed,
)
ccall(
(:SCIPcreateBanditEpsgreedy, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_BANDIT}},
Ptr{Cdouble},
Cdouble,
Cuint,
Cdouble,
Cint,
Cint,
Cuint,
),
scip,
epsgreedy,
priorities,
eps,
preferrecent,
decayfactor,
avglim,
nactions,
initseed,
)
end
function SCIPgetWeightsEpsgreedy(epsgreedy)
ccall(
(:SCIPgetWeightsEpsgreedy, libscip),
Ptr{Cdouble},
(Ptr{SCIP_BANDIT},),
epsgreedy,
)
end
function SCIPsetEpsilonEpsgreedy(epsgreedy, eps)
ccall(
(:SCIPsetEpsilonEpsgreedy, libscip),
Cvoid,
(Ptr{SCIP_BANDIT}, Cdouble),
epsgreedy,
eps,
)
end
function SCIPcreateBanditExp3(
scip,
exp3,
priorities,
gammaparam,
beta,
nactions,
initseed,
)
ccall(
(:SCIPcreateBanditExp3, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_BANDIT}},
Ptr{Cdouble},
Cdouble,
Cdouble,
Cint,
Cuint,
),
scip,
exp3,
priorities,
gammaparam,
beta,
nactions,
initseed,
)
end
function SCIPsetGammaExp3(exp3, gammaparam)
ccall(
(:SCIPsetGammaExp3, libscip),
Cvoid,
(Ptr{SCIP_BANDIT}, Cdouble),
exp3,
gammaparam,
)
end
function SCIPsetBetaExp3(exp3, beta)
ccall(
(:SCIPsetBetaExp3, libscip),
Cvoid,
(Ptr{SCIP_BANDIT}, Cdouble),
exp3,
beta,
)
end
function SCIPgetProbabilityExp3(exp3, action)
ccall(
(:SCIPgetProbabilityExp3, libscip),
Cdouble,
(Ptr{SCIP_BANDIT}, Cint),
exp3,
action,
)
end
function SCIPcreateBanditUcb(scip, ucb, priorities, alpha, nactions, initseed)
ccall(
(:SCIPcreateBanditUcb, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_BANDIT}}, Ptr{Cdouble}, Cdouble, Cint, Cuint),
scip,
ucb,
priorities,
alpha,
nactions,
initseed,
)
end
function SCIPgetConfidenceBoundUcb(ucb, action)
ccall(
(:SCIPgetConfidenceBoundUcb, libscip),
Cdouble,
(Ptr{SCIP_BANDIT}, Cint),
ucb,
action,
)
end
function SCIPgetStartPermutationUcb(ucb)
ccall(
(:SCIPgetStartPermutationUcb, libscip),
Ptr{Cint},
(Ptr{SCIP_BANDIT},),
ucb,
)
end
function SCIPbendersComp(elem1, elem2)
ccall(
(:SCIPbendersComp, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPbendersCompName(elem1, elem2)
ccall(
(:SCIPbendersCompName, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPbendersGetData(benders)
ccall(
(:SCIPbendersGetData, libscip),
Ptr{SCIP_BENDERSDATA},
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersSetData(benders, bendersdata)
ccall(
(:SCIPbendersSetData, libscip),
Cvoid,
(Ptr{SCIP_BENDERS}, Ptr{SCIP_BENDERSDATA}),
benders,
bendersdata,
)
end
function SCIPbendersGetName(benders)
ccall(
(:SCIPbendersGetName, libscip),
Ptr{Cchar},
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersGetDesc(benders)
ccall(
(:SCIPbendersGetDesc, libscip),
Ptr{Cchar},
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersGetPriority(benders)
ccall(
(:SCIPbendersGetPriority, libscip),
Cint,
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersGetNSubproblems(benders)
ccall(
(:SCIPbendersGetNSubproblems, libscip),
Cint,
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersSubproblem(benders, probnumber)
ccall(
(:SCIPbendersSubproblem, libscip),
Ptr{SCIP},
(Ptr{SCIP_BENDERS}, Cint),
benders,
probnumber,
)
end
function SCIPbendersGetNCalls(benders)
ccall((:SCIPbendersGetNCalls, libscip), Cint, (Ptr{SCIP_BENDERS},), benders)
end
function SCIPbendersGetNCutsFound(benders)
ccall(
(:SCIPbendersGetNCutsFound, libscip),
Cint,
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersGetNStrengthenCutsFound(benders)
ccall(
(:SCIPbendersGetNStrengthenCutsFound, libscip),
Cint,
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersGetNStrengthenCalls(benders)
ccall(
(:SCIPbendersGetNStrengthenCalls, libscip),
Cint,
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersGetNStrengthenFails(benders)
ccall(
(:SCIPbendersGetNStrengthenFails, libscip),
Cint,
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersGetSetupTime(benders)
ccall(
(:SCIPbendersGetSetupTime, libscip),
Cdouble,
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersGetTime(benders)
ccall(
(:SCIPbendersGetTime, libscip),
Cdouble,
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersIsInitialized(benders)
ccall(
(:SCIPbendersIsInitialized, libscip),
Cuint,
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersIsActive(benders)
ccall((:SCIPbendersIsActive, libscip), Cuint, (Ptr{SCIP_BENDERS},), benders)
end
function SCIPbendersOnlyCheckConvexRelax(benders, subscipsoff)
ccall(
(:SCIPbendersOnlyCheckConvexRelax, libscip),
Cuint,
(Ptr{SCIP_BENDERS}, Cuint),
benders,
subscipsoff,
)
end
function SCIPbendersCutLP(benders)
ccall((:SCIPbendersCutLP, libscip), Cuint, (Ptr{SCIP_BENDERS},), benders)
end
function SCIPbendersCutPseudo(benders)
ccall(
(:SCIPbendersCutPseudo, libscip),
Cuint,
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersCutRelaxation(benders)
ccall(
(:SCIPbendersCutRelaxation, libscip),
Cuint,
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersShareAuxVars(benders)
ccall(
(:SCIPbendersShareAuxVars, libscip),
Cuint,
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersSetSubproblemIsSetup(benders, probnumber, issetup)
ccall(
(:SCIPbendersSetSubproblemIsSetup, libscip),
Cvoid,
(Ptr{SCIP_BENDERS}, Cint, Cuint),
benders,
probnumber,
issetup,
)
end
function SCIPbendersSubproblemIsSetup(benders, probnumber)
ccall(
(:SCIPbendersSubproblemIsSetup, libscip),
Cuint,
(Ptr{SCIP_BENDERS}, Cint),
benders,
probnumber,
)
end
function SCIPbendersGetAuxiliaryVar(benders, probnumber)
ccall(
(:SCIPbendersGetAuxiliaryVar, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP_BENDERS}, Cint),
benders,
probnumber,
)
end
function SCIPbendersGetAuxiliaryVars(benders)
ccall(
(:SCIPbendersGetAuxiliaryVars, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersSetSubproblemObjval(benders, probnumber, objval)
ccall(
(:SCIPbendersSetSubproblemObjval, libscip),
Cvoid,
(Ptr{SCIP_BENDERS}, Cint, Cdouble),
benders,
probnumber,
objval,
)
end
function SCIPbendersGetSubproblemObjval(benders, probnumber)
ccall(
(:SCIPbendersGetSubproblemObjval, libscip),
Cdouble,
(Ptr{SCIP_BENDERS}, Cint),
benders,
probnumber,
)
end
function SCIPbendersGetNStoredCuts(benders)
ccall(
(:SCIPbendersGetNStoredCuts, libscip),
Cint,
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersGetStoredCutData(
benders,
cutidx,
vars,
vals,
lhs,
rhs,
nvars,
)
ccall(
(:SCIPbendersGetStoredCutData, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_BENDERS},
Cint,
Ptr{Ptr{Ptr{SCIP_VAR}}},
Ptr{Ptr{Cdouble}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
),
benders,
cutidx,
vars,
vals,
lhs,
rhs,
nvars,
)
end
function SCIPbendersGetStoredCutOrigData(
benders,
cutidx,
vars,
vals,
lhs,
rhs,
nvars,
varssize,
)
ccall(
(:SCIPbendersGetStoredCutOrigData, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_BENDERS},
Cint,
Ptr{Ptr{Ptr{SCIP_VAR}}},
Ptr{Ptr{Cdouble}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Cint,
),
benders,
cutidx,
vars,
vals,
lhs,
rhs,
nvars,
varssize,
)
end
function SCIPfindBenderscut(benders, name)
ccall(
(:SCIPfindBenderscut, libscip),
Ptr{SCIP_BENDERSCUT},
(Ptr{SCIP_BENDERS}, Ptr{Cchar}),
benders,
name,
)
end
function SCIPbendersGetBenderscuts(benders)
ccall(
(:SCIPbendersGetBenderscuts, libscip),
Ptr{Ptr{SCIP_BENDERSCUT}},
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersGetNBenderscuts(benders)
ccall(
(:SCIPbendersGetNBenderscuts, libscip),
Cint,
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersSetBenderscutPriority(benders, benderscut, priority)
ccall(
(:SCIPbendersSetBenderscutPriority, libscip),
SCIP_RETCODE,
(Ptr{SCIP_BENDERS}, Ptr{SCIP_BENDERSCUT}, Cint),
benders,
benderscut,
priority,
)
end
function SCIPbendersSolSlackVarsActive(benders, activeslack)
ccall(
(:SCIPbendersSolSlackVarsActive, libscip),
SCIP_RETCODE,
(Ptr{SCIP_BENDERS}, Ptr{Cuint}),
benders,
activeslack,
)
end
function SCIPbendersSetSubproblemType(benders, probnumber, subprobtype)
ccall(
(:SCIPbendersSetSubproblemType, libscip),
Cvoid,
(Ptr{SCIP_BENDERS}, Cint, SCIP_BENDERSSUBTYPE),
benders,
probnumber,
subprobtype,
)
end
function SCIPbendersGetSubproblemType(benders, probnumber)
ccall(
(:SCIPbendersGetSubproblemType, libscip),
SCIP_BENDERSSUBTYPE,
(Ptr{SCIP_BENDERS}, Cint),
benders,
probnumber,
)
end
function SCIPbendersSetSubproblemIsConvex(benders, probnumber, isconvex)
ccall(
(:SCIPbendersSetSubproblemIsConvex, libscip),
Cvoid,
(Ptr{SCIP_BENDERS}, Cint, Cuint),
benders,
probnumber,
isconvex,
)
end
function SCIPbendersSubproblemIsConvex(benders, probnumber)
ccall(
(:SCIPbendersSubproblemIsConvex, libscip),
Cuint,
(Ptr{SCIP_BENDERS}, Cint),
benders,
probnumber,
)
end
function SCIPbendersGetNConvexSubproblems(benders)
ccall(
(:SCIPbendersGetNConvexSubproblems, libscip),
Cint,
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersSetSubproblemIsNonlinear(benders, probnumber, isnonlinear)
ccall(
(:SCIPbendersSetSubproblemIsNonlinear, libscip),
Cvoid,
(Ptr{SCIP_BENDERS}, Cint, Cuint),
benders,
probnumber,
isnonlinear,
)
end
function SCIPbendersSubproblemIsNonlinear(benders, probnumber)
ccall(
(:SCIPbendersSubproblemIsNonlinear, libscip),
Cuint,
(Ptr{SCIP_BENDERS}, Cint),
benders,
probnumber,
)
end
function SCIPbendersGetNNonlinearSubproblems(benders)
ccall(
(:SCIPbendersGetNNonlinearSubproblems, libscip),
Cint,
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersSetMasterIsNonlinear(benders, isnonlinear)
ccall(
(:SCIPbendersSetMasterIsNonlinear, libscip),
Cvoid,
(Ptr{SCIP_BENDERS}, Cuint),
benders,
isnonlinear,
)
end
function SCIPbendersMasterIsNonlinear(benders)
ccall(
(:SCIPbendersMasterIsNonlinear, libscip),
Cuint,
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersInStrengthenRound(benders)
ccall(
(:SCIPbendersInStrengthenRound, libscip),
Cuint,
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersSolveSubproblemLP(
scip,
benders,
probnumber,
solvestatus,
objective,
)
ccall(
(:SCIPbendersSolveSubproblemLP, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Cint, Ptr{SCIP_STATUS}, Ptr{Cdouble}),
scip,
benders,
probnumber,
solvestatus,
objective,
)
end
function SCIPbendersSolveSubproblemCIP(
scip,
benders,
probnumber,
solvestatus,
solvecip,
)
ccall(
(:SCIPbendersSolveSubproblemCIP, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_BENDERS}, Cint, Ptr{SCIP_STATUS}, Cuint),
scip,
benders,
probnumber,
solvestatus,
solvecip,
)
end
function SCIPbendersGetNTransferredCuts(benders)
ccall(
(:SCIPbendersGetNTransferredCuts, libscip),
Cint,
(Ptr{SCIP_BENDERS},),
benders,
)
end
function SCIPbendersUpdateSubproblemLowerbound(benders, probnumber, lowerbound)
ccall(
(:SCIPbendersUpdateSubproblemLowerbound, libscip),
Cvoid,
(Ptr{SCIP_BENDERS}, Cint, Cdouble),
benders,
probnumber,
lowerbound,
)
end
function SCIPbendersGetSubproblemLowerbound(benders, probnumber)
ccall(
(:SCIPbendersGetSubproblemLowerbound, libscip),
Cdouble,
(Ptr{SCIP_BENDERS}, Cint),
benders,
probnumber,
)
end
function SCIPbendersSetSubproblemIsIndependent(benders, probnumber, isindep)
ccall(
(:SCIPbendersSetSubproblemIsIndependent, libscip),
Cvoid,
(Ptr{SCIP_BENDERS}, Cint, Cuint),
benders,
probnumber,
isindep,
)
end
function SCIPbendersSubproblemIsIndependent(benders, probnumber)
ccall(
(:SCIPbendersSubproblemIsIndependent, libscip),
Cuint,
(Ptr{SCIP_BENDERS}, Cint),
benders,
probnumber,
)
end
function SCIPbendersSubproblemIsEnabled(benders, probnumber)
ccall(
(:SCIPbendersSubproblemIsEnabled, libscip),
Cuint,
(Ptr{SCIP_BENDERS}, Cint),
benders,
probnumber,
)
end
function SCIPbenderscutComp(elem1, elem2)
ccall(
(:SCIPbenderscutComp, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPbenderscutCompName(elem1, elem2)
ccall(
(:SCIPbenderscutCompName, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPbenderscutGetData(benderscut)
ccall(
(:SCIPbenderscutGetData, libscip),
Ptr{SCIP_BENDERSCUTDATA},
(Ptr{SCIP_BENDERSCUT},),
benderscut,
)
end
function SCIPbenderscutSetData(benderscut, benderscutdata)
ccall(
(:SCIPbenderscutSetData, libscip),
Cvoid,
(Ptr{SCIP_BENDERSCUT}, Ptr{SCIP_BENDERSCUTDATA}),
benderscut,
benderscutdata,
)
end
function SCIPbenderscutGetName(benderscut)
ccall(
(:SCIPbenderscutGetName, libscip),
Ptr{Cchar},
(Ptr{SCIP_BENDERSCUT},),
benderscut,
)
end
function SCIPbenderscutGetDesc(benderscut)
ccall(
(:SCIPbenderscutGetDesc, libscip),
Ptr{Cchar},
(Ptr{SCIP_BENDERSCUT},),
benderscut,
)
end
function SCIPbenderscutGetPriority(benderscut)
ccall(
(:SCIPbenderscutGetPriority, libscip),
Cint,
(Ptr{SCIP_BENDERSCUT},),
benderscut,
)
end
function SCIPbenderscutGetNCalls(benderscut)
ccall(
(:SCIPbenderscutGetNCalls, libscip),
Clonglong,
(Ptr{SCIP_BENDERSCUT},),
benderscut,
)
end
function SCIPbenderscutGetNFound(benderscut)
ccall(
(:SCIPbenderscutGetNFound, libscip),
Clonglong,
(Ptr{SCIP_BENDERSCUT},),
benderscut,
)
end
function SCIPbenderscutIsInitialized(benderscut)
ccall(
(:SCIPbenderscutIsInitialized, libscip),
Cuint,
(Ptr{SCIP_BENDERSCUT},),
benderscut,
)
end
function SCIPbenderscutGetSetupTime(benderscut)
ccall(
(:SCIPbenderscutGetSetupTime, libscip),
Cdouble,
(Ptr{SCIP_BENDERSCUT},),
benderscut,
)
end
function SCIPbenderscutGetTime(benderscut)
ccall(
(:SCIPbenderscutGetTime, libscip),
Cdouble,
(Ptr{SCIP_BENDERSCUT},),
benderscut,
)
end
function SCIPbenderscutIsLPCut(benderscut)
ccall(
(:SCIPbenderscutIsLPCut, libscip),
Cuint,
(Ptr{SCIP_BENDERSCUT},),
benderscut,
)
end
function SCIPbenderscutSetEnabled(benderscut, enabled)
ccall(
(:SCIPbenderscutSetEnabled, libscip),
Cvoid,
(Ptr{SCIP_BENDERSCUT}, Cuint),
benderscut,
enabled,
)
end
function SCIPbranchruleComp(elem1, elem2)
ccall(
(:SCIPbranchruleComp, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPbranchruleCompName(elem1, elem2)
ccall(
(:SCIPbranchruleCompName, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPbranchruleGetData(branchrule)
ccall(
(:SCIPbranchruleGetData, libscip),
Ptr{SCIP_BRANCHRULEDATA},
(Ptr{SCIP_BRANCHRULE},),
branchrule,
)
end
function SCIPbranchruleSetData(branchrule, branchruledata)
ccall(
(:SCIPbranchruleSetData, libscip),
Cvoid,
(Ptr{SCIP_BRANCHRULE}, Ptr{SCIP_BRANCHRULEDATA}),
branchrule,
branchruledata,
)
end
function SCIPbranchruleGetName(branchrule)
ccall(
(:SCIPbranchruleGetName, libscip),
Ptr{Cchar},
(Ptr{SCIP_BRANCHRULE},),
branchrule,
)
end
function SCIPbranchruleGetDesc(branchrule)
ccall(
(:SCIPbranchruleGetDesc, libscip),
Ptr{Cchar},
(Ptr{SCIP_BRANCHRULE},),
branchrule,
)
end
function SCIPbranchruleGetPriority(branchrule)
ccall(
(:SCIPbranchruleGetPriority, libscip),
Cint,
(Ptr{SCIP_BRANCHRULE},),
branchrule,
)
end
function SCIPbranchruleGetMaxdepth(branchrule)
ccall(
(:SCIPbranchruleGetMaxdepth, libscip),
Cint,
(Ptr{SCIP_BRANCHRULE},),
branchrule,
)
end
function SCIPbranchruleGetMaxbounddist(branchrule)
ccall(
(:SCIPbranchruleGetMaxbounddist, libscip),
Cdouble,
(Ptr{SCIP_BRANCHRULE},),
branchrule,
)
end
function SCIPbranchruleGetSetupTime(branchrule)
ccall(
(:SCIPbranchruleGetSetupTime, libscip),
Cdouble,
(Ptr{SCIP_BRANCHRULE},),
branchrule,
)
end
function SCIPbranchruleGetTime(branchrule)
ccall(
(:SCIPbranchruleGetTime, libscip),
Cdouble,
(Ptr{SCIP_BRANCHRULE},),
branchrule,
)
end
function SCIPbranchruleGetNLPCalls(branchrule)
ccall(
(:SCIPbranchruleGetNLPCalls, libscip),
Clonglong,
(Ptr{SCIP_BRANCHRULE},),
branchrule,
)
end
function SCIPbranchruleGetNExternCalls(branchrule)
ccall(
(:SCIPbranchruleGetNExternCalls, libscip),
Clonglong,
(Ptr{SCIP_BRANCHRULE},),
branchrule,
)
end
function SCIPbranchruleGetNPseudoCalls(branchrule)
ccall(
(:SCIPbranchruleGetNPseudoCalls, libscip),
Clonglong,
(Ptr{SCIP_BRANCHRULE},),
branchrule,
)
end
function SCIPbranchruleGetNCutoffs(branchrule)
ccall(
(:SCIPbranchruleGetNCutoffs, libscip),
Clonglong,
(Ptr{SCIP_BRANCHRULE},),
branchrule,
)
end
function SCIPbranchruleGetNCutsFound(branchrule)
ccall(
(:SCIPbranchruleGetNCutsFound, libscip),
Clonglong,
(Ptr{SCIP_BRANCHRULE},),
branchrule,
)
end
function SCIPbranchruleGetNConssFound(branchrule)
ccall(
(:SCIPbranchruleGetNConssFound, libscip),
Clonglong,
(Ptr{SCIP_BRANCHRULE},),
branchrule,
)
end
function SCIPbranchruleGetNDomredsFound(branchrule)
ccall(
(:SCIPbranchruleGetNDomredsFound, libscip),
Clonglong,
(Ptr{SCIP_BRANCHRULE},),
branchrule,
)
end
function SCIPbranchruleGetNChildren(branchrule)
ccall(
(:SCIPbranchruleGetNChildren, libscip),
Clonglong,
(Ptr{SCIP_BRANCHRULE},),
branchrule,
)
end
function SCIPbranchruleIsInitialized(branchrule)
ccall(
(:SCIPbranchruleIsInitialized, libscip),
Cuint,
(Ptr{SCIP_BRANCHRULE},),
branchrule,
)
end
function SCIPcomprComp(elem1, elem2)
ccall(
(:SCIPcomprComp, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPcomprCompName(elem1, elem2)
ccall(
(:SCIPcomprCompName, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPcomprGetData(compr)
ccall(
(:SCIPcomprGetData, libscip),
Ptr{SCIP_COMPRDATA},
(Ptr{SCIP_COMPR},),
compr,
)
end
function SCIPcomprSetData(compr, comprdata)
ccall(
(:SCIPcomprSetData, libscip),
Cvoid,
(Ptr{SCIP_COMPR}, Ptr{SCIP_COMPRDATA}),
compr,
comprdata,
)
end
function SCIPcomprGetName(heur)
ccall((:SCIPcomprGetName, libscip), Ptr{Cchar}, (Ptr{SCIP_COMPR},), heur)
end
function SCIPcomprGetDesc(compr)
ccall((:SCIPcomprGetDesc, libscip), Ptr{Cchar}, (Ptr{SCIP_COMPR},), compr)
end
function SCIPcomprGetPriority(compr)
ccall((:SCIPcomprGetPriority, libscip), Cint, (Ptr{SCIP_COMPR},), compr)
end
function SCIPcomprGetMinNodes(compr)
ccall((:SCIPcomprGetMinNodes, libscip), Cint, (Ptr{SCIP_COMPR},), compr)
end
function SCIPcomprGetNCalls(compr)
ccall((:SCIPcomprGetNCalls, libscip), Clonglong, (Ptr{SCIP_COMPR},), compr)
end
function SCIPcomprGetNFound(compr)
ccall((:SCIPcomprGetNFound, libscip), Clonglong, (Ptr{SCIP_COMPR},), compr)
end
function SCIPcomprIsInitialized(compr)
ccall((:SCIPcomprIsInitialized, libscip), Cuint, (Ptr{SCIP_COMPR},), compr)
end
function SCIPcomprGetSetupTime(compr)
ccall((:SCIPcomprGetSetupTime, libscip), Cdouble, (Ptr{SCIP_COMPR},), compr)
end
function SCIPcomprGetTime(compr)
ccall((:SCIPcomprGetTime, libscip), Cdouble, (Ptr{SCIP_COMPR},), compr)
end
function SCIPconflicthdlrComp(elem1, elem2)
ccall(
(:SCIPconflicthdlrComp, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPconflicthdlrCompName(elem1, elem2)
ccall(
(:SCIPconflicthdlrCompName, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPconflicthdlrGetData(conflicthdlr)
ccall(
(:SCIPconflicthdlrGetData, libscip),
Ptr{SCIP_CONFLICTHDLRDATA},
(Ptr{SCIP_CONFLICTHDLR},),
conflicthdlr,
)
end
function SCIPconflicthdlrSetData(conflicthdlr, conflicthdlrdata)
ccall(
(:SCIPconflicthdlrSetData, libscip),
Cvoid,
(Ptr{SCIP_CONFLICTHDLR}, Ptr{SCIP_CONFLICTHDLRDATA}),
conflicthdlr,
conflicthdlrdata,
)
end
function SCIPconflicthdlrGetName(conflicthdlr)
ccall(
(:SCIPconflicthdlrGetName, libscip),
Ptr{Cchar},
(Ptr{SCIP_CONFLICTHDLR},),
conflicthdlr,
)
end
function SCIPconflicthdlrGetDesc(conflicthdlr)
ccall(
(:SCIPconflicthdlrGetDesc, libscip),
Ptr{Cchar},
(Ptr{SCIP_CONFLICTHDLR},),
conflicthdlr,
)
end
function SCIPconflicthdlrGetPriority(conflicthdlr)
ccall(
(:SCIPconflicthdlrGetPriority, libscip),
Cint,
(Ptr{SCIP_CONFLICTHDLR},),
conflicthdlr,
)
end
function SCIPconflicthdlrIsInitialized(conflicthdlr)
ccall(
(:SCIPconflicthdlrIsInitialized, libscip),
Cuint,
(Ptr{SCIP_CONFLICTHDLR},),
conflicthdlr,
)
end
function SCIPconflicthdlrGetSetupTime(conflicthdlr)
ccall(
(:SCIPconflicthdlrGetSetupTime, libscip),
Cdouble,
(Ptr{SCIP_CONFLICTHDLR},),
conflicthdlr,
)
end
function SCIPconflicthdlrGetTime(conflicthdlr)
ccall(
(:SCIPconflicthdlrGetTime, libscip),
Cdouble,
(Ptr{SCIP_CONFLICTHDLR},),
conflicthdlr,
)
end
function SCIPconshdlrCompSepa(elem1, elem2)
ccall(
(:SCIPconshdlrCompSepa, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPconshdlrCompEnfo(elem1, elem2)
ccall(
(:SCIPconshdlrCompEnfo, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPconshdlrCompCheck(elem1, elem2)
ccall(
(:SCIPconshdlrCompCheck, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPconshdlrGetName(conshdlr)
ccall(
(:SCIPconshdlrGetName, libscip),
Ptr{Cchar},
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetDesc(conshdlr)
ccall(
(:SCIPconshdlrGetDesc, libscip),
Ptr{Cchar},
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetData(conshdlr)
ccall(
(:SCIPconshdlrGetData, libscip),
Ptr{SCIP_CONSHDLRDATA},
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrSetData(conshdlr, conshdlrdata)
ccall(
(:SCIPconshdlrSetData, libscip),
Cvoid,
(Ptr{SCIP_CONSHDLR}, Ptr{SCIP_CONSHDLRDATA}),
conshdlr,
conshdlrdata,
)
end
function SCIPconshdlrSetSepa(
conshdlr,
conssepalp,
conssepasol,
sepafreq,
sepapriority,
delaysepa,
)
ccall(
(:SCIPconshdlrSetSepa, libscip),
Cvoid,
(Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}, Ptr{Cvoid}, Cint, Cint, Cuint),
conshdlr,
conssepalp,
conssepasol,
sepafreq,
sepapriority,
delaysepa,
)
end
function SCIPconshdlrSetProp(
conshdlr,
consprop,
propfreq,
delayprop,
timingmask,
)
ccall(
(:SCIPconshdlrSetProp, libscip),
Cvoid,
(Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}, Cint, Cuint, SCIP_PROPTIMING),
conshdlr,
consprop,
propfreq,
delayprop,
timingmask,
)
end
function SCIPconshdlrSetEnforelax(conshdlr, consenforelax)
ccall(
(:SCIPconshdlrSetEnforelax, libscip),
Cvoid,
(Ptr{SCIP_CONSHDLR}, Ptr{Cvoid}),
conshdlr,
consenforelax,
)
end
function SCIPconshdlrGetConss(conshdlr)
ccall(
(:SCIPconshdlrGetConss, libscip),
Ptr{Ptr{SCIP_CONS}},
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetEnfoConss(conshdlr)
ccall(
(:SCIPconshdlrGetEnfoConss, libscip),
Ptr{Ptr{SCIP_CONS}},
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetCheckConss(conshdlr)
ccall(
(:SCIPconshdlrGetCheckConss, libscip),
Ptr{Ptr{SCIP_CONS}},
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetUpdateConss(conshdlr)
ccall(
(:SCIPconshdlrGetUpdateConss, libscip),
Ptr{Ptr{SCIP_CONS}},
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNConss(conshdlr)
ccall(
(:SCIPconshdlrGetNConss, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNEnfoConss(conshdlr)
ccall(
(:SCIPconshdlrGetNEnfoConss, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNCheckConss(conshdlr)
ccall(
(:SCIPconshdlrGetNCheckConss, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNActiveConss(conshdlr)
ccall(
(:SCIPconshdlrGetNActiveConss, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNEnabledConss(conshdlr)
ccall(
(:SCIPconshdlrGetNEnabledConss, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNUpdateConss(conshdlr)
ccall(
(:SCIPconshdlrGetNUpdateConss, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetSetupTime(conshdlr)
ccall(
(:SCIPconshdlrGetSetupTime, libscip),
Cdouble,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetPresolTime(conshdlr)
ccall(
(:SCIPconshdlrGetPresolTime, libscip),
Cdouble,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetSepaTime(conshdlr)
ccall(
(:SCIPconshdlrGetSepaTime, libscip),
Cdouble,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetEnfoLPTime(conshdlr)
ccall(
(:SCIPconshdlrGetEnfoLPTime, libscip),
Cdouble,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetEnfoPSTime(conshdlr)
ccall(
(:SCIPconshdlrGetEnfoPSTime, libscip),
Cdouble,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetEnfoRelaxTime(conshdlr)
ccall(
(:SCIPconshdlrGetEnfoRelaxTime, libscip),
Cdouble,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetPropTime(conshdlr)
ccall(
(:SCIPconshdlrGetPropTime, libscip),
Cdouble,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetStrongBranchPropTime(conshdlr)
ccall(
(:SCIPconshdlrGetStrongBranchPropTime, libscip),
Cdouble,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetCheckTime(conshdlr)
ccall(
(:SCIPconshdlrGetCheckTime, libscip),
Cdouble,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetRespropTime(conshdlr)
ccall(
(:SCIPconshdlrGetRespropTime, libscip),
Cdouble,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNSepaCalls(conshdlr)
ccall(
(:SCIPconshdlrGetNSepaCalls, libscip),
Clonglong,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNEnfoLPCalls(conshdlr)
ccall(
(:SCIPconshdlrGetNEnfoLPCalls, libscip),
Clonglong,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNEnfoPSCalls(conshdlr)
ccall(
(:SCIPconshdlrGetNEnfoPSCalls, libscip),
Clonglong,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNEnfoRelaxCalls(conshdlr)
ccall(
(:SCIPconshdlrGetNEnfoRelaxCalls, libscip),
Clonglong,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNPropCalls(conshdlr)
ccall(
(:SCIPconshdlrGetNPropCalls, libscip),
Clonglong,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNCheckCalls(conshdlr)
ccall(
(:SCIPconshdlrGetNCheckCalls, libscip),
Clonglong,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNRespropCalls(conshdlr)
ccall(
(:SCIPconshdlrGetNRespropCalls, libscip),
Clonglong,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNCutoffs(conshdlr)
ccall(
(:SCIPconshdlrGetNCutoffs, libscip),
Clonglong,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNCutsFound(conshdlr)
ccall(
(:SCIPconshdlrGetNCutsFound, libscip),
Clonglong,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNCutsApplied(conshdlr)
ccall(
(:SCIPconshdlrGetNCutsApplied, libscip),
Clonglong,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNConssFound(conshdlr)
ccall(
(:SCIPconshdlrGetNConssFound, libscip),
Clonglong,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNDomredsFound(conshdlr)
ccall(
(:SCIPconshdlrGetNDomredsFound, libscip),
Clonglong,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNChildren(conshdlr)
ccall(
(:SCIPconshdlrGetNChildren, libscip),
Clonglong,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetMaxNActiveConss(conshdlr)
ccall(
(:SCIPconshdlrGetMaxNActiveConss, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetStartNActiveConss(conshdlr)
ccall(
(:SCIPconshdlrGetStartNActiveConss, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNFixedVars(conshdlr)
ccall(
(:SCIPconshdlrGetNFixedVars, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNAggrVars(conshdlr)
ccall(
(:SCIPconshdlrGetNAggrVars, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNChgVarTypes(conshdlr)
ccall(
(:SCIPconshdlrGetNChgVarTypes, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNChgBds(conshdlr)
ccall(
(:SCIPconshdlrGetNChgBds, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNAddHoles(conshdlr)
ccall(
(:SCIPconshdlrGetNAddHoles, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNDelConss(conshdlr)
ccall(
(:SCIPconshdlrGetNDelConss, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNAddConss(conshdlr)
ccall(
(:SCIPconshdlrGetNAddConss, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNUpgdConss(conshdlr)
ccall(
(:SCIPconshdlrGetNUpgdConss, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNChgCoefs(conshdlr)
ccall(
(:SCIPconshdlrGetNChgCoefs, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNChgSides(conshdlr)
ccall(
(:SCIPconshdlrGetNChgSides, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetNPresolCalls(conshdlr)
ccall(
(:SCIPconshdlrGetNPresolCalls, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetSepaPriority(conshdlr)
ccall(
(:SCIPconshdlrGetSepaPriority, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetEnfoPriority(conshdlr)
ccall(
(:SCIPconshdlrGetEnfoPriority, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetCheckPriority(conshdlr)
ccall(
(:SCIPconshdlrGetCheckPriority, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetSepaFreq(conshdlr)
ccall(
(:SCIPconshdlrGetSepaFreq, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetPropFreq(conshdlr)
ccall(
(:SCIPconshdlrGetPropFreq, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetEagerFreq(conshdlr)
ccall(
(:SCIPconshdlrGetEagerFreq, libscip),
Cint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrNeedsCons(conshdlr)
ccall(
(:SCIPconshdlrNeedsCons, libscip),
Cuint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrDoesPresolve(conshdlr)
ccall(
(:SCIPconshdlrDoesPresolve, libscip),
Cuint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrIsSeparationDelayed(conshdlr)
ccall(
(:SCIPconshdlrIsSeparationDelayed, libscip),
Cuint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrIsPropagationDelayed(conshdlr)
ccall(
(:SCIPconshdlrIsPropagationDelayed, libscip),
Cuint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrWasLPSeparationDelayed(conshdlr)
ccall(
(:SCIPconshdlrWasLPSeparationDelayed, libscip),
Cuint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrWasSolSeparationDelayed(conshdlr)
ccall(
(:SCIPconshdlrWasSolSeparationDelayed, libscip),
Cuint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrWasPropagationDelayed(conshdlr)
ccall(
(:SCIPconshdlrWasPropagationDelayed, libscip),
Cuint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrIsInitialized(conshdlr)
ccall(
(:SCIPconshdlrIsInitialized, libscip),
Cuint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrIsClonable(conshdlr)
ccall(
(:SCIPconshdlrIsClonable, libscip),
Cuint,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrGetPropTiming(conshdlr)
ccall(
(:SCIPconshdlrGetPropTiming, libscip),
SCIP_PROPTIMING,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconssetchgGetAddedConsData(conssetchg, conss, nconss)
ccall(
(:SCIPconssetchgGetAddedConsData, libscip),
Cvoid,
(Ptr{SCIP_CONSSETCHG}, Ptr{Ptr{Ptr{SCIP_CONS}}}, Ptr{Cint}),
conssetchg,
conss,
nconss,
)
end
function SCIPconshdlrSetPropTiming(conshdlr, proptiming)
ccall(
(:SCIPconshdlrSetPropTiming, libscip),
Cvoid,
(Ptr{SCIP_CONSHDLR}, SCIP_PROPTIMING),
conshdlr,
proptiming,
)
end
function SCIPconshdlrGetPresolTiming(conshdlr)
ccall(
(:SCIPconshdlrGetPresolTiming, libscip),
SCIP_PRESOLTIMING,
(Ptr{SCIP_CONSHDLR},),
conshdlr,
)
end
function SCIPconshdlrSetPresolTiming(conshdlr, presoltiming)
ccall(
(:SCIPconshdlrSetPresolTiming, libscip),
Cvoid,
(Ptr{SCIP_CONSHDLR}, SCIP_PRESOLTIMING),
conshdlr,
presoltiming,
)
end
function SCIPconsGetName(cons)
ccall((:SCIPconsGetName, libscip), Ptr{Cchar}, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsGetPos(cons)
ccall((:SCIPconsGetPos, libscip), Cint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsGetHdlr(cons)
ccall(
(:SCIPconsGetHdlr, libscip),
Ptr{SCIP_CONSHDLR},
(Ptr{SCIP_CONS},),
cons,
)
end
function SCIPconsGetData(cons)
ccall(
(:SCIPconsGetData, libscip),
Ptr{SCIP_CONSDATA},
(Ptr{SCIP_CONS},),
cons,
)
end
function SCIPconsGetNUses(cons)
ccall((:SCIPconsGetNUses, libscip), Cint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsGetActiveDepth(cons)
ccall((:SCIPconsGetActiveDepth, libscip), Cint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsGetValidDepth(cons)
ccall((:SCIPconsGetValidDepth, libscip), Cint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsActive(cons)
ccall((:SCIPconsIsActive, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsUpdatedeactivate(cons)
ccall(
(:SCIPconsIsUpdatedeactivate, libscip),
Cuint,
(Ptr{SCIP_CONS},),
cons,
)
end
function SCIPconsIsEnabled(cons)
ccall((:SCIPconsIsEnabled, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsSeparationEnabled(cons)
ccall(
(:SCIPconsIsSeparationEnabled, libscip),
Cuint,
(Ptr{SCIP_CONS},),
cons,
)
end
function SCIPconsIsPropagationEnabled(cons)
ccall(
(:SCIPconsIsPropagationEnabled, libscip),
Cuint,
(Ptr{SCIP_CONS},),
cons,
)
end
function SCIPconsIsDeleted(cons)
ccall((:SCIPconsIsDeleted, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsObsolete(cons)
ccall((:SCIPconsIsObsolete, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsConflict(cons)
ccall((:SCIPconsIsConflict, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsGetAge(cons)
ccall((:SCIPconsGetAge, libscip), Cdouble, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsInitial(cons)
ccall((:SCIPconsIsInitial, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsSeparated(cons)
ccall((:SCIPconsIsSeparated, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsEnforced(cons)
ccall((:SCIPconsIsEnforced, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsChecked(cons)
ccall((:SCIPconsIsChecked, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsMarkedPropagate(cons)
ccall((:SCIPconsIsMarkedPropagate, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsPropagated(cons)
ccall((:SCIPconsIsPropagated, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsGlobal(cons)
ccall((:SCIPconsIsGlobal, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsLocal(cons)
ccall((:SCIPconsIsLocal, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsModifiable(cons)
ccall((:SCIPconsIsModifiable, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsDynamic(cons)
ccall((:SCIPconsIsDynamic, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsRemovable(cons)
ccall((:SCIPconsIsRemovable, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsStickingAtNode(cons)
ccall((:SCIPconsIsStickingAtNode, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsInProb(cons)
ccall((:SCIPconsIsInProb, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsOriginal(cons)
ccall((:SCIPconsIsOriginal, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsTransformed(cons)
ccall((:SCIPconsIsTransformed, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsLockedPos(cons)
ccall((:SCIPconsIsLockedPos, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsLockedNeg(cons)
ccall((:SCIPconsIsLockedNeg, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsLocked(cons)
ccall((:SCIPconsIsLocked, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsGetNLocksPos(cons)
ccall((:SCIPconsGetNLocksPos, libscip), Cint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsGetNLocksNeg(cons)
ccall((:SCIPconsGetNLocksNeg, libscip), Cint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsIsLockedTypePos(cons, locktype)
ccall(
(:SCIPconsIsLockedTypePos, libscip),
Cuint,
(Ptr{SCIP_CONS}, SCIP_LOCKTYPE),
cons,
locktype,
)
end
function SCIPconsIsLockedTypeNeg(cons, locktype)
ccall(
(:SCIPconsIsLockedTypeNeg, libscip),
Cuint,
(Ptr{SCIP_CONS}, SCIP_LOCKTYPE),
cons,
locktype,
)
end
function SCIPconsIsLockedType(cons, locktype)
ccall(
(:SCIPconsIsLockedType, libscip),
Cuint,
(Ptr{SCIP_CONS}, SCIP_LOCKTYPE),
cons,
locktype,
)
end
function SCIPconsGetNLocksTypePos(cons, locktype)
ccall(
(:SCIPconsGetNLocksTypePos, libscip),
Cint,
(Ptr{SCIP_CONS}, SCIP_LOCKTYPE),
cons,
locktype,
)
end
function SCIPconsGetNLocksTypeNeg(cons, locktype)
ccall(
(:SCIPconsGetNLocksTypeNeg, libscip),
Cint,
(Ptr{SCIP_CONS}, SCIP_LOCKTYPE),
cons,
locktype,
)
end
function SCIPconsIsAdded(cons)
ccall((:SCIPconsIsAdded, libscip), Cuint, (Ptr{SCIP_CONS},), cons)
end
function SCIPconsAddUpgradeLocks(cons, nlocks)
ccall(
(:SCIPconsAddUpgradeLocks, libscip),
Cvoid,
(Ptr{SCIP_CONS}, Cint),
cons,
nlocks,
)
end
function SCIPconsGetNUpgradeLocks(cons)
ccall((:SCIPconsGetNUpgradeLocks, libscip), Cint, (Ptr{SCIP_CONS},), cons)
end
function SCIPlinConsStatsCreate(scip, linconsstats)
ccall(
(:SCIPlinConsStatsCreate, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_LINCONSSTATS}}),
scip,
linconsstats,
)
end
function SCIPlinConsStatsFree(scip, linconsstats)
ccall(
(:SCIPlinConsStatsFree, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Ptr{SCIP_LINCONSSTATS}}),
scip,
linconsstats,
)
end
function SCIPlinConsStatsReset(linconsstats)
ccall(
(:SCIPlinConsStatsReset, libscip),
Cvoid,
(Ptr{SCIP_LINCONSSTATS},),
linconsstats,
)
end
function SCIPlinConsStatsGetTypeCount(linconsstats, linconstype)
ccall(
(:SCIPlinConsStatsGetTypeCount, libscip),
Cint,
(Ptr{SCIP_LINCONSSTATS}, SCIP_LINCONSTYPE),
linconsstats,
linconstype,
)
end
function SCIPlinConsStatsGetSum(linconsstats)
ccall(
(:SCIPlinConsStatsGetSum, libscip),
Cint,
(Ptr{SCIP_LINCONSSTATS},),
linconsstats,
)
end
function SCIPlinConsStatsIncTypeCount(linconsstats, linconstype, increment)
ccall(
(:SCIPlinConsStatsIncTypeCount, libscip),
Cvoid,
(Ptr{SCIP_LINCONSSTATS}, SCIP_LINCONSTYPE, Cint),
linconsstats,
linconstype,
increment,
)
end
function SCIPprintLinConsStats(scip, file, linconsstats)
ccall(
(:SCIPprintLinConsStats, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Libc.FILE}, Ptr{SCIP_LINCONSSTATS}),
scip,
file,
linconsstats,
)
end
function SCIPcutGetRow(cut)
ccall((:SCIPcutGetRow, libscip), Ptr{SCIP_ROW}, (Ptr{SCIP_CUT},), cut)
end
function SCIPcutGetAge(cut)
ccall((:SCIPcutGetAge, libscip), Cint, (Ptr{SCIP_CUT},), cut)
end
function SCIPcutGetLPActivityQuot(cut)
ccall((:SCIPcutGetLPActivityQuot, libscip), Cdouble, (Ptr{SCIP_CUT},), cut)
end
function SCIPcutpoolGetCuts(cutpool)
ccall(
(:SCIPcutpoolGetCuts, libscip),
Ptr{Ptr{SCIP_CUT}},
(Ptr{SCIP_CUTPOOL},),
cutpool,
)
end
function SCIPcutpoolGetNCuts(cutpool)
ccall((:SCIPcutpoolGetNCuts, libscip), Cint, (Ptr{SCIP_CUTPOOL},), cutpool)
end
function SCIPcutpoolGetMaxNCuts(cutpool)
ccall(
(:SCIPcutpoolGetMaxNCuts, libscip),
Cint,
(Ptr{SCIP_CUTPOOL},),
cutpool,
)
end
function SCIPcutpoolGetTime(cutpool)
ccall(
(:SCIPcutpoolGetTime, libscip),
Cdouble,
(Ptr{SCIP_CUTPOOL},),
cutpool,
)
end
function SCIPcutpoolGetNCalls(cutpool)
ccall(
(:SCIPcutpoolGetNCalls, libscip),
Clonglong,
(Ptr{SCIP_CUTPOOL},),
cutpool,
)
end
function SCIPcutpoolGetNCutsFound(cutpool)
ccall(
(:SCIPcutpoolGetNCutsFound, libscip),
Clonglong,
(Ptr{SCIP_CUTPOOL},),
cutpool,
)
end
function SCIPcutselGetName(cutsel)
ccall(
(:SCIPcutselGetName, libscip),
Ptr{Cchar},
(Ptr{SCIP_CUTSEL},),
cutsel,
)
end
function SCIPcutselGetData(cutsel)
ccall(
(:SCIPcutselGetData, libscip),
Ptr{SCIP_CUTSELDATA},
(Ptr{SCIP_CUTSEL},),
cutsel,
)
end
function SCIPcutselGetDesc(cutsel)
ccall(
(:SCIPcutselGetDesc, libscip),
Ptr{Cchar},
(Ptr{SCIP_CUTSEL},),
cutsel,
)
end
function SCIPcutselGetPriority(cutsel)
ccall((:SCIPcutselGetPriority, libscip), Cint, (Ptr{SCIP_CUTSEL},), cutsel)
end
function SCIPcutselSetData(cutsel, cutseldata)
ccall(
(:SCIPcutselSetData, libscip),
Cvoid,
(Ptr{SCIP_CUTSEL}, Ptr{SCIP_CUTSELDATA}),
cutsel,
cutseldata,
)
end
function SCIPcutselIsInitialized(cutsel)
ccall(
(:SCIPcutselIsInitialized, libscip),
Cuint,
(Ptr{SCIP_CUTSEL},),
cutsel,
)
end
function SCIPcutselGetSetupTime(cutsel)
ccall(
(:SCIPcutselGetSetupTime, libscip),
Cdouble,
(Ptr{SCIP_CUTSEL},),
cutsel,
)
end
function SCIPcutselGetTime(cutsel)
ccall((:SCIPcutselGetTime, libscip), Cdouble, (Ptr{SCIP_CUTSEL},), cutsel)
end
function SCIPcutselComp(elem1, elem2)
ccall(
(:SCIPcutselComp, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPdecompCreate(decomp, blkmem, nblocks, original, benderslabels)
ccall(
(:SCIPdecompCreate, libscip),
SCIP_RETCODE,
(Ptr{Ptr{SCIP_DECOMP}}, Ptr{BMS_BLKMEM}, Cint, Cuint, Cuint),
decomp,
blkmem,
nblocks,
original,
benderslabels,
)
end
function SCIPdecompFree(decomp, blkmem)
ccall(
(:SCIPdecompFree, libscip),
Cvoid,
(Ptr{Ptr{SCIP_DECOMP}}, Ptr{BMS_BLKMEM}),
decomp,
blkmem,
)
end
function SCIPdecompIsOriginal(decomp)
ccall((:SCIPdecompIsOriginal, libscip), Cuint, (Ptr{SCIP_DECOMP},), decomp)
end
function SCIPdecompSetUseBendersLabels(decomp, benderslabels)
ccall(
(:SCIPdecompSetUseBendersLabels, libscip),
Cvoid,
(Ptr{SCIP_DECOMP}, Cuint),
decomp,
benderslabels,
)
end
function SCIPdecompUseBendersLabels(decomp)
ccall(
(:SCIPdecompUseBendersLabels, libscip),
Cuint,
(Ptr{SCIP_DECOMP},),
decomp,
)
end
function SCIPdecompGetNBlocks(decomp)
ccall((:SCIPdecompGetNBlocks, libscip), Cint, (Ptr{SCIP_DECOMP},), decomp)
end
function SCIPdecompGetAreaScore(decomp)
ccall(
(:SCIPdecompGetAreaScore, libscip),
Cdouble,
(Ptr{SCIP_DECOMP},),
decomp,
)
end
function SCIPdecompGetModularity(decomp)
ccall(
(:SCIPdecompGetModularity, libscip),
Cdouble,
(Ptr{SCIP_DECOMP},),
decomp,
)
end
function SCIPdecompGetVarsSize(decomp, varssize, nblocks)
ccall(
(:SCIPdecompGetVarsSize, libscip),
SCIP_RETCODE,
(Ptr{SCIP_DECOMP}, Ptr{Cint}, Cint),
decomp,
varssize,
nblocks,
)
end
function SCIPdecompGetConssSize(decomp, consssize, nblocks)
ccall(
(:SCIPdecompGetConssSize, libscip),
SCIP_RETCODE,
(Ptr{SCIP_DECOMP}, Ptr{Cint}, Cint),
decomp,
consssize,
nblocks,
)
end
function SCIPdecompGetNBorderVars(decomp)
ccall(
(:SCIPdecompGetNBorderVars, libscip),
Cint,
(Ptr{SCIP_DECOMP},),
decomp,
)
end
function SCIPdecompGetNBorderConss(decomp)
ccall(
(:SCIPdecompGetNBorderConss, libscip),
Cint,
(Ptr{SCIP_DECOMP},),
decomp,
)
end
function SCIPdecompGetNBlockGraphEdges(decomp)
ccall(
(:SCIPdecompGetNBlockGraphEdges, libscip),
Cint,
(Ptr{SCIP_DECOMP},),
decomp,
)
end
function SCIPdecompGetNBlockGraphComponents(decomp)
ccall(
(:SCIPdecompGetNBlockGraphComponents, libscip),
Cint,
(Ptr{SCIP_DECOMP},),
decomp,
)
end
function SCIPdecompGetNBlockGraphArticulations(decomp)
ccall(
(:SCIPdecompGetNBlockGraphArticulations, libscip),
Cint,
(Ptr{SCIP_DECOMP},),
decomp,
)
end
function SCIPdecompGetBlockGraphMaxDegree(decomp)
ccall(
(:SCIPdecompGetBlockGraphMaxDegree, libscip),
Cint,
(Ptr{SCIP_DECOMP},),
decomp,
)
end
function SCIPdecompGetBlockGraphMinDegree(decomp)
ccall(
(:SCIPdecompGetBlockGraphMinDegree, libscip),
Cint,
(Ptr{SCIP_DECOMP},),
decomp,
)
end
function SCIPdecompSetVarsLabels(decomp, vars, labels, nvars)
ccall(
(:SCIPdecompSetVarsLabels, libscip),
SCIP_RETCODE,
(Ptr{SCIP_DECOMP}, Ptr{Ptr{SCIP_VAR}}, Ptr{Cint}, Cint),
decomp,
vars,
labels,
nvars,
)
end
function SCIPdecompGetVarsLabels(decomp, vars, labels, nvars)
ccall(
(:SCIPdecompGetVarsLabels, libscip),
Cvoid,
(Ptr{SCIP_DECOMP}, Ptr{Ptr{SCIP_VAR}}, Ptr{Cint}, Cint),
decomp,
vars,
labels,
nvars,
)
end
function SCIPdecompSetConsLabels(decomp, conss, labels, nconss)
ccall(
(:SCIPdecompSetConsLabels, libscip),
SCIP_RETCODE,
(Ptr{SCIP_DECOMP}, Ptr{Ptr{SCIP_CONS}}, Ptr{Cint}, Cint),
decomp,
conss,
labels,
nconss,
)
end
function SCIPdecompGetConsLabels(decomp, conss, labels, nconss)
ccall(
(:SCIPdecompGetConsLabels, libscip),
Cvoid,
(Ptr{SCIP_DECOMP}, Ptr{Ptr{SCIP_CONS}}, Ptr{Cint}, Cint),
decomp,
conss,
labels,
nconss,
)
end
function SCIPdecompClear(decomp, clearvarlabels, clearconslabels)
ccall(
(:SCIPdecompClear, libscip),
SCIP_RETCODE,
(Ptr{SCIP_DECOMP}, Cuint, Cuint),
decomp,
clearvarlabels,
clearconslabels,
)
end
function SCIPdecompPrintStats(decomp, strbuf)
ccall(
(:SCIPdecompPrintStats, libscip),
Ptr{Cchar},
(Ptr{SCIP_DECOMP}, Ptr{Cchar}),
decomp,
strbuf,
)
end
function SCIPdialoghdlrGetRoot(dialoghdlr)
ccall(
(:SCIPdialoghdlrGetRoot, libscip),
Ptr{SCIP_DIALOG},
(Ptr{SCIP_DIALOGHDLR},),
dialoghdlr,
)
end
function SCIPdialoghdlrClearBuffer(dialoghdlr)
ccall(
(:SCIPdialoghdlrClearBuffer, libscip),
Cvoid,
(Ptr{SCIP_DIALOGHDLR},),
dialoghdlr,
)
end
function SCIPdialoghdlrIsBufferEmpty(dialoghdlr)
ccall(
(:SCIPdialoghdlrIsBufferEmpty, libscip),
Cuint,
(Ptr{SCIP_DIALOGHDLR},),
dialoghdlr,
)
end
function SCIPdialoghdlrGetLine(dialoghdlr, dialog, prompt, inputline, endoffile)
ccall(
(:SCIPdialoghdlrGetLine, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_DIALOGHDLR},
Ptr{SCIP_DIALOG},
Ptr{Cchar},
Ptr{Ptr{Cchar}},
Ptr{Cuint},
),
dialoghdlr,
dialog,
prompt,
inputline,
endoffile,
)
end
function SCIPdialoghdlrGetWord(dialoghdlr, dialog, prompt, inputword, endoffile)
ccall(
(:SCIPdialoghdlrGetWord, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_DIALOGHDLR},
Ptr{SCIP_DIALOG},
Ptr{Cchar},
Ptr{Ptr{Cchar}},
Ptr{Cuint},
),
dialoghdlr,
dialog,
prompt,
inputword,
endoffile,
)
end
function SCIPdialoghdlrAddInputLine(dialoghdlr, inputline)
ccall(
(:SCIPdialoghdlrAddInputLine, libscip),
SCIP_RETCODE,
(Ptr{SCIP_DIALOGHDLR}, Ptr{Cchar}),
dialoghdlr,
inputline,
)
end
function SCIPdialoghdlrAddHistory(dialoghdlr, dialog, command, escapecommand)
ccall(
(:SCIPdialoghdlrAddHistory, libscip),
SCIP_RETCODE,
(Ptr{SCIP_DIALOGHDLR}, Ptr{SCIP_DIALOG}, Ptr{Cchar}, Cuint),
dialoghdlr,
dialog,
command,
escapecommand,
)
end
function SCIPdialogHasEntry(dialog, entryname)
ccall(
(:SCIPdialogHasEntry, libscip),
Cuint,
(Ptr{SCIP_DIALOG}, Ptr{Cchar}),
dialog,
entryname,
)
end
function SCIPdialogFindEntry(dialog, entryname, subdialog)
ccall(
(:SCIPdialogFindEntry, libscip),
Cint,
(Ptr{SCIP_DIALOG}, Ptr{Cchar}, Ptr{Ptr{SCIP_DIALOG}}),
dialog,
entryname,
subdialog,
)
end
function SCIPdialogDisplayMenu(dialog, scip)
ccall(
(:SCIPdialogDisplayMenu, libscip),
SCIP_RETCODE,
(Ptr{SCIP_DIALOG}, Ptr{SCIP}),
dialog,
scip,
)
end
function SCIPdialogDisplayMenuEntry(dialog, scip)
ccall(
(:SCIPdialogDisplayMenuEntry, libscip),
SCIP_RETCODE,
(Ptr{SCIP_DIALOG}, Ptr{SCIP}),
dialog,
scip,
)
end
function SCIPdialogDisplayCompletions(dialog, scip, entryname)
ccall(
(:SCIPdialogDisplayCompletions, libscip),
SCIP_RETCODE,
(Ptr{SCIP_DIALOG}, Ptr{SCIP}, Ptr{Cchar}),
dialog,
scip,
entryname,
)
end
function SCIPdialogGetPath(dialog, sepchar, path)
ccall(
(:SCIPdialogGetPath, libscip),
Cvoid,
(Ptr{SCIP_DIALOG}, Cchar, Ptr{Cchar}),
dialog,
sepchar,
path,
)
end
function SCIPdialogGetName(dialog)
ccall(
(:SCIPdialogGetName, libscip),
Ptr{Cchar},
(Ptr{SCIP_DIALOG},),
dialog,
)
end
function SCIPdialogGetDesc(dialog)
ccall(
(:SCIPdialogGetDesc, libscip),
Ptr{Cchar},
(Ptr{SCIP_DIALOG},),
dialog,
)
end
function SCIPdialogIsSubmenu(dialog)
ccall((:SCIPdialogIsSubmenu, libscip), Cuint, (Ptr{SCIP_DIALOG},), dialog)
end
function SCIPdialogGetParent(dialog)
ccall(
(:SCIPdialogGetParent, libscip),
Ptr{SCIP_DIALOG},
(Ptr{SCIP_DIALOG},),
dialog,
)
end
function SCIPdialogGetSubdialogs(dialog)
ccall(
(:SCIPdialogGetSubdialogs, libscip),
Ptr{Ptr{SCIP_DIALOG}},
(Ptr{SCIP_DIALOG},),
dialog,
)
end
function SCIPdialogGetNSubdialogs(dialog)
ccall(
(:SCIPdialogGetNSubdialogs, libscip),
Cint,
(Ptr{SCIP_DIALOG},),
dialog,
)
end
function SCIPdialogGetData(dialog)
ccall(
(:SCIPdialogGetData, libscip),
Ptr{SCIP_DIALOGDATA},
(Ptr{SCIP_DIALOG},),
dialog,
)
end
function SCIPdialogSetData(dialog, dialogdata)
ccall(
(:SCIPdialogSetData, libscip),
Cvoid,
(Ptr{SCIP_DIALOG}, Ptr{SCIP_DIALOGDATA}),
dialog,
dialogdata,
)
end
function SCIPdialogWriteHistory(filename)
ccall(
(:SCIPdialogWriteHistory, libscip),
SCIP_RETCODE,
(Ptr{Cchar},),
filename,
)
end
function SCIPdispGetData(disp)
ccall(
(:SCIPdispGetData, libscip),
Ptr{SCIP_DISPDATA},
(Ptr{SCIP_DISP},),
disp,
)
end
function SCIPdispSetData(disp, dispdata)
ccall(
(:SCIPdispSetData, libscip),
Cvoid,
(Ptr{SCIP_DISP}, Ptr{SCIP_DISPDATA}),
disp,
dispdata,
)
end
function SCIPdispGetName(disp)
ccall((:SCIPdispGetName, libscip), Ptr{Cchar}, (Ptr{SCIP_DISP},), disp)
end
function SCIPdispGetDesc(disp)
ccall((:SCIPdispGetDesc, libscip), Ptr{Cchar}, (Ptr{SCIP_DISP},), disp)
end
function SCIPdispGetHeader(disp)
ccall((:SCIPdispGetHeader, libscip), Ptr{Cchar}, (Ptr{SCIP_DISP},), disp)
end
function SCIPdispGetWidth(disp)
ccall((:SCIPdispGetWidth, libscip), Cint, (Ptr{SCIP_DISP},), disp)
end
function SCIPdispGetPriority(disp)
ccall((:SCIPdispGetPriority, libscip), Cint, (Ptr{SCIP_DISP},), disp)
end
function SCIPdispGetPosition(disp)
ccall((:SCIPdispGetPosition, libscip), Cint, (Ptr{SCIP_DISP},), disp)
end
function SCIPdispGetStatus(disp)
ccall(
(:SCIPdispGetStatus, libscip),
SCIP_DISPSTATUS,
(Ptr{SCIP_DISP},),
disp,
)
end
function SCIPdispIsInitialized(disp)
ccall((:SCIPdispIsInitialized, libscip), Cuint, (Ptr{SCIP_DISP},), disp)
end
function SCIPdispLongint(messagehdlr, file, val, width)
ccall(
(:SCIPdispLongint, libscip),
Cvoid,
(Ptr{SCIP_MESSAGEHDLR}, Ptr{Libc.FILE}, Clonglong, Cint),
messagehdlr,
file,
val,
width,
)
end
function SCIPdispInt(messagehdlr, file, val, width)
ccall(
(:SCIPdispInt, libscip),
Cvoid,
(Ptr{SCIP_MESSAGEHDLR}, Ptr{Libc.FILE}, Cint, Cint),
messagehdlr,
file,
val,
width,
)
end
function SCIPdispTime(messagehdlr, file, val, width)
ccall(
(:SCIPdispTime, libscip),
Cvoid,
(Ptr{SCIP_MESSAGEHDLR}, Ptr{Libc.FILE}, Cdouble, Cint),
messagehdlr,
file,
val,
width,
)
end
function SCIPeventhdlrGetName(eventhdlr)
ccall(
(:SCIPeventhdlrGetName, libscip),
Ptr{Cchar},
(Ptr{SCIP_EVENTHDLR},),
eventhdlr,
)
end
function SCIPeventhdlrGetData(eventhdlr)
ccall(
(:SCIPeventhdlrGetData, libscip),
Ptr{SCIP_EVENTHDLRDATA},
(Ptr{SCIP_EVENTHDLR},),
eventhdlr,
)
end
function SCIPeventhdlrSetData(eventhdlr, eventhdlrdata)
ccall(
(:SCIPeventhdlrSetData, libscip),
Cvoid,
(Ptr{SCIP_EVENTHDLR}, Ptr{SCIP_EVENTHDLRDATA}),
eventhdlr,
eventhdlrdata,
)
end
function SCIPeventhdlrIsInitialized(eventhdlr)
ccall(
(:SCIPeventhdlrIsInitialized, libscip),
Cuint,
(Ptr{SCIP_EVENTHDLR},),
eventhdlr,
)
end
function SCIPeventhdlrGetSetupTime(eventhdlr)
ccall(
(:SCIPeventhdlrGetSetupTime, libscip),
Cdouble,
(Ptr{SCIP_EVENTHDLR},),
eventhdlr,
)
end
function SCIPeventhdlrGetTime(eventhdlr)
ccall(
(:SCIPeventhdlrGetTime, libscip),
Cdouble,
(Ptr{SCIP_EVENTHDLR},),
eventhdlr,
)
end
function SCIPeventGetType(event)
ccall(
(:SCIPeventGetType, libscip),
SCIP_EVENTTYPE,
(Ptr{SCIP_EVENT},),
event,
)
end
function SCIPeventGetVar(event)
ccall((:SCIPeventGetVar, libscip), Ptr{SCIP_VAR}, (Ptr{SCIP_EVENT},), event)
end
function SCIPeventGetOldobj(event)
ccall((:SCIPeventGetOldobj, libscip), Cdouble, (Ptr{SCIP_EVENT},), event)
end
function SCIPeventGetNewobj(event)
ccall((:SCIPeventGetNewobj, libscip), Cdouble, (Ptr{SCIP_EVENT},), event)
end
function SCIPeventGetOldbound(event)
ccall((:SCIPeventGetOldbound, libscip), Cdouble, (Ptr{SCIP_EVENT},), event)
end
function SCIPeventGetNewbound(event)
ccall((:SCIPeventGetNewbound, libscip), Cdouble, (Ptr{SCIP_EVENT},), event)
end
function SCIPeventGetOldtype(event)
ccall(
(:SCIPeventGetOldtype, libscip),
SCIP_VARTYPE,
(Ptr{SCIP_EVENT},),
event,
)
end
function SCIPeventGetNewtype(event)
ccall(
(:SCIPeventGetNewtype, libscip),
SCIP_VARTYPE,
(Ptr{SCIP_EVENT},),
event,
)
end
function SCIPeventGetNode(event)
ccall(
(:SCIPeventGetNode, libscip),
Ptr{SCIP_NODE},
(Ptr{SCIP_EVENT},),
event,
)
end
function SCIPeventGetSol(event)
ccall((:SCIPeventGetSol, libscip), Ptr{SCIP_SOL}, (Ptr{SCIP_EVENT},), event)
end
function SCIPeventGetHoleLeft(event)
ccall((:SCIPeventGetHoleLeft, libscip), Cdouble, (Ptr{SCIP_EVENT},), event)
end
function SCIPeventGetHoleRight(event)
ccall((:SCIPeventGetHoleRight, libscip), Cdouble, (Ptr{SCIP_EVENT},), event)
end
function SCIPeventGetRow(event)
ccall((:SCIPeventGetRow, libscip), Ptr{SCIP_ROW}, (Ptr{SCIP_EVENT},), event)
end
function SCIPeventGetRowCol(event)
ccall(
(:SCIPeventGetRowCol, libscip),
Ptr{SCIP_COL},
(Ptr{SCIP_EVENT},),
event,
)
end
function SCIPeventGetRowOldCoefVal(event)
ccall(
(:SCIPeventGetRowOldCoefVal, libscip),
Cdouble,
(Ptr{SCIP_EVENT},),
event,
)
end
function SCIPeventGetRowNewCoefVal(event)
ccall(
(:SCIPeventGetRowNewCoefVal, libscip),
Cdouble,
(Ptr{SCIP_EVENT},),
event,
)
end
function SCIPeventGetRowOldConstVal(event)
ccall(
(:SCIPeventGetRowOldConstVal, libscip),
Cdouble,
(Ptr{SCIP_EVENT},),
event,
)
end
function SCIPeventGetRowNewConstVal(event)
ccall(
(:SCIPeventGetRowNewConstVal, libscip),
Cdouble,
(Ptr{SCIP_EVENT},),
event,
)
end
function SCIPeventGetRowSide(event)
ccall(
(:SCIPeventGetRowSide, libscip),
SCIP_SIDETYPE,
(Ptr{SCIP_EVENT},),
event,
)
end
function SCIPeventGetRowOldSideVal(event)
ccall(
(:SCIPeventGetRowOldSideVal, libscip),
Cdouble,
(Ptr{SCIP_EVENT},),
event,
)
end
function SCIPeventGetRowNewSideVal(event)
ccall(
(:SCIPeventGetRowNewSideVal, libscip),
Cdouble,
(Ptr{SCIP_EVENT},),
event,
)
end
function SCIPexprhdlrSetCopyFreeHdlr(exprhdlr, copyhdlr, freehdlr)
ccall(
(:SCIPexprhdlrSetCopyFreeHdlr, libscip),
Cvoid,
(Ptr{SCIP_EXPRHDLR}, Ptr{Cvoid}, Ptr{Cvoid}),
exprhdlr,
copyhdlr,
freehdlr,
)
end
function SCIPexprhdlrSetCopyFreeData(exprhdlr, copydata, freedata)
ccall(
(:SCIPexprhdlrSetCopyFreeData, libscip),
Cvoid,
(Ptr{SCIP_EXPRHDLR}, Ptr{Cvoid}, Ptr{Cvoid}),
exprhdlr,
copydata,
freedata,
)
end
function SCIPexprhdlrSetPrint(exprhdlr, print)
ccall(
(:SCIPexprhdlrSetPrint, libscip),
Cvoid,
(Ptr{SCIP_EXPRHDLR}, Ptr{Cvoid}),
exprhdlr,
print,
)
end
function SCIPexprhdlrSetParse(exprhdlr, parse)
ccall(
(:SCIPexprhdlrSetParse, libscip),
Cvoid,
(Ptr{SCIP_EXPRHDLR}, Ptr{Cvoid}),
exprhdlr,
parse,
)
end
function SCIPexprhdlrSetCurvature(exprhdlr, curvature)
ccall(
(:SCIPexprhdlrSetCurvature, libscip),
Cvoid,
(Ptr{SCIP_EXPRHDLR}, Ptr{Cvoid}),
exprhdlr,
curvature,
)
end
function SCIPexprhdlrSetMonotonicity(exprhdlr, monotonicity)
ccall(
(:SCIPexprhdlrSetMonotonicity, libscip),
Cvoid,
(Ptr{SCIP_EXPRHDLR}, Ptr{Cvoid}),
exprhdlr,
monotonicity,
)
end
function SCIPexprhdlrSetIntegrality(exprhdlr, integrality)
ccall(
(:SCIPexprhdlrSetIntegrality, libscip),
Cvoid,
(Ptr{SCIP_EXPRHDLR}, Ptr{Cvoid}),
exprhdlr,
integrality,
)
end
function SCIPexprhdlrSetHash(exprhdlr, hash)
ccall(
(:SCIPexprhdlrSetHash, libscip),
Cvoid,
(Ptr{SCIP_EXPRHDLR}, Ptr{Cvoid}),
exprhdlr,
hash,
)
end
function SCIPexprhdlrSetCompare(exprhdlr, compare)
ccall(
(:SCIPexprhdlrSetCompare, libscip),
Cvoid,
(Ptr{SCIP_EXPRHDLR}, Ptr{Cvoid}),
exprhdlr,
compare,
)
end
function SCIPexprhdlrSetDiff(exprhdlr, bwdiff, fwdiff, bwfwdiff)
ccall(
(:SCIPexprhdlrSetDiff, libscip),
Cvoid,
(Ptr{SCIP_EXPRHDLR}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}),
exprhdlr,
bwdiff,
fwdiff,
bwfwdiff,
)
end
function SCIPexprhdlrSetIntEval(exprhdlr, inteval)
ccall(
(:SCIPexprhdlrSetIntEval, libscip),
Cvoid,
(Ptr{SCIP_EXPRHDLR}, Ptr{Cvoid}),
exprhdlr,
inteval,
)
end
function SCIPexprhdlrSetSimplify(exprhdlr, simplify)
ccall(
(:SCIPexprhdlrSetSimplify, libscip),
Cvoid,
(Ptr{SCIP_EXPRHDLR}, Ptr{Cvoid}),
exprhdlr,
simplify,
)
end
function SCIPexprhdlrSetReverseProp(exprhdlr, reverseprop)
ccall(
(:SCIPexprhdlrSetReverseProp, libscip),
Cvoid,
(Ptr{SCIP_EXPRHDLR}, Ptr{Cvoid}),
exprhdlr,
reverseprop,
)
end
function SCIPexprhdlrSetEstimate(exprhdlr, initestimates, estimate)
ccall(
(:SCIPexprhdlrSetEstimate, libscip),
Cvoid,
(Ptr{SCIP_EXPRHDLR}, Ptr{Cvoid}, Ptr{Cvoid}),
exprhdlr,
initestimates,
estimate,
)
end
function SCIPexprhdlrGetName(exprhdlr)
ccall(
(:SCIPexprhdlrGetName, libscip),
Ptr{Cchar},
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrGetDescription(exprhdlr)
ccall(
(:SCIPexprhdlrGetDescription, libscip),
Ptr{Cchar},
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrGetPrecedence(exprhdlr)
ccall(
(:SCIPexprhdlrGetPrecedence, libscip),
Cuint,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrGetData(exprhdlr)
ccall(
(:SCIPexprhdlrGetData, libscip),
Ptr{SCIP_EXPRHDLRDATA},
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrHasPrint(exprhdlr)
ccall(
(:SCIPexprhdlrHasPrint, libscip),
Cuint,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrHasBwdiff(exprhdlr)
ccall(
(:SCIPexprhdlrHasBwdiff, libscip),
Cuint,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrHasFwdiff(exprhdlr)
ccall(
(:SCIPexprhdlrHasFwdiff, libscip),
Cuint,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrHasIntEval(exprhdlr)
ccall(
(:SCIPexprhdlrHasIntEval, libscip),
Cuint,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrHasEstimate(exprhdlr)
ccall(
(:SCIPexprhdlrHasEstimate, libscip),
Cuint,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrHasInitEstimates(exprhdlr)
ccall(
(:SCIPexprhdlrHasInitEstimates, libscip),
Cuint,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrHasSimplify(exprhdlr)
ccall(
(:SCIPexprhdlrHasSimplify, libscip),
Cuint,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrHasCurvature(exprhdlr)
ccall(
(:SCIPexprhdlrHasCurvature, libscip),
Cuint,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrHasMonotonicity(exprhdlr)
ccall(
(:SCIPexprhdlrHasMonotonicity, libscip),
Cuint,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrHasReverseProp(exprhdlr)
ccall(
(:SCIPexprhdlrHasReverseProp, libscip),
Cuint,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrComp(elem1, elem2)
ccall(
(:SCIPexprhdlrComp, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPexprhdlrGetNCreated(exprhdlr)
ccall(
(:SCIPexprhdlrGetNCreated, libscip),
Cuint,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrGetNIntevalCalls(exprhdlr)
ccall(
(:SCIPexprhdlrGetNIntevalCalls, libscip),
Clonglong,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrGetIntevalTime(exprhdlr)
ccall(
(:SCIPexprhdlrGetIntevalTime, libscip),
Cdouble,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrGetNReversepropCalls(exprhdlr)
ccall(
(:SCIPexprhdlrGetNReversepropCalls, libscip),
Clonglong,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrGetReversepropTime(exprhdlr)
ccall(
(:SCIPexprhdlrGetReversepropTime, libscip),
Cdouble,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrGetNCutoffs(exprhdlr)
ccall(
(:SCIPexprhdlrGetNCutoffs, libscip),
Clonglong,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrGetNDomainReductions(exprhdlr)
ccall(
(:SCIPexprhdlrGetNDomainReductions, libscip),
Clonglong,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrIncrementNDomainReductions(exprhdlr, nreductions)
ccall(
(:SCIPexprhdlrIncrementNDomainReductions, libscip),
Cvoid,
(Ptr{SCIP_EXPRHDLR}, Cint),
exprhdlr,
nreductions,
)
end
function SCIPexprhdlrGetNEstimateCalls(exprhdlr)
ccall(
(:SCIPexprhdlrGetNEstimateCalls, libscip),
Clonglong,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrGetEstimateTime(exprhdlr)
ccall(
(:SCIPexprhdlrGetEstimateTime, libscip),
Cdouble,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrGetNBranchings(exprhdlr)
ccall(
(:SCIPexprhdlrGetNBranchings, libscip),
Clonglong,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrIncrementNBranchings(exprhdlr)
ccall(
(:SCIPexprhdlrIncrementNBranchings, libscip),
Cvoid,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrGetNSimplifyCalls(exprhdlr)
ccall(
(:SCIPexprhdlrGetNSimplifyCalls, libscip),
Clonglong,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrGetSimplifyTime(exprhdlr)
ccall(
(:SCIPexprhdlrGetSimplifyTime, libscip),
Cdouble,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprhdlrGetNSimplifications(exprhdlr)
ccall(
(:SCIPexprhdlrGetNSimplifications, libscip),
Clonglong,
(Ptr{SCIP_EXPRHDLR},),
exprhdlr,
)
end
function SCIPexprGetNUses(expr)
ccall((:SCIPexprGetNUses, libscip), Cint, (Ptr{SCIP_EXPR},), expr)
end
function SCIPexprGetNChildren(expr)
ccall((:SCIPexprGetNChildren, libscip), Cint, (Ptr{SCIP_EXPR},), expr)
end
function SCIPexprGetChildren(expr)
ccall(
(:SCIPexprGetChildren, libscip),
Ptr{Ptr{SCIP_EXPR}},
(Ptr{SCIP_EXPR},),
expr,
)
end
function SCIPexprGetHdlr(expr)
ccall(
(:SCIPexprGetHdlr, libscip),
Ptr{SCIP_EXPRHDLR},
(Ptr{SCIP_EXPR},),
expr,
)
end
function SCIPexprGetData(expr)
ccall(
(:SCIPexprGetData, libscip),
Ptr{SCIP_EXPRDATA},
(Ptr{SCIP_EXPR},),
expr,
)
end
function SCIPexprSetData(expr, exprdata)
ccall(
(:SCIPexprSetData, libscip),
Cvoid,
(Ptr{SCIP_EXPR}, Ptr{SCIP_EXPRDATA}),
expr,
exprdata,
)
end
function SCIPexprGetOwnerData(expr)
ccall(
(:SCIPexprGetOwnerData, libscip),
Ptr{SCIP_EXPR_OWNERDATA},
(Ptr{SCIP_EXPR},),
expr,
)
end
function SCIPexprGetEvalValue(expr)
ccall((:SCIPexprGetEvalValue, libscip), Cdouble, (Ptr{SCIP_EXPR},), expr)
end
function SCIPexprGetEvalTag(expr)
ccall((:SCIPexprGetEvalTag, libscip), Clonglong, (Ptr{SCIP_EXPR},), expr)
end
function SCIPexprGetDerivative(expr)
ccall((:SCIPexprGetDerivative, libscip), Cdouble, (Ptr{SCIP_EXPR},), expr)
end
function SCIPexprGetDot(expr)
ccall((:SCIPexprGetDot, libscip), Cdouble, (Ptr{SCIP_EXPR},), expr)
end
function SCIPexprGetBardot(expr)
ccall((:SCIPexprGetBardot, libscip), Cdouble, (Ptr{SCIP_EXPR},), expr)
end
function SCIPexprGetDiffTag(expr)
ccall((:SCIPexprGetDiffTag, libscip), Clonglong, (Ptr{SCIP_EXPR},), expr)
end
function SCIPexprGetActivity(expr)
ccall(
(:SCIPexprGetActivity, libscip),
SCIP_INTERVAL,
(Ptr{SCIP_EXPR},),
expr,
)
end
function SCIPexprGetActivityTag(expr)
ccall(
(:SCIPexprGetActivityTag, libscip),
Clonglong,
(Ptr{SCIP_EXPR},),
expr,
)
end
function SCIPexprSetActivity(expr, activity, activitytag)
ccall(
(:SCIPexprSetActivity, libscip),
Cvoid,
(Ptr{SCIP_EXPR}, SCIP_INTERVAL, Clonglong),
expr,
activity,
activitytag,
)
end
function SCIPexprGetCurvature(expr)
ccall(
(:SCIPexprGetCurvature, libscip),
SCIP_EXPRCURV,
(Ptr{SCIP_EXPR},),
expr,
)
end
function SCIPexprSetCurvature(expr, curvature)
ccall(
(:SCIPexprSetCurvature, libscip),
Cvoid,
(Ptr{SCIP_EXPR}, SCIP_EXPRCURV),
expr,
curvature,
)
end
function SCIPexprIsIntegral(expr)
ccall((:SCIPexprIsIntegral, libscip), Cuint, (Ptr{SCIP_EXPR},), expr)
end
function SCIPexprSetIntegrality(expr, isintegral)
ccall(
(:SCIPexprSetIntegrality, libscip),
Cvoid,
(Ptr{SCIP_EXPR}, Cuint),
expr,
isintegral,
)
end
function SCIPexprGetQuadraticData(
expr,
constant,
nlinexprs,
linexprs,
lincoefs,
nquadexprs,
nbilinexprs,
eigenvalues,
eigenvectors,
)
ccall(
(:SCIPexprGetQuadraticData, libscip),
Cvoid,
(
Ptr{SCIP_EXPR},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Ptr{Ptr{SCIP_EXPR}}},
Ptr{Ptr{Cdouble}},
Ptr{Cint},
Ptr{Cint},
Ptr{Ptr{Cdouble}},
Ptr{Ptr{Cdouble}},
),
expr,
constant,
nlinexprs,
linexprs,
lincoefs,
nquadexprs,
nbilinexprs,
eigenvalues,
eigenvectors,
)
end
function SCIPexprGetQuadraticQuadTerm(
quadexpr,
termidx,
expr,
lincoef,
sqrcoef,
nadjbilin,
adjbilin,
sqrexpr,
)
ccall(
(:SCIPexprGetQuadraticQuadTerm, libscip),
Cvoid,
(
Ptr{SCIP_EXPR},
Cint,
Ptr{Ptr{SCIP_EXPR}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Ptr{Cint}},
Ptr{Ptr{SCIP_EXPR}},
),
quadexpr,
termidx,
expr,
lincoef,
sqrcoef,
nadjbilin,
adjbilin,
sqrexpr,
)
end
function SCIPexprGetQuadraticBilinTerm(
expr,
termidx,
expr1,
expr2,
coef,
pos2,
prodexpr,
)
ccall(
(:SCIPexprGetQuadraticBilinTerm, libscip),
Cvoid,
(
Ptr{SCIP_EXPR},
Cint,
Ptr{Ptr{SCIP_EXPR}},
Ptr{Ptr{SCIP_EXPR}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Ptr{SCIP_EXPR}},
),
expr,
termidx,
expr1,
expr2,
coef,
pos2,
prodexpr,
)
end
function SCIPexprAreQuadraticExprsVariables(expr)
ccall(
(:SCIPexprAreQuadraticExprsVariables, libscip),
Cuint,
(Ptr{SCIP_EXPR},),
expr,
)
end
function SCIPgetVarExprVar(expr)
ccall((:SCIPgetVarExprVar, libscip), Ptr{SCIP_VAR}, (Ptr{SCIP_EXPR},), expr)
end
function SCIPgetValueExprValue(expr)
ccall((:SCIPgetValueExprValue, libscip), Cdouble, (Ptr{SCIP_EXPR},), expr)
end
function SCIPgetCoefsExprSum(expr)
ccall(
(:SCIPgetCoefsExprSum, libscip),
Ptr{Cdouble},
(Ptr{SCIP_EXPR},),
expr,
)
end
function SCIPgetConstantExprSum(expr)
ccall((:SCIPgetConstantExprSum, libscip), Cdouble, (Ptr{SCIP_EXPR},), expr)
end
function SCIPgetCoefExprProduct(expr)
ccall((:SCIPgetCoefExprProduct, libscip), Cdouble, (Ptr{SCIP_EXPR},), expr)
end
function SCIPgetExponentExprPow(expr)
ccall((:SCIPgetExponentExprPow, libscip), Cdouble, (Ptr{SCIP_EXPR},), expr)
end
function SCIPexpriterIsInit(iterator)
ccall(
(:SCIPexpriterIsInit, libscip),
Cuint,
(Ptr{SCIP_EXPRITER},),
iterator,
)
end
function SCIPexpriterInit(iterator, expr, type, allowrevisit)
ccall(
(:SCIPexpriterInit, libscip),
SCIP_RETCODE,
(Ptr{SCIP_EXPRITER}, Ptr{SCIP_EXPR}, SCIP_EXPRITER_TYPE, Cuint),
iterator,
expr,
type,
allowrevisit,
)
end
function SCIPexpriterRestartDFS(iterator, expr)
ccall(
(:SCIPexpriterRestartDFS, libscip),
Ptr{SCIP_EXPR},
(Ptr{SCIP_EXPRITER}, Ptr{SCIP_EXPR}),
iterator,
expr,
)
end
function SCIPexpriterSetStagesDFS(iterator, stopstages)
ccall(
(:SCIPexpriterSetStagesDFS, libscip),
Cvoid,
(Ptr{SCIP_EXPRITER}, SCIP_EXPRITER_STAGE),
iterator,
stopstages,
)
end
function SCIPexpriterGetCurrent(iterator)
ccall(
(:SCIPexpriterGetCurrent, libscip),
Ptr{SCIP_EXPR},
(Ptr{SCIP_EXPRITER},),
iterator,
)
end
function SCIPexpriterGetStageDFS(iterator)
ccall(
(:SCIPexpriterGetStageDFS, libscip),
SCIP_EXPRITER_STAGE,
(Ptr{SCIP_EXPRITER},),
iterator,
)
end
function SCIPexpriterGetChildIdxDFS(iterator)
ccall(
(:SCIPexpriterGetChildIdxDFS, libscip),
Cint,
(Ptr{SCIP_EXPRITER},),
iterator,
)
end
function SCIPexpriterGetChildExprDFS(iterator)
ccall(
(:SCIPexpriterGetChildExprDFS, libscip),
Ptr{SCIP_EXPR},
(Ptr{SCIP_EXPRITER},),
iterator,
)
end
function SCIPexpriterGetParentDFS(iterator)
ccall(
(:SCIPexpriterGetParentDFS, libscip),
Ptr{SCIP_EXPR},
(Ptr{SCIP_EXPRITER},),
iterator,
)
end
function SCIPexpriterGetCurrentUserData(iterator)
ccall(
(:SCIPexpriterGetCurrentUserData, libscip),
SCIP_EXPRITER_USERDATA,
(Ptr{SCIP_EXPRITER},),
iterator,
)
end
function SCIPexpriterGetChildUserDataDFS(iterator)
ccall(
(:SCIPexpriterGetChildUserDataDFS, libscip),
SCIP_EXPRITER_USERDATA,
(Ptr{SCIP_EXPRITER},),
iterator,
)
end
function SCIPexpriterGetExprUserData(iterator, expr)
ccall(
(:SCIPexpriterGetExprUserData, libscip),
SCIP_EXPRITER_USERDATA,
(Ptr{SCIP_EXPRITER}, Ptr{SCIP_EXPR}),
iterator,
expr,
)
end
function SCIPexpriterSetCurrentUserData(iterator, userdata)
ccall(
(:SCIPexpriterSetCurrentUserData, libscip),
Cvoid,
(Ptr{SCIP_EXPRITER}, SCIP_EXPRITER_USERDATA),
iterator,
userdata,
)
end
function SCIPexpriterSetExprUserData(iterator, expr, userdata)
ccall(
(:SCIPexpriterSetExprUserData, libscip),
Cvoid,
(Ptr{SCIP_EXPRITER}, Ptr{SCIP_EXPR}, SCIP_EXPRITER_USERDATA),
iterator,
expr,
userdata,
)
end
function SCIPexpriterSetChildUserData(iterator, userdata)
ccall(
(:SCIPexpriterSetChildUserData, libscip),
Cvoid,
(Ptr{SCIP_EXPRITER}, SCIP_EXPRITER_USERDATA),
iterator,
userdata,
)
end
function SCIPexpriterGetNext(iterator)
ccall(
(:SCIPexpriterGetNext, libscip),
Ptr{SCIP_EXPR},
(Ptr{SCIP_EXPRITER},),
iterator,
)
end
function SCIPexpriterSkipDFS(iterator)
ccall(
(:SCIPexpriterSkipDFS, libscip),
Ptr{SCIP_EXPR},
(Ptr{SCIP_EXPRITER},),
iterator,
)
end
function SCIPexpriterIsEnd(iterator)
ccall((:SCIPexpriterIsEnd, libscip), Cuint, (Ptr{SCIP_EXPRITER},), iterator)
end
function SCIPexprcurvAdd(curv1, curv2)
ccall(
(:SCIPexprcurvAdd, libscip),
SCIP_EXPRCURV,
(SCIP_EXPRCURV, SCIP_EXPRCURV),
curv1,
curv2,
)
end
function SCIPexprcurvNegate(curvature)
ccall(
(:SCIPexprcurvNegate, libscip),
SCIP_EXPRCURV,
(SCIP_EXPRCURV,),
curvature,
)
end
function SCIPexprcurvMultiply(factor, curvature)
ccall(
(:SCIPexprcurvMultiply, libscip),
SCIP_EXPRCURV,
(Cdouble, SCIP_EXPRCURV),
factor,
curvature,
)
end
function SCIPexprcurvPower(basebounds, basecurv, exponent)
ccall(
(:SCIPexprcurvPower, libscip),
SCIP_EXPRCURV,
(SCIP_INTERVAL, SCIP_EXPRCURV, Cdouble),
basebounds,
basecurv,
exponent,
)
end
function SCIPexprcurvPowerInv(basebounds, exponent, powercurv)
ccall(
(:SCIPexprcurvPowerInv, libscip),
SCIP_EXPRCURV,
(SCIP_INTERVAL, Cdouble, SCIP_EXPRCURV),
basebounds,
exponent,
powercurv,
)
end
function SCIPexprcurvMonomial(
nfactors,
exponents,
factoridxs,
factorcurv,
factorbounds,
)
ccall(
(:SCIPexprcurvMonomial, libscip),
SCIP_EXPRCURV,
(Cint, Ptr{Cdouble}, Ptr{Cint}, Ptr{SCIP_EXPRCURV}, Ptr{SCIP_INTERVAL}),
nfactors,
exponents,
factoridxs,
factorcurv,
factorbounds,
)
end
function SCIPexprcurvMonomialInv(
monomialcurv,
nfactors,
exponents,
factorbounds,
factorcurv,
)
ccall(
(:SCIPexprcurvMonomialInv, libscip),
Cuint,
(
SCIP_EXPRCURV,
Cint,
Ptr{Cdouble},
Ptr{SCIP_INTERVAL},
Ptr{SCIP_EXPRCURV},
),
monomialcurv,
nfactors,
exponents,
factorbounds,
factorcurv,
)
end
function SCIPexprcurvGetName(curv)
ccall((:SCIPexprcurvGetName, libscip), Ptr{Cchar}, (SCIP_EXPRCURV,), curv)
end
const SCIP_File = Cvoid
const SCIP_FILE = SCIP_File
function SCIPfopen(path, mode)
ccall(
(:SCIPfopen, libscip),
Ptr{SCIP_FILE},
(Ptr{Cchar}, Ptr{Cchar}),
path,
mode,
)
end
function SCIPfdopen(fildes, mode)
ccall(
(:SCIPfdopen, libscip),
Ptr{SCIP_FILE},
(Cint, Ptr{Cchar}),
fildes,
mode,
)
end
function SCIPfread(ptr, size, nmemb, stream)
ccall(
(:SCIPfread, libscip),
Csize_t,
(Ptr{Cvoid}, Csize_t, Csize_t, Ptr{SCIP_FILE}),
ptr,
size,
nmemb,
stream,
)
end
function SCIPfwrite(ptr, size, nmemb, stream)
ccall(
(:SCIPfwrite, libscip),
Csize_t,
(Ptr{Cvoid}, Csize_t, Csize_t, Ptr{SCIP_FILE}),
ptr,
size,
nmemb,
stream,
)
end
function SCIPfputc(c, stream)
ccall((:SCIPfputc, libscip), Cint, (Cint, Ptr{SCIP_FILE}), c, stream)
end
function SCIPfputs(s, stream)
ccall((:SCIPfputs, libscip), Cint, (Ptr{Cchar}, Ptr{SCIP_FILE}), s, stream)
end
function SCIPfgetc(stream)
ccall((:SCIPfgetc, libscip), Cint, (Ptr{SCIP_FILE},), stream)
end
function SCIPfgets(s, size, stream)
ccall(
(:SCIPfgets, libscip),
Ptr{Cchar},
(Ptr{Cchar}, Cint, Ptr{SCIP_FILE}),
s,
size,
stream,
)
end
function SCIPfflush(stream)
ccall((:SCIPfflush, libscip), Cint, (Ptr{SCIP_FILE},), stream)
end
function SCIPfseek(stream, offset, whence)
ccall(
(:SCIPfseek, libscip),
Cint,
(Ptr{SCIP_FILE}, Clong, Cint),
stream,
offset,
whence,
)
end
function SCIPrewind(stream)
ccall((:SCIPrewind, libscip), Cvoid, (Ptr{SCIP_FILE},), stream)
end
function SCIPftell(stream)
ccall((:SCIPftell, libscip), Clong, (Ptr{SCIP_FILE},), stream)
end
function SCIPfeof(stream)
ccall((:SCIPfeof, libscip), Cint, (Ptr{SCIP_FILE},), stream)
end
function SCIPfclose(fp)
ccall((:SCIPfclose, libscip), Cint, (Ptr{SCIP_FILE},), fp)
end
function SCIPheurComp(elem1, elem2)
ccall(
(:SCIPheurComp, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPheurCompName(elem1, elem2)
ccall(
(:SCIPheurCompName, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPheurGetData(heur)
ccall(
(:SCIPheurGetData, libscip),
Ptr{SCIP_HEURDATA},
(Ptr{SCIP_HEUR},),
heur,
)
end
function SCIPheurSetData(heur, heurdata)
ccall(
(:SCIPheurSetData, libscip),
Cvoid,
(Ptr{SCIP_HEUR}, Ptr{SCIP_HEURDATA}),
heur,
heurdata,
)
end
function SCIPheurGetName(heur)
ccall((:SCIPheurGetName, libscip), Ptr{Cchar}, (Ptr{SCIP_HEUR},), heur)
end
function SCIPheurGetDesc(heur)
ccall((:SCIPheurGetDesc, libscip), Ptr{Cchar}, (Ptr{SCIP_HEUR},), heur)
end
function SCIPheurGetDispchar(heur)
ccall((:SCIPheurGetDispchar, libscip), Cchar, (Ptr{SCIP_HEUR},), heur)
end
function SCIPheurGetTimingmask(heur)
ccall(
(:SCIPheurGetTimingmask, libscip),
SCIP_HEURTIMING,
(Ptr{SCIP_HEUR},),
heur,
)
end
function SCIPheurSetTimingmask(heur, timingmask)
ccall(
(:SCIPheurSetTimingmask, libscip),
Cvoid,
(Ptr{SCIP_HEUR}, SCIP_HEURTIMING),
heur,
timingmask,
)
end
function SCIPheurUsesSubscip(heur)
ccall((:SCIPheurUsesSubscip, libscip), Cuint, (Ptr{SCIP_HEUR},), heur)
end
function SCIPheurGetPriority(heur)
ccall((:SCIPheurGetPriority, libscip), Cint, (Ptr{SCIP_HEUR},), heur)
end
function SCIPheurGetFreq(heur)
ccall((:SCIPheurGetFreq, libscip), Cint, (Ptr{SCIP_HEUR},), heur)
end
function SCIPheurSetFreq(heur, freq)
ccall(
(:SCIPheurSetFreq, libscip),
Cvoid,
(Ptr{SCIP_HEUR}, Cint),
heur,
freq,
)
end
function SCIPheurGetFreqofs(heur)
ccall((:SCIPheurGetFreqofs, libscip), Cint, (Ptr{SCIP_HEUR},), heur)
end
function SCIPheurGetMaxdepth(heur)
ccall((:SCIPheurGetMaxdepth, libscip), Cint, (Ptr{SCIP_HEUR},), heur)
end
function SCIPheurGetNCalls(heur)
ccall((:SCIPheurGetNCalls, libscip), Clonglong, (Ptr{SCIP_HEUR},), heur)
end
function SCIPheurGetNSolsFound(heur)
ccall((:SCIPheurGetNSolsFound, libscip), Clonglong, (Ptr{SCIP_HEUR},), heur)
end
function SCIPheurGetNBestSolsFound(heur)
ccall(
(:SCIPheurGetNBestSolsFound, libscip),
Clonglong,
(Ptr{SCIP_HEUR},),
heur,
)
end
function SCIPheurIsInitialized(heur)
ccall((:SCIPheurIsInitialized, libscip), Cuint, (Ptr{SCIP_HEUR},), heur)
end
function SCIPheurGetSetupTime(heur)
ccall((:SCIPheurGetSetupTime, libscip), Cdouble, (Ptr{SCIP_HEUR},), heur)
end
function SCIPheurGetTime(heur)
ccall((:SCIPheurGetTime, libscip), Cdouble, (Ptr{SCIP_HEUR},), heur)
end
function SCIPheurGetDivesets(heur)
ccall(
(:SCIPheurGetDivesets, libscip),
Ptr{Ptr{SCIP_DIVESET}},
(Ptr{SCIP_HEUR},),
heur,
)
end
function SCIPheurGetNDivesets(heur)
ccall((:SCIPheurGetNDivesets, libscip), Cint, (Ptr{SCIP_HEUR},), heur)
end
function SCIPdivesetGetHeur(diveset)
ccall(
(:SCIPdivesetGetHeur, libscip),
Ptr{SCIP_HEUR},
(Ptr{SCIP_DIVESET},),
diveset,
)
end
function SCIPdivesetGetWorkSolution(diveset)
ccall(
(:SCIPdivesetGetWorkSolution, libscip),
Ptr{SCIP_SOL},
(Ptr{SCIP_DIVESET},),
diveset,
)
end
function SCIPdivesetSetWorkSolution(diveset, sol)
ccall(
(:SCIPdivesetSetWorkSolution, libscip),
Cvoid,
(Ptr{SCIP_DIVESET}, Ptr{SCIP_SOL}),
diveset,
sol,
)
end
function SCIPdivesetGetName(diveset)
ccall(
(:SCIPdivesetGetName, libscip),
Ptr{Cchar},
(Ptr{SCIP_DIVESET},),
diveset,
)
end
function SCIPdivesetGetMinRelDepth(diveset)
ccall(
(:SCIPdivesetGetMinRelDepth, libscip),
Cdouble,
(Ptr{SCIP_DIVESET},),
diveset,
)
end
function SCIPdivesetGetMaxRelDepth(diveset)
ccall(
(:SCIPdivesetGetMaxRelDepth, libscip),
Cdouble,
(Ptr{SCIP_DIVESET},),
diveset,
)
end
function SCIPdivesetGetSolSuccess(diveset, divecontext)
ccall(
(:SCIPdivesetGetSolSuccess, libscip),
Clonglong,
(Ptr{SCIP_DIVESET}, SCIP_DIVECONTEXT),
diveset,
divecontext,
)
end
function SCIPdivesetGetNCalls(diveset, divecontext)
ccall(
(:SCIPdivesetGetNCalls, libscip),
Cint,
(Ptr{SCIP_DIVESET}, SCIP_DIVECONTEXT),
diveset,
divecontext,
)
end
function SCIPdivesetGetNSolutionCalls(diveset, divecontext)
ccall(
(:SCIPdivesetGetNSolutionCalls, libscip),
Cint,
(Ptr{SCIP_DIVESET}, SCIP_DIVECONTEXT),
diveset,
divecontext,
)
end
function SCIPdivesetGetMinDepth(diveset, divecontext)
ccall(
(:SCIPdivesetGetMinDepth, libscip),
Cint,
(Ptr{SCIP_DIVESET}, SCIP_DIVECONTEXT),
diveset,
divecontext,
)
end
function SCIPdivesetGetMaxDepth(diveset, divecontext)
ccall(
(:SCIPdivesetGetMaxDepth, libscip),
Cint,
(Ptr{SCIP_DIVESET}, SCIP_DIVECONTEXT),
diveset,
divecontext,
)
end
function SCIPdivesetGetAvgDepth(diveset, divecontext)
ccall(
(:SCIPdivesetGetAvgDepth, libscip),
Cdouble,
(Ptr{SCIP_DIVESET}, SCIP_DIVECONTEXT),
diveset,
divecontext,
)
end
function SCIPdivesetGetMinSolutionDepth(diveset, divecontext)
ccall(
(:SCIPdivesetGetMinSolutionDepth, libscip),
Cint,
(Ptr{SCIP_DIVESET}, SCIP_DIVECONTEXT),
diveset,
divecontext,
)
end
function SCIPdivesetGetMaxSolutionDepth(diveset, divecontext)
ccall(
(:SCIPdivesetGetMaxSolutionDepth, libscip),
Cint,
(Ptr{SCIP_DIVESET}, SCIP_DIVECONTEXT),
diveset,
divecontext,
)
end
function SCIPdivesetGetAvgSolutionDepth(diveset, divecontext)
ccall(
(:SCIPdivesetGetAvgSolutionDepth, libscip),
Cdouble,
(Ptr{SCIP_DIVESET}, SCIP_DIVECONTEXT),
diveset,
divecontext,
)
end
function SCIPdivesetGetNLPIterations(diveset, divecontext)
ccall(
(:SCIPdivesetGetNLPIterations, libscip),
Clonglong,
(Ptr{SCIP_DIVESET}, SCIP_DIVECONTEXT),
diveset,
divecontext,
)
end
function SCIPdivesetGetNProbingNodes(diveset, divecontext)
ccall(
(:SCIPdivesetGetNProbingNodes, libscip),
Clonglong,
(Ptr{SCIP_DIVESET}, SCIP_DIVECONTEXT),
diveset,
divecontext,
)
end
function SCIPdivesetGetNBacktracks(diveset, divecontext)
ccall(
(:SCIPdivesetGetNBacktracks, libscip),
Clonglong,
(Ptr{SCIP_DIVESET}, SCIP_DIVECONTEXT),
diveset,
divecontext,
)
end
function SCIPdivesetGetNConflicts(diveset, divecontext)
ccall(
(:SCIPdivesetGetNConflicts, libscip),
Clonglong,
(Ptr{SCIP_DIVESET}, SCIP_DIVECONTEXT),
diveset,
divecontext,
)
end
function SCIPdivesetGetNSols(diveset, divecontext)
ccall(
(:SCIPdivesetGetNSols, libscip),
Clonglong,
(Ptr{SCIP_DIVESET}, SCIP_DIVECONTEXT),
diveset,
divecontext,
)
end
function SCIPdivesetGetMaxLPIterQuot(diveset)
ccall(
(:SCIPdivesetGetMaxLPIterQuot, libscip),
Cdouble,
(Ptr{SCIP_DIVESET},),
diveset,
)
end
function SCIPdivesetGetMaxLPIterOffset(diveset)
ccall(
(:SCIPdivesetGetMaxLPIterOffset, libscip),
Cint,
(Ptr{SCIP_DIVESET},),
diveset,
)
end
function SCIPdivesetGetUbQuotNoSol(diveset)
ccall(
(:SCIPdivesetGetUbQuotNoSol, libscip),
Cdouble,
(Ptr{SCIP_DIVESET},),
diveset,
)
end
function SCIPdivesetGetAvgQuotNoSol(diveset)
ccall(
(:SCIPdivesetGetAvgQuotNoSol, libscip),
Cdouble,
(Ptr{SCIP_DIVESET},),
diveset,
)
end
function SCIPdivesetGetUbQuot(diveset)
ccall(
(:SCIPdivesetGetUbQuot, libscip),
Cdouble,
(Ptr{SCIP_DIVESET},),
diveset,
)
end
function SCIPdivesetGetAvgQuot(diveset)
ccall(
(:SCIPdivesetGetAvgQuot, libscip),
Cdouble,
(Ptr{SCIP_DIVESET},),
diveset,
)
end
function SCIPdivesetUseBacktrack(diveset)
ccall(
(:SCIPdivesetUseBacktrack, libscip),
Cuint,
(Ptr{SCIP_DIVESET},),
diveset,
)
end
function SCIPdivesetGetLPSolveFreq(diveset)
ccall(
(:SCIPdivesetGetLPSolveFreq, libscip),
Cint,
(Ptr{SCIP_DIVESET},),
diveset,
)
end
function SCIPdivesetGetLPResolveDomChgQuot(diveset)
ccall(
(:SCIPdivesetGetLPResolveDomChgQuot, libscip),
Cdouble,
(Ptr{SCIP_DIVESET},),
diveset,
)
end
function SCIPdivesetUseOnlyLPBranchcands(diveset)
ccall(
(:SCIPdivesetUseOnlyLPBranchcands, libscip),
Cuint,
(Ptr{SCIP_DIVESET},),
diveset,
)
end
function SCIPdivesetSupportsType(diveset, divetype)
ccall(
(:SCIPdivesetSupportsType, libscip),
Cuint,
(Ptr{SCIP_DIVESET}, SCIP_DIVETYPE),
diveset,
divetype,
)
end
function SCIPdivesetGetRandnumgen(diveset)
ccall(
(:SCIPdivesetGetRandnumgen, libscip),
Ptr{SCIP_RANDNUMGEN},
(Ptr{SCIP_DIVESET},),
diveset,
)
end
function SCIPdivesetIsPublic(diveset)
ccall((:SCIPdivesetIsPublic, libscip), Cuint, (Ptr{SCIP_DIVESET},), diveset)
end
function SCIPvariablegraphBreadthFirst(
scip,
vargraph,
startvars,
nstartvars,
distances,
maxdistance,
maxvars,
maxbinintvars,
)
ccall(
(:SCIPvariablegraphBreadthFirst, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_VGRAPH},
Ptr{Ptr{SCIP_VAR}},
Cint,
Ptr{Cint},
Cint,
Cint,
Cint,
),
scip,
vargraph,
startvars,
nstartvars,
distances,
maxdistance,
maxvars,
maxbinintvars,
)
end
function SCIPvariableGraphCreate(
scip,
vargraph,
relaxdenseconss,
relaxdensity,
nrelaxedconstraints,
)
ccall(
(:SCIPvariableGraphCreate, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_VGRAPH}}, Cuint, Cdouble, Ptr{Cint}),
scip,
vargraph,
relaxdenseconss,
relaxdensity,
nrelaxedconstraints,
)
end
function SCIPvariableGraphFree(scip, vargraph)
ccall(
(:SCIPvariableGraphFree, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Ptr{SCIP_VGRAPH}}),
scip,
vargraph,
)
end
function SCIPhistoryGetVSIDS(history, dir)
ccall(
(:SCIPhistoryGetVSIDS, libscip),
Cdouble,
(Ptr{SCIP_HISTORY}, SCIP_BRANCHDIR),
history,
dir,
)
end
function SCIPhistoryGetCutoffSum(history, dir)
ccall(
(:SCIPhistoryGetCutoffSum, libscip),
Cdouble,
(Ptr{SCIP_HISTORY}, SCIP_BRANCHDIR),
history,
dir,
)
end
function SCIPvaluehistoryGetNValues(valuehistory)
ccall(
(:SCIPvaluehistoryGetNValues, libscip),
Cint,
(Ptr{SCIP_VALUEHISTORY},),
valuehistory,
)
end
function SCIPvaluehistoryGetHistories(valuehistory)
ccall(
(:SCIPvaluehistoryGetHistories, libscip),
Ptr{Ptr{SCIP_HISTORY}},
(Ptr{SCIP_VALUEHISTORY},),
valuehistory,
)
end
function SCIPvaluehistoryGetValues(valuehistory)
ccall(
(:SCIPvaluehistoryGetValues, libscip),
Ptr{Cdouble},
(Ptr{SCIP_VALUEHISTORY},),
valuehistory,
)
end
function SCIPcliqueSearchVar(clique, var, value)
ccall(
(:SCIPcliqueSearchVar, libscip),
Cint,
(Ptr{SCIP_CLIQUE}, Ptr{SCIP_VAR}, Cuint),
clique,
var,
value,
)
end
function SCIPcliqueHasVar(clique, var, value)
ccall(
(:SCIPcliqueHasVar, libscip),
Cuint,
(Ptr{SCIP_CLIQUE}, Ptr{SCIP_VAR}, Cuint),
clique,
var,
value,
)
end
function SCIPcliqueGetNVars(clique)
ccall((:SCIPcliqueGetNVars, libscip), Cint, (Ptr{SCIP_CLIQUE},), clique)
end
function SCIPcliqueGetVars(clique)
ccall(
(:SCIPcliqueGetVars, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP_CLIQUE},),
clique,
)
end
function SCIPcliqueGetValues(clique)
ccall(
(:SCIPcliqueGetValues, libscip),
Ptr{Cuint},
(Ptr{SCIP_CLIQUE},),
clique,
)
end
function SCIPcliqueGetId(clique)
ccall((:SCIPcliqueGetId, libscip), Cuint, (Ptr{SCIP_CLIQUE},), clique)
end
function SCIPcliqueGetIndex(clique)
ccall((:SCIPcliqueGetIndex, libscip), Cint, (Ptr{SCIP_CLIQUE},), clique)
end
function SCIPcliqueIsCleanedUp(clique)
ccall((:SCIPcliqueIsCleanedUp, libscip), Cuint, (Ptr{SCIP_CLIQUE},), clique)
end
function SCIPcliqueIsEquation(clique)
ccall((:SCIPcliqueIsEquation, libscip), Cuint, (Ptr{SCIP_CLIQUE},), clique)
end
function SCIPcolSort(col)
ccall((:SCIPcolSort, libscip), Cvoid, (Ptr{SCIP_COL},), col)
end
function SCIPcolGetObj(col)
ccall((:SCIPcolGetObj, libscip), Cdouble, (Ptr{SCIP_COL},), col)
end
function SCIPcolGetLb(col)
ccall((:SCIPcolGetLb, libscip), Cdouble, (Ptr{SCIP_COL},), col)
end
function SCIPcolGetUb(col)
ccall((:SCIPcolGetUb, libscip), Cdouble, (Ptr{SCIP_COL},), col)
end
function SCIPcolGetBestBound(col)
ccall((:SCIPcolGetBestBound, libscip), Cdouble, (Ptr{SCIP_COL},), col)
end
function SCIPcolGetPrimsol(col)
ccall((:SCIPcolGetPrimsol, libscip), Cdouble, (Ptr{SCIP_COL},), col)
end
function SCIPcolGetMinPrimsol(col)
ccall((:SCIPcolGetMinPrimsol, libscip), Cdouble, (Ptr{SCIP_COL},), col)
end
function SCIPcolGetMaxPrimsol(col)
ccall((:SCIPcolGetMaxPrimsol, libscip), Cdouble, (Ptr{SCIP_COL},), col)
end
@enum SCIP_BaseStat::UInt32 begin
SCIP_BASESTAT_LOWER = 0
SCIP_BASESTAT_BASIC = 1
SCIP_BASESTAT_UPPER = 2
SCIP_BASESTAT_ZERO = 3
end
const SCIP_BASESTAT = SCIP_BaseStat
function SCIPcolGetBasisStatus(col)
ccall(
(:SCIPcolGetBasisStatus, libscip),
SCIP_BASESTAT,
(Ptr{SCIP_COL},),
col,
)
end
function SCIPcolGetVar(col)
ccall((:SCIPcolGetVar, libscip), Ptr{SCIP_VAR}, (Ptr{SCIP_COL},), col)
end
function SCIPcolGetIndex(col)
ccall((:SCIPcolGetIndex, libscip), Cint, (Ptr{SCIP_COL},), col)
end
function SCIPcolGetVarProbindex(col)
ccall((:SCIPcolGetVarProbindex, libscip), Cint, (Ptr{SCIP_COL},), col)
end
function SCIPcolIsIntegral(col)
ccall((:SCIPcolIsIntegral, libscip), Cuint, (Ptr{SCIP_COL},), col)
end
function SCIPcolIsRemovable(col)
ccall((:SCIPcolIsRemovable, libscip), Cuint, (Ptr{SCIP_COL},), col)
end
function SCIPcolGetLPPos(col)
ccall((:SCIPcolGetLPPos, libscip), Cint, (Ptr{SCIP_COL},), col)
end
function SCIPcolGetLPDepth(col)
ccall((:SCIPcolGetLPDepth, libscip), Cint, (Ptr{SCIP_COL},), col)
end
function SCIPcolIsInLP(col)
ccall((:SCIPcolIsInLP, libscip), Cuint, (Ptr{SCIP_COL},), col)
end
function SCIPcolGetNNonz(col)
ccall((:SCIPcolGetNNonz, libscip), Cint, (Ptr{SCIP_COL},), col)
end
function SCIPcolGetNLPNonz(col)
ccall((:SCIPcolGetNLPNonz, libscip), Cint, (Ptr{SCIP_COL},), col)
end
function SCIPcolGetRows(col)
ccall((:SCIPcolGetRows, libscip), Ptr{Ptr{SCIP_ROW}}, (Ptr{SCIP_COL},), col)
end
function SCIPcolGetVals(col)
ccall((:SCIPcolGetVals, libscip), Ptr{Cdouble}, (Ptr{SCIP_COL},), col)
end
function SCIPcolGetStrongbranchNode(col)
ccall(
(:SCIPcolGetStrongbranchNode, libscip),
Clonglong,
(Ptr{SCIP_COL},),
col,
)
end
function SCIPcolGetNStrongbranchs(col)
ccall((:SCIPcolGetNStrongbranchs, libscip), Cint, (Ptr{SCIP_COL},), col)
end
function SCIPcolGetAge(col)
ccall((:SCIPcolGetAge, libscip), Cint, (Ptr{SCIP_COL},), col)
end
function SCIPboundtypeOpposite(boundtype)
ccall(
(:SCIPboundtypeOpposite, libscip),
SCIP_BOUNDTYPE,
(SCIP_BOUNDTYPE,),
boundtype,
)
end
function SCIProwComp(elem1, elem2)
ccall((:SCIProwComp, libscip), Cint, (Ptr{Cvoid}, Ptr{Cvoid}), elem1, elem2)
end
function SCIProwLock(row)
ccall((:SCIProwLock, libscip), Cvoid, (Ptr{SCIP_ROW},), row)
end
function SCIProwUnlock(row)
ccall((:SCIProwUnlock, libscip), Cvoid, (Ptr{SCIP_ROW},), row)
end
function SCIProwGetScalarProduct(row1, row2)
ccall(
(:SCIProwGetScalarProduct, libscip),
Cdouble,
(Ptr{SCIP_ROW}, Ptr{SCIP_ROW}),
row1,
row2,
)
end
function SCIProwGetParallelism(row1, row2, orthofunc)
ccall(
(:SCIProwGetParallelism, libscip),
Cdouble,
(Ptr{SCIP_ROW}, Ptr{SCIP_ROW}, Cchar),
row1,
row2,
orthofunc,
)
end
function SCIProwGetOrthogonality(row1, row2, orthofunc)
ccall(
(:SCIProwGetOrthogonality, libscip),
Cdouble,
(Ptr{SCIP_ROW}, Ptr{SCIP_ROW}, Cchar),
row1,
row2,
orthofunc,
)
end
function SCIProwSort(row)
ccall((:SCIProwSort, libscip), Cvoid, (Ptr{SCIP_ROW},), row)
end
function SCIProwGetNNonz(row)
ccall((:SCIProwGetNNonz, libscip), Cint, (Ptr{SCIP_ROW},), row)
end
function SCIProwGetNLPNonz(row)
ccall((:SCIProwGetNLPNonz, libscip), Cint, (Ptr{SCIP_ROW},), row)
end
function SCIProwGetCols(row)
ccall((:SCIProwGetCols, libscip), Ptr{Ptr{SCIP_COL}}, (Ptr{SCIP_ROW},), row)
end
function SCIProwGetVals(row)
ccall((:SCIProwGetVals, libscip), Ptr{Cdouble}, (Ptr{SCIP_ROW},), row)
end
function SCIProwGetConstant(row)
ccall((:SCIProwGetConstant, libscip), Cdouble, (Ptr{SCIP_ROW},), row)
end
function SCIProwGetNorm(row)
ccall((:SCIProwGetNorm, libscip), Cdouble, (Ptr{SCIP_ROW},), row)
end
function SCIProwGetSumNorm(row)
ccall((:SCIProwGetSumNorm, libscip), Cdouble, (Ptr{SCIP_ROW},), row)
end
function SCIProwGetLhs(row)
ccall((:SCIProwGetLhs, libscip), Cdouble, (Ptr{SCIP_ROW},), row)
end
function SCIProwGetRhs(row)
ccall((:SCIProwGetRhs, libscip), Cdouble, (Ptr{SCIP_ROW},), row)
end
function SCIProwGetDualsol(row)
ccall((:SCIProwGetDualsol, libscip), Cdouble, (Ptr{SCIP_ROW},), row)
end
function SCIProwGetDualfarkas(row)
ccall((:SCIProwGetDualfarkas, libscip), Cdouble, (Ptr{SCIP_ROW},), row)
end
function SCIProwGetBasisStatus(row)
ccall(
(:SCIProwGetBasisStatus, libscip),
SCIP_BASESTAT,
(Ptr{SCIP_ROW},),
row,
)
end
function SCIProwGetName(row)
ccall((:SCIProwGetName, libscip), Ptr{Cchar}, (Ptr{SCIP_ROW},), row)
end
function SCIProwGetIndex(row)
ccall((:SCIProwGetIndex, libscip), Cint, (Ptr{SCIP_ROW},), row)
end
function SCIProwGetAge(row)
ccall((:SCIProwGetAge, libscip), Cint, (Ptr{SCIP_ROW},), row)
end
function SCIProwGetRank(row)
ccall((:SCIProwGetRank, libscip), Cint, (Ptr{SCIP_ROW},), row)
end
function SCIProwIsIntegral(row)
ccall((:SCIProwIsIntegral, libscip), Cuint, (Ptr{SCIP_ROW},), row)
end
function SCIProwIsLocal(row)
ccall((:SCIProwIsLocal, libscip), Cuint, (Ptr{SCIP_ROW},), row)
end
function SCIProwIsModifiable(row)
ccall((:SCIProwIsModifiable, libscip), Cuint, (Ptr{SCIP_ROW},), row)
end
function SCIProwIsRemovable(row)
ccall((:SCIProwIsRemovable, libscip), Cuint, (Ptr{SCIP_ROW},), row)
end
function SCIProwGetOrigintype(row)
ccall(
(:SCIProwGetOrigintype, libscip),
SCIP_ROWORIGINTYPE,
(Ptr{SCIP_ROW},),
row,
)
end
function SCIProwGetOriginConshdlr(row)
ccall(
(:SCIProwGetOriginConshdlr, libscip),
Ptr{SCIP_CONSHDLR},
(Ptr{SCIP_ROW},),
row,
)
end
function SCIProwGetOriginCons(row)
ccall(
(:SCIProwGetOriginCons, libscip),
Ptr{SCIP_CONS},
(Ptr{SCIP_ROW},),
row,
)
end
function SCIProwGetOriginSepa(row)
ccall(
(:SCIProwGetOriginSepa, libscip),
Ptr{SCIP_SEPA},
(Ptr{SCIP_ROW},),
row,
)
end
function SCIProwIsInGlobalCutpool(row)
ccall((:SCIProwIsInGlobalCutpool, libscip), Cuint, (Ptr{SCIP_ROW},), row)
end
function SCIProwGetLPPos(row)
ccall((:SCIProwGetLPPos, libscip), Cint, (Ptr{SCIP_ROW},), row)
end
function SCIProwGetLPDepth(row)
ccall((:SCIProwGetLPDepth, libscip), Cint, (Ptr{SCIP_ROW},), row)
end
function SCIProwIsInLP(row)
ccall((:SCIProwIsInLP, libscip), Cuint, (Ptr{SCIP_ROW},), row)
end
function SCIProwGetActiveLPCount(row)
ccall((:SCIProwGetActiveLPCount, libscip), Clonglong, (Ptr{SCIP_ROW},), row)
end
function SCIProwGetNLPsAfterCreation(row)
ccall(
(:SCIProwGetNLPsAfterCreation, libscip),
Clonglong,
(Ptr{SCIP_ROW},),
row,
)
end
function SCIProwChgRank(row, rank)
ccall((:SCIProwChgRank, libscip), Cvoid, (Ptr{SCIP_ROW}, Cint), row, rank)
end
function SCIPmatrixGetColValPtr(matrix, col)
ccall(
(:SCIPmatrixGetColValPtr, libscip),
Ptr{Cdouble},
(Ptr{SCIP_MATRIX}, Cint),
matrix,
col,
)
end
function SCIPmatrixGetColIdxPtr(matrix, col)
ccall(
(:SCIPmatrixGetColIdxPtr, libscip),
Ptr{Cint},
(Ptr{SCIP_MATRIX}, Cint),
matrix,
col,
)
end
function SCIPmatrixGetColNNonzs(matrix, col)
ccall(
(:SCIPmatrixGetColNNonzs, libscip),
Cint,
(Ptr{SCIP_MATRIX}, Cint),
matrix,
col,
)
end
function SCIPmatrixGetNColumns(matrix)
ccall((:SCIPmatrixGetNColumns, libscip), Cint, (Ptr{SCIP_MATRIX},), matrix)
end
function SCIPmatrixGetColUb(matrix, col)
ccall(
(:SCIPmatrixGetColUb, libscip),
Cdouble,
(Ptr{SCIP_MATRIX}, Cint),
matrix,
col,
)
end
function SCIPmatrixGetColLb(matrix, col)
ccall(
(:SCIPmatrixGetColLb, libscip),
Cdouble,
(Ptr{SCIP_MATRIX}, Cint),
matrix,
col,
)
end
function SCIPmatrixGetColNUplocks(matrix, col)
ccall(
(:SCIPmatrixGetColNUplocks, libscip),
Cint,
(Ptr{SCIP_MATRIX}, Cint),
matrix,
col,
)
end
function SCIPmatrixGetColNDownlocks(matrix, col)
ccall(
(:SCIPmatrixGetColNDownlocks, libscip),
Cint,
(Ptr{SCIP_MATRIX}, Cint),
matrix,
col,
)
end
function SCIPmatrixGetVar(matrix, col)
ccall(
(:SCIPmatrixGetVar, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP_MATRIX}, Cint),
matrix,
col,
)
end
function SCIPmatrixGetColName(matrix, col)
ccall(
(:SCIPmatrixGetColName, libscip),
Ptr{Cchar},
(Ptr{SCIP_MATRIX}, Cint),
matrix,
col,
)
end
function SCIPmatrixGetRowValPtr(matrix, row)
ccall(
(:SCIPmatrixGetRowValPtr, libscip),
Ptr{Cdouble},
(Ptr{SCIP_MATRIX}, Cint),
matrix,
row,
)
end
function SCIPmatrixGetRowIdxPtr(matrix, row)
ccall(
(:SCIPmatrixGetRowIdxPtr, libscip),
Ptr{Cint},
(Ptr{SCIP_MATRIX}, Cint),
matrix,
row,
)
end
function SCIPmatrixGetRowNNonzs(matrix, row)
ccall(
(:SCIPmatrixGetRowNNonzs, libscip),
Cint,
(Ptr{SCIP_MATRIX}, Cint),
matrix,
row,
)
end
function SCIPmatrixGetRowName(matrix, row)
ccall(
(:SCIPmatrixGetRowName, libscip),
Ptr{Cchar},
(Ptr{SCIP_MATRIX}, Cint),
matrix,
row,
)
end
function SCIPmatrixGetNRows(matrix)
ccall((:SCIPmatrixGetNRows, libscip), Cint, (Ptr{SCIP_MATRIX},), matrix)
end
function SCIPmatrixGetRowLhs(matrix, row)
ccall(
(:SCIPmatrixGetRowLhs, libscip),
Cdouble,
(Ptr{SCIP_MATRIX}, Cint),
matrix,
row,
)
end
function SCIPmatrixGetRowRhs(matrix, row)
ccall(
(:SCIPmatrixGetRowRhs, libscip),
Cdouble,
(Ptr{SCIP_MATRIX}, Cint),
matrix,
row,
)
end
function SCIPmatrixIsRowRhsInfinity(matrix, row)
ccall(
(:SCIPmatrixIsRowRhsInfinity, libscip),
Cuint,
(Ptr{SCIP_MATRIX}, Cint),
matrix,
row,
)
end
function SCIPmatrixGetNNonzs(matrix)
ccall((:SCIPmatrixGetNNonzs, libscip), Cint, (Ptr{SCIP_MATRIX},), matrix)
end
function SCIPmatrixGetRowMinActivity(matrix, row)
ccall(
(:SCIPmatrixGetRowMinActivity, libscip),
Cdouble,
(Ptr{SCIP_MATRIX}, Cint),
matrix,
row,
)
end
function SCIPmatrixGetRowMaxActivity(matrix, row)
ccall(
(:SCIPmatrixGetRowMaxActivity, libscip),
Cdouble,
(Ptr{SCIP_MATRIX}, Cint),
matrix,
row,
)
end
function SCIPmatrixGetRowNMinActNegInf(matrix, row)
ccall(
(:SCIPmatrixGetRowNMinActNegInf, libscip),
Cint,
(Ptr{SCIP_MATRIX}, Cint),
matrix,
row,
)
end
function SCIPmatrixGetRowNMinActPosInf(matrix, row)
ccall(
(:SCIPmatrixGetRowNMinActPosInf, libscip),
Cint,
(Ptr{SCIP_MATRIX}, Cint),
matrix,
row,
)
end
function SCIPmatrixGetRowNMaxActNegInf(matrix, row)
ccall(
(:SCIPmatrixGetRowNMaxActNegInf, libscip),
Cint,
(Ptr{SCIP_MATRIX}, Cint),
matrix,
row,
)
end
function SCIPmatrixGetRowNMaxActPosInf(matrix, row)
ccall(
(:SCIPmatrixGetRowNMaxActPosInf, libscip),
Cint,
(Ptr{SCIP_MATRIX}, Cint),
matrix,
row,
)
end
function SCIPmatrixGetCons(matrix, row)
ccall(
(:SCIPmatrixGetCons, libscip),
Ptr{SCIP_CONS},
(Ptr{SCIP_MATRIX}, Cint),
matrix,
row,
)
end
function SCIPmatrixUplockConflict(matrix, col)
ccall(
(:SCIPmatrixUplockConflict, libscip),
Cuint,
(Ptr{SCIP_MATRIX}, Cint),
matrix,
col,
)
end
function SCIPmatrixDownlockConflict(matrix, col)
ccall(
(:SCIPmatrixDownlockConflict, libscip),
Cuint,
(Ptr{SCIP_MATRIX}, Cint),
matrix,
col,
)
end
function SCIPmatrixCreate(
scip,
matrixptr,
onlyifcomplete,
initialized,
complete,
infeasible,
naddconss,
ndelconss,
nchgcoefs,
nchgbds,
nfixedvars,
)
ccall(
(:SCIPmatrixCreate, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{Ptr{SCIP_MATRIX}},
Cuint,
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
),
scip,
matrixptr,
onlyifcomplete,
initialized,
complete,
infeasible,
naddconss,
ndelconss,
nchgcoefs,
nchgbds,
nfixedvars,
)
end
function SCIPmatrixFree(scip, matrix)
ccall(
(:SCIPmatrixFree, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Ptr{SCIP_MATRIX}}),
scip,
matrix,
)
end
function SCIPmatrixPrintRow(scip, matrix, row)
ccall(
(:SCIPmatrixPrintRow, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_MATRIX}, Cint),
scip,
matrix,
row,
)
end
function SCIPmatrixGetParallelRows(scip, matrix, scale, pclass)
ccall(
(:SCIPmatrixGetParallelRows, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_MATRIX}, Ptr{Cdouble}, Ptr{Cint}),
scip,
matrix,
scale,
pclass,
)
end
function SCIPmatrixRemoveColumnBounds(scip, matrix, col)
ccall(
(:SCIPmatrixRemoveColumnBounds, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_MATRIX}, Cint),
scip,
matrix,
col,
)
end
function SCIPmatrixGetParallelCols(scip, matrix, scale, pclass, varineq)
ccall(
(:SCIPmatrixGetParallelCols, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_MATRIX}, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cuint}),
scip,
matrix,
scale,
pclass,
varineq,
)
end
function SCIPmessagehdlrCreate(
messagehdlr,
bufferedoutput,
filename,
quiet,
messagewarning,
messagedialog,
messageinfo,
messagehdlrfree,
messagehdlrdata,
)
ccall(
(:SCIPmessagehdlrCreate, libscip),
SCIP_RETCODE,
(
Ptr{Ptr{SCIP_MESSAGEHDLR}},
Cuint,
Ptr{Cchar},
Cuint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{SCIP_MESSAGEHDLRDATA},
),
messagehdlr,
bufferedoutput,
filename,
quiet,
messagewarning,
messagedialog,
messageinfo,
messagehdlrfree,
messagehdlrdata,
)
end
function SCIPmessagehdlrCapture(messagehdlr)
ccall(
(:SCIPmessagehdlrCapture, libscip),
Cvoid,
(Ptr{SCIP_MESSAGEHDLR},),
messagehdlr,
)
end
function SCIPmessagehdlrRelease(messagehdlr)
ccall(
(:SCIPmessagehdlrRelease, libscip),
SCIP_RETCODE,
(Ptr{Ptr{SCIP_MESSAGEHDLR}},),
messagehdlr,
)
end
function SCIPmessagehdlrSetData(messagehdlr, messagehdlrdata)
ccall(
(:SCIPmessagehdlrSetData, libscip),
SCIP_RETCODE,
(Ptr{SCIP_MESSAGEHDLR}, Ptr{SCIP_MESSAGEHDLRDATA}),
messagehdlr,
messagehdlrdata,
)
end
function SCIPmessagehdlrSetLogfile(messagehdlr, filename)
ccall(
(:SCIPmessagehdlrSetLogfile, libscip),
Cvoid,
(Ptr{SCIP_MESSAGEHDLR}, Ptr{Cchar}),
messagehdlr,
filename,
)
end
function SCIPmessagehdlrSetQuiet(messagehdlr, quiet)
ccall(
(:SCIPmessagehdlrSetQuiet, libscip),
Cvoid,
(Ptr{SCIP_MESSAGEHDLR}, Cuint),
messagehdlr,
quiet,
)
end
function SCIPmessageSetErrorPrinting(errorPrinting, data)
ccall(
(:SCIPmessageSetErrorPrinting, libscip),
Cvoid,
(Ptr{Cvoid}, Ptr{Cvoid}),
errorPrinting,
data,
)
end
function SCIPmessageSetErrorPrintingDefault()
ccall((:SCIPmessageSetErrorPrintingDefault, libscip), Cvoid, ())
end
function SCIPmessagehdlrGetData(messagehdlr)
ccall(
(:SCIPmessagehdlrGetData, libscip),
Ptr{SCIP_MESSAGEHDLRDATA},
(Ptr{SCIP_MESSAGEHDLR},),
messagehdlr,
)
end
function SCIPmessagehdlrGetLogfile(messagehdlr)
ccall(
(:SCIPmessagehdlrGetLogfile, libscip),
Ptr{Libc.FILE},
(Ptr{SCIP_MESSAGEHDLR},),
messagehdlr,
)
end
function SCIPmessagehdlrIsQuiet(messagehdlr)
ccall(
(:SCIPmessagehdlrIsQuiet, libscip),
Cuint,
(Ptr{SCIP_MESSAGEHDLR},),
messagehdlr,
)
end
function SCIPstudentTGetCriticalValue(clevel, df)
ccall(
(:SCIPstudentTGetCriticalValue, libscip),
Cdouble,
(SCIP_CONFIDENCELEVEL, Cint),
clevel,
df,
)
end
function SCIPcomputeTwoSampleTTestValue(
meanx,
meany,
variancex,
variancey,
countx,
county,
)
ccall(
(:SCIPcomputeTwoSampleTTestValue, libscip),
Cdouble,
(Cdouble, Cdouble, Cdouble, Cdouble, Cdouble, Cdouble),
meanx,
meany,
variancex,
variancey,
countx,
county,
)
end
function SCIPerf(x)
ccall((:SCIPerf, libscip), Cdouble, (Cdouble,), x)
end
function SCIPnormalGetCriticalValue(clevel)
ccall(
(:SCIPnormalGetCriticalValue, libscip),
Cdouble,
(SCIP_CONFIDENCELEVEL,),
clevel,
)
end
function SCIPnormalCDF(mean, variance, value)
ccall(
(:SCIPnormalCDF, libscip),
Cdouble,
(Cdouble, Cdouble, Cdouble),
mean,
variance,
value,
)
end
function SCIPregressionGetNObservations(regression)
ccall(
(:SCIPregressionGetNObservations, libscip),
Cint,
(Ptr{SCIP_REGRESSION},),
regression,
)
end
function SCIPregressionGetSlope(regression)
ccall(
(:SCIPregressionGetSlope, libscip),
Cdouble,
(Ptr{SCIP_REGRESSION},),
regression,
)
end
function SCIPregressionGetIntercept(regression)
ccall(
(:SCIPregressionGetIntercept, libscip),
Cdouble,
(Ptr{SCIP_REGRESSION},),
regression,
)
end
function SCIPregressionRemoveObservation(regression, x, y)
ccall(
(:SCIPregressionRemoveObservation, libscip),
Cvoid,
(Ptr{SCIP_REGRESSION}, Cdouble, Cdouble),
regression,
x,
y,
)
end
function SCIPregressionAddObservation(regression, x, y)
ccall(
(:SCIPregressionAddObservation, libscip),
Cvoid,
(Ptr{SCIP_REGRESSION}, Cdouble, Cdouble),
regression,
x,
y,
)
end
function SCIPregressionReset(regression)
ccall(
(:SCIPregressionReset, libscip),
Cvoid,
(Ptr{SCIP_REGRESSION},),
regression,
)
end
function SCIPregressionCreate(regression)
ccall(
(:SCIPregressionCreate, libscip),
SCIP_RETCODE,
(Ptr{Ptr{SCIP_REGRESSION}},),
regression,
)
end
function SCIPregressionFree(regression)
ccall(
(:SCIPregressionFree, libscip),
Cvoid,
(Ptr{Ptr{SCIP_REGRESSION}},),
regression,
)
end
function SCIPgmlWriteNode(file, id, label, nodetype, fillcolor, bordercolor)
ccall(
(:SCIPgmlWriteNode, libscip),
Cvoid,
(Ptr{Libc.FILE}, Cuint, Ptr{Cchar}, Ptr{Cchar}, Ptr{Cchar}, Ptr{Cchar}),
file,
id,
label,
nodetype,
fillcolor,
bordercolor,
)
end
function SCIPgmlWriteNodeWeight(
file,
id,
label,
nodetype,
fillcolor,
bordercolor,
weight,
)
ccall(
(:SCIPgmlWriteNodeWeight, libscip),
Cvoid,
(
Ptr{Libc.FILE},
Cuint,
Ptr{Cchar},
Ptr{Cchar},
Ptr{Cchar},
Ptr{Cchar},
Cdouble,
),
file,
id,
label,
nodetype,
fillcolor,
bordercolor,
weight,
)
end
function SCIPgmlWriteEdge(file, source, target, label, color)
ccall(
(:SCIPgmlWriteEdge, libscip),
Cvoid,
(Ptr{Libc.FILE}, Cuint, Cuint, Ptr{Cchar}, Ptr{Cchar}),
file,
source,
target,
label,
color,
)
end
function SCIPgmlWriteArc(file, source, target, label, color)
ccall(
(:SCIPgmlWriteArc, libscip),
Cvoid,
(Ptr{Libc.FILE}, Cuint, Cuint, Ptr{Cchar}, Ptr{Cchar}),
file,
source,
target,
label,
color,
)
end
function SCIPgmlWriteOpening(file, directed)
ccall(
(:SCIPgmlWriteOpening, libscip),
Cvoid,
(Ptr{Libc.FILE}, Cuint),
file,
directed,
)
end
function SCIPgmlWriteClosing(file)
ccall((:SCIPgmlWriteClosing, libscip), Cvoid, (Ptr{Libc.FILE},), file)
end
function SCIPsparseSolCreate(sparsesol, vars, nvars, cleared)
ccall(
(:SCIPsparseSolCreate, libscip),
SCIP_RETCODE,
(Ptr{Ptr{SCIP_SPARSESOL}}, Ptr{Ptr{SCIP_VAR}}, Cint, Cuint),
sparsesol,
vars,
nvars,
cleared,
)
end
function SCIPsparseSolFree(sparsesol)
ccall(
(:SCIPsparseSolFree, libscip),
Cvoid,
(Ptr{Ptr{SCIP_SPARSESOL}},),
sparsesol,
)
end
function SCIPsparseSolGetVars(sparsesol)
ccall(
(:SCIPsparseSolGetVars, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP_SPARSESOL},),
sparsesol,
)
end
function SCIPsparseSolGetNVars(sparsesol)
ccall(
(:SCIPsparseSolGetNVars, libscip),
Cint,
(Ptr{SCIP_SPARSESOL},),
sparsesol,
)
end
function SCIPsparseSolGetLbs(sparsesol)
ccall(
(:SCIPsparseSolGetLbs, libscip),
Ptr{Clonglong},
(Ptr{SCIP_SPARSESOL},),
sparsesol,
)
end
function SCIPsparseSolGetUbs(sparsesol)
ccall(
(:SCIPsparseSolGetUbs, libscip),
Ptr{Clonglong},
(Ptr{SCIP_SPARSESOL},),
sparsesol,
)
end
function SCIPsparseSolGetFirstSol(sparsesol, sol, nvars)
ccall(
(:SCIPsparseSolGetFirstSol, libscip),
Cvoid,
(Ptr{SCIP_SPARSESOL}, Ptr{Clonglong}, Cint),
sparsesol,
sol,
nvars,
)
end
function SCIPsparseSolGetNextSol(sparsesol, sol, nvars)
ccall(
(:SCIPsparseSolGetNextSol, libscip),
Cuint,
(Ptr{SCIP_SPARSESOL}, Ptr{Clonglong}, Cint),
sparsesol,
sol,
nvars,
)
end
function SCIPqueueCreate(queue, initsize, sizefac)
ccall(
(:SCIPqueueCreate, libscip),
SCIP_RETCODE,
(Ptr{Ptr{SCIP_QUEUE}}, Cint, Cdouble),
queue,
initsize,
sizefac,
)
end
function SCIPqueueFree(queue)
ccall((:SCIPqueueFree, libscip), Cvoid, (Ptr{Ptr{SCIP_QUEUE}},), queue)
end
function SCIPqueueClear(queue)
ccall((:SCIPqueueClear, libscip), Cvoid, (Ptr{SCIP_QUEUE},), queue)
end
function SCIPqueueInsert(queue, elem)
ccall(
(:SCIPqueueInsert, libscip),
SCIP_RETCODE,
(Ptr{SCIP_QUEUE}, Ptr{Cvoid}),
queue,
elem,
)
end
function SCIPqueueInsertUInt(queue, elem)
ccall(
(:SCIPqueueInsertUInt, libscip),
SCIP_RETCODE,
(Ptr{SCIP_QUEUE}, Cuint),
queue,
elem,
)
end
function SCIPqueueRemove(queue)
ccall((:SCIPqueueRemove, libscip), Ptr{Cvoid}, (Ptr{SCIP_QUEUE},), queue)
end
function SCIPqueueRemoveUInt(queue)
ccall((:SCIPqueueRemoveUInt, libscip), Cuint, (Ptr{SCIP_QUEUE},), queue)
end
function SCIPqueueFirst(queue)
ccall((:SCIPqueueFirst, libscip), Ptr{Cvoid}, (Ptr{SCIP_QUEUE},), queue)
end
function SCIPqueueFirstUInt(queue)
ccall((:SCIPqueueFirstUInt, libscip), Cuint, (Ptr{SCIP_QUEUE},), queue)
end
function SCIPqueueIsEmpty(queue)
ccall((:SCIPqueueIsEmpty, libscip), Cuint, (Ptr{SCIP_QUEUE},), queue)
end
function SCIPqueueNElems(queue)
ccall((:SCIPqueueNElems, libscip), Cint, (Ptr{SCIP_QUEUE},), queue)
end
function SCIPpqueueCreate(pqueue, initsize, sizefac, ptrcomp, elemchgpos)
ccall(
(:SCIPpqueueCreate, libscip),
SCIP_RETCODE,
(Ptr{Ptr{SCIP_PQUEUE}}, Cint, Cdouble, Ptr{Cvoid}, Ptr{Cvoid}),
pqueue,
initsize,
sizefac,
ptrcomp,
elemchgpos,
)
end
function SCIPpqueueFree(pqueue)
ccall((:SCIPpqueueFree, libscip), Cvoid, (Ptr{Ptr{SCIP_PQUEUE}},), pqueue)
end
function SCIPpqueueClear(pqueue)
ccall((:SCIPpqueueClear, libscip), Cvoid, (Ptr{SCIP_PQUEUE},), pqueue)
end
function SCIPpqueueInsert(pqueue, elem)
ccall(
(:SCIPpqueueInsert, libscip),
SCIP_RETCODE,
(Ptr{SCIP_PQUEUE}, Ptr{Cvoid}),
pqueue,
elem,
)
end
function SCIPpqueueDelPos(pqueue, pos)
ccall(
(:SCIPpqueueDelPos, libscip),
Cvoid,
(Ptr{SCIP_PQUEUE}, Cint),
pqueue,
pos,
)
end
function SCIPpqueueRemove(pqueue)
ccall((:SCIPpqueueRemove, libscip), Ptr{Cvoid}, (Ptr{SCIP_PQUEUE},), pqueue)
end
function SCIPpqueueFirst(pqueue)
ccall((:SCIPpqueueFirst, libscip), Ptr{Cvoid}, (Ptr{SCIP_PQUEUE},), pqueue)
end
function SCIPpqueueNElems(pqueue)
ccall((:SCIPpqueueNElems, libscip), Cint, (Ptr{SCIP_PQUEUE},), pqueue)
end
function SCIPpqueueElems(pqueue)
ccall(
(:SCIPpqueueElems, libscip),
Ptr{Ptr{Cvoid}},
(Ptr{SCIP_PQUEUE},),
pqueue,
)
end
function SCIPpqueueFind(pqueue, elem)
ccall(
(:SCIPpqueueFind, libscip),
Cint,
(Ptr{SCIP_PQUEUE}, Ptr{Cvoid}),
pqueue,
elem,
)
end
function SCIPrealHashCode(x)
ccall((:SCIPrealHashCode, libscip), UInt32, (Cdouble,), x)
end
function SCIPhashtableCreate(
hashtable,
blkmem,
tablesize,
hashgetkey,
hashkeyeq,
hashkeyval,
userptr,
)
ccall(
(:SCIPhashtableCreate, libscip),
SCIP_RETCODE,
(
Ptr{Ptr{SCIP_HASHTABLE}},
Ptr{BMS_BLKMEM},
Cint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
),
hashtable,
blkmem,
tablesize,
hashgetkey,
hashkeyeq,
hashkeyval,
userptr,
)
end
function SCIPhashtableFree(hashtable)
ccall(
(:SCIPhashtableFree, libscip),
Cvoid,
(Ptr{Ptr{SCIP_HASHTABLE}},),
hashtable,
)
end
function SCIPhashtableClear(hashtable)
ccall(
(:SCIPhashtableClear, libscip),
Cvoid,
(Ptr{SCIP_HASHTABLE},),
hashtable,
)
end
function SCIPhashtableInsert(hashtable, element)
ccall(
(:SCIPhashtableInsert, libscip),
SCIP_RETCODE,
(Ptr{SCIP_HASHTABLE}, Ptr{Cvoid}),
hashtable,
element,
)
end
function SCIPhashtableSafeInsert(hashtable, element)
ccall(
(:SCIPhashtableSafeInsert, libscip),
SCIP_RETCODE,
(Ptr{SCIP_HASHTABLE}, Ptr{Cvoid}),
hashtable,
element,
)
end
function SCIPhashtableRetrieve(hashtable, key)
ccall(
(:SCIPhashtableRetrieve, libscip),
Ptr{Cvoid},
(Ptr{SCIP_HASHTABLE}, Ptr{Cvoid}),
hashtable,
key,
)
end
function SCIPhashtableExists(hashtable, element)
ccall(
(:SCIPhashtableExists, libscip),
Cuint,
(Ptr{SCIP_HASHTABLE}, Ptr{Cvoid}),
hashtable,
element,
)
end
function SCIPhashtableRemove(hashtable, element)
ccall(
(:SCIPhashtableRemove, libscip),
SCIP_RETCODE,
(Ptr{SCIP_HASHTABLE}, Ptr{Cvoid}),
hashtable,
element,
)
end
function SCIPhashtableRemoveAll(hashtable)
ccall(
(:SCIPhashtableRemoveAll, libscip),
Cvoid,
(Ptr{SCIP_HASHTABLE},),
hashtable,
)
end
function SCIPhashtableGetNElements(hashtable)
ccall(
(:SCIPhashtableGetNElements, libscip),
Clonglong,
(Ptr{SCIP_HASHTABLE},),
hashtable,
)
end
function SCIPhashtableGetNEntries(hashtable)
ccall(
(:SCIPhashtableGetNEntries, libscip),
Cint,
(Ptr{SCIP_HASHTABLE},),
hashtable,
)
end
function SCIPhashtableGetEntry(hashtable, entryidx)
ccall(
(:SCIPhashtableGetEntry, libscip),
Ptr{Cvoid},
(Ptr{SCIP_HASHTABLE}, Cint),
hashtable,
entryidx,
)
end
function SCIPhashtableGetLoad(hashtable)
ccall(
(:SCIPhashtableGetLoad, libscip),
Cdouble,
(Ptr{SCIP_HASHTABLE},),
hashtable,
)
end
function SCIPhashtablePrintStatistics(hashtable, messagehdlr)
ccall(
(:SCIPhashtablePrintStatistics, libscip),
Cvoid,
(Ptr{SCIP_HASHTABLE}, Ptr{SCIP_MESSAGEHDLR}),
hashtable,
messagehdlr,
)
end
function SCIPcalcMultihashSize(minsize)
ccall((:SCIPcalcMultihashSize, libscip), Cint, (Cint,), minsize)
end
function SCIPmultihashCreate(
multihash,
blkmem,
tablesize,
hashgetkey,
hashkeyeq,
hashkeyval,
userptr,
)
ccall(
(:SCIPmultihashCreate, libscip),
SCIP_RETCODE,
(
Ptr{Ptr{SCIP_MULTIHASH}},
Ptr{BMS_BLKMEM},
Cint,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
),
multihash,
blkmem,
tablesize,
hashgetkey,
hashkeyeq,
hashkeyval,
userptr,
)
end
function SCIPmultihashFree(multihash)
ccall(
(:SCIPmultihashFree, libscip),
Cvoid,
(Ptr{Ptr{SCIP_MULTIHASH}},),
multihash,
)
end
function SCIPmultihashInsert(multihash, element)
ccall(
(:SCIPmultihashInsert, libscip),
SCIP_RETCODE,
(Ptr{SCIP_MULTIHASH}, Ptr{Cvoid}),
multihash,
element,
)
end
function SCIPmultihashSafeInsert(multihash, element)
ccall(
(:SCIPmultihashSafeInsert, libscip),
SCIP_RETCODE,
(Ptr{SCIP_MULTIHASH}, Ptr{Cvoid}),
multihash,
element,
)
end
function SCIPmultihashRetrieve(multihash, key)
ccall(
(:SCIPmultihashRetrieve, libscip),
Ptr{Cvoid},
(Ptr{SCIP_MULTIHASH}, Ptr{Cvoid}),
multihash,
key,
)
end
function SCIPmultihashRetrieveNext(multihash, multihashlist, key)
ccall(
(:SCIPmultihashRetrieveNext, libscip),
Ptr{Cvoid},
(Ptr{SCIP_MULTIHASH}, Ptr{Ptr{SCIP_MULTIHASHLIST}}, Ptr{Cvoid}),
multihash,
multihashlist,
key,
)
end
function SCIPmultihashExists(multihash, element)
ccall(
(:SCIPmultihashExists, libscip),
Cuint,
(Ptr{SCIP_MULTIHASH}, Ptr{Cvoid}),
multihash,
element,
)
end
function SCIPmultihashRemove(multihash, element)
ccall(
(:SCIPmultihashRemove, libscip),
SCIP_RETCODE,
(Ptr{SCIP_MULTIHASH}, Ptr{Cvoid}),
multihash,
element,
)
end
function SCIPmultihashRemoveAll(multihash)
ccall(
(:SCIPmultihashRemoveAll, libscip),
Cvoid,
(Ptr{SCIP_MULTIHASH},),
multihash,
)
end
function SCIPmultihashGetNElements(multihash)
ccall(
(:SCIPmultihashGetNElements, libscip),
Clonglong,
(Ptr{SCIP_MULTIHASH},),
multihash,
)
end
function SCIPmultihashGetLoad(multihash)
ccall(
(:SCIPmultihashGetLoad, libscip),
Cdouble,
(Ptr{SCIP_MULTIHASH},),
multihash,
)
end
function SCIPmultihashPrintStatistics(multihash, messagehdlr)
ccall(
(:SCIPmultihashPrintStatistics, libscip),
Cvoid,
(Ptr{SCIP_MULTIHASH}, Ptr{SCIP_MESSAGEHDLR}),
multihash,
messagehdlr,
)
end
function SCIPhashKeyEqString(userptr, key1, key2)
ccall(
(:SCIPhashKeyEqString, libscip),
Cuint,
(Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}),
userptr,
key1,
key2,
)
end
function SCIPhashKeyValString(userptr, key)
ccall(
(:SCIPhashKeyValString, libscip),
UInt64,
(Ptr{Cvoid}, Ptr{Cvoid}),
userptr,
key,
)
end
function SCIPhashGetKeyStandard(userptr, elem)
ccall(
(:SCIPhashGetKeyStandard, libscip),
Ptr{Cvoid},
(Ptr{Cvoid}, Ptr{Cvoid}),
userptr,
elem,
)
end
function SCIPhashKeyEqPtr(userptr, key1, key2)
ccall(
(:SCIPhashKeyEqPtr, libscip),
Cuint,
(Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}),
userptr,
key1,
key2,
)
end
function SCIPhashKeyValPtr(userptr, key)
ccall(
(:SCIPhashKeyValPtr, libscip),
UInt64,
(Ptr{Cvoid}, Ptr{Cvoid}),
userptr,
key,
)
end
function SCIPhashmapCreate(hashmap, blkmem, mapsize)
ccall(
(:SCIPhashmapCreate, libscip),
SCIP_RETCODE,
(Ptr{Ptr{SCIP_HASHMAP}}, Ptr{BMS_BLKMEM}, Cint),
hashmap,
blkmem,
mapsize,
)
end
function SCIPhashmapFree(hashmap)
ccall(
(:SCIPhashmapFree, libscip),
Cvoid,
(Ptr{Ptr{SCIP_HASHMAP}},),
hashmap,
)
end
function SCIPhashmapInsert(hashmap, origin, image)
ccall(
(:SCIPhashmapInsert, libscip),
SCIP_RETCODE,
(Ptr{SCIP_HASHMAP}, Ptr{Cvoid}, Ptr{Cvoid}),
hashmap,
origin,
image,
)
end
function SCIPhashmapInsertInt(hashmap, origin, image)
ccall(
(:SCIPhashmapInsertInt, libscip),
SCIP_RETCODE,
(Ptr{SCIP_HASHMAP}, Ptr{Cvoid}, Cint),
hashmap,
origin,
image,
)
end
function SCIPhashmapInsertReal(hashmap, origin, image)
ccall(
(:SCIPhashmapInsertReal, libscip),
SCIP_RETCODE,
(Ptr{SCIP_HASHMAP}, Ptr{Cvoid}, Cdouble),
hashmap,
origin,
image,
)
end
function SCIPhashmapGetImage(hashmap, origin)
ccall(
(:SCIPhashmapGetImage, libscip),
Ptr{Cvoid},
(Ptr{SCIP_HASHMAP}, Ptr{Cvoid}),
hashmap,
origin,
)
end
function SCIPhashmapGetImageInt(hashmap, origin)
ccall(
(:SCIPhashmapGetImageInt, libscip),
Cint,
(Ptr{SCIP_HASHMAP}, Ptr{Cvoid}),
hashmap,
origin,
)
end
function SCIPhashmapGetImageReal(hashmap, origin)
ccall(
(:SCIPhashmapGetImageReal, libscip),
Cdouble,
(Ptr{SCIP_HASHMAP}, Ptr{Cvoid}),
hashmap,
origin,
)
end
function SCIPhashmapSetImage(hashmap, origin, image)
ccall(
(:SCIPhashmapSetImage, libscip),
SCIP_RETCODE,
(Ptr{SCIP_HASHMAP}, Ptr{Cvoid}, Ptr{Cvoid}),
hashmap,
origin,
image,
)
end
function SCIPhashmapSetImageInt(hashmap, origin, image)
ccall(
(:SCIPhashmapSetImageInt, libscip),
SCIP_RETCODE,
(Ptr{SCIP_HASHMAP}, Ptr{Cvoid}, Cint),
hashmap,
origin,
image,
)
end
function SCIPhashmapSetImageReal(hashmap, origin, image)
ccall(
(:SCIPhashmapSetImageReal, libscip),
SCIP_RETCODE,
(Ptr{SCIP_HASHMAP}, Ptr{Cvoid}, Cdouble),
hashmap,
origin,
image,
)
end
function SCIPhashmapExists(hashmap, origin)
ccall(
(:SCIPhashmapExists, libscip),
Cuint,
(Ptr{SCIP_HASHMAP}, Ptr{Cvoid}),
hashmap,
origin,
)
end
function SCIPhashmapRemove(hashmap, origin)
ccall(
(:SCIPhashmapRemove, libscip),
SCIP_RETCODE,
(Ptr{SCIP_HASHMAP}, Ptr{Cvoid}),
hashmap,
origin,
)
end
function SCIPhashmapPrintStatistics(hashmap, messagehdlr)
ccall(
(:SCIPhashmapPrintStatistics, libscip),
Cvoid,
(Ptr{SCIP_HASHMAP}, Ptr{SCIP_MESSAGEHDLR}),
hashmap,
messagehdlr,
)
end
function SCIPhashmapIsEmpty(hashmap)
ccall((:SCIPhashmapIsEmpty, libscip), Cuint, (Ptr{SCIP_HASHMAP},), hashmap)
end
function SCIPhashmapGetNElements(hashmap)
ccall(
(:SCIPhashmapGetNElements, libscip),
Cint,
(Ptr{SCIP_HASHMAP},),
hashmap,
)
end
function SCIPhashmapGetNEntries(hashmap)
ccall(
(:SCIPhashmapGetNEntries, libscip),
Cint,
(Ptr{SCIP_HASHMAP},),
hashmap,
)
end
function SCIPhashmapGetEntry(hashmap, entryidx)
ccall(
(:SCIPhashmapGetEntry, libscip),
Ptr{SCIP_HASHMAPENTRY},
(Ptr{SCIP_HASHMAP}, Cint),
hashmap,
entryidx,
)
end
function SCIPhashmapEntryGetOrigin(entry)
ccall(
(:SCIPhashmapEntryGetOrigin, libscip),
Ptr{Cvoid},
(Ptr{SCIP_HASHMAPENTRY},),
entry,
)
end
function SCIPhashmapEntryGetImage(entry)
ccall(
(:SCIPhashmapEntryGetImage, libscip),
Ptr{Cvoid},
(Ptr{SCIP_HASHMAPENTRY},),
entry,
)
end
function SCIPhashmapEntryGetImageInt(entry)
ccall(
(:SCIPhashmapEntryGetImageInt, libscip),
Cint,
(Ptr{SCIP_HASHMAPENTRY},),
entry,
)
end
function SCIPhashmapEntryGetImageReal(entry)
ccall(
(:SCIPhashmapEntryGetImageReal, libscip),
Cdouble,
(Ptr{SCIP_HASHMAPENTRY},),
entry,
)
end
function SCIPhashmapEntrySetImage(entry, image)
ccall(
(:SCIPhashmapEntrySetImage, libscip),
Cvoid,
(Ptr{SCIP_HASHMAPENTRY}, Ptr{Cvoid}),
entry,
image,
)
end
function SCIPhashmapEntrySetImageInt(entry, image)
ccall(
(:SCIPhashmapEntrySetImageInt, libscip),
Cvoid,
(Ptr{SCIP_HASHMAPENTRY}, Cint),
entry,
image,
)
end
function SCIPhashmapEntrySetImageReal(entry, image)
ccall(
(:SCIPhashmapEntrySetImageReal, libscip),
Cvoid,
(Ptr{SCIP_HASHMAPENTRY}, Cdouble),
entry,
image,
)
end
function SCIPhashmapRemoveAll(hashmap)
ccall(
(:SCIPhashmapRemoveAll, libscip),
SCIP_RETCODE,
(Ptr{SCIP_HASHMAP},),
hashmap,
)
end
function SCIPhashsetCreate(hashset, blkmem, size)
ccall(
(:SCIPhashsetCreate, libscip),
SCIP_RETCODE,
(Ptr{Ptr{SCIP_HASHSET}}, Ptr{BMS_BLKMEM}, Cint),
hashset,
blkmem,
size,
)
end
function SCIPhashsetFree(hashset, blkmem)
ccall(
(:SCIPhashsetFree, libscip),
Cvoid,
(Ptr{Ptr{SCIP_HASHSET}}, Ptr{BMS_BLKMEM}),
hashset,
blkmem,
)
end
function SCIPhashsetInsert(hashset, blkmem, element)
ccall(
(:SCIPhashsetInsert, libscip),
SCIP_RETCODE,
(Ptr{SCIP_HASHSET}, Ptr{BMS_BLKMEM}, Ptr{Cvoid}),
hashset,
blkmem,
element,
)
end
function SCIPhashsetExists(hashset, element)
ccall(
(:SCIPhashsetExists, libscip),
Cuint,
(Ptr{SCIP_HASHSET}, Ptr{Cvoid}),
hashset,
element,
)
end
function SCIPhashsetRemove(hashset, element)
ccall(
(:SCIPhashsetRemove, libscip),
SCIP_RETCODE,
(Ptr{SCIP_HASHSET}, Ptr{Cvoid}),
hashset,
element,
)
end
function SCIPhashsetPrintStatistics(hashset, messagehdlr)
ccall(
(:SCIPhashsetPrintStatistics, libscip),
Cvoid,
(Ptr{SCIP_HASHSET}, Ptr{SCIP_MESSAGEHDLR}),
hashset,
messagehdlr,
)
end
function SCIPhashsetIsEmpty(hashset)
ccall((:SCIPhashsetIsEmpty, libscip), Cuint, (Ptr{SCIP_HASHSET},), hashset)
end
function SCIPhashsetGetNElements(hashset)
ccall(
(:SCIPhashsetGetNElements, libscip),
Cint,
(Ptr{SCIP_HASHSET},),
hashset,
)
end
function SCIPhashsetGetNSlots(hashset)
ccall((:SCIPhashsetGetNSlots, libscip), Cint, (Ptr{SCIP_HASHSET},), hashset)
end
function SCIPhashsetGetSlots(hashset)
ccall(
(:SCIPhashsetGetSlots, libscip),
Ptr{Ptr{Cvoid}},
(Ptr{SCIP_HASHSET},),
hashset,
)
end
function SCIPhashsetRemoveAll(hashset)
ccall(
(:SCIPhashsetRemoveAll, libscip),
Cvoid,
(Ptr{SCIP_HASHSET},),
hashset,
)
end
function SCIPactivityCreate(activity, var, duration, demand)
ccall(
(:SCIPactivityCreate, libscip),
SCIP_RETCODE,
(Ptr{Ptr{SCIP_RESOURCEACTIVITY}}, Ptr{SCIP_VAR}, Cint, Cint),
activity,
var,
duration,
demand,
)
end
function SCIPactivityFree(activity)
ccall(
(:SCIPactivityFree, libscip),
Cvoid,
(Ptr{Ptr{SCIP_RESOURCEACTIVITY}},),
activity,
)
end
function SCIPactivityGetVar(activity)
ccall(
(:SCIPactivityGetVar, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP_RESOURCEACTIVITY},),
activity,
)
end
function SCIPactivityGetDuration(activity)
ccall(
(:SCIPactivityGetDuration, libscip),
Cint,
(Ptr{SCIP_RESOURCEACTIVITY},),
activity,
)
end
function SCIPactivityGetDemand(activity)
ccall(
(:SCIPactivityGetDemand, libscip),
Cint,
(Ptr{SCIP_RESOURCEACTIVITY},),
activity,
)
end
function SCIPactivityGetEnergy(activity)
ccall(
(:SCIPactivityGetEnergy, libscip),
Cint,
(Ptr{SCIP_RESOURCEACTIVITY},),
activity,
)
end
function SCIPprofileCreate(profile, capacity)
ccall(
(:SCIPprofileCreate, libscip),
SCIP_RETCODE,
(Ptr{Ptr{SCIP_PROFILE}}, Cint),
profile,
capacity,
)
end
function SCIPprofileFree(profile)
ccall(
(:SCIPprofileFree, libscip),
Cvoid,
(Ptr{Ptr{SCIP_PROFILE}},),
profile,
)
end
function SCIPprofilePrint(profile, messagehdlr, file)
ccall(
(:SCIPprofilePrint, libscip),
Cvoid,
(Ptr{SCIP_PROFILE}, Ptr{SCIP_MESSAGEHDLR}, Ptr{Libc.FILE}),
profile,
messagehdlr,
file,
)
end
function SCIPprofileGetCapacity(profile)
ccall(
(:SCIPprofileGetCapacity, libscip),
Cint,
(Ptr{SCIP_PROFILE},),
profile,
)
end
function SCIPprofileGetNTimepoints(profile)
ccall(
(:SCIPprofileGetNTimepoints, libscip),
Cint,
(Ptr{SCIP_PROFILE},),
profile,
)
end
function SCIPprofileGetTimepoints(profile)
ccall(
(:SCIPprofileGetTimepoints, libscip),
Ptr{Cint},
(Ptr{SCIP_PROFILE},),
profile,
)
end
function SCIPprofileGetLoads(profile)
ccall(
(:SCIPprofileGetLoads, libscip),
Ptr{Cint},
(Ptr{SCIP_PROFILE},),
profile,
)
end
function SCIPprofileGetTime(profile, pos)
ccall(
(:SCIPprofileGetTime, libscip),
Cint,
(Ptr{SCIP_PROFILE}, Cint),
profile,
pos,
)
end
function SCIPprofileGetLoad(profile, pos)
ccall(
(:SCIPprofileGetLoad, libscip),
Cint,
(Ptr{SCIP_PROFILE}, Cint),
profile,
pos,
)
end
function SCIPprofileFindLeft(profile, timepoint, pos)
ccall(
(:SCIPprofileFindLeft, libscip),
Cuint,
(Ptr{SCIP_PROFILE}, Cint, Ptr{Cint}),
profile,
timepoint,
pos,
)
end
function SCIPprofileInsertCore(profile, left, right, height, pos, infeasible)
ccall(
(:SCIPprofileInsertCore, libscip),
SCIP_RETCODE,
(Ptr{SCIP_PROFILE}, Cint, Cint, Cint, Ptr{Cint}, Ptr{Cuint}),
profile,
left,
right,
height,
pos,
infeasible,
)
end
function SCIPprofileDeleteCore(profile, left, right, height)
ccall(
(:SCIPprofileDeleteCore, libscip),
SCIP_RETCODE,
(Ptr{SCIP_PROFILE}, Cint, Cint, Cint),
profile,
left,
right,
height,
)
end
function SCIPprofileGetEarliestFeasibleStart(
profile,
est,
lst,
duration,
height,
infeasible,
)
ccall(
(:SCIPprofileGetEarliestFeasibleStart, libscip),
Cint,
(Ptr{SCIP_PROFILE}, Cint, Cint, Cint, Cint, Ptr{Cuint}),
profile,
est,
lst,
duration,
height,
infeasible,
)
end
function SCIPprofileGetLatestFeasibleStart(
profile,
lb,
ub,
duration,
height,
infeasible,
)
ccall(
(:SCIPprofileGetLatestFeasibleStart, libscip),
Cint,
(Ptr{SCIP_PROFILE}, Cint, Cint, Cint, Cint, Ptr{Cuint}),
profile,
lb,
ub,
duration,
height,
infeasible,
)
end
function SCIPdigraphResize(digraph, nnodes)
ccall(
(:SCIPdigraphResize, libscip),
SCIP_RETCODE,
(Ptr{SCIP_DIGRAPH}, Cint),
digraph,
nnodes,
)
end
function SCIPdigraphSetSizes(digraph, sizes)
ccall(
(:SCIPdigraphSetSizes, libscip),
SCIP_RETCODE,
(Ptr{SCIP_DIGRAPH}, Ptr{Cint}),
digraph,
sizes,
)
end
function SCIPdigraphFree(digraph)
ccall(
(:SCIPdigraphFree, libscip),
Cvoid,
(Ptr{Ptr{SCIP_DIGRAPH}},),
digraph,
)
end
function SCIPdigraphAddArc(digraph, startnode, endnode, data)
ccall(
(:SCIPdigraphAddArc, libscip),
SCIP_RETCODE,
(Ptr{SCIP_DIGRAPH}, Cint, Cint, Ptr{Cvoid}),
digraph,
startnode,
endnode,
data,
)
end
function SCIPdigraphAddArcSafe(digraph, startnode, endnode, data)
ccall(
(:SCIPdigraphAddArcSafe, libscip),
SCIP_RETCODE,
(Ptr{SCIP_DIGRAPH}, Cint, Cint, Ptr{Cvoid}),
digraph,
startnode,
endnode,
data,
)
end
function SCIPdigraphSetNSuccessors(digraph, node, nsuccessors)
ccall(
(:SCIPdigraphSetNSuccessors, libscip),
SCIP_RETCODE,
(Ptr{SCIP_DIGRAPH}, Cint, Cint),
digraph,
node,
nsuccessors,
)
end
function SCIPdigraphGetNNodes(digraph)
ccall((:SCIPdigraphGetNNodes, libscip), Cint, (Ptr{SCIP_DIGRAPH},), digraph)
end
function SCIPdigraphGetNodeData(digraph, node)
ccall(
(:SCIPdigraphGetNodeData, libscip),
Ptr{Cvoid},
(Ptr{SCIP_DIGRAPH}, Cint),
digraph,
node,
)
end
function SCIPdigraphSetNodeData(digraph, dataptr, node)
ccall(
(:SCIPdigraphSetNodeData, libscip),
Cvoid,
(Ptr{SCIP_DIGRAPH}, Ptr{Cvoid}, Cint),
digraph,
dataptr,
node,
)
end
function SCIPdigraphGetNArcs(digraph)
ccall((:SCIPdigraphGetNArcs, libscip), Cint, (Ptr{SCIP_DIGRAPH},), digraph)
end
function SCIPdigraphGetNSuccessors(digraph, node)
ccall(
(:SCIPdigraphGetNSuccessors, libscip),
Cint,
(Ptr{SCIP_DIGRAPH}, Cint),
digraph,
node,
)
end
function SCIPdigraphGetSuccessors(digraph, node)
ccall(
(:SCIPdigraphGetSuccessors, libscip),
Ptr{Cint},
(Ptr{SCIP_DIGRAPH}, Cint),
digraph,
node,
)
end
function SCIPdigraphGetSuccessorsData(digraph, node)
ccall(
(:SCIPdigraphGetSuccessorsData, libscip),
Ptr{Ptr{Cvoid}},
(Ptr{SCIP_DIGRAPH}, Cint),
digraph,
node,
)
end
function SCIPdigraphGetArticulationPoints(
digraph,
articulations,
narticulations,
)
ccall(
(:SCIPdigraphGetArticulationPoints, libscip),
SCIP_RETCODE,
(Ptr{SCIP_DIGRAPH}, Ptr{Ptr{Cint}}, Ptr{Cint}),
digraph,
articulations,
narticulations,
)
end
function SCIPdigraphComputeUndirectedComponents(
digraph,
minsize,
components,
ncomponents,
)
ccall(
(:SCIPdigraphComputeUndirectedComponents, libscip),
SCIP_RETCODE,
(Ptr{SCIP_DIGRAPH}, Cint, Ptr{Cint}, Ptr{Cint}),
digraph,
minsize,
components,
ncomponents,
)
end
function SCIPdigraphComputeDirectedComponents(
digraph,
compidx,
strongcomponents,
strongcompstartidx,
nstrongcomponents,
)
ccall(
(:SCIPdigraphComputeDirectedComponents, libscip),
SCIP_RETCODE,
(Ptr{SCIP_DIGRAPH}, Cint, Ptr{Cint}, Ptr{Cint}, Ptr{Cint}),
digraph,
compidx,
strongcomponents,
strongcompstartidx,
nstrongcomponents,
)
end
function SCIPdigraphTopoSortComponents(digraph)
ccall(
(:SCIPdigraphTopoSortComponents, libscip),
SCIP_RETCODE,
(Ptr{SCIP_DIGRAPH},),
digraph,
)
end
function SCIPdigraphGetNComponents(digraph)
ccall(
(:SCIPdigraphGetNComponents, libscip),
Cint,
(Ptr{SCIP_DIGRAPH},),
digraph,
)
end
function SCIPdigraphGetComponent(digraph, compidx, nodes, nnodes)
ccall(
(:SCIPdigraphGetComponent, libscip),
Cvoid,
(Ptr{SCIP_DIGRAPH}, Cint, Ptr{Ptr{Cint}}, Ptr{Cint}),
digraph,
compidx,
nodes,
nnodes,
)
end
function SCIPdigraphFreeComponents(digraph)
ccall(
(:SCIPdigraphFreeComponents, libscip),
Cvoid,
(Ptr{SCIP_DIGRAPH},),
digraph,
)
end
function SCIPdigraphPrint(digraph, messagehdlr, file)
ccall(
(:SCIPdigraphPrint, libscip),
Cvoid,
(Ptr{SCIP_DIGRAPH}, Ptr{SCIP_MESSAGEHDLR}, Ptr{Libc.FILE}),
digraph,
messagehdlr,
file,
)
end
function SCIPdigraphPrintGml(digraph, file)
ccall(
(:SCIPdigraphPrintGml, libscip),
Cvoid,
(Ptr{SCIP_DIGRAPH}, Ptr{Libc.FILE}),
digraph,
file,
)
end
function SCIPdigraphPrintComponents(digraph, messagehdlr, file)
ccall(
(:SCIPdigraphPrintComponents, libscip),
Cvoid,
(Ptr{SCIP_DIGRAPH}, Ptr{SCIP_MESSAGEHDLR}, Ptr{Libc.FILE}),
digraph,
messagehdlr,
file,
)
end
function SCIPbtnodeCreate(tree, node, dataptr)
ccall(
(:SCIPbtnodeCreate, libscip),
SCIP_RETCODE,
(Ptr{SCIP_BT}, Ptr{Ptr{SCIP_BTNODE}}, Ptr{Cvoid}),
tree,
node,
dataptr,
)
end
function SCIPbtnodeFree(tree, node)
ccall(
(:SCIPbtnodeFree, libscip),
Cvoid,
(Ptr{SCIP_BT}, Ptr{Ptr{SCIP_BTNODE}}),
tree,
node,
)
end
function SCIPbtnodeGetData(node)
ccall((:SCIPbtnodeGetData, libscip), Ptr{Cvoid}, (Ptr{SCIP_BTNODE},), node)
end
function SCIPbtnodeGetParent(node)
ccall(
(:SCIPbtnodeGetParent, libscip),
Ptr{SCIP_BTNODE},
(Ptr{SCIP_BTNODE},),
node,
)
end
function SCIPbtnodeGetLeftchild(node)
ccall(
(:SCIPbtnodeGetLeftchild, libscip),
Ptr{SCIP_BTNODE},
(Ptr{SCIP_BTNODE},),
node,
)
end
function SCIPbtnodeGetRightchild(node)
ccall(
(:SCIPbtnodeGetRightchild, libscip),
Ptr{SCIP_BTNODE},
(Ptr{SCIP_BTNODE},),
node,
)
end
function SCIPbtnodeGetSibling(node)
ccall(
(:SCIPbtnodeGetSibling, libscip),
Ptr{SCIP_BTNODE},
(Ptr{SCIP_BTNODE},),
node,
)
end
function SCIPbtnodeIsRoot(node)
ccall((:SCIPbtnodeIsRoot, libscip), Cuint, (Ptr{SCIP_BTNODE},), node)
end
function SCIPbtnodeIsLeaf(node)
ccall((:SCIPbtnodeIsLeaf, libscip), Cuint, (Ptr{SCIP_BTNODE},), node)
end
function SCIPbtnodeIsLeftchild(node)
ccall((:SCIPbtnodeIsLeftchild, libscip), Cuint, (Ptr{SCIP_BTNODE},), node)
end
function SCIPbtnodeIsRightchild(node)
ccall((:SCIPbtnodeIsRightchild, libscip), Cuint, (Ptr{SCIP_BTNODE},), node)
end
function SCIPbtnodeSetData(node, dataptr)
ccall(
(:SCIPbtnodeSetData, libscip),
Cvoid,
(Ptr{SCIP_BTNODE}, Ptr{Cvoid}),
node,
dataptr,
)
end
function SCIPbtnodeSetParent(node, parent)
ccall(
(:SCIPbtnodeSetParent, libscip),
Cvoid,
(Ptr{SCIP_BTNODE}, Ptr{SCIP_BTNODE}),
node,
parent,
)
end
function SCIPbtnodeSetLeftchild(node, left)
ccall(
(:SCIPbtnodeSetLeftchild, libscip),
Cvoid,
(Ptr{SCIP_BTNODE}, Ptr{SCIP_BTNODE}),
node,
left,
)
end
function SCIPbtnodeSetRightchild(node, right)
ccall(
(:SCIPbtnodeSetRightchild, libscip),
Cvoid,
(Ptr{SCIP_BTNODE}, Ptr{SCIP_BTNODE}),
node,
right,
)
end
function SCIPbtCreate(tree, blkmem)
ccall(
(:SCIPbtCreate, libscip),
SCIP_RETCODE,
(Ptr{Ptr{SCIP_BT}}, Ptr{BMS_BLKMEM}),
tree,
blkmem,
)
end
function SCIPbtFree(tree)
ccall((:SCIPbtFree, libscip), Cvoid, (Ptr{Ptr{SCIP_BT}},), tree)
end
function SCIPbtPrintGml(tree, file)
ccall(
(:SCIPbtPrintGml, libscip),
Cvoid,
(Ptr{SCIP_BT}, Ptr{Libc.FILE}),
tree,
file,
)
end
function SCIPbtIsEmpty(tree)
ccall((:SCIPbtIsEmpty, libscip), Cuint, (Ptr{SCIP_BT},), tree)
end
function SCIPbtGetRoot(tree)
ccall((:SCIPbtGetRoot, libscip), Ptr{SCIP_BTNODE}, (Ptr{SCIP_BT},), tree)
end
function SCIPbtSetRoot(tree, root)
ccall(
(:SCIPbtSetRoot, libscip),
Cvoid,
(Ptr{SCIP_BT}, Ptr{SCIP_BTNODE}),
tree,
root,
)
end
function SCIPdisjointsetClear(djset)
ccall(
(:SCIPdisjointsetClear, libscip),
Cvoid,
(Ptr{SCIP_DISJOINTSET},),
djset,
)
end
function SCIPdisjointsetFind(djset, element)
ccall(
(:SCIPdisjointsetFind, libscip),
Cint,
(Ptr{SCIP_DISJOINTSET}, Cint),
djset,
element,
)
end
function SCIPdisjointsetUnion(djset, p, q, forcerepofp)
ccall(
(:SCIPdisjointsetUnion, libscip),
Cvoid,
(Ptr{SCIP_DISJOINTSET}, Cint, Cint, Cuint),
djset,
p,
q,
forcerepofp,
)
end
function SCIPdisjointsetGetComponentCount(djset)
ccall(
(:SCIPdisjointsetGetComponentCount, libscip),
Cint,
(Ptr{SCIP_DISJOINTSET},),
djset,
)
end
function SCIPdisjointsetGetSize(djset)
ccall(
(:SCIPdisjointsetGetSize, libscip),
Cint,
(Ptr{SCIP_DISJOINTSET},),
djset,
)
end
function SCIPcalcMachineEpsilon()
ccall((:SCIPcalcMachineEpsilon, libscip), Cdouble, ())
end
function SCIPnextafter(from, to)
ccall((:SCIPnextafter, libscip), Cdouble, (Cdouble, Cdouble), from, to)
end
function SCIPcalcGreComDiv(val1, val2)
ccall(
(:SCIPcalcGreComDiv, libscip),
Clonglong,
(Clonglong, Clonglong),
val1,
val2,
)
end
function SCIPcalcSmaComMul(val1, val2)
ccall(
(:SCIPcalcSmaComMul, libscip),
Clonglong,
(Clonglong, Clonglong),
val1,
val2,
)
end
function SCIPcalcBinomCoef(n, m)
ccall((:SCIPcalcBinomCoef, libscip), Clonglong, (Cint, Cint), n, m)
end
function SCIPcalcFibHash(v)
ccall((:SCIPcalcFibHash, libscip), Cuint, (Cdouble,), v)
end
function SCIPrealToRational(
val,
mindelta,
maxdelta,
maxdnom,
nominator,
denominator,
)
ccall(
(:SCIPrealToRational, libscip),
Cuint,
(Cdouble, Cdouble, Cdouble, Clonglong, Ptr{Clonglong}, Ptr{Clonglong}),
val,
mindelta,
maxdelta,
maxdnom,
nominator,
denominator,
)
end
function SCIPcalcIntegralScalar(
vals,
nvals,
mindelta,
maxdelta,
maxdnom,
maxscale,
intscalar,
success,
)
ccall(
(:SCIPcalcIntegralScalar, libscip),
SCIP_RETCODE,
(
Ptr{Cdouble},
Cint,
Cdouble,
Cdouble,
Clonglong,
Cdouble,
Ptr{Cdouble},
Ptr{Cuint},
),
vals,
nvals,
mindelta,
maxdelta,
maxdnom,
maxscale,
intscalar,
success,
)
end
function SCIPfindSimpleRational(lb, ub, maxdnom, nominator, denominator)
ccall(
(:SCIPfindSimpleRational, libscip),
Cuint,
(Cdouble, Cdouble, Clonglong, Ptr{Clonglong}, Ptr{Clonglong}),
lb,
ub,
maxdnom,
nominator,
denominator,
)
end
function SCIPselectSimpleValue(lb, ub, maxdnom)
ccall(
(:SCIPselectSimpleValue, libscip),
Cdouble,
(Cdouble, Cdouble, Clonglong),
lb,
ub,
maxdnom,
)
end
function SCIPcalcRootNewton(_function, derivative, params, nparams, x, eps, k)
ccall(
(:SCIPcalcRootNewton, libscip),
Cdouble,
(Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cdouble}, Cint, Cdouble, Cdouble, Cint),
_function,
derivative,
params,
nparams,
x,
eps,
k,
)
end
function SCIPrelDiff(val1, val2)
ccall((:SCIPrelDiff, libscip), Cdouble, (Cdouble, Cdouble), val1, val2)
end
function SCIPcomputeGap(eps, inf, primalbound, dualbound)
ccall(
(:SCIPcomputeGap, libscip),
Cdouble,
(Cdouble, Cdouble, Cdouble, Cdouble),
eps,
inf,
primalbound,
dualbound,
)
end
function SCIPgetRandomInt(minrandval, maxrandval, seedp)
ccall(
(:SCIPgetRandomInt, libscip),
Cint,
(Cint, Cint, Ptr{Cuint}),
minrandval,
maxrandval,
seedp,
)
end
function SCIPrandomGetInt(randgen, minrandval, maxrandval)
ccall(
(:SCIPrandomGetInt, libscip),
Cint,
(Ptr{SCIP_RANDNUMGEN}, Cint, Cint),
randgen,
minrandval,
maxrandval,
)
end
function SCIPrandomGetSubset(randgen, set, nelems, subset, nsubelems)
ccall(
(:SCIPrandomGetSubset, libscip),
SCIP_RETCODE,
(Ptr{SCIP_RANDNUMGEN}, Ptr{Ptr{Cvoid}}, Cint, Ptr{Ptr{Cvoid}}, Cint),
randgen,
set,
nelems,
subset,
nsubelems,
)
end
function SCIPrandomGetReal(randgen, minrandval, maxrandval)
ccall(
(:SCIPrandomGetReal, libscip),
Cdouble,
(Ptr{SCIP_RANDNUMGEN}, Cdouble, Cdouble),
randgen,
minrandval,
maxrandval,
)
end
function SCIPgetRandomReal(minrandval, maxrandval, seedp)
ccall(
(:SCIPgetRandomReal, libscip),
Cdouble,
(Cdouble, Cdouble, Ptr{Cuint}),
minrandval,
maxrandval,
seedp,
)
end
function SCIPgetRandomSubset(set, nelems, subset, nsubelems, randseed)
ccall(
(:SCIPgetRandomSubset, libscip),
SCIP_RETCODE,
(Ptr{Ptr{Cvoid}}, Cint, Ptr{Ptr{Cvoid}}, Cint, Cuint),
set,
nelems,
subset,
nsubelems,
randseed,
)
end
function SCIPswapInts(value1, value2)
ccall(
(:SCIPswapInts, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}),
value1,
value2,
)
end
function SCIPswapReals(value1, value2)
ccall(
(:SCIPswapReals, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}),
value1,
value2,
)
end
function SCIPswapPointers(pointer1, pointer2)
ccall(
(:SCIPswapPointers, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}),
pointer1,
pointer2,
)
end
function SCIPpermuteIntArray(array, _begin, _end, randseed)
ccall(
(:SCIPpermuteIntArray, libscip),
Cvoid,
(Ptr{Cint}, Cint, Cint, Ptr{Cuint}),
array,
_begin,
_end,
randseed,
)
end
function SCIPrandomPermuteIntArray(randgen, array, _begin, _end)
ccall(
(:SCIPrandomPermuteIntArray, libscip),
Cvoid,
(Ptr{SCIP_RANDNUMGEN}, Ptr{Cint}, Cint, Cint),
randgen,
array,
_begin,
_end,
)
end
function SCIPrandomPermuteArray(randgen, array, _begin, _end)
ccall(
(:SCIPrandomPermuteArray, libscip),
Cvoid,
(Ptr{SCIP_RANDNUMGEN}, Ptr{Ptr{Cvoid}}, Cint, Cint),
randgen,
array,
_begin,
_end,
)
end
function SCIPpermuteArray(array, _begin, _end, randseed)
ccall(
(:SCIPpermuteArray, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Cint, Cint, Ptr{Cuint}),
array,
_begin,
_end,
randseed,
)
end
function SCIPcomputeArraysIntersection(
array1,
narray1,
array2,
narray2,
intersectarray,
nintersectarray,
)
ccall(
(:SCIPcomputeArraysIntersection, libscip),
SCIP_RETCODE,
(Ptr{Cint}, Cint, Ptr{Cint}, Cint, Ptr{Cint}, Ptr{Cint}),
array1,
narray1,
array2,
narray2,
intersectarray,
nintersectarray,
)
end
function SCIPcomputeArraysIntersectionInt(
array1,
narray1,
array2,
narray2,
intersectarray,
nintersectarray,
)
ccall(
(:SCIPcomputeArraysIntersectionInt, libscip),
Cvoid,
(Ptr{Cint}, Cint, Ptr{Cint}, Cint, Ptr{Cint}, Ptr{Cint}),
array1,
narray1,
array2,
narray2,
intersectarray,
nintersectarray,
)
end
function SCIPcomputeArraysIntersectionPtr(
array1,
narray1,
array2,
narray2,
ptrcomp,
intersectarray,
nintersectarray,
)
ccall(
(:SCIPcomputeArraysIntersectionPtr, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Cint,
Ptr{Ptr{Cvoid}},
Cint,
Ptr{Cvoid},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
),
array1,
narray1,
array2,
narray2,
ptrcomp,
intersectarray,
nintersectarray,
)
end
function SCIPcomputeArraysSetminus(
array1,
narray1,
array2,
narray2,
setminusarray,
nsetminusarray,
)
ccall(
(:SCIPcomputeArraysSetminus, libscip),
SCIP_RETCODE,
(Ptr{Cint}, Cint, Ptr{Cint}, Cint, Ptr{Cint}, Ptr{Cint}),
array1,
narray1,
array2,
narray2,
setminusarray,
nsetminusarray,
)
end
function SCIPcomputeArraysSetminusInt(
array1,
narray1,
array2,
narray2,
setminusarray,
nsetminusarray,
)
ccall(
(:SCIPcomputeArraysSetminusInt, libscip),
Cvoid,
(Ptr{Cint}, Cint, Ptr{Cint}, Cint, Ptr{Cint}, Ptr{Cint}),
array1,
narray1,
array2,
narray2,
setminusarray,
nsetminusarray,
)
end
function SCIPmemccpy(dest, src, stop, cnt)
ccall(
(:SCIPmemccpy, libscip),
Cint,
(Ptr{Cchar}, Ptr{Cchar}, Cchar, Cuint),
dest,
src,
stop,
cnt,
)
end
function SCIPprintSysError(message)
ccall((:SCIPprintSysError, libscip), Cvoid, (Ptr{Cchar},), message)
end
function SCIPstrtok(s, delim, ptrptr)
ccall(
(:SCIPstrtok, libscip),
Ptr{Cchar},
(Ptr{Cchar}, Ptr{Cchar}, Ptr{Ptr{Cchar}}),
s,
delim,
ptrptr,
)
end
function SCIPescapeString(t, bufsize, s)
ccall(
(:SCIPescapeString, libscip),
Cvoid,
(Ptr{Cchar}, Cint, Ptr{Cchar}),
t,
bufsize,
s,
)
end
function SCIPstrncpy(t, s, size)
ccall(
(:SCIPstrncpy, libscip),
Cint,
(Ptr{Cchar}, Ptr{Cchar}, Cint),
t,
s,
size,
)
end
function SCIPstrToIntValue(str, value, endptr)
ccall(
(:SCIPstrToIntValue, libscip),
Cuint,
(Ptr{Cchar}, Ptr{Cint}, Ptr{Ptr{Cchar}}),
str,
value,
endptr,
)
end
function SCIPstrToRealValue(str, value, endptr)
ccall(
(:SCIPstrToRealValue, libscip),
Cuint,
(Ptr{Cchar}, Ptr{Cdouble}, Ptr{Ptr{Cchar}}),
str,
value,
endptr,
)
end
function SCIPstrCopySection(str, startchar, endchar, token, size, endptr)
ccall(
(:SCIPstrCopySection, libscip),
Cvoid,
(Ptr{Cchar}, Cchar, Cchar, Ptr{Cchar}, Cint, Ptr{Ptr{Cchar}}),
str,
startchar,
endchar,
token,
size,
endptr,
)
end
function SCIPstrAtStart(s, t, tlen)
ccall(
(:SCIPstrAtStart, libscip),
Cuint,
(Ptr{Cchar}, Ptr{Cchar}, Csize_t),
s,
t,
tlen,
)
end
function SCIPfileExists(filename)
ccall((:SCIPfileExists, libscip), Cuint, (Ptr{Cchar},), filename)
end
function SCIPsplitFilename(filename, path, name, extension, compression)
ccall(
(:SCIPsplitFilename, libscip),
Cvoid,
(
Ptr{Cchar},
Ptr{Ptr{Cchar}},
Ptr{Ptr{Cchar}},
Ptr{Ptr{Cchar}},
Ptr{Ptr{Cchar}},
),
filename,
path,
name,
extension,
compression,
)
end
function SCIPconsGetRhs(scip, cons, success)
ccall(
(:SCIPconsGetRhs, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{Cuint}),
scip,
cons,
success,
)
end
function SCIPconsGetLhs(scip, cons, success)
ccall(
(:SCIPconsGetLhs, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{Cuint}),
scip,
cons,
success,
)
end
function SCIPgetConsVals(scip, cons, vals, varssize, success)
ccall(
(:SCIPgetConsVals, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{Cdouble}, Cint, Ptr{Cuint}),
scip,
cons,
vals,
varssize,
success,
)
end
function SCIPconsGetDualfarkas(scip, cons, dualfarkas, success)
ccall(
(:SCIPconsGetDualfarkas, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{Cdouble}, Ptr{Cuint}),
scip,
cons,
dualfarkas,
success,
)
end
function SCIPconsGetDualsol(scip, cons, dualsol, success)
ccall(
(:SCIPconsGetDualsol, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{Cdouble}, Ptr{Cuint}),
scip,
cons,
dualsol,
success,
)
end
function SCIPconsGetRow(scip, cons)
ccall(
(:SCIPconsGetRow, libscip),
Ptr{SCIP_ROW},
(Ptr{SCIP}, Ptr{SCIP_CONS}),
scip,
cons,
)
end
function SCIPconsAddCoef(scip, cons, var, val)
ccall(
(:SCIPconsAddCoef, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_CONS}, Ptr{SCIP_VAR}, Cdouble),
scip,
cons,
var,
val,
)
end
function SCIPcreateRowprep(scip, rowprep, sidetype, _local)
ccall(
(:SCIPcreateRowprep, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_ROWPREP}}, SCIP_SIDETYPE, Cuint),
scip,
rowprep,
sidetype,
_local,
)
end
function SCIPfreeRowprep(scip, rowprep)
ccall(
(:SCIPfreeRowprep, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{Ptr{SCIP_ROWPREP}}),
scip,
rowprep,
)
end
function SCIPcopyRowprep(scip, target, source)
ccall(
(:SCIPcopyRowprep, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_ROWPREP}}, Ptr{SCIP_ROWPREP}),
scip,
target,
source,
)
end
function SCIProwprepGetNVars(rowprep)
ccall((:SCIProwprepGetNVars, libscip), Cint, (Ptr{SCIP_ROWPREP},), rowprep)
end
function SCIProwprepGetVars(rowprep)
ccall(
(:SCIProwprepGetVars, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP_ROWPREP},),
rowprep,
)
end
function SCIProwprepGetCoefs(rowprep)
ccall(
(:SCIProwprepGetCoefs, libscip),
Ptr{Cdouble},
(Ptr{SCIP_ROWPREP},),
rowprep,
)
end
function SCIProwprepGetSide(rowprep)
ccall(
(:SCIProwprepGetSide, libscip),
Cdouble,
(Ptr{SCIP_ROWPREP},),
rowprep,
)
end
function SCIProwprepGetSidetype(rowprep)
ccall(
(:SCIProwprepGetSidetype, libscip),
SCIP_SIDETYPE,
(Ptr{SCIP_ROWPREP},),
rowprep,
)
end
function SCIProwprepIsLocal(rowprep)
ccall((:SCIProwprepIsLocal, libscip), Cuint, (Ptr{SCIP_ROWPREP},), rowprep)
end
function SCIProwprepGetName(rowprep)
ccall(
(:SCIProwprepGetName, libscip),
Ptr{Cchar},
(Ptr{SCIP_ROWPREP},),
rowprep,
)
end
function SCIProwprepGetNModifiedVars(rowprep)
ccall(
(:SCIProwprepGetNModifiedVars, libscip),
Cint,
(Ptr{SCIP_ROWPREP},),
rowprep,
)
end
function SCIProwprepGetModifiedVars(rowprep)
ccall(
(:SCIProwprepGetModifiedVars, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP_ROWPREP},),
rowprep,
)
end
function SCIProwprepReset(rowprep)
ccall((:SCIProwprepReset, libscip), Cvoid, (Ptr{SCIP_ROWPREP},), rowprep)
end
function SCIProwprepAddSide(rowprep, side)
ccall(
(:SCIProwprepAddSide, libscip),
Cvoid,
(Ptr{SCIP_ROWPREP}, Cdouble),
rowprep,
side,
)
end
function SCIProwprepAddConstant(rowprep, constant)
ccall(
(:SCIProwprepAddConstant, libscip),
Cvoid,
(Ptr{SCIP_ROWPREP}, Cdouble),
rowprep,
constant,
)
end
function SCIProwprepSetSidetype(rowprep, sidetype)
ccall(
(:SCIProwprepSetSidetype, libscip),
Cvoid,
(Ptr{SCIP_ROWPREP}, SCIP_SIDETYPE),
rowprep,
sidetype,
)
end
function SCIProwprepSetLocal(rowprep, islocal)
ccall(
(:SCIProwprepSetLocal, libscip),
Cvoid,
(Ptr{SCIP_ROWPREP}, Cuint),
rowprep,
islocal,
)
end
function SCIProwprepRecordModifications(rowprep)
ccall(
(:SCIProwprepRecordModifications, libscip),
Cvoid,
(Ptr{SCIP_ROWPREP},),
rowprep,
)
end
function SCIPprintRowprep(scip, rowprep, file)
ccall(
(:SCIPprintRowprep, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_ROWPREP}, Ptr{Libc.FILE}),
scip,
rowprep,
file,
)
end
function SCIPprintRowprepSol(scip, rowprep, sol, file)
ccall(
(:SCIPprintRowprepSol, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_ROWPREP}, Ptr{SCIP_SOL}, Ptr{Libc.FILE}),
scip,
rowprep,
sol,
file,
)
end
function SCIPensureRowprepSize(scip, rowprep, size)
ccall(
(:SCIPensureRowprepSize, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROWPREP}, Cint),
scip,
rowprep,
size,
)
end
function SCIPaddRowprepTerm(scip, rowprep, var, coef)
ccall(
(:SCIPaddRowprepTerm, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROWPREP}, Ptr{SCIP_VAR}, Cdouble),
scip,
rowprep,
var,
coef,
)
end
function SCIPaddRowprepTerms(scip, rowprep, nvars, vars, coefs)
ccall(
(:SCIPaddRowprepTerms, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROWPREP}, Cint, Ptr{Ptr{SCIP_VAR}}, Ptr{Cdouble}),
scip,
rowprep,
nvars,
vars,
coefs,
)
end
function SCIPgetRowprepViolation(scip, rowprep, sol, reliable)
ccall(
(:SCIPgetRowprepViolation, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_ROWPREP}, Ptr{SCIP_SOL}, Ptr{Cuint}),
scip,
rowprep,
sol,
reliable,
)
end
function SCIPisRowprepViolationReliable(scip, rowprep, sol)
ccall(
(:SCIPisRowprepViolationReliable, libscip),
Cuint,
(Ptr{SCIP}, Ptr{SCIP_ROWPREP}, Ptr{SCIP_SOL}),
scip,
rowprep,
sol,
)
end
function SCIPmergeRowprepTerms(scip, rowprep)
ccall(
(:SCIPmergeRowprepTerms, libscip),
Cvoid,
(Ptr{SCIP}, Ptr{SCIP_ROWPREP}),
scip,
rowprep,
)
end
function SCIPcleanupRowprep(scip, rowprep, sol, minviol, viol, success)
ccall(
(:SCIPcleanupRowprep, libscip),
SCIP_RETCODE,
(
Ptr{SCIP},
Ptr{SCIP_ROWPREP},
Ptr{SCIP_SOL},
Cdouble,
Ptr{Cdouble},
Ptr{Cuint},
),
scip,
rowprep,
sol,
minviol,
viol,
success,
)
end
function SCIPcleanupRowprep2(scip, rowprep, sol, maxcoefbound, success)
ccall(
(:SCIPcleanupRowprep2, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{SCIP_ROWPREP}, Ptr{SCIP_SOL}, Cdouble, Ptr{Cuint}),
scip,
rowprep,
sol,
maxcoefbound,
success,
)
end
function SCIPscaleupRowprep(scip, rowprep, minscaleup, success)
ccall(
(:SCIPscaleupRowprep, libscip),
Cdouble,
(Ptr{SCIP}, Ptr{SCIP_ROWPREP}, Cdouble, Ptr{Cuint}),
scip,
rowprep,
minscaleup,
success,
)
end
function SCIPscaleRowprep(rowprep, factor)
ccall(
(:SCIPscaleRowprep, libscip),
Cint,
(Ptr{SCIP_ROWPREP}, Cdouble),
rowprep,
factor,
)
end
function SCIPgetRowprepRowConshdlr(scip, row, rowprep, conshdlr)
ccall(
(:SCIPgetRowprepRowConshdlr, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_ROW}}, Ptr{SCIP_ROWPREP}, Ptr{SCIP_CONSHDLR}),
scip,
row,
rowprep,
conshdlr,
)
end
function SCIPgetRowprepRowCons(scip, row, rowprep, cons)
ccall(
(:SCIPgetRowprepRowCons, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_ROW}}, Ptr{SCIP_ROWPREP}, Ptr{SCIP_CONS}),
scip,
row,
rowprep,
cons,
)
end
function SCIPgetRowprepRowSepa(scip, row, rowprep, sepa)
ccall(
(:SCIPgetRowprepRowSepa, libscip),
SCIP_RETCODE,
(Ptr{SCIP}, Ptr{Ptr{SCIP_ROW}}, Ptr{SCIP_ROWPREP}, Ptr{SCIP_SEPA}),
scip,
row,
rowprep,
sepa,
)
end
function SCIPselectInd(indarray, indcomp, dataptr, k, len)
ccall(
(:SCIPselectInd, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cvoid}, Ptr{Cvoid}, Cint, Cint),
indarray,
indcomp,
dataptr,
k,
len,
)
end
function SCIPselectWeightedInd(
indarray,
indcomp,
dataptr,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedInd, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
indarray,
indcomp,
dataptr,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectPtr(ptrarray, ptrcomp, k, len)
ccall(
(:SCIPselectPtr, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cvoid}, Cint, Cint),
ptrarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedPtr(
ptrarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedPtr, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cvoid}, Ptr{Cdouble}, Cdouble, Cint, Ptr{Cint}),
ptrarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectPtrPtr(ptrarray1, ptrarray2, ptrcomp, k, len)
ccall(
(:SCIPselectPtrPtr, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Ptr{Cvoid}, Cint, Cint),
ptrarray1,
ptrarray2,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedPtrPtr(
ptrarray1,
ptrarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedPtrPtr, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectPtrReal(ptrarray, realarray, ptrcomp, k, len)
ccall(
(:SCIPselectPtrReal, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cvoid}, Cint, Cint),
ptrarray,
realarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedPtrReal(
ptrarray,
realarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedPtrReal, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray,
realarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectPtrInt(ptrarray, intarray, ptrcomp, k, len)
ccall(
(:SCIPselectPtrInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cvoid}, Cint, Cint),
ptrarray,
intarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedPtrInt(
ptrarray,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedPtrInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectPtrBool(ptrarray, boolarray, ptrcomp, k, len)
ccall(
(:SCIPselectPtrBool, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cuint}, Ptr{Cvoid}, Cint, Cint),
ptrarray,
boolarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedPtrBool(
ptrarray,
boolarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedPtrBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cuint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray,
boolarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectPtrIntInt(ptrarray, intarray1, intarray2, ptrcomp, k, len)
ccall(
(:SCIPselectPtrIntInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cint}, Ptr{Cvoid}, Cint, Cint),
ptrarray,
intarray1,
intarray2,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedPtrIntInt(
ptrarray,
intarray1,
intarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedPtrIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray,
intarray1,
intarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectPtrRealInt(ptrarray, realarray, intarray, ptrcomp, k, len)
ccall(
(:SCIPselectPtrRealInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cvoid}, Cint, Cint),
ptrarray,
realarray,
intarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedPtrRealInt(
ptrarray,
realarray,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedPtrRealInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray,
realarray,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectPtrRealRealInt(
ptrarray,
realarray1,
realarray2,
intarray,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectPtrRealRealInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Cint,
),
ptrarray,
realarray1,
realarray2,
intarray,
ptrcomp,
k,
len,
)
end
function SCIPselectPtrRealRealBoolBool(
ptrarray,
realarray1,
realarray2,
boolarray1,
boolarray2,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectPtrRealRealBoolBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cvoid},
Cint,
Cint,
),
ptrarray,
realarray1,
realarray2,
boolarray1,
boolarray2,
ptrcomp,
k,
len,
)
end
function SCIPselectPtrRealRealIntBool(
ptrarray,
realarray1,
realarray2,
intarray,
boolarray,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectPtrRealRealIntBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cvoid},
Cint,
Cint,
),
ptrarray,
realarray1,
realarray2,
intarray,
boolarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedPtrRealRealInt(
ptrarray,
realarray1,
realarray2,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedPtrRealRealInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray,
realarray1,
realarray2,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectWeightedPtrRealRealBoolBool(
ptrarray,
realarray1,
realarray2,
boolarray1,
boolarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedPtrRealRealBoolBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray,
realarray1,
realarray2,
boolarray1,
boolarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectWeightedPtrRealRealIntBool(
ptrarray,
realarray1,
realarray2,
intarray,
boolarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedPtrRealRealIntBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray,
realarray1,
realarray2,
intarray,
boolarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectPtrRealBool(ptrarray, realarray, boolarray, ptrcomp, k, len)
ccall(
(:SCIPselectPtrRealBool, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cuint}, Ptr{Cvoid}, Cint, Cint),
ptrarray,
realarray,
boolarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedPtrRealBool(
ptrarray,
realarray,
boolarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedPtrRealBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray,
realarray,
boolarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectPtrRealReal(
ptrarray,
realarray1,
realarray2,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectPtrRealReal, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cvoid}, Cint, Cint),
ptrarray,
realarray1,
realarray2,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedPtrRealReal(
ptrarray,
realarray1,
realarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedPtrRealReal, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray,
realarray1,
realarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectPtrPtrInt(ptrarray1, ptrarray2, intarray, ptrcomp, k, len)
ccall(
(:SCIPselectPtrPtrInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cvoid}, Cint, Cint),
ptrarray1,
ptrarray2,
intarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedPtrPtrInt(
ptrarray1,
ptrarray2,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedPtrPtrInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectPtrPtrReal(ptrarray1, ptrarray2, realarray, ptrcomp, k, len)
ccall(
(:SCIPselectPtrPtrReal, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cvoid},
Cint,
Cint,
),
ptrarray1,
ptrarray2,
realarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedPtrPtrReal(
ptrarray1,
ptrarray2,
realarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedPtrPtrReal, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
realarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectPtrPtrIntInt(
ptrarray1,
ptrarray2,
intarray1,
intarray2,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Cint,
),
ptrarray1,
ptrarray2,
intarray1,
intarray2,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedPtrPtrIntInt(
ptrarray1,
ptrarray2,
intarray1,
intarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
intarray1,
intarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectPtrRealIntInt(
ptrarray,
realarray,
intarray1,
intarray2,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectPtrRealIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Cint,
),
ptrarray,
realarray,
intarray1,
intarray2,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedPtrRealIntInt(
ptrarray,
realarray,
intarray1,
intarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedPtrRealIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray,
realarray,
intarray1,
intarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectPtrPtrRealInt(
ptrarray1,
ptrarray2,
realarray,
intarray,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectPtrPtrRealInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Cint,
),
ptrarray1,
ptrarray2,
realarray,
intarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedPtrPtrRealInt(
ptrarray1,
ptrarray2,
realarray,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedPtrPtrRealInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
realarray,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectPtrPtrRealBool(
ptrarray1,
ptrarray2,
realarray,
boolarray,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectPtrPtrRealBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cvoid},
Cint,
Cint,
),
ptrarray1,
ptrarray2,
realarray,
boolarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedPtrPtrRealBool(
ptrarray1,
ptrarray2,
realarray,
boolarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedPtrPtrRealBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
realarray,
boolarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectPtrPtrLongInt(
ptrarray1,
ptrarray2,
longarray,
intarray,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectPtrPtrLongInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Clonglong},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Cint,
),
ptrarray1,
ptrarray2,
longarray,
intarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedPtrPtrLongInt(
ptrarray1,
ptrarray2,
longarray,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedPtrPtrLongInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Clonglong},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
longarray,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectPtrPtrLongIntInt(
ptrarray1,
ptrarray2,
longarray,
intarray1,
intarray2,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectPtrPtrLongIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Clonglong},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Cint,
),
ptrarray1,
ptrarray2,
longarray,
intarray1,
intarray2,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedPtrPtrLongIntInt(
ptrarray1,
ptrarray2,
longarray,
intarray1,
intarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedPtrPtrLongIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Clonglong},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
longarray,
intarray1,
intarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectReal(realarray, k, len)
ccall(
(:SCIPselectReal, libscip),
Cvoid,
(Ptr{Cdouble}, Cint, Cint),
realarray,
k,
len,
)
end
function SCIPselectWeightedReal(realarray, weights, capacity, len, medianpos)
ccall(
(:SCIPselectWeightedReal, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Cdouble, Cint, Ptr{Cint}),
realarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectRealPtr(realarray, ptrarray, k, len)
ccall(
(:SCIPselectRealPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Cint, Cint),
realarray,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedRealPtr(
realarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedRealPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Cdouble, Cint, Ptr{Cint}),
realarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectRealInt(realarray, intarray, k, len)
ccall(
(:SCIPselectRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Cint, Cint),
realarray,
intarray,
k,
len,
)
end
function SCIPselectWeightedRealInt(
realarray,
intarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Ptr{Cdouble}, Cdouble, Cint, Ptr{Cint}),
realarray,
intarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectRealIntInt(realarray, intarray1, intarray2, k, len)
ccall(
(:SCIPselectRealIntInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}, Cint, Cint),
realarray,
intarray1,
intarray2,
k,
len,
)
end
function SCIPselectWeightedRealIntInt(
realarray,
intarray1,
intarray2,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedRealIntInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray,
intarray1,
intarray2,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectRealBoolPtr(realarray, boolarray, ptrarray, k, len)
ccall(
(:SCIPselectRealBoolPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cuint}, Ptr{Ptr{Cvoid}}, Cint, Cint),
realarray,
boolarray,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedRealBoolPtr(
realarray,
boolarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedRealBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray,
boolarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectRealIntLong(realarray, intarray, longarray, k, len)
ccall(
(:SCIPselectRealIntLong, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Ptr{Clonglong}, Cint, Cint),
realarray,
intarray,
longarray,
k,
len,
)
end
function SCIPselectWeightedRealIntLong(
realarray,
intarray,
longarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedRealIntLong, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cint},
Ptr{Clonglong},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray,
intarray,
longarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectRealIntPtr(realarray, intarray, ptrarray, k, len)
ccall(
(:SCIPselectRealIntPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint, Cint),
realarray,
intarray,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedRealIntPtr(
realarray,
intarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedRealIntPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray,
intarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectRealRealPtr(realarray1, realarray2, ptrarray, k, len)
ccall(
(:SCIPselectRealRealPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Cint, Cint),
realarray1,
realarray2,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedRealRealPtr(
realarray1,
realarray2,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedRealRealPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray1,
realarray2,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectRealPtrPtrInt(
realarray,
ptrarray1,
ptrarray2,
intarray,
k,
len,
)
ccall(
(:SCIPselectRealPtrPtrInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Cint, Cint),
realarray,
ptrarray1,
ptrarray2,
intarray,
k,
len,
)
end
function SCIPselectWeightedRealPtrPtrInt(
realarray,
ptrarray1,
ptrarray2,
intarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedRealPtrPtrInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray,
ptrarray1,
ptrarray2,
intarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectRealPtrPtrIntInt(
realarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
k,
len,
)
ccall(
(:SCIPselectRealPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Cint,
Cint,
),
realarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
k,
len,
)
end
function SCIPselectWeightedRealPtrPtrIntInt(
realarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedRealPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectRealLongRealInt(
realarray1,
longarray,
realarray3,
intarray,
k,
len,
)
ccall(
(:SCIPselectRealLongRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Clonglong}, Ptr{Cdouble}, Ptr{Cint}, Cint, Cint),
realarray1,
longarray,
realarray3,
intarray,
k,
len,
)
end
function SCIPselectWeightedRealLongRealInt(
realarray1,
longarray,
realarray3,
intarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedRealLongRealInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Clonglong},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray1,
longarray,
realarray3,
intarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectRealRealIntInt(
realarray1,
realarray2,
intarray1,
intarray2,
k,
len,
)
ccall(
(:SCIPselectRealRealIntInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}, Cint, Cint),
realarray1,
realarray2,
intarray1,
intarray2,
k,
len,
)
end
function SCIPselectWeightedRealRealIntInt(
realarray1,
realarray2,
intarray1,
intarray2,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedRealRealIntInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray1,
realarray2,
intarray1,
intarray2,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectRealRealRealInt(
realarray1,
realarray2,
realarray3,
intarray,
k,
len,
)
ccall(
(:SCIPselectRealRealRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cint}, Cint, Cint),
realarray1,
realarray2,
realarray3,
intarray,
k,
len,
)
end
function SCIPselectWeightedRealRealRealInt(
realarray1,
realarray2,
realarray3,
intarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedRealRealRealInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
intarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectRealRealRealPtr(
realarray1,
realarray2,
realarray3,
ptrarray,
k,
len,
)
ccall(
(:SCIPselectRealRealRealPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Cint, Cint),
realarray1,
realarray2,
realarray3,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedRealRealRealPtr(
realarray1,
realarray2,
realarray3,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedRealRealRealPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectRealRealRealBoolPtr(
realarray1,
realarray2,
realarray3,
boolarray,
ptrarray,
k,
len,
)
ccall(
(:SCIPselectRealRealRealBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Cint,
Cint,
),
realarray1,
realarray2,
realarray3,
boolarray,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedRealRealRealBoolPtr(
realarray1,
realarray2,
realarray3,
boolarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedRealRealRealBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
boolarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectRealRealRealBoolBoolPtr(
realarray1,
realarray2,
realarray3,
boolarray1,
boolarray2,
ptrarray,
k,
len,
)
ccall(
(:SCIPselectRealRealRealBoolBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Cint,
Cint,
),
realarray1,
realarray2,
realarray3,
boolarray1,
boolarray2,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedRealRealRealBoolBoolPtr(
realarray1,
realarray2,
realarray3,
boolarray1,
boolarray2,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedRealRealRealBoolBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
boolarray1,
boolarray2,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectInt(intarray, k, len)
ccall(
(:SCIPselectInt, libscip),
Cvoid,
(Ptr{Cint}, Cint, Cint),
intarray,
k,
len,
)
end
function SCIPselectWeightedInt(intarray, weights, capacity, len, medianpos)
ccall(
(:SCIPselectWeightedInt, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cdouble}, Cdouble, Cint, Ptr{Cint}),
intarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectIntInt(intarray1, intarray2, k, len)
ccall(
(:SCIPselectIntInt, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Cint, Cint),
intarray1,
intarray2,
k,
len,
)
end
function SCIPselectWeightedIntInt(
intarray1,
intarray2,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedIntInt, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cdouble}, Cdouble, Cint, Ptr{Cint}),
intarray1,
intarray2,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectIntPtr(intarray, ptrarray, k, len)
ccall(
(:SCIPselectIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint, Cint),
intarray,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedIntPtr(
intarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Cdouble, Cint, Ptr{Cint}),
intarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectIntReal(intarray, realarray, k, len)
ccall(
(:SCIPselectIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cdouble}, Cint, Cint),
intarray,
realarray,
k,
len,
)
end
function SCIPselectWeightedIntReal(
intarray,
realarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cdouble}, Ptr{Cdouble}, Cdouble, Cint, Ptr{Cint}),
intarray,
realarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectIntIntInt(intarray1, intarray2, intarray3, k, len)
ccall(
(:SCIPselectIntIntInt, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Cint, Cint),
intarray1,
intarray2,
intarray3,
k,
len,
)
end
function SCIPselectWeightedIntIntInt(
intarray1,
intarray2,
intarray3,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedIntIntInt, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
intarray1,
intarray2,
intarray3,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectIntIntLong(intarray1, intarray2, longarray, k, len)
ccall(
(:SCIPselectIntIntLong, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Clonglong}, Cint, Cint),
intarray1,
intarray2,
longarray,
k,
len,
)
end
function SCIPselectWeightedIntIntLong(
intarray1,
intarray2,
longarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedIntIntLong, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Clonglong},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
intarray1,
intarray2,
longarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectIntRealLong(intarray, realarray, longarray, k, len)
ccall(
(:SCIPselectIntRealLong, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cdouble}, Ptr{Clonglong}, Cint, Cint),
intarray,
realarray,
longarray,
k,
len,
)
end
function SCIPselectWeightedIntRealLong(
intarray,
realarray,
longarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedIntRealLong, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cdouble},
Ptr{Clonglong},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
intarray,
realarray,
longarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectIntIntPtr(intarray1, intarray2, ptrarray, k, len)
ccall(
(:SCIPselectIntIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint, Cint),
intarray1,
intarray2,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedIntIntPtr(
intarray1,
intarray2,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedIntIntPtr, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
intarray1,
intarray2,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectIntIntReal(intarray1, intarray2, realarray, k, len)
ccall(
(:SCIPselectIntIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cdouble}, Cint, Cint),
intarray1,
intarray2,
realarray,
k,
len,
)
end
function SCIPselectWeightedIntIntReal(
intarray1,
intarray2,
realarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedIntIntReal, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
intarray1,
intarray2,
realarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectIntPtrReal(intarray, ptrarray, realarray, k, len)
ccall(
(:SCIPselectIntPtrReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Cint, Cint),
intarray,
ptrarray,
realarray,
k,
len,
)
end
function SCIPselectWeightedIntPtrReal(
intarray,
ptrarray,
realarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedIntPtrReal, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
intarray,
ptrarray,
realarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectIntIntIntPtr(
intarray1,
intarray2,
intarray3,
ptrarray,
k,
len,
)
ccall(
(:SCIPselectIntIntIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint, Cint),
intarray1,
intarray2,
intarray3,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedIntIntIntPtr(
intarray1,
intarray2,
intarray3,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedIntIntIntPtr, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
intarray1,
intarray2,
intarray3,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectIntIntIntReal(
intarray1,
intarray2,
intarray3,
realarray,
k,
len,
)
ccall(
(:SCIPselectIntIntIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Ptr{Cdouble}, Cint, Cint),
intarray1,
intarray2,
intarray3,
realarray,
k,
len,
)
end
function SCIPselectWeightedIntIntIntReal(
intarray1,
intarray2,
intarray3,
realarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedIntIntIntReal, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
intarray1,
intarray2,
intarray3,
realarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectIntPtrIntReal(
intarray1,
ptrarray,
intarray2,
realarray,
k,
len,
)
ccall(
(:SCIPselectIntPtrIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cdouble}, Cint, Cint),
intarray1,
ptrarray,
intarray2,
realarray,
k,
len,
)
end
function SCIPselectWeightedIntPtrIntReal(
intarray1,
ptrarray,
intarray2,
realarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedIntPtrIntReal, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cdouble},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
intarray1,
ptrarray,
intarray2,
realarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectLong(longarray, k, len)
ccall(
(:SCIPselectLong, libscip),
Cvoid,
(Ptr{Clonglong}, Cint, Cint),
longarray,
k,
len,
)
end
function SCIPselectWeightedLong(longarray, weights, capacity, len, medianpos)
ccall(
(:SCIPselectWeightedLong, libscip),
Cvoid,
(Ptr{Clonglong}, Ptr{Cdouble}, Cdouble, Cint, Ptr{Cint}),
longarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectLongPtr(longarray, ptrarray, k, len)
ccall(
(:SCIPselectLongPtr, libscip),
Cvoid,
(Ptr{Clonglong}, Ptr{Ptr{Cvoid}}, Cint, Cint),
longarray,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedLongPtr(
longarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedLongPtr, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
longarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectLongPtrInt(longarray, ptrarray, intarray, k, len)
ccall(
(:SCIPselectLongPtrInt, libscip),
Cvoid,
(Ptr{Clonglong}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Cint, Cint),
longarray,
ptrarray,
intarray,
k,
len,
)
end
function SCIPselectWeightedLongPtrInt(
longarray,
ptrarray,
intarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedLongPtrInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
longarray,
ptrarray,
intarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectLongPtrRealBool(
longarray,
ptrarray,
realarray,
boolarray,
k,
len,
)
ccall(
(:SCIPselectLongPtrRealBool, libscip),
Cvoid,
(Ptr{Clonglong}, Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cuint}, Cint, Cint),
longarray,
ptrarray,
realarray,
boolarray,
k,
len,
)
end
function SCIPselectWeightedLongPtrRealBool(
longarray,
ptrarray,
realarray,
boolarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedLongPtrRealBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
longarray,
ptrarray,
realarray,
boolarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectLongPtrRealRealBool(
longarray,
ptrarray,
realarray,
realarray2,
boolarray,
k,
len,
)
ccall(
(:SCIPselectLongPtrRealRealBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Cint,
Cint,
),
longarray,
ptrarray,
realarray,
realarray2,
boolarray,
k,
len,
)
end
function SCIPselectWeightedLongPtrRealRealBool(
longarray,
ptrarray,
realarray,
realarray2,
boolarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedLongPtrRealRealBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
longarray,
ptrarray,
realarray,
realarray2,
boolarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectLongPtrRealRealIntBool(
longarray,
ptrarray,
realarray,
realarray2,
intarray,
boolarray,
k,
len,
)
ccall(
(:SCIPselectLongPtrRealRealIntBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cuint},
Cint,
Cint,
),
longarray,
ptrarray,
realarray,
realarray2,
intarray,
boolarray,
k,
len,
)
end
function SCIPselectWeightedLongPtrRealRealIntBool(
longarray,
ptrarray,
realarray,
realarray2,
intarray,
boolarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedLongPtrRealRealIntBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
longarray,
ptrarray,
realarray,
realarray2,
intarray,
boolarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectLongPtrPtrInt(
longarray,
ptrarray1,
ptrarray2,
intarray,
k,
len,
)
ccall(
(:SCIPselectLongPtrPtrInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Cint,
Cint,
),
longarray,
ptrarray1,
ptrarray2,
intarray,
k,
len,
)
end
function SCIPselectWeightedLongPtrPtrInt(
longarray,
ptrarray1,
ptrarray2,
intarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedLongPtrPtrInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
longarray,
ptrarray1,
ptrarray2,
intarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectLongPtrPtrIntInt(
longarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
k,
len,
)
ccall(
(:SCIPselectLongPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Cint,
Cint,
),
longarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
k,
len,
)
end
function SCIPselectWeightedLongPtrPtrIntInt(
longarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedLongPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
longarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectLongPtrPtrBoolInt(
longarray,
ptrarray1,
ptrarray2,
boolarray,
intarray,
k,
len,
)
ccall(
(:SCIPselectLongPtrPtrBoolInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cuint},
Ptr{Cint},
Cint,
Cint,
),
longarray,
ptrarray1,
ptrarray2,
boolarray,
intarray,
k,
len,
)
end
function SCIPselectWeightedLongPtrPtrBoolInt(
longarray,
ptrarray1,
ptrarray2,
boolarray,
intarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedLongPtrPtrBoolInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cuint},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
longarray,
ptrarray1,
ptrarray2,
boolarray,
intarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectPtrIntIntBoolBool(
ptrarray,
intarray1,
intarray2,
boolarray1,
boolarray2,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectPtrIntIntBoolBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cvoid},
Cint,
Cint,
),
ptrarray,
intarray1,
intarray2,
boolarray1,
boolarray2,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedPtrIntIntBoolBool(
ptrarray,
intarray1,
intarray2,
boolarray1,
boolarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedPtrIntIntBoolBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray,
intarray1,
intarray2,
boolarray1,
boolarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectIntPtrIntIntBoolBool(
intarray1,
ptrarray,
intarray2,
intarray3,
boolarray1,
boolarray2,
k,
len,
)
ccall(
(:SCIPselectIntPtrIntIntBoolBool, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Cint,
Cint,
),
intarray1,
ptrarray,
intarray2,
intarray3,
boolarray1,
boolarray2,
k,
len,
)
end
function SCIPselectWeightedIntPtrIntIntBoolBool(
intarray1,
ptrarray,
intarray2,
intarray3,
boolarray1,
boolarray2,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedIntPtrIntIntBoolBool, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
intarray1,
ptrarray,
intarray2,
intarray3,
boolarray1,
boolarray2,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownInd(indarray, indcomp, dataptr, k, len)
ccall(
(:SCIPselectDownInd, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cvoid}, Ptr{Cvoid}, Cint, Cint),
indarray,
indcomp,
dataptr,
k,
len,
)
end
function SCIPselectWeightedDownInd(
indarray,
indcomp,
dataptr,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownInd, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
indarray,
indcomp,
dataptr,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownPtr(ptrarray, ptrcomp, k, len)
ccall(
(:SCIPselectDownPtr, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cvoid}, Cint, Cint),
ptrarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedDownPtr(
ptrarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownPtr, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cvoid}, Ptr{Cdouble}, Cdouble, Cint, Ptr{Cint}),
ptrarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownPtrPtr(ptrarray1, ptrarray2, ptrcomp, k, len)
ccall(
(:SCIPselectDownPtrPtr, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Ptr{Cvoid}, Cint, Cint),
ptrarray1,
ptrarray2,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedDownPtrPtr(
ptrarray1,
ptrarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownPtrPtr, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownPtrReal(ptrarray, realarray, ptrcomp, k, len)
ccall(
(:SCIPselectDownPtrReal, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cvoid}, Cint, Cint),
ptrarray,
realarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedDownPtrReal(
ptrarray,
realarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownPtrReal, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray,
realarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownPtrInt(ptrarray, intarray, ptrcomp, k, len)
ccall(
(:SCIPselectDownPtrInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cvoid}, Cint, Cint),
ptrarray,
intarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedDownPtrInt(
ptrarray,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownPtrInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownPtrBool(ptrarray, boolarray, ptrcomp, k, len)
ccall(
(:SCIPselectDownPtrBool, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cuint}, Ptr{Cvoid}, Cint, Cint),
ptrarray,
boolarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedDownPtrBool(
ptrarray,
boolarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownPtrBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cuint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray,
boolarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownPtrIntInt(
ptrarray,
intarray1,
intarray2,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectDownPtrIntInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cint}, Ptr{Cvoid}, Cint, Cint),
ptrarray,
intarray1,
intarray2,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedDownPtrIntInt(
ptrarray,
intarray1,
intarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownPtrIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray,
intarray1,
intarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownPtrRealInt(
ptrarray,
realarray,
intarray,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectDownPtrRealInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cvoid}, Cint, Cint),
ptrarray,
realarray,
intarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedDownPtrRealInt(
ptrarray,
realarray,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownPtrRealInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray,
realarray,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownPtrRealBool(
ptrarray,
realarray,
boolarray,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectDownPtrRealBool, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cuint}, Ptr{Cvoid}, Cint, Cint),
ptrarray,
realarray,
boolarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedDownPtrRealBool(
ptrarray,
realarray,
boolarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownPtrRealBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray,
realarray,
boolarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownPtrPtrInt(
ptrarray1,
ptrarray2,
intarray,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectDownPtrPtrInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cvoid}, Cint, Cint),
ptrarray1,
ptrarray2,
intarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedDownPtrPtrInt(
ptrarray1,
ptrarray2,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownPtrPtrInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownPtrPtrReal(
ptrarray1,
ptrarray2,
realarray,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectDownPtrPtrReal, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cvoid},
Cint,
Cint,
),
ptrarray1,
ptrarray2,
realarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedDownPtrPtrReal(
ptrarray1,
ptrarray2,
realarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownPtrPtrReal, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
realarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownPtrPtrIntInt(
ptrarray1,
ptrarray2,
intarray1,
intarray2,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectDownPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Cint,
),
ptrarray1,
ptrarray2,
intarray1,
intarray2,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedDownPtrPtrIntInt(
ptrarray1,
ptrarray2,
intarray1,
intarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
intarray1,
intarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownPtrRealIntInt(
ptrarray,
realarray,
intarray1,
intarray2,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectDownPtrRealIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Cint,
),
ptrarray,
realarray,
intarray1,
intarray2,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedDownPtrRealIntInt(
ptrarray,
realarray,
intarray1,
intarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownPtrRealIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray,
realarray,
intarray1,
intarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownPtrPtrRealInt(
ptrarray1,
ptrarray2,
realarray,
intarray,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectDownPtrPtrRealInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Cint,
),
ptrarray1,
ptrarray2,
realarray,
intarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedDownPtrPtrRealInt(
ptrarray1,
ptrarray2,
realarray,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownPtrPtrRealInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
realarray,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownPtrPtrRealBool(
ptrarray1,
ptrarray2,
realarray,
boolarray,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectDownPtrPtrRealBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cvoid},
Cint,
Cint,
),
ptrarray1,
ptrarray2,
realarray,
boolarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedDownPtrPtrRealBool(
ptrarray1,
ptrarray2,
realarray,
boolarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownPtrPtrRealBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
realarray,
boolarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownPtrPtrLongInt(
ptrarray1,
ptrarray2,
longarray,
intarray,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectDownPtrPtrLongInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Clonglong},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Cint,
),
ptrarray1,
ptrarray2,
longarray,
intarray,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedDownPtrPtrLongInt(
ptrarray1,
ptrarray2,
longarray,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownPtrPtrLongInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Clonglong},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
longarray,
intarray,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownPtrPtrLongIntInt(
ptrarray1,
ptrarray2,
longarray,
intarray1,
intarray2,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectDownPtrPtrLongIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Clonglong},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Cint,
),
ptrarray1,
ptrarray2,
longarray,
intarray1,
intarray2,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedDownPtrPtrLongIntInt(
ptrarray1,
ptrarray2,
longarray,
intarray1,
intarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownPtrPtrLongIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Clonglong},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
longarray,
intarray1,
intarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownReal(realarray, k, len)
ccall(
(:SCIPselectDownReal, libscip),
Cvoid,
(Ptr{Cdouble}, Cint, Cint),
realarray,
k,
len,
)
end
function SCIPselectWeightedDownReal(
realarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownReal, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Cdouble, Cint, Ptr{Cint}),
realarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownRealPtr(realarray, ptrarray, k, len)
ccall(
(:SCIPselectDownRealPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Cint, Cint),
realarray,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedDownRealPtr(
realarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownRealPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Cdouble, Cint, Ptr{Cint}),
realarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownRealInt(realarray, intarray, k, len)
ccall(
(:SCIPselectDownRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Cint, Cint),
realarray,
intarray,
k,
len,
)
end
function SCIPselectDownRealIntInt(realarray, intarray1, intarray2, k, len)
ccall(
(:SCIPselectDownRealIntInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}, Cint, Cint),
realarray,
intarray1,
intarray2,
k,
len,
)
end
function SCIPselectWeightedDownRealInt(
realarray,
intarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Ptr{Cdouble}, Cdouble, Cint, Ptr{Cint}),
realarray,
intarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectWeightedDownRealIntInt(
realarray,
intarray1,
intarray2,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownRealIntInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray,
intarray1,
intarray2,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownRealBoolPtr(realarray, boolarray, ptrarray, k, len)
ccall(
(:SCIPselectDownRealBoolPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cuint}, Ptr{Ptr{Cvoid}}, Cint, Cint),
realarray,
boolarray,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedDownRealBoolPtr(
realarray,
boolarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownRealBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray,
boolarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownRealIntLong(realarray, intarray, longarray, k, len)
ccall(
(:SCIPselectDownRealIntLong, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Ptr{Clonglong}, Cint, Cint),
realarray,
intarray,
longarray,
k,
len,
)
end
function SCIPselectWeightedDownRealIntLong(
realarray,
intarray,
longarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownRealIntLong, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cint},
Ptr{Clonglong},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray,
intarray,
longarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownRealIntPtr(realarray, intarray, ptrarray, k, len)
ccall(
(:SCIPselectDownRealIntPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint, Cint),
realarray,
intarray,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedDownRealIntPtr(
realarray,
intarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownRealIntPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray,
intarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownRealRealInt(realarray1, realarray2, intarray, k, len)
ccall(
(:SCIPselectDownRealRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cint}, Cint, Cint),
realarray1,
realarray2,
intarray,
k,
len,
)
end
function SCIPselectWeightedDownRealRealInt(
realarray1,
realarray2,
intarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownRealRealInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray1,
realarray2,
intarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownRealRealPtr(realarray1, realarray2, ptrarray, k, len)
ccall(
(:SCIPselectDownRealRealPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Cint, Cint),
realarray1,
realarray2,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedDownRealRealPtr(
realarray1,
realarray2,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownRealRealPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray1,
realarray2,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownRealRealPtrPtr(
realarray1,
realarray2,
ptrarray1,
ptrarray2,
k,
len,
)
ccall(
(:SCIPselectDownRealRealPtrPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Cint,
Cint,
),
realarray1,
realarray2,
ptrarray1,
ptrarray2,
k,
len,
)
end
function SCIPselectWeightedDownRealRealPtrPtr(
realarray1,
realarray2,
ptrarray1,
ptrarray2,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownRealRealPtrPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray1,
realarray2,
ptrarray1,
ptrarray2,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownRealPtrPtrInt(
realarray,
ptrarray1,
ptrarray2,
intarray,
k,
len,
)
ccall(
(:SCIPselectDownRealPtrPtrInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Cint, Cint),
realarray,
ptrarray1,
ptrarray2,
intarray,
k,
len,
)
end
function SCIPselectWeightedDownRealPtrPtrInt(
realarray,
ptrarray1,
ptrarray2,
intarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownRealPtrPtrInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray,
ptrarray1,
ptrarray2,
intarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownRealPtrPtrIntInt(
realarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
k,
len,
)
ccall(
(:SCIPselectDownRealPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Cint,
Cint,
),
realarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
k,
len,
)
end
function SCIPselectWeightedDownRealPtrPtrIntInt(
realarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownRealPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownRealLongRealInt(
realarray1,
longarray,
realarray3,
intarray,
k,
len,
)
ccall(
(:SCIPselectDownRealLongRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Clonglong}, Ptr{Cdouble}, Ptr{Cint}, Cint, Cint),
realarray1,
longarray,
realarray3,
intarray,
k,
len,
)
end
function SCIPselectWeightedDownRealLongRealInt(
realarray1,
longarray,
realarray3,
intarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownRealLongRealInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Clonglong},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray1,
longarray,
realarray3,
intarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownRealRealIntInt(
realarray1,
realarray2,
intarray1,
intarray2,
k,
len,
)
ccall(
(:SCIPselectDownRealRealIntInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}, Cint, Cint),
realarray1,
realarray2,
intarray1,
intarray2,
k,
len,
)
end
function SCIPselectWeightedDownRealRealIntInt(
realarray1,
realarray2,
intarray1,
intarray2,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownRealRealIntInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray1,
realarray2,
intarray1,
intarray2,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownRealRealRealInt(
realarray1,
realarray2,
realarray3,
intarray,
k,
len,
)
ccall(
(:SCIPselectDownRealRealRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cint}, Cint, Cint),
realarray1,
realarray2,
realarray3,
intarray,
k,
len,
)
end
function SCIPselectWeightedDownRealRealRealInt(
realarray1,
realarray2,
realarray3,
intarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownRealRealRealInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
intarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownRealRealRealPtr(
realarray1,
realarray2,
realarray3,
ptrarray,
k,
len,
)
ccall(
(:SCIPselectDownRealRealRealPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Cint, Cint),
realarray1,
realarray2,
realarray3,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedDownRealRealRealPtr(
realarray1,
realarray2,
realarray3,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownRealRealRealPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownRealPtrPtr(realarray, ptrarray1, ptrarray2, k, len)
ccall(
(:SCIPselectDownRealPtrPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Cint, Cint),
realarray,
ptrarray1,
ptrarray2,
k,
len,
)
end
function SCIPselectWeightedDownRealPtrPtr(
realarray,
ptrarray1,
ptrarray2,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownRealPtrPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray,
ptrarray1,
ptrarray2,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownRealRealRealBoolPtr(
realarray1,
realarray2,
realarray3,
boolarray,
ptrarray,
k,
len,
)
ccall(
(:SCIPselectDownRealRealRealBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Cint,
Cint,
),
realarray1,
realarray2,
realarray3,
boolarray,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedDownRealRealRealBoolPtr(
realarray1,
realarray2,
realarray3,
boolarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownRealRealRealBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
boolarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownRealRealRealBoolBoolPtr(
realarray1,
realarray2,
realarray3,
boolarray1,
boolarray2,
ptrarray,
k,
len,
)
ccall(
(:SCIPselectDownRealRealRealBoolBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Cint,
Cint,
),
realarray1,
realarray2,
realarray3,
boolarray1,
boolarray2,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedDownRealRealRealBoolBoolPtr(
realarray1,
realarray2,
realarray3,
boolarray1,
boolarray2,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownRealRealRealBoolBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
boolarray1,
boolarray2,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownInt(intarray, k, len)
ccall(
(:SCIPselectDownInt, libscip),
Cvoid,
(Ptr{Cint}, Cint, Cint),
intarray,
k,
len,
)
end
function SCIPselectWeightedDownInt(intarray, weights, capacity, len, medianpos)
ccall(
(:SCIPselectWeightedDownInt, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cdouble}, Cdouble, Cint, Ptr{Cint}),
intarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownIntInt(intarray1, intarray2, k, len)
ccall(
(:SCIPselectDownIntInt, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Cint, Cint),
intarray1,
intarray2,
k,
len,
)
end
function SCIPselectWeightedDownIntInt(
intarray1,
intarray2,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownIntInt, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cdouble}, Cdouble, Cint, Ptr{Cint}),
intarray1,
intarray2,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownIntPtr(intarray, ptrarray, k, len)
ccall(
(:SCIPselectDownIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint, Cint),
intarray,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedDownIntPtr(
intarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Cdouble, Cint, Ptr{Cint}),
intarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownIntReal(intarray, realarray, k, len)
ccall(
(:SCIPselectDownIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cdouble}, Cint, Cint),
intarray,
realarray,
k,
len,
)
end
function SCIPselectWeightedDownIntReal(
intarray,
realarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cdouble}, Ptr{Cdouble}, Cdouble, Cint, Ptr{Cint}),
intarray,
realarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownIntIntInt(intarray1, intarray2, intarray3, k, len)
ccall(
(:SCIPselectDownIntIntInt, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Cint, Cint),
intarray1,
intarray2,
intarray3,
k,
len,
)
end
function SCIPselectWeightedDownIntIntInt(
intarray1,
intarray2,
intarray3,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownIntIntInt, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
intarray1,
intarray2,
intarray3,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownIntIntLong(intarray1, intarray2, longarray, k, len)
ccall(
(:SCIPselectDownIntIntLong, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Clonglong}, Cint, Cint),
intarray1,
intarray2,
longarray,
k,
len,
)
end
function SCIPselectWeightedDownIntIntLong(
intarray1,
intarray2,
longarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownIntIntLong, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Clonglong},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
intarray1,
intarray2,
longarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownIntIntPtr(intarray1, intarray2, ptrarray, k, len)
ccall(
(:SCIPselectDownIntIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint, Cint),
intarray1,
intarray2,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedDownIntIntPtr(
intarray1,
intarray2,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownIntIntPtr, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
intarray1,
intarray2,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownIntIntReal(intarray1, intarray2, realarray, k, len)
ccall(
(:SCIPselectDownIntIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cdouble}, Cint, Cint),
intarray1,
intarray2,
realarray,
k,
len,
)
end
function SCIPselectWeightedDownIntIntReal(
intarray1,
intarray2,
realarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownIntIntReal, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
intarray1,
intarray2,
realarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownIntIntIntPtr(
intarray1,
intarray2,
intarray3,
ptrarray,
k,
len,
)
ccall(
(:SCIPselectDownIntIntIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint, Cint),
intarray1,
intarray2,
intarray3,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedDownIntIntIntPtr(
intarray1,
intarray2,
intarray3,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownIntIntIntPtr, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
intarray1,
intarray2,
intarray3,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownIntIntIntReal(
intarray1,
intarray2,
intarray3,
realarray,
k,
len,
)
ccall(
(:SCIPselectDownIntIntIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Ptr{Cdouble}, Cint, Cint),
intarray1,
intarray2,
intarray3,
realarray,
k,
len,
)
end
function SCIPselectWeightedDownIntIntIntReal(
intarray1,
intarray2,
intarray3,
realarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownIntIntIntReal, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
intarray1,
intarray2,
intarray3,
realarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownIntPtrIntReal(
intarray1,
ptrarray,
intarray2,
realarray,
k,
len,
)
ccall(
(:SCIPselectDownIntPtrIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cdouble}, Cint, Cint),
intarray1,
ptrarray,
intarray2,
realarray,
k,
len,
)
end
function SCIPselectWeightedDownIntPtrIntReal(
intarray1,
ptrarray,
intarray2,
realarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownIntPtrIntReal, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cdouble},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
intarray1,
ptrarray,
intarray2,
realarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownLong(longarray, k, len)
ccall(
(:SCIPselectDownLong, libscip),
Cvoid,
(Ptr{Clonglong}, Cint, Cint),
longarray,
k,
len,
)
end
function SCIPselectWeightedDownLong(
longarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownLong, libscip),
Cvoid,
(Ptr{Clonglong}, Ptr{Cdouble}, Cdouble, Cint, Ptr{Cint}),
longarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownLongPtr(longarray, ptrarray, k, len)
ccall(
(:SCIPselectDownLongPtr, libscip),
Cvoid,
(Ptr{Clonglong}, Ptr{Ptr{Cvoid}}, Cint, Cint),
longarray,
ptrarray,
k,
len,
)
end
function SCIPselectWeightedDownLongPtr(
longarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownLongPtr, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
longarray,
ptrarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownLongPtrInt(longarray, ptrarray, intarray, k, len)
ccall(
(:SCIPselectDownLongPtrInt, libscip),
Cvoid,
(Ptr{Clonglong}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Cint, Cint),
longarray,
ptrarray,
intarray,
k,
len,
)
end
function SCIPselectWeightedDownLongPtrInt(
longarray,
ptrarray,
intarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownLongPtrInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
longarray,
ptrarray,
intarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownLongPtrRealBool(
longarray,
ptrarray,
realarray,
boolarray,
k,
len,
)
ccall(
(:SCIPselectDownLongPtrRealBool, libscip),
Cvoid,
(Ptr{Clonglong}, Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cuint}, Cint, Cint),
longarray,
ptrarray,
realarray,
boolarray,
k,
len,
)
end
function SCIPselectWeightedDownLongPtrRealBool(
longarray,
ptrarray,
realarray,
boolarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownLongPtrRealBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
longarray,
ptrarray,
realarray,
boolarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownLongPtrRealRealBool(
longarray,
ptrarray,
realarray,
realarray2,
boolarray,
k,
len,
)
ccall(
(:SCIPselectDownLongPtrRealRealBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Cint,
Cint,
),
longarray,
ptrarray,
realarray,
realarray2,
boolarray,
k,
len,
)
end
function SCIPselectWeightedDownLongPtrRealRealBool(
longarray,
ptrarray,
realarray,
realarray2,
boolarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownLongPtrRealRealBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
longarray,
ptrarray,
realarray,
realarray2,
boolarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownLongPtrRealRealIntBool(
longarray,
ptrarray,
realarray,
realarray2,
intarray,
boolarray,
k,
len,
)
ccall(
(:SCIPselectDownLongPtrRealRealIntBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cuint},
Cint,
Cint,
),
longarray,
ptrarray,
realarray,
realarray2,
intarray,
boolarray,
k,
len,
)
end
function SCIPselectWeightedDownLongPtrRealRealIntBool(
longarray,
ptrarray,
realarray,
realarray2,
intarray,
boolarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownLongPtrRealRealIntBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
longarray,
ptrarray,
realarray,
realarray2,
intarray,
boolarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownLongPtrPtrInt(
longarray,
ptrarray1,
ptrarray2,
intarray,
k,
len,
)
ccall(
(:SCIPselectDownLongPtrPtrInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Cint,
Cint,
),
longarray,
ptrarray1,
ptrarray2,
intarray,
k,
len,
)
end
function SCIPselectWeightedDownLongPtrPtrInt(
longarray,
ptrarray1,
ptrarray2,
intarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownLongPtrPtrInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
longarray,
ptrarray1,
ptrarray2,
intarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownLongPtrPtrIntInt(
longarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
k,
len,
)
ccall(
(:SCIPselectDownLongPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Cint,
Cint,
),
longarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
k,
len,
)
end
function SCIPselectWeightedDownLongPtrPtrIntInt(
longarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownLongPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
longarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownLongPtrPtrBoolInt(
longarray,
ptrarray1,
ptrarray2,
boolarray,
intarray,
k,
len,
)
ccall(
(:SCIPselectDownLongPtrPtrBoolInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cuint},
Ptr{Cint},
Cint,
Cint,
),
longarray,
ptrarray1,
ptrarray2,
boolarray,
intarray,
k,
len,
)
end
function SCIPselectWeightedDownLongPtrPtrBoolInt(
longarray,
ptrarray1,
ptrarray2,
boolarray,
intarray,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownLongPtrPtrBoolInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cuint},
Ptr{Cint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
longarray,
ptrarray1,
ptrarray2,
boolarray,
intarray,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownPtrIntIntBoolBool(
ptrarray,
intarray1,
intarray2,
boolarray1,
boolarray2,
ptrcomp,
k,
len,
)
ccall(
(:SCIPselectDownPtrIntIntBoolBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cvoid},
Cint,
Cint,
),
ptrarray,
intarray1,
intarray2,
boolarray1,
boolarray2,
ptrcomp,
k,
len,
)
end
function SCIPselectWeightedDownPtrIntIntBoolBool(
ptrarray,
intarray1,
intarray2,
boolarray1,
boolarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownPtrIntIntBoolBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cvoid},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
ptrarray,
intarray1,
intarray2,
boolarray1,
boolarray2,
ptrcomp,
weights,
capacity,
len,
medianpos,
)
end
function SCIPselectDownIntPtrIntIntBoolBool(
intarray1,
ptrarray,
intarray2,
intarray3,
boolarray1,
boolarray2,
k,
len,
)
ccall(
(:SCIPselectDownIntPtrIntIntBoolBool, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Cint,
Cint,
),
intarray1,
ptrarray,
intarray2,
intarray3,
boolarray1,
boolarray2,
k,
len,
)
end
function SCIPselectWeightedDownIntPtrIntIntBoolBool(
intarray1,
ptrarray,
intarray2,
intarray3,
boolarray1,
boolarray2,
weights,
capacity,
len,
medianpos,
)
ccall(
(:SCIPselectWeightedDownIntPtrIntIntBoolBool, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cdouble},
Cdouble,
Cint,
Ptr{Cint},
),
intarray1,
ptrarray,
intarray2,
intarray3,
boolarray1,
boolarray2,
weights,
capacity,
len,
medianpos,
)
end
function SCIPsortCompInt(elem1, elem2)
ccall(
(:SCIPsortCompInt, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPsort(perm, indcomp, dataptr, len)
ccall(
(:SCIPsort, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cvoid}, Ptr{Cvoid}, Cint),
perm,
indcomp,
dataptr,
len,
)
end
function SCIPsortInd(indarray, indcomp, dataptr, len)
ccall(
(:SCIPsortInd, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cvoid}, Ptr{Cvoid}, Cint),
indarray,
indcomp,
dataptr,
len,
)
end
function SCIPsortPtr(ptrarray, ptrcomp, len)
ccall(
(:SCIPsortPtr, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cvoid}, Cint),
ptrarray,
ptrcomp,
len,
)
end
function SCIPsortPtrPtr(ptrarray1, ptrarray2, ptrcomp, len)
ccall(
(:SCIPsortPtrPtr, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Ptr{Cvoid}, Cint),
ptrarray1,
ptrarray2,
ptrcomp,
len,
)
end
function SCIPsortPtrReal(ptrarray, realarray, ptrcomp, len)
ccall(
(:SCIPsortPtrReal, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cvoid}, Cint),
ptrarray,
realarray,
ptrcomp,
len,
)
end
function SCIPsortPtrInt(ptrarray, intarray, ptrcomp, len)
ccall(
(:SCIPsortPtrInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cvoid}, Cint),
ptrarray,
intarray,
ptrcomp,
len,
)
end
function SCIPsortPtrBool(ptrarray, boolarray, ptrcomp, len)
ccall(
(:SCIPsortPtrBool, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cuint}, Ptr{Cvoid}, Cint),
ptrarray,
boolarray,
ptrcomp,
len,
)
end
function SCIPsortPtrIntInt(ptrarray, intarray1, intarray2, ptrcomp, len)
ccall(
(:SCIPsortPtrIntInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cint}, Ptr{Cvoid}, Cint),
ptrarray,
intarray1,
intarray2,
ptrcomp,
len,
)
end
function SCIPsortPtrRealInt(ptrarray, realarray, intarray, ptrcomp, len)
ccall(
(:SCIPsortPtrRealInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cvoid}, Cint),
ptrarray,
realarray,
intarray,
ptrcomp,
len,
)
end
function SCIPsortPtrRealRealInt(
ptrarray,
realarray1,
realarray2,
intarray,
ptrcomp,
len,
)
ccall(
(:SCIPsortPtrRealRealInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cvoid},
Cint,
),
ptrarray,
realarray1,
realarray2,
intarray,
ptrcomp,
len,
)
end
function SCIPsortPtrRealRealBoolBool(
ptrarray,
realarray1,
realarray2,
boolarray1,
boolarray2,
ptrcomp,
len,
)
ccall(
(:SCIPsortPtrRealRealBoolBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cvoid},
Cint,
),
ptrarray,
realarray1,
realarray2,
boolarray1,
boolarray2,
ptrcomp,
len,
)
end
function SCIPsortPtrRealRealIntBool(
ptrarray,
realarray1,
realarray2,
intarray,
boolarray,
ptrcomp,
len,
)
ccall(
(:SCIPsortPtrRealRealIntBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cvoid},
Cint,
),
ptrarray,
realarray1,
realarray2,
intarray,
boolarray,
ptrcomp,
len,
)
end
function SCIPsortPtrRealBool(ptrarray, realarray, boolarray, ptrcomp, len)
ccall(
(:SCIPsortPtrRealBool, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cuint}, Ptr{Cvoid}, Cint),
ptrarray,
realarray,
boolarray,
ptrcomp,
len,
)
end
function SCIPsortPtrRealReal(ptrarray, realarray1, realarray2, ptrcomp, len)
ccall(
(:SCIPsortPtrRealReal, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cvoid}, Cint),
ptrarray,
realarray1,
realarray2,
ptrcomp,
len,
)
end
function SCIPsortPtrPtrInt(ptrarray1, ptrarray2, intarray, ptrcomp, len)
ccall(
(:SCIPsortPtrPtrInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cvoid}, Cint),
ptrarray1,
ptrarray2,
intarray,
ptrcomp,
len,
)
end
function SCIPsortPtrPtrReal(ptrarray1, ptrarray2, realarray, ptrcomp, len)
ccall(
(:SCIPsortPtrPtrReal, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cvoid}, Cint),
ptrarray1,
ptrarray2,
realarray,
ptrcomp,
len,
)
end
function SCIPsortPtrPtrIntInt(
ptrarray1,
ptrarray2,
intarray1,
intarray2,
ptrcomp,
len,
)
ccall(
(:SCIPsortPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Cint,
),
ptrarray1,
ptrarray2,
intarray1,
intarray2,
ptrcomp,
len,
)
end
function SCIPsortPtrRealIntInt(
ptrarray,
realarray,
intarray1,
intarray2,
ptrcomp,
len,
)
ccall(
(:SCIPsortPtrRealIntInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}, Ptr{Cvoid}, Cint),
ptrarray,
realarray,
intarray1,
intarray2,
ptrcomp,
len,
)
end
function SCIPsortPtrPtrRealInt(
ptrarray1,
ptrarray2,
realarray,
intarray,
ptrcomp,
len,
)
ccall(
(:SCIPsortPtrPtrRealInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cvoid},
Cint,
),
ptrarray1,
ptrarray2,
realarray,
intarray,
ptrcomp,
len,
)
end
function SCIPsortPtrPtrRealBool(
ptrarray1,
ptrarray2,
realarray,
boolarray,
ptrcomp,
len,
)
ccall(
(:SCIPsortPtrPtrRealBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cvoid},
Cint,
),
ptrarray1,
ptrarray2,
realarray,
boolarray,
ptrcomp,
len,
)
end
function SCIPsortPtrPtrLongInt(
ptrarray1,
ptrarray2,
longarray,
intarray,
ptrcomp,
len,
)
ccall(
(:SCIPsortPtrPtrLongInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Clonglong},
Ptr{Cint},
Ptr{Cvoid},
Cint,
),
ptrarray1,
ptrarray2,
longarray,
intarray,
ptrcomp,
len,
)
end
function SCIPsortPtrPtrLongIntInt(
ptrarray1,
ptrarray2,
longarray,
intarray1,
intarray2,
ptrcomp,
len,
)
ccall(
(:SCIPsortPtrPtrLongIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Clonglong},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Cint,
),
ptrarray1,
ptrarray2,
longarray,
intarray1,
intarray2,
ptrcomp,
len,
)
end
function SCIPsortReal(realarray, len)
ccall((:SCIPsortReal, libscip), Cvoid, (Ptr{Cdouble}, Cint), realarray, len)
end
function SCIPsortRealPtr(realarray, ptrarray, len)
ccall(
(:SCIPsortRealPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Cint),
realarray,
ptrarray,
len,
)
end
function SCIPsortRealInt(realarray, intarray, len)
ccall(
(:SCIPsortRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Cint),
realarray,
intarray,
len,
)
end
function SCIPsortRealIntInt(realarray, intarray1, intarray2, len)
ccall(
(:SCIPsortRealIntInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}, Cint),
realarray,
intarray1,
intarray2,
len,
)
end
function SCIPsortRealBoolPtr(realarray, boolarray, ptrarray, len)
ccall(
(:SCIPsortRealBoolPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cuint}, Ptr{Ptr{Cvoid}}, Cint),
realarray,
boolarray,
ptrarray,
len,
)
end
function SCIPsortRealIntLong(realarray, intarray, longarray, len)
ccall(
(:SCIPsortRealIntLong, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Ptr{Clonglong}, Cint),
realarray,
intarray,
longarray,
len,
)
end
function SCIPsortRealIntPtr(realarray, intarray, ptrarray, len)
ccall(
(:SCIPsortRealIntPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint),
realarray,
intarray,
ptrarray,
len,
)
end
function SCIPsortRealRealPtr(realarray1, realarray2, ptrarray, len)
ccall(
(:SCIPsortRealRealPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Cint),
realarray1,
realarray2,
ptrarray,
len,
)
end
function SCIPsortRealPtrPtrInt(realarray, ptrarray1, ptrarray2, intarray, len)
ccall(
(:SCIPsortRealPtrPtrInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Cint),
realarray,
ptrarray1,
ptrarray2,
intarray,
len,
)
end
function SCIPsortRealPtrPtrIntInt(
realarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
len,
)
ccall(
(:SCIPsortRealPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Cint,
),
realarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
len,
)
end
function SCIPsortRealLongRealInt(
realarray1,
longarray,
realarray3,
intarray,
len,
)
ccall(
(:SCIPsortRealLongRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Clonglong}, Ptr{Cdouble}, Ptr{Cint}, Cint),
realarray1,
longarray,
realarray3,
intarray,
len,
)
end
function SCIPsortRealRealIntInt(
realarray1,
realarray2,
intarray1,
intarray2,
len,
)
ccall(
(:SCIPsortRealRealIntInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}, Cint),
realarray1,
realarray2,
intarray1,
intarray2,
len,
)
end
function SCIPsortRealRealRealInt(
realarray1,
realarray2,
realarray3,
intarray,
len,
)
ccall(
(:SCIPsortRealRealRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cint}, Cint),
realarray1,
realarray2,
realarray3,
intarray,
len,
)
end
function SCIPsortRealRealRealPtr(
realarray1,
realarray2,
realarray3,
ptrarray,
len,
)
ccall(
(:SCIPsortRealRealRealPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Cint),
realarray1,
realarray2,
realarray3,
ptrarray,
len,
)
end
function SCIPsortRealRealRealBoolPtr(
realarray1,
realarray2,
realarray3,
boolarray,
ptrarray,
len,
)
ccall(
(:SCIPsortRealRealRealBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Cint,
),
realarray1,
realarray2,
realarray3,
boolarray,
ptrarray,
len,
)
end
function SCIPsortRealRealRealBoolBoolPtr(
realarray1,
realarray2,
realarray3,
boolarray1,
boolarray2,
ptrarray,
len,
)
ccall(
(:SCIPsortRealRealRealBoolBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Cint,
),
realarray1,
realarray2,
realarray3,
boolarray1,
boolarray2,
ptrarray,
len,
)
end
function SCIPsortInt(intarray, len)
ccall((:SCIPsortInt, libscip), Cvoid, (Ptr{Cint}, Cint), intarray, len)
end
function SCIPsortIntInt(intarray1, intarray2, len)
ccall(
(:SCIPsortIntInt, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Cint),
intarray1,
intarray2,
len,
)
end
function SCIPsortIntPtr(intarray, ptrarray, len)
ccall(
(:SCIPsortIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint),
intarray,
ptrarray,
len,
)
end
function SCIPsortIntReal(intarray, realarray, len)
ccall(
(:SCIPsortIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cdouble}, Cint),
intarray,
realarray,
len,
)
end
function SCIPsortIntIntInt(intarray1, intarray2, intarray3, len)
ccall(
(:SCIPsortIntIntInt, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Cint),
intarray1,
intarray2,
intarray3,
len,
)
end
function SCIPsortIntIntLong(intarray1, intarray2, longarray, len)
ccall(
(:SCIPsortIntIntLong, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Clonglong}, Cint),
intarray1,
intarray2,
longarray,
len,
)
end
function SCIPsortIntRealLong(intarray, realarray, longarray, len)
ccall(
(:SCIPsortIntRealLong, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cdouble}, Ptr{Clonglong}, Cint),
intarray,
realarray,
longarray,
len,
)
end
function SCIPsortIntIntPtr(intarray1, intarray2, ptrarray, len)
ccall(
(:SCIPsortIntIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint),
intarray1,
intarray2,
ptrarray,
len,
)
end
function SCIPsortIntIntReal(intarray1, intarray2, realarray, len)
ccall(
(:SCIPsortIntIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cdouble}, Cint),
intarray1,
intarray2,
realarray,
len,
)
end
function SCIPsortIntPtrReal(intarray, ptrarray, realarray, len)
ccall(
(:SCIPsortIntPtrReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Cint),
intarray,
ptrarray,
realarray,
len,
)
end
function SCIPsortIntIntIntPtr(intarray1, intarray2, intarray3, ptrarray, len)
ccall(
(:SCIPsortIntIntIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint),
intarray1,
intarray2,
intarray3,
ptrarray,
len,
)
end
function SCIPsortIntIntIntReal(intarray1, intarray2, intarray3, realarray, len)
ccall(
(:SCIPsortIntIntIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Ptr{Cdouble}, Cint),
intarray1,
intarray2,
intarray3,
realarray,
len,
)
end
function SCIPsortIntPtrIntReal(intarray1, ptrarray, intarray2, realarray, len)
ccall(
(:SCIPsortIntPtrIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cdouble}, Cint),
intarray1,
ptrarray,
intarray2,
realarray,
len,
)
end
function SCIPsortLong(longarray, len)
ccall(
(:SCIPsortLong, libscip),
Cvoid,
(Ptr{Clonglong}, Cint),
longarray,
len,
)
end
function SCIPsortLongPtr(longarray, ptrarray, len)
ccall(
(:SCIPsortLongPtr, libscip),
Cvoid,
(Ptr{Clonglong}, Ptr{Ptr{Cvoid}}, Cint),
longarray,
ptrarray,
len,
)
end
function SCIPsortLongPtrInt(longarray, ptrarray, intarray, len)
ccall(
(:SCIPsortLongPtrInt, libscip),
Cvoid,
(Ptr{Clonglong}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Cint),
longarray,
ptrarray,
intarray,
len,
)
end
function SCIPsortLongPtrRealBool(longarray, ptrarray, realarray, boolarray, len)
ccall(
(:SCIPsortLongPtrRealBool, libscip),
Cvoid,
(Ptr{Clonglong}, Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cuint}, Cint),
longarray,
ptrarray,
realarray,
boolarray,
len,
)
end
function SCIPsortLongPtrRealRealBool(
longarray,
ptrarray,
realarray,
realarray2,
boolarray,
len,
)
ccall(
(:SCIPsortLongPtrRealRealBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Cint,
),
longarray,
ptrarray,
realarray,
realarray2,
boolarray,
len,
)
end
function SCIPsortLongPtrRealRealIntBool(
longarray,
ptrarray,
realarray,
realarray2,
intarray,
boolarray,
len,
)
ccall(
(:SCIPsortLongPtrRealRealIntBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cuint},
Cint,
),
longarray,
ptrarray,
realarray,
realarray2,
intarray,
boolarray,
len,
)
end
function SCIPsortLongPtrPtrInt(longarray, ptrarray1, ptrarray2, intarray, len)
ccall(
(:SCIPsortLongPtrPtrInt, libscip),
Cvoid,
(Ptr{Clonglong}, Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Cint),
longarray,
ptrarray1,
ptrarray2,
intarray,
len,
)
end
function SCIPsortLongPtrPtrIntInt(
longarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
len,
)
ccall(
(:SCIPsortLongPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Cint,
),
longarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
len,
)
end
function SCIPsortLongPtrPtrBoolInt(
longarray,
ptrarray1,
ptrarray2,
boolarray,
intarray,
len,
)
ccall(
(:SCIPsortLongPtrPtrBoolInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cuint},
Ptr{Cint},
Cint,
),
longarray,
ptrarray1,
ptrarray2,
boolarray,
intarray,
len,
)
end
function SCIPsortPtrIntIntBoolBool(
ptrarray,
intarray1,
intarray2,
boolarray1,
boolarray2,
ptrcomp,
len,
)
ccall(
(:SCIPsortPtrIntIntBoolBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cvoid},
Cint,
),
ptrarray,
intarray1,
intarray2,
boolarray1,
boolarray2,
ptrcomp,
len,
)
end
function SCIPsortIntPtrIntIntBoolBool(
intarray1,
ptrarray,
intarray2,
intarray3,
boolarray1,
boolarray2,
len,
)
ccall(
(:SCIPsortIntPtrIntIntBoolBool, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Cint,
),
intarray1,
ptrarray,
intarray2,
intarray3,
boolarray1,
boolarray2,
len,
)
end
function SCIPsortDown(perm, indcomp, dataptr, len)
ccall(
(:SCIPsortDown, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cvoid}, Ptr{Cvoid}, Cint),
perm,
indcomp,
dataptr,
len,
)
end
function SCIPsortDownInd(indarray, indcomp, dataptr, len)
ccall(
(:SCIPsortDownInd, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cvoid}, Ptr{Cvoid}, Cint),
indarray,
indcomp,
dataptr,
len,
)
end
function SCIPsortDownPtr(ptrarray, ptrcomp, len)
ccall(
(:SCIPsortDownPtr, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cvoid}, Cint),
ptrarray,
ptrcomp,
len,
)
end
function SCIPsortDownPtrPtr(ptrarray1, ptrarray2, ptrcomp, len)
ccall(
(:SCIPsortDownPtrPtr, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Ptr{Cvoid}, Cint),
ptrarray1,
ptrarray2,
ptrcomp,
len,
)
end
function SCIPsortDownPtrReal(ptrarray, realarray, ptrcomp, len)
ccall(
(:SCIPsortDownPtrReal, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cvoid}, Cint),
ptrarray,
realarray,
ptrcomp,
len,
)
end
function SCIPsortDownPtrInt(ptrarray, intarray, ptrcomp, len)
ccall(
(:SCIPsortDownPtrInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cvoid}, Cint),
ptrarray,
intarray,
ptrcomp,
len,
)
end
function SCIPsortDownPtrBool(ptrarray, boolarray, ptrcomp, len)
ccall(
(:SCIPsortDownPtrBool, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cuint}, Ptr{Cvoid}, Cint),
ptrarray,
boolarray,
ptrcomp,
len,
)
end
function SCIPsortDownPtrIntInt(ptrarray, intarray1, intarray2, ptrcomp, len)
ccall(
(:SCIPsortDownPtrIntInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cint}, Ptr{Cvoid}, Cint),
ptrarray,
intarray1,
intarray2,
ptrcomp,
len,
)
end
function SCIPsortDownPtrRealInt(ptrarray, realarray, intarray, ptrcomp, len)
ccall(
(:SCIPsortDownPtrRealInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cvoid}, Cint),
ptrarray,
realarray,
intarray,
ptrcomp,
len,
)
end
function SCIPsortDownPtrRealBool(ptrarray, realarray, boolarray, ptrcomp, len)
ccall(
(:SCIPsortDownPtrRealBool, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cuint}, Ptr{Cvoid}, Cint),
ptrarray,
realarray,
boolarray,
ptrcomp,
len,
)
end
function SCIPsortDownPtrPtrInt(ptrarray1, ptrarray2, intarray, ptrcomp, len)
ccall(
(:SCIPsortDownPtrPtrInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cvoid}, Cint),
ptrarray1,
ptrarray2,
intarray,
ptrcomp,
len,
)
end
function SCIPsortDownPtrPtrReal(ptrarray1, ptrarray2, realarray, ptrcomp, len)
ccall(
(:SCIPsortDownPtrPtrReal, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cvoid}, Cint),
ptrarray1,
ptrarray2,
realarray,
ptrcomp,
len,
)
end
function SCIPsortDownPtrPtrIntInt(
ptrarray1,
ptrarray2,
intarray1,
intarray2,
ptrcomp,
len,
)
ccall(
(:SCIPsortDownPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Cint,
),
ptrarray1,
ptrarray2,
intarray1,
intarray2,
ptrcomp,
len,
)
end
function SCIPsortDownPtrRealIntInt(
ptrarray,
realarray,
intarray1,
intarray2,
ptrcomp,
len,
)
ccall(
(:SCIPsortDownPtrRealIntInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}, Ptr{Cvoid}, Cint),
ptrarray,
realarray,
intarray1,
intarray2,
ptrcomp,
len,
)
end
function SCIPsortDownPtrPtrRealInt(
ptrarray1,
ptrarray2,
realarray,
intarray,
ptrcomp,
len,
)
ccall(
(:SCIPsortDownPtrPtrRealInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cvoid},
Cint,
),
ptrarray1,
ptrarray2,
realarray,
intarray,
ptrcomp,
len,
)
end
function SCIPsortDownPtrPtrRealBool(
ptrarray1,
ptrarray2,
realarray,
boolarray,
ptrcomp,
len,
)
ccall(
(:SCIPsortDownPtrPtrRealBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cvoid},
Cint,
),
ptrarray1,
ptrarray2,
realarray,
boolarray,
ptrcomp,
len,
)
end
function SCIPsortDownPtrPtrLongInt(
ptrarray1,
ptrarray2,
longarray,
intarray,
ptrcomp,
len,
)
ccall(
(:SCIPsortDownPtrPtrLongInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Clonglong},
Ptr{Cint},
Ptr{Cvoid},
Cint,
),
ptrarray1,
ptrarray2,
longarray,
intarray,
ptrcomp,
len,
)
end
function SCIPsortDownPtrPtrLongIntInt(
ptrarray1,
ptrarray2,
longarray,
intarray1,
intarray2,
ptrcomp,
len,
)
ccall(
(:SCIPsortDownPtrPtrLongIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Clonglong},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Cint,
),
ptrarray1,
ptrarray2,
longarray,
intarray1,
intarray2,
ptrcomp,
len,
)
end
function SCIPsortDownReal(realarray, len)
ccall(
(:SCIPsortDownReal, libscip),
Cvoid,
(Ptr{Cdouble}, Cint),
realarray,
len,
)
end
function SCIPsortDownRealPtr(realarray, ptrarray, len)
ccall(
(:SCIPsortDownRealPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Cint),
realarray,
ptrarray,
len,
)
end
function SCIPsortDownRealInt(realarray, intarray, len)
ccall(
(:SCIPsortDownRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Cint),
realarray,
intarray,
len,
)
end
function SCIPsortDownRealIntInt(realarray, intarray1, intarray2, len)
ccall(
(:SCIPsortDownRealIntInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}, Cint),
realarray,
intarray1,
intarray2,
len,
)
end
function SCIPsortDownRealBoolPtr(realarray, boolarray, ptrarray, len)
ccall(
(:SCIPsortDownRealBoolPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cuint}, Ptr{Ptr{Cvoid}}, Cint),
realarray,
boolarray,
ptrarray,
len,
)
end
function SCIPsortDownRealIntLong(realarray, intarray, longarray, len)
ccall(
(:SCIPsortDownRealIntLong, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Ptr{Clonglong}, Cint),
realarray,
intarray,
longarray,
len,
)
end
function SCIPsortDownRealIntPtr(realarray, intarray, ptrarray, len)
ccall(
(:SCIPsortDownRealIntPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint),
realarray,
intarray,
ptrarray,
len,
)
end
function SCIPsortDownRealRealInt(realarray1, realarray2, intarray, len)
ccall(
(:SCIPsortDownRealRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cint}, Cint),
realarray1,
realarray2,
intarray,
len,
)
end
function SCIPsortDownRealRealPtr(realarray1, realarray2, ptrarray, len)
ccall(
(:SCIPsortDownRealRealPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Cint),
realarray1,
realarray2,
ptrarray,
len,
)
end
function SCIPsortDownRealRealPtrPtr(
realarray1,
realarray2,
ptrarray1,
ptrarray2,
len,
)
ccall(
(:SCIPsortDownRealRealPtrPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Cint),
realarray1,
realarray2,
ptrarray1,
ptrarray2,
len,
)
end
function SCIPsortDownRealPtrPtrInt(
realarray,
ptrarray1,
ptrarray2,
intarray,
len,
)
ccall(
(:SCIPsortDownRealPtrPtrInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Cint),
realarray,
ptrarray1,
ptrarray2,
intarray,
len,
)
end
function SCIPsortDownRealPtrPtrIntInt(
realarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
len,
)
ccall(
(:SCIPsortDownRealPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Cint,
),
realarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
len,
)
end
function SCIPsortDownRealLongRealInt(
realarray1,
longarray,
realarray3,
intarray,
len,
)
ccall(
(:SCIPsortDownRealLongRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Clonglong}, Ptr{Cdouble}, Ptr{Cint}, Cint),
realarray1,
longarray,
realarray3,
intarray,
len,
)
end
function SCIPsortDownRealRealIntInt(
realarray1,
realarray2,
intarray1,
intarray2,
len,
)
ccall(
(:SCIPsortDownRealRealIntInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}, Cint),
realarray1,
realarray2,
intarray1,
intarray2,
len,
)
end
function SCIPsortDownRealRealRealInt(
realarray1,
realarray2,
realarray3,
intarray,
len,
)
ccall(
(:SCIPsortDownRealRealRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cint}, Cint),
realarray1,
realarray2,
realarray3,
intarray,
len,
)
end
function SCIPsortDownRealRealRealPtr(
realarray1,
realarray2,
realarray3,
ptrarray,
len,
)
ccall(
(:SCIPsortDownRealRealRealPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Cint),
realarray1,
realarray2,
realarray3,
ptrarray,
len,
)
end
function SCIPsortDownRealPtrPtr(realarray, ptrarray1, ptrarray2, len)
ccall(
(:SCIPsortDownRealPtrPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Cint),
realarray,
ptrarray1,
ptrarray2,
len,
)
end
function SCIPsortDownRealRealRealBoolPtr(
realarray1,
realarray2,
realarray3,
boolarray,
ptrarray,
len,
)
ccall(
(:SCIPsortDownRealRealRealBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Cint,
),
realarray1,
realarray2,
realarray3,
boolarray,
ptrarray,
len,
)
end
function SCIPsortDownRealRealRealBoolBoolPtr(
realarray1,
realarray2,
realarray3,
boolarray1,
boolarray2,
ptrarray,
len,
)
ccall(
(:SCIPsortDownRealRealRealBoolBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Cint,
),
realarray1,
realarray2,
realarray3,
boolarray1,
boolarray2,
ptrarray,
len,
)
end
function SCIPsortDownInt(intarray, len)
ccall((:SCIPsortDownInt, libscip), Cvoid, (Ptr{Cint}, Cint), intarray, len)
end
function SCIPsortDownIntInt(intarray1, intarray2, len)
ccall(
(:SCIPsortDownIntInt, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Cint),
intarray1,
intarray2,
len,
)
end
function SCIPsortDownIntPtr(intarray, ptrarray, len)
ccall(
(:SCIPsortDownIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint),
intarray,
ptrarray,
len,
)
end
function SCIPsortDownIntReal(intarray, realarray, len)
ccall(
(:SCIPsortDownIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cdouble}, Cint),
intarray,
realarray,
len,
)
end
function SCIPsortDownIntIntInt(intarray1, intarray2, intarray3, len)
ccall(
(:SCIPsortDownIntIntInt, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Cint),
intarray1,
intarray2,
intarray3,
len,
)
end
function SCIPsortDownIntIntLong(intarray1, intarray2, longarray, len)
ccall(
(:SCIPsortDownIntIntLong, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Clonglong}, Cint),
intarray1,
intarray2,
longarray,
len,
)
end
function SCIPsortDownIntIntPtr(intarray1, intarray2, ptrarray, len)
ccall(
(:SCIPsortDownIntIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint),
intarray1,
intarray2,
ptrarray,
len,
)
end
function SCIPsortDownIntIntReal(intarray1, intarray2, realarray, len)
ccall(
(:SCIPsortDownIntIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cdouble}, Cint),
intarray1,
intarray2,
realarray,
len,
)
end
function SCIPsortDownIntIntIntPtr(
intarray1,
intarray2,
intarray3,
ptrarray,
len,
)
ccall(
(:SCIPsortDownIntIntIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint),
intarray1,
intarray2,
intarray3,
ptrarray,
len,
)
end
function SCIPsortDownIntIntIntReal(
intarray1,
intarray2,
intarray3,
realarray,
len,
)
ccall(
(:SCIPsortDownIntIntIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Ptr{Cdouble}, Cint),
intarray1,
intarray2,
intarray3,
realarray,
len,
)
end
function SCIPsortDownIntPtrIntReal(
intarray1,
ptrarray,
intarray2,
realarray,
len,
)
ccall(
(:SCIPsortDownIntPtrIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cdouble}, Cint),
intarray1,
ptrarray,
intarray2,
realarray,
len,
)
end
function SCIPsortDownLong(longarray, len)
ccall(
(:SCIPsortDownLong, libscip),
Cvoid,
(Ptr{Clonglong}, Cint),
longarray,
len,
)
end
function SCIPsortDownLongPtr(longarray, ptrarray, len)
ccall(
(:SCIPsortDownLongPtr, libscip),
Cvoid,
(Ptr{Clonglong}, Ptr{Ptr{Cvoid}}, Cint),
longarray,
ptrarray,
len,
)
end
function SCIPsortDownLongPtrInt(longarray, ptrarray, intarray, len)
ccall(
(:SCIPsortDownLongPtrInt, libscip),
Cvoid,
(Ptr{Clonglong}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Cint),
longarray,
ptrarray,
intarray,
len,
)
end
function SCIPsortDownLongPtrRealBool(
longarray,
ptrarray,
realarray,
boolarray,
len,
)
ccall(
(:SCIPsortDownLongPtrRealBool, libscip),
Cvoid,
(Ptr{Clonglong}, Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cuint}, Cint),
longarray,
ptrarray,
realarray,
boolarray,
len,
)
end
function SCIPsortDownLongPtrRealRealBool(
longarray,
ptrarray,
realarray,
realarray2,
boolarray,
len,
)
ccall(
(:SCIPsortDownLongPtrRealRealBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Cint,
),
longarray,
ptrarray,
realarray,
realarray2,
boolarray,
len,
)
end
function SCIPsortDownLongPtrRealRealIntBool(
longarray,
ptrarray,
realarray,
realarray2,
intarray,
boolarray,
len,
)
ccall(
(:SCIPsortDownLongPtrRealRealIntBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cuint},
Cint,
),
longarray,
ptrarray,
realarray,
realarray2,
intarray,
boolarray,
len,
)
end
function SCIPsortDownLongPtrPtrInt(
longarray,
ptrarray1,
ptrarray2,
intarray,
len,
)
ccall(
(:SCIPsortDownLongPtrPtrInt, libscip),
Cvoid,
(Ptr{Clonglong}, Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Cint),
longarray,
ptrarray1,
ptrarray2,
intarray,
len,
)
end
function SCIPsortDownLongPtrPtrIntInt(
longarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
len,
)
ccall(
(:SCIPsortDownLongPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Cint,
),
longarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
len,
)
end
function SCIPsortDownLongPtrPtrBoolInt(
longarray,
ptrarray1,
ptrarray2,
boolarray,
intarray,
len,
)
ccall(
(:SCIPsortDownLongPtrPtrBoolInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cuint},
Ptr{Cint},
Cint,
),
longarray,
ptrarray1,
ptrarray2,
boolarray,
intarray,
len,
)
end
function SCIPsortDownPtrIntIntBoolBool(
ptrarray,
intarray1,
intarray2,
boolarray1,
boolarray2,
ptrcomp,
len,
)
ccall(
(:SCIPsortDownPtrIntIntBoolBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cvoid},
Cint,
),
ptrarray,
intarray1,
intarray2,
boolarray1,
boolarray2,
ptrcomp,
len,
)
end
function SCIPsortDownIntPtrIntIntBoolBool(
intarray1,
ptrarray,
intarray2,
intarray3,
boolarray1,
boolarray2,
len,
)
ccall(
(:SCIPsortDownIntPtrIntIntBoolBool, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Cint,
),
intarray1,
ptrarray,
intarray2,
intarray3,
boolarray1,
boolarray2,
len,
)
end
function SCIPsortedvecInsertInd(indarray, indcomp, dataptr, keyval, len, pos)
ccall(
(:SCIPsortedvecInsertInd, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cvoid}, Ptr{Cvoid}, Cint, Ptr{Cint}, Ptr{Cint}),
indarray,
indcomp,
dataptr,
keyval,
len,
pos,
)
end
function SCIPsortedvecInsertPtr(ptrarray, ptrcomp, keyval, len, pos)
ccall(
(:SCIPsortedvecInsertPtr, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cint}, Ptr{Cint}),
ptrarray,
ptrcomp,
keyval,
len,
pos,
)
end
function SCIPsortedvecInsertPtrPtr(
ptrarray1,
ptrarray2,
ptrcomp,
keyval,
field1val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertPtrPtr, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
ptrarray1,
ptrarray2,
ptrcomp,
keyval,
field1val,
len,
pos,
)
end
function SCIPsortedvecInsertPtrReal(
ptrarray,
realarray,
ptrcomp,
keyval,
field1val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertPtrReal, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cvoid},
Ptr{Cvoid},
Cdouble,
Ptr{Cint},
Ptr{Cint},
),
ptrarray,
realarray,
ptrcomp,
keyval,
field1val,
len,
pos,
)
end
function SCIPsortedvecInsertPtrInt(
ptrarray,
intarray,
ptrcomp,
keyval,
field1val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertPtrInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cvoid},
Cint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray,
intarray,
ptrcomp,
keyval,
field1val,
len,
pos,
)
end
function SCIPsortedvecInsertPtrBool(
ptrarray,
boolarray,
ptrcomp,
keyval,
field1val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertPtrBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cuint},
Ptr{Cvoid},
Ptr{Cvoid},
Cuint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray,
boolarray,
ptrcomp,
keyval,
field1val,
len,
pos,
)
end
function SCIPsortedvecInsertPtrIntInt(
ptrarray,
intarray1,
intarray2,
ptrcomp,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertPtrIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cvoid},
Cint,
Cint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray,
intarray1,
intarray2,
ptrcomp,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertPtrRealInt(
ptrarray,
realarray,
intarray,
ptrcomp,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertPtrRealInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cvoid},
Cdouble,
Cint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray,
realarray,
intarray,
ptrcomp,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertPtrRealRealInt(
ptrarray,
realarray1,
realarray2,
intarray,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertPtrRealRealInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cvoid},
Cdouble,
Cdouble,
Cint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray,
realarray1,
realarray2,
intarray,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertPtrRealRealBoolBool(
ptrarray,
realarray1,
realarray2,
boolarray1,
boolarray2,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertPtrRealRealBoolBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cvoid},
Ptr{Cvoid},
Cdouble,
Cdouble,
Cuint,
Cuint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray,
realarray1,
realarray2,
boolarray1,
boolarray2,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
end
function SCIPsortedvecInsertPtrRealRealIntBool(
ptrarray,
realarray1,
realarray2,
intarray,
boolarray,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertPtrRealRealIntBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cvoid},
Ptr{Cvoid},
Cdouble,
Cdouble,
Cint,
Cuint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray,
realarray1,
realarray2,
intarray,
boolarray,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
end
function SCIPsortedvecInsertPtrRealBool(
ptrarray,
realarray,
boolarray,
ptrcomp,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertPtrRealBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cvoid},
Ptr{Cvoid},
Cdouble,
Cuint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray,
realarray,
boolarray,
ptrcomp,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertPtrPtrInt(
ptrarray1,
ptrarray2,
intarray,
ptrcomp,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertPtrPtrInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Cint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray1,
ptrarray2,
intarray,
ptrcomp,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertPtrPtrReal(
ptrarray1,
ptrarray2,
realarray,
ptrcomp,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertPtrPtrReal, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Cdouble,
Ptr{Cint},
Ptr{Cint},
),
ptrarray1,
ptrarray2,
realarray,
ptrcomp,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertPtrPtrIntInt(
ptrarray1,
ptrarray2,
intarray1,
intarray2,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Cint,
Cint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray1,
ptrarray2,
intarray1,
intarray2,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertPtrRealIntInt(
ptrarray,
realarray,
intarray1,
intarray2,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertPtrRealIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cvoid},
Cdouble,
Cint,
Cint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray,
realarray,
intarray1,
intarray2,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertPtrPtrRealInt(
ptrarray1,
ptrarray2,
realarray,
intarray,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertPtrPtrRealInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Cdouble,
Cint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray1,
ptrarray2,
realarray,
intarray,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertPtrPtrRealBool(
ptrarray1,
ptrarray2,
realarray,
boolarray,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertPtrPtrRealBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Cdouble,
Cuint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray1,
ptrarray2,
realarray,
boolarray,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertPtrPtrLongInt(
ptrarray1,
ptrarray2,
longarray,
intarray,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertPtrPtrLongInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Clonglong},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Clonglong,
Cint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray1,
ptrarray2,
longarray,
intarray,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertPtrPtrLongIntInt(
ptrarray1,
ptrarray2,
longarray,
intarray1,
intarray2,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertPtrPtrLongIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Clonglong},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Clonglong,
Cint,
Cint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray1,
ptrarray2,
longarray,
intarray1,
intarray2,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
end
function SCIPsortedvecInsertRealIntInt(
realarray,
intarray1,
intarray2,
keyval,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertRealIntInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Cdouble,
Cint,
Cint,
Ptr{Cint},
Ptr{Cint},
),
realarray,
intarray1,
intarray2,
keyval,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertRealBoolPtr(
realarray,
boolarray,
ptrarray,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertRealBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Cdouble,
Cuint,
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
realarray,
boolarray,
ptrarray,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertRealPtr(
realarray,
ptrarray,
keyval,
field1val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertRealPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Cdouble,
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
realarray,
ptrarray,
keyval,
field1val,
len,
pos,
)
end
function SCIPsortedvecInsertReal(realarray, keyval, len, pos)
ccall(
(:SCIPsortedvecInsertReal, libscip),
Cvoid,
(Ptr{Cdouble}, Cdouble, Ptr{Cint}, Ptr{Cint}),
realarray,
keyval,
len,
pos,
)
end
function SCIPsortedvecInsertRealInt(
realarray,
intarray,
keyval,
field1val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Cdouble, Cint, Ptr{Cint}, Ptr{Cint}),
realarray,
intarray,
keyval,
field1val,
len,
pos,
)
end
function SCIPsortedvecInsertRealIntLong(
realarray,
intarray,
longarray,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertRealIntLong, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cint},
Ptr{Clonglong},
Cdouble,
Cint,
Clonglong,
Ptr{Cint},
Ptr{Cint},
),
realarray,
intarray,
longarray,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertRealIntPtr(
realarray,
intarray,
ptrarray,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertRealIntPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Cdouble,
Cint,
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
realarray,
intarray,
ptrarray,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertRealRealPtr(
realarray1,
realarray2,
ptrarray,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertRealRealPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Cdouble,
Cdouble,
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
realarray1,
realarray2,
ptrarray,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertRealPtrPtrInt(
realarray,
ptrarray1,
ptrarray2,
intarray,
keyval,
field1val,
field2val,
intval,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertRealPtrPtrInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Cdouble,
Ptr{Cvoid},
Ptr{Cvoid},
Cint,
Ptr{Cint},
Ptr{Cint},
),
realarray,
ptrarray1,
ptrarray2,
intarray,
keyval,
field1val,
field2val,
intval,
len,
pos,
)
end
function SCIPsortedvecInsertRealPtrPtrIntInt(
realarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
keyval,
field1val,
field2val,
intval1,
intval2,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertRealPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Cdouble,
Ptr{Cvoid},
Ptr{Cvoid},
Cint,
Cint,
Ptr{Cint},
Ptr{Cint},
),
realarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
keyval,
field1val,
field2val,
intval1,
intval2,
len,
pos,
)
end
function SCIPsortedvecInsertRealLongRealInt(
realarray1,
longarray,
realarray3,
intarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertRealLongRealInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Clonglong},
Ptr{Cdouble},
Ptr{Cint},
Cdouble,
Clonglong,
Cdouble,
Cint,
Ptr{Cint},
Ptr{Cint},
),
realarray1,
longarray,
realarray3,
intarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertRealRealIntInt(
realarray1,
realarray2,
intarray1,
intarray2,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertRealRealIntInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Cdouble,
Cdouble,
Cint,
Cint,
Ptr{Cint},
Ptr{Cint},
),
realarray1,
realarray2,
intarray1,
intarray2,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertRealRealRealInt(
realarray1,
realarray2,
realarray3,
intarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertRealRealRealInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Cdouble,
Cdouble,
Cdouble,
Cint,
Ptr{Cint},
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
intarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertRealRealRealPtr(
realarray1,
realarray2,
realarray3,
ptrarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertRealRealRealPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Cdouble,
Cdouble,
Cdouble,
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
ptrarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertRealRealRealBoolPtr(
realarray1,
realarray2,
realarray3,
boolarray,
ptrarray,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertRealRealRealBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Cdouble,
Cdouble,
Cdouble,
Cuint,
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
boolarray,
ptrarray,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
end
function SCIPsortedvecInsertRealRealRealBoolBoolPtr(
realarray1,
realarray2,
realarray3,
boolarray1,
boolarray2,
ptrarray,
keyval,
field1val,
field2val,
field3val,
field4val,
field5val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertRealRealRealBoolBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Cdouble,
Cdouble,
Cdouble,
Cuint,
Cuint,
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
boolarray1,
boolarray2,
ptrarray,
keyval,
field1val,
field2val,
field3val,
field4val,
field5val,
len,
pos,
)
end
function SCIPsortedvecInsertInt(intarray, keyval, len, pos)
ccall(
(:SCIPsortedvecInsertInt, libscip),
Cvoid,
(Ptr{Cint}, Cint, Ptr{Cint}, Ptr{Cint}),
intarray,
keyval,
len,
pos,
)
end
function SCIPsortedvecInsertIntInt(
intarray1,
intarray2,
keyval,
field1val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertIntInt, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Cint, Cint, Ptr{Cint}, Ptr{Cint}),
intarray1,
intarray2,
keyval,
field1val,
len,
pos,
)
end
function SCIPsortedvecInsertIntPtr(
intarray,
ptrarray,
keyval,
field1val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint, Ptr{Cvoid}, Ptr{Cint}, Ptr{Cint}),
intarray,
ptrarray,
keyval,
field1val,
len,
pos,
)
end
function SCIPsortedvecInsertIntReal(
intarray,
realarray,
keyval,
field1val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cdouble}, Cint, Cdouble, Ptr{Cint}, Ptr{Cint}),
intarray,
realarray,
keyval,
field1val,
len,
pos,
)
end
function SCIPsortedvecInsertIntIntInt(
intarray1,
intarray2,
intarray3,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertIntIntInt, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Cint,
Cint,
Cint,
Ptr{Cint},
Ptr{Cint},
),
intarray1,
intarray2,
intarray3,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertIntIntLong(
intarray1,
intarray2,
longarray,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertIntIntLong, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Clonglong},
Cint,
Cint,
Clonglong,
Ptr{Cint},
Ptr{Cint},
),
intarray1,
intarray2,
longarray,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertIntRealLong(
intarray,
realarray,
longarray,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertIntRealLong, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cdouble},
Ptr{Clonglong},
Cint,
Cdouble,
Clonglong,
Ptr{Cint},
Ptr{Cint},
),
intarray,
realarray,
longarray,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertIntIntPtr(
intarray1,
intarray2,
ptrarray,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertIntIntPtr, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Cint,
Cint,
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
intarray1,
intarray2,
ptrarray,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertIntIntReal(
intarray1,
intarray2,
realarray,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertIntIntReal, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Cint,
Cint,
Cdouble,
Ptr{Cint},
Ptr{Cint},
),
intarray1,
intarray2,
realarray,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertIntPtrReal(
intarray,
ptrarray,
realarray,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertIntPtrReal, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Cint,
Ptr{Cvoid},
Cdouble,
Ptr{Cint},
Ptr{Cint},
),
intarray,
ptrarray,
realarray,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertIntIntIntPtr(
intarray1,
intarray2,
intarray3,
ptrarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertIntIntIntPtr, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Cint,
Cint,
Cint,
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
intarray1,
intarray2,
intarray3,
ptrarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertIntIntIntReal(
intarray1,
intarray2,
intarray3,
realarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertIntIntIntReal, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Cint,
Cint,
Cint,
Cdouble,
Ptr{Cint},
Ptr{Cint},
),
intarray1,
intarray2,
intarray3,
realarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertIntPtrIntReal(
intarray1,
ptrarray,
intarray2,
realarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertIntPtrIntReal, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cdouble},
Cint,
Ptr{Cvoid},
Cint,
Cdouble,
Ptr{Cint},
Ptr{Cint},
),
intarray1,
ptrarray,
intarray2,
realarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertLong(longarray, keyval, len, pos)
ccall(
(:SCIPsortedvecInsertLong, libscip),
Cvoid,
(Ptr{Clonglong}, Clonglong, Ptr{Cint}, Ptr{Cint}),
longarray,
keyval,
len,
pos,
)
end
function SCIPsortedvecInsertLongPtr(
longarray,
ptrarray,
keyval,
field1val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertLongPtr, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Clonglong,
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
longarray,
ptrarray,
keyval,
field1val,
len,
pos,
)
end
function SCIPsortedvecInsertLongPtrInt(
longarray,
ptrarray,
intarray,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertLongPtrInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Clonglong,
Ptr{Cvoid},
Cint,
Ptr{Cint},
Ptr{Cint},
),
longarray,
ptrarray,
intarray,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertLongPtrRealBool(
longarray,
ptrarray,
realarray,
boolarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertLongPtrRealBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Clonglong,
Ptr{Cvoid},
Cdouble,
Cuint,
Ptr{Cint},
Ptr{Cint},
),
longarray,
ptrarray,
realarray,
boolarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertLongPtrRealRealBool(
longarray,
ptrarray,
realarray,
realarray2,
boolarray,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertLongPtrRealRealBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Clonglong,
Ptr{Cvoid},
Cdouble,
Cdouble,
Cuint,
Ptr{Cint},
Ptr{Cint},
),
longarray,
ptrarray,
realarray,
realarray2,
boolarray,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
end
function SCIPsortedvecInsertLongPtrRealRealIntBool(
longarray,
ptrarray,
realarray,
realarray2,
intarray,
boolarray,
keyval,
field1val,
field2val,
field3val,
field4val,
field5val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertLongPtrRealRealIntBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cuint},
Clonglong,
Ptr{Cvoid},
Cdouble,
Cdouble,
Cint,
Cuint,
Ptr{Cint},
Ptr{Cint},
),
longarray,
ptrarray,
realarray,
realarray2,
intarray,
boolarray,
keyval,
field1val,
field2val,
field3val,
field4val,
field5val,
len,
pos,
)
end
function SCIPsortedvecInsertLongPtrPtrInt(
longarray,
ptrarray1,
ptrarray2,
intarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertLongPtrPtrInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Clonglong,
Ptr{Cvoid},
Ptr{Cvoid},
Cint,
Ptr{Cint},
Ptr{Cint},
),
longarray,
ptrarray1,
ptrarray2,
intarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertLongPtrPtrIntInt(
longarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertLongPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Clonglong,
Ptr{Cvoid},
Ptr{Cvoid},
Cint,
Cint,
Ptr{Cint},
Ptr{Cint},
),
longarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
end
function SCIPsortedvecInsertLongPtrPtrBoolInt(
longarray,
ptrarray1,
ptrarray2,
boolarray,
intarray,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertLongPtrPtrBoolInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cuint},
Ptr{Cint},
Clonglong,
Ptr{Cvoid},
Ptr{Cvoid},
Cuint,
Cint,
Ptr{Cint},
Ptr{Cint},
),
longarray,
ptrarray1,
ptrarray2,
boolarray,
intarray,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
end
function SCIPsortedvecInsertPtrIntIntBoolBool(
ptrarray,
intarray1,
intarray2,
boolarray1,
boolarray2,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertPtrIntIntBoolBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cvoid},
Ptr{Cvoid},
Cint,
Cint,
Cuint,
Cuint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray,
intarray1,
intarray2,
boolarray1,
boolarray2,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
end
function SCIPsortedvecInsertIntPtrIntIntBoolBool(
intarray1,
ptrarray,
intarray2,
intarray3,
boolarray1,
boolarray2,
keyval,
field1val,
field2val,
field3val,
field4val,
field5val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertIntPtrIntIntBoolBool, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Cint,
Ptr{Cvoid},
Cint,
Cint,
Cuint,
Cuint,
Ptr{Cint},
Ptr{Cint},
),
intarray1,
ptrarray,
intarray2,
intarray3,
boolarray1,
boolarray2,
keyval,
field1val,
field2val,
field3val,
field4val,
field5val,
len,
pos,
)
end
function SCIPsortedvecInsertDownInd(
indarray,
indcomp,
dataptr,
keyval,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownInd, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cvoid}, Ptr{Cvoid}, Cint, Ptr{Cint}, Ptr{Cint}),
indarray,
indcomp,
dataptr,
keyval,
len,
pos,
)
end
function SCIPsortedvecInsertDownPtr(ptrarray, ptrcomp, keyval, len, pos)
ccall(
(:SCIPsortedvecInsertDownPtr, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cint}, Ptr{Cint}),
ptrarray,
ptrcomp,
keyval,
len,
pos,
)
end
function SCIPsortedvecInsertDownPtrPtr(
ptrarray1,
ptrarray2,
ptrcomp,
keyval,
field1val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownPtrPtr, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
ptrarray1,
ptrarray2,
ptrcomp,
keyval,
field1val,
len,
pos,
)
end
function SCIPsortedvecInsertDownPtrReal(
ptrarray,
realarray,
ptrcomp,
keyval,
field1val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownPtrReal, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cvoid},
Ptr{Cvoid},
Cdouble,
Ptr{Cint},
Ptr{Cint},
),
ptrarray,
realarray,
ptrcomp,
keyval,
field1val,
len,
pos,
)
end
function SCIPsortedvecInsertDownPtrInt(
ptrarray,
intarray,
ptrcomp,
keyval,
field1val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownPtrInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cvoid},
Cint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray,
intarray,
ptrcomp,
keyval,
field1val,
len,
pos,
)
end
function SCIPsortedvecInsertDownPtrBool(
ptrarray,
boolarray,
ptrcomp,
keyval,
field1val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownPtrBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cuint},
Ptr{Cvoid},
Ptr{Cvoid},
Cuint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray,
boolarray,
ptrcomp,
keyval,
field1val,
len,
pos,
)
end
function SCIPsortedvecInsertDownPtrIntInt(
ptrarray,
intarray1,
intarray2,
ptrcomp,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownPtrIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cvoid},
Cint,
Cint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray,
intarray1,
intarray2,
ptrcomp,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertDownPtrRealInt(
ptrarray,
realarray,
intarray,
ptrcomp,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownPtrRealInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cvoid},
Cdouble,
Cint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray,
realarray,
intarray,
ptrcomp,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertDownPtrRealBool(
ptrarray,
realarray,
boolarray,
ptrcomp,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownPtrRealBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cvoid},
Ptr{Cvoid},
Cdouble,
Cuint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray,
realarray,
boolarray,
ptrcomp,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertDownPtrPtrInt(
ptrarray1,
ptrarray2,
intarray,
ptrcomp,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownPtrPtrInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Cint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray1,
ptrarray2,
intarray,
ptrcomp,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertDownPtrPtrReal(
ptrarray1,
ptrarray2,
realarray,
ptrcomp,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownPtrPtrReal, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Cdouble,
Ptr{Cint},
Ptr{Cint},
),
ptrarray1,
ptrarray2,
realarray,
ptrcomp,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertDownPtrPtrIntInt(
ptrarray1,
ptrarray2,
intarray1,
intarray2,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Cint,
Cint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray1,
ptrarray2,
intarray1,
intarray2,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertDownPtrRealIntInt(
ptrarray,
realarray,
intarray1,
intarray2,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownPtrRealIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cvoid},
Cdouble,
Cint,
Cint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray,
realarray,
intarray1,
intarray2,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertDownPtrPtrRealInt(
ptrarray1,
ptrarray2,
realarray,
intarray,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownPtrPtrRealInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Cdouble,
Cint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray1,
ptrarray2,
realarray,
intarray,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertDownPtrPtrRealBool(
ptrarray1,
ptrarray2,
realarray,
boolarray,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownPtrPtrRealBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Cdouble,
Cuint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray1,
ptrarray2,
realarray,
boolarray,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertDownPtrPtrLongInt(
ptrarray1,
ptrarray2,
longarray,
intarray,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownPtrPtrLongInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Clonglong},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Clonglong,
Cint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray1,
ptrarray2,
longarray,
intarray,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertDownPtrPtrLongIntInt(
ptrarray1,
ptrarray2,
longarray,
intarray1,
intarray2,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownPtrPtrLongIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Clonglong},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cvoid},
Clonglong,
Cint,
Cint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray1,
ptrarray2,
longarray,
intarray1,
intarray2,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
end
function SCIPsortedvecInsertDownReal(realarray, keyval, len, pos)
ccall(
(:SCIPsortedvecInsertDownReal, libscip),
Cvoid,
(Ptr{Cdouble}, Cdouble, Ptr{Cint}, Ptr{Cint}),
realarray,
keyval,
len,
pos,
)
end
function SCIPsortedvecInsertDownRealBoolPtr(
realarray,
boolarray,
ptrarray,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownRealBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Cdouble,
Cuint,
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
realarray,
boolarray,
ptrarray,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertDownRealPtr(
realarray,
ptrarray,
keyval,
field1val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownRealPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Cdouble,
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
realarray,
ptrarray,
keyval,
field1val,
len,
pos,
)
end
function SCIPsortedvecInsertDownRealPtrPtr(
realarray,
ptrarray1,
ptrarray2,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownRealPtrPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Cdouble,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
realarray,
ptrarray1,
ptrarray2,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertDownRealInt(
realarray,
intarray,
keyval,
field1val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Cdouble, Cint, Ptr{Cint}, Ptr{Cint}),
realarray,
intarray,
keyval,
field1val,
len,
pos,
)
end
function SCIPsortedvecInsertDownRealIntInt(
realarray,
intarray1,
intarray2,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownRealIntInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Cdouble,
Cint,
Cint,
Ptr{Cint},
Ptr{Cint},
),
realarray,
intarray1,
intarray2,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertDownRealRealInt(
realarray,
realarray2,
intarray,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownRealRealInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Cdouble,
Cdouble,
Cint,
Ptr{Cint},
Ptr{Cint},
),
realarray,
realarray2,
intarray,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertDownRealIntLong(
realarray,
intarray,
longarray,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownRealIntLong, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cint},
Ptr{Clonglong},
Cdouble,
Cint,
Clonglong,
Ptr{Cint},
Ptr{Cint},
),
realarray,
intarray,
longarray,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertDownRealIntPtr(
realarray,
intarray,
ptrarray,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownRealIntPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Cdouble,
Cint,
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
realarray,
intarray,
ptrarray,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertDownRealRealPtr(
realarray1,
realarray2,
ptrarray,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownRealRealPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Cdouble,
Cdouble,
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
realarray1,
realarray2,
ptrarray,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertDownRealRealPtrPtr(
realarray1,
realarray2,
ptrarray1,
ptrarray2,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownRealRealPtrPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Cdouble,
Cdouble,
Ptr{Cvoid},
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
realarray1,
realarray2,
ptrarray1,
ptrarray2,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertDownRealPtrPtrInt(
realarray,
ptrarray1,
ptrarray2,
intarray,
keyval,
field1val,
field2val,
intval,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownRealPtrPtrInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Cdouble,
Ptr{Cvoid},
Ptr{Cvoid},
Cint,
Ptr{Cint},
Ptr{Cint},
),
realarray,
ptrarray1,
ptrarray2,
intarray,
keyval,
field1val,
field2val,
intval,
len,
pos,
)
end
function SCIPsortedvecInsertDownRealPtrPtrIntInt(
realarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
keyval,
field1val,
field2val,
intval1,
intval2,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownRealPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Cdouble,
Ptr{Cvoid},
Ptr{Cvoid},
Cint,
Cint,
Ptr{Cint},
Ptr{Cint},
),
realarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
keyval,
field1val,
field2val,
intval1,
intval2,
len,
pos,
)
end
function SCIPsortedvecInsertDownRealLongRealInt(
realarray1,
longarray,
realarray3,
intarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownRealLongRealInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Clonglong},
Ptr{Cdouble},
Ptr{Cint},
Cdouble,
Clonglong,
Cdouble,
Cint,
Ptr{Cint},
Ptr{Cint},
),
realarray1,
longarray,
realarray3,
intarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertDownRealRealIntInt(
realarray1,
realarray2,
intarray1,
intarray2,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownRealRealIntInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Cdouble,
Cdouble,
Cint,
Cint,
Ptr{Cint},
Ptr{Cint},
),
realarray1,
realarray2,
intarray1,
intarray2,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertDownRealRealRealInt(
realarray1,
realarray2,
realarray3,
intarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownRealRealRealInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Cdouble,
Cdouble,
Cdouble,
Cint,
Ptr{Cint},
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
intarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertDownRealRealRealPtr(
realarray1,
realarray2,
realarray3,
ptrarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownRealRealRealPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Cdouble,
Cdouble,
Cdouble,
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
ptrarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertDownRealRealRealBoolPtr(
realarray1,
realarray2,
realarray3,
boolarray,
ptrarray,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownRealRealRealBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Cdouble,
Cdouble,
Cdouble,
Cuint,
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
boolarray,
ptrarray,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
end
function SCIPsortedvecInsertDownRealRealRealBoolBoolPtr(
realarray1,
realarray2,
realarray3,
boolarray1,
boolarray2,
ptrarray,
keyval,
field1val,
field2val,
field3val,
field4val,
field5val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownRealRealRealBoolBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Cdouble,
Cdouble,
Cdouble,
Cuint,
Cuint,
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
boolarray1,
boolarray2,
ptrarray,
keyval,
field1val,
field2val,
field3val,
field4val,
field5val,
len,
pos,
)
end
function SCIPsortedvecInsertDownInt(intarray, keyval, len, pos)
ccall(
(:SCIPsortedvecInsertDownInt, libscip),
Cvoid,
(Ptr{Cint}, Cint, Ptr{Cint}, Ptr{Cint}),
intarray,
keyval,
len,
pos,
)
end
function SCIPsortedvecInsertDownIntInt(
intarray1,
intarray2,
keyval,
field1val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownIntInt, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Cint, Cint, Ptr{Cint}, Ptr{Cint}),
intarray1,
intarray2,
keyval,
field1val,
len,
pos,
)
end
function SCIPsortedvecInsertDownIntReal(
intarray,
realarray,
keyval,
field1val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cdouble}, Cint, Cdouble, Ptr{Cint}, Ptr{Cint}),
intarray,
realarray,
keyval,
field1val,
len,
pos,
)
end
function SCIPsortedvecInsertDownIntIntInt(
intarray1,
intarray2,
intarray3,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownIntIntInt, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Cint,
Cint,
Cint,
Ptr{Cint},
Ptr{Cint},
),
intarray1,
intarray2,
intarray3,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertDownIntIntLong(
intarray1,
intarray2,
longarray,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownIntIntLong, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Clonglong},
Cint,
Cint,
Clonglong,
Ptr{Cint},
Ptr{Cint},
),
intarray1,
intarray2,
longarray,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertDownIntIntPtr(
intarray1,
intarray2,
ptrarray,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownIntIntPtr, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Cint,
Cint,
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
intarray1,
intarray2,
ptrarray,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertDownIntIntReal(
intarray1,
intarray2,
realarray,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownIntIntReal, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Cint,
Cint,
Cdouble,
Ptr{Cint},
Ptr{Cint},
),
intarray1,
intarray2,
realarray,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertDownIntPtr(
intarray,
ptrarray,
keyval,
field1val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint, Ptr{Cvoid}, Ptr{Cint}, Ptr{Cint}),
intarray,
ptrarray,
keyval,
field1val,
len,
pos,
)
end
function SCIPsortedvecInsertDownIntIntIntPtr(
intarray1,
intarray2,
intarray3,
ptrarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownIntIntIntPtr, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Cint,
Cint,
Cint,
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
intarray1,
intarray2,
intarray3,
ptrarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertDownIntIntIntReal(
intarray1,
intarray2,
intarray3,
realarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownIntIntIntReal, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
Cint,
Cint,
Cint,
Cdouble,
Ptr{Cint},
Ptr{Cint},
),
intarray1,
intarray2,
intarray3,
realarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertDownIntPtrIntReal(
intarray1,
ptrarray,
intarray2,
realarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownIntPtrIntReal, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cdouble},
Cint,
Ptr{Cvoid},
Cint,
Cdouble,
Ptr{Cint},
Ptr{Cint},
),
intarray1,
ptrarray,
intarray2,
realarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertDownLong(longarray, keyval, len, pos)
ccall(
(:SCIPsortedvecInsertDownLong, libscip),
Cvoid,
(Ptr{Clonglong}, Clonglong, Ptr{Cint}, Ptr{Cint}),
longarray,
keyval,
len,
pos,
)
end
function SCIPsortedvecInsertDownLongPtr(
longarray,
ptrarray,
keyval,
field1val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownLongPtr, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Clonglong,
Ptr{Cvoid},
Ptr{Cint},
Ptr{Cint},
),
longarray,
ptrarray,
keyval,
field1val,
len,
pos,
)
end
function SCIPsortedvecInsertDownLongPtrInt(
longarray,
ptrarray,
intarray,
keyval,
field1val,
field2val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownLongPtrInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Clonglong,
Ptr{Cvoid},
Cint,
Ptr{Cint},
Ptr{Cint},
),
longarray,
ptrarray,
intarray,
keyval,
field1val,
field2val,
len,
pos,
)
end
function SCIPsortedvecInsertDownLongPtrRealBool(
longarray,
ptrarray,
realarray,
boolarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownLongPtrRealBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Clonglong,
Ptr{Cvoid},
Cdouble,
Cuint,
Ptr{Cint},
Ptr{Cint},
),
longarray,
ptrarray,
realarray,
boolarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertDownLongPtrRealRealBool(
longarray,
ptrarray,
realarray,
realarray2,
boolarray,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownLongPtrRealRealBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Clonglong,
Ptr{Cvoid},
Cdouble,
Cdouble,
Cuint,
Ptr{Cint},
Ptr{Cint},
),
longarray,
ptrarray,
realarray,
realarray2,
boolarray,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
end
function SCIPsortedvecInsertDownLongPtrRealRealIntBool(
longarray,
ptrarray,
realarray,
realarray2,
intarray,
boolarray,
keyval,
field1val,
field2val,
field3val,
field4val,
field5val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownLongPtrRealRealIntBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cuint},
Clonglong,
Ptr{Cvoid},
Cdouble,
Cdouble,
Cint,
Cuint,
Ptr{Cint},
Ptr{Cint},
),
longarray,
ptrarray,
realarray,
realarray2,
intarray,
boolarray,
keyval,
field1val,
field2val,
field3val,
field4val,
field5val,
len,
pos,
)
end
function SCIPsortedvecInsertDownLongPtrPtrInt(
longarray,
ptrarray1,
ptrarray2,
intarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownLongPtrPtrInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Clonglong,
Ptr{Cvoid},
Ptr{Cvoid},
Cint,
Ptr{Cint},
Ptr{Cint},
),
longarray,
ptrarray1,
ptrarray2,
intarray,
keyval,
field1val,
field2val,
field3val,
len,
pos,
)
end
function SCIPsortedvecInsertDownLongPtrPtrIntInt(
longarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownLongPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Clonglong,
Ptr{Cvoid},
Ptr{Cvoid},
Cint,
Cint,
Ptr{Cint},
Ptr{Cint},
),
longarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
end
function SCIPsortedvecInsertDownLongPtrPtrBoolInt(
longarray,
ptrarray1,
ptrarray2,
boolarray,
intarray,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownLongPtrPtrBoolInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cuint},
Ptr{Cint},
Clonglong,
Ptr{Cvoid},
Ptr{Cvoid},
Cuint,
Cint,
Ptr{Cint},
Ptr{Cint},
),
longarray,
ptrarray1,
ptrarray2,
boolarray,
intarray,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
end
function SCIPsortedvecInsertDownPtrIntIntBoolBool(
ptrarray,
intarray1,
intarray2,
boolarray1,
boolarray2,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownPtrIntIntBoolBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cvoid},
Ptr{Cvoid},
Cint,
Cint,
Cuint,
Cuint,
Ptr{Cint},
Ptr{Cint},
),
ptrarray,
intarray1,
intarray2,
boolarray1,
boolarray2,
ptrcomp,
keyval,
field1val,
field2val,
field3val,
field4val,
len,
pos,
)
end
function SCIPsortedvecInsertDownIntPtrIntIntBoolBool(
intarray1,
ptrarray,
intarray2,
intarray3,
boolarray1,
boolarray2,
keyval,
field1val,
field2val,
field3val,
field4val,
field5val,
len,
pos,
)
ccall(
(:SCIPsortedvecInsertDownIntPtrIntIntBoolBool, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Cint,
Ptr{Cvoid},
Cint,
Cint,
Cuint,
Cuint,
Ptr{Cint},
Ptr{Cint},
),
intarray1,
ptrarray,
intarray2,
intarray3,
boolarray1,
boolarray2,
keyval,
field1val,
field2val,
field3val,
field4val,
field5val,
len,
pos,
)
end
function SCIPsortedvecDelPosInd(indarray, indcomp, dataptr, pos, len)
ccall(
(:SCIPsortedvecDelPosInd, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cvoid}, Ptr{Cvoid}, Cint, Ptr{Cint}),
indarray,
indcomp,
dataptr,
pos,
len,
)
end
function SCIPsortedvecDelPosPtr(ptrarray, ptrcomp, pos, len)
ccall(
(:SCIPsortedvecDelPosPtr, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cvoid}, Cint, Ptr{Cint}),
ptrarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosPtrPtr(ptrarray1, ptrarray2, ptrcomp, pos, len)
ccall(
(:SCIPsortedvecDelPosPtrPtr, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Ptr{Cvoid}, Cint, Ptr{Cint}),
ptrarray1,
ptrarray2,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosPtrReal(ptrarray, realarray, ptrcomp, pos, len)
ccall(
(:SCIPsortedvecDelPosPtrReal, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cvoid}, Cint, Ptr{Cint}),
ptrarray,
realarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosPtrInt(ptrarray, intarray, ptrcomp, pos, len)
ccall(
(:SCIPsortedvecDelPosPtrInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cvoid}, Cint, Ptr{Cint}),
ptrarray,
intarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosPtrBool(ptrarray, boolarray, ptrcomp, pos, len)
ccall(
(:SCIPsortedvecDelPosPtrBool, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cuint}, Ptr{Cvoid}, Cint, Ptr{Cint}),
ptrarray,
boolarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosPtrIntInt(
ptrarray,
intarray1,
intarray2,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosPtrIntInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cint}, Ptr{Cvoid}, Cint, Ptr{Cint}),
ptrarray,
intarray1,
intarray2,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosPtrRealInt(
ptrarray,
realarray,
intarray,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosPtrRealInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cvoid}, Cint, Ptr{Cint}),
ptrarray,
realarray,
intarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosPtrRealRealInt(
ptrarray,
realarray1,
realarray2,
intarray,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosPtrRealRealInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray,
realarray1,
realarray2,
intarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosPtrRealRealBoolBool(
ptrarray,
realarray1,
realarray2,
boolarray1,
boolarray2,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosPtrRealRealBoolBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray,
realarray1,
realarray2,
boolarray1,
boolarray2,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosPtrRealRealIntBool(
ptrarray,
realarray1,
realarray2,
intarray,
boolarray,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosPtrRealRealIntBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray,
realarray1,
realarray2,
intarray,
boolarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosPtrRealBool(
ptrarray,
realarray,
boolarray,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosPtrRealBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray,
realarray,
boolarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosPtrPtrInt(
ptrarray1,
ptrarray2,
intarray,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosPtrPtrInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
intarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosPtrPtrReal(
ptrarray1,
ptrarray2,
realarray,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosPtrPtrReal, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
realarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosPtrPtrIntInt(
ptrarray1,
ptrarray2,
intarray1,
intarray2,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
intarray1,
intarray2,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosPtrRealIntInt(
ptrarray,
realarray,
intarray1,
intarray2,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosPtrRealIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray,
realarray,
intarray1,
intarray2,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosPtrPtrRealInt(
ptrarray1,
ptrarray2,
realarray,
intarray,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosPtrPtrRealInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
realarray,
intarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosPtrPtrRealBool(
ptrarray1,
ptrarray2,
realarray,
boolarray,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosPtrPtrRealBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
realarray,
boolarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosPtrPtrLongInt(
ptrarray1,
ptrarray2,
longarray,
intarray,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosPtrPtrLongInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Clonglong},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
longarray,
intarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosPtrPtrLongIntInt(
ptrarray1,
ptrarray2,
longarray,
intarray1,
intarray2,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosPtrPtrLongIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Clonglong},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
longarray,
intarray1,
intarray2,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosRealBoolPtr(
realarray,
boolarray,
ptrarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosRealBoolPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cuint}, Ptr{Ptr{Cvoid}}, Cint, Ptr{Cint}),
realarray,
boolarray,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosRealPtr(realarray, ptrarray, pos, len)
ccall(
(:SCIPsortedvecDelPosRealPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Cint, Ptr{Cint}),
realarray,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosReal(realarray, pos, len)
ccall(
(:SCIPsortedvecDelPosReal, libscip),
Cvoid,
(Ptr{Cdouble}, Cint, Ptr{Cint}),
realarray,
pos,
len,
)
end
function SCIPsortedvecDelPosRealInt(realarray, intarray, pos, len)
ccall(
(:SCIPsortedvecDelPosRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Cint, Ptr{Cint}),
realarray,
intarray,
pos,
len,
)
end
function SCIPsortedvecDelPosRealIntInt(
realarray,
intarray1,
intarray2,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosRealIntInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}, Cint, Ptr{Cint}),
realarray,
intarray1,
intarray2,
pos,
len,
)
end
function SCIPsortedvecDelPosRealIntLong(
realarray,
intarray,
longarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosRealIntLong, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Ptr{Clonglong}, Cint, Ptr{Cint}),
realarray,
intarray,
longarray,
pos,
len,
)
end
function SCIPsortedvecDelPosRealIntPtr(realarray, intarray, ptrarray, pos, len)
ccall(
(:SCIPsortedvecDelPosRealIntPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint, Ptr{Cint}),
realarray,
intarray,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosRealRealPtr(
realarray1,
realarray2,
ptrarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosRealRealPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Cint, Ptr{Cint}),
realarray1,
realarray2,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosRealPtrPtrInt(
realarray,
ptrarray1,
ptrarray2,
intarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosRealPtrPtrInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Cint,
Ptr{Cint},
),
realarray,
ptrarray1,
ptrarray2,
intarray,
pos,
len,
)
end
function SCIPsortedvecDelPosRealPtrPtrIntInt(
realarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosRealPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Cint,
Ptr{Cint},
),
realarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
pos,
len,
)
end
function SCIPsortedvecDelPosRealLongRealInt(
realarray1,
longarray,
realarray3,
intarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosRealLongRealInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Clonglong},
Ptr{Cdouble},
Ptr{Cint},
Cint,
Ptr{Cint},
),
realarray1,
longarray,
realarray3,
intarray,
pos,
len,
)
end
function SCIPsortedvecDelPosRealRealIntInt(
realarray1,
realarray2,
intarray1,
intarray2,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosRealRealIntInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}, Cint, Ptr{Cint}),
realarray1,
realarray2,
intarray1,
intarray2,
pos,
len,
)
end
function SCIPsortedvecDelPosRealRealRealInt(
realarray1,
realarray2,
realarray3,
intarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosRealRealRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cint}, Cint, Ptr{Cint}),
realarray1,
realarray2,
realarray3,
intarray,
pos,
len,
)
end
function SCIPsortedvecDelPosRealRealRealPtr(
realarray1,
realarray2,
realarray3,
ptrarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosRealRealRealPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Cint,
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosRealRealRealBoolPtr(
realarray1,
realarray2,
realarray3,
boolarray,
ptrarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosRealRealRealBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Cint,
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
boolarray,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosRealRealRealBoolBoolPtr(
realarray1,
realarray2,
realarray3,
boolarray1,
boolarray2,
ptrarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosRealRealRealBoolBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Cint,
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
boolarray1,
boolarray2,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosInt(intarray, pos, len)
ccall(
(:SCIPsortedvecDelPosInt, libscip),
Cvoid,
(Ptr{Cint}, Cint, Ptr{Cint}),
intarray,
pos,
len,
)
end
function SCIPsortedvecDelPosIntInt(intarray1, intarray2, pos, len)
ccall(
(:SCIPsortedvecDelPosIntInt, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Cint, Ptr{Cint}),
intarray1,
intarray2,
pos,
len,
)
end
function SCIPsortedvecDelPosIntReal(intarray, realarray, pos, len)
ccall(
(:SCIPsortedvecDelPosIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cdouble}, Cint, Ptr{Cint}),
intarray,
realarray,
pos,
len,
)
end
function SCIPsortedvecDelPosIntIntInt(intarray1, intarray2, intarray3, pos, len)
ccall(
(:SCIPsortedvecDelPosIntIntInt, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Cint, Ptr{Cint}),
intarray1,
intarray2,
intarray3,
pos,
len,
)
end
function SCIPsortedvecDelPosIntIntLong(
intarray1,
intarray2,
longarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosIntIntLong, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Clonglong}, Cint, Ptr{Cint}),
intarray1,
intarray2,
longarray,
pos,
len,
)
end
function SCIPsortedvecDelPosIntRealLong(
intarray,
realarray,
longarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosIntRealLong, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cdouble}, Ptr{Clonglong}, Cint, Ptr{Cint}),
intarray,
realarray,
longarray,
pos,
len,
)
end
function SCIPsortedvecDelPosIntIntPtr(intarray1, intarray2, ptrarray, pos, len)
ccall(
(:SCIPsortedvecDelPosIntIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint, Ptr{Cint}),
intarray1,
intarray2,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosIntIntReal(
intarray1,
intarray2,
realarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosIntIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cdouble}, Cint, Ptr{Cint}),
intarray1,
intarray2,
realarray,
pos,
len,
)
end
function SCIPsortedvecDelPosIntPtr(intarray, ptrarray, pos, len)
ccall(
(:SCIPsortedvecDelPosIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint, Ptr{Cint}),
intarray,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosIntPtrReal(intarray, ptrarray, realarray, pos, len)
ccall(
(:SCIPsortedvecDelPosIntPtrReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Cint, Ptr{Cint}),
intarray,
ptrarray,
realarray,
pos,
len,
)
end
function SCIPsortedvecDelPosIntIntIntPtr(
intarray1,
intarray2,
intarray3,
ptrarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosIntIntIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint, Ptr{Cint}),
intarray1,
intarray2,
intarray3,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosIntIntIntReal(
intarray1,
intarray2,
intarray3,
realarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosIntIntIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Ptr{Cdouble}, Cint, Ptr{Cint}),
intarray1,
intarray2,
intarray3,
realarray,
pos,
len,
)
end
function SCIPsortedvecDelPosIntPtrIntReal(
intarray1,
ptrarray,
intarray2,
realarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosIntPtrIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cdouble}, Cint, Ptr{Cint}),
intarray1,
ptrarray,
intarray2,
realarray,
pos,
len,
)
end
function SCIPsortedvecDelPosLong(longarray, pos, len)
ccall(
(:SCIPsortedvecDelPosLong, libscip),
Cvoid,
(Ptr{Clonglong}, Cint, Ptr{Cint}),
longarray,
pos,
len,
)
end
function SCIPsortedvecDelPosLongPtr(longarray, ptrarray, pos, len)
ccall(
(:SCIPsortedvecDelPosLongPtr, libscip),
Cvoid,
(Ptr{Clonglong}, Ptr{Ptr{Cvoid}}, Cint, Ptr{Cint}),
longarray,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosLongPtrInt(longarray, ptrarray, intarray, pos, len)
ccall(
(:SCIPsortedvecDelPosLongPtrInt, libscip),
Cvoid,
(Ptr{Clonglong}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Cint, Ptr{Cint}),
longarray,
ptrarray,
intarray,
pos,
len,
)
end
function SCIPsortedvecDelPosLongPtrRealBool(
longarray,
ptrarray,
realarray,
boolarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosLongPtrRealBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Cint,
Ptr{Cint},
),
longarray,
ptrarray,
realarray,
boolarray,
pos,
len,
)
end
function SCIPsortedvecDelPosLongPtrRealRealBool(
longarray,
ptrarray,
realarray,
realarray2,
boolarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosLongPtrRealRealBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Cint,
Ptr{Cint},
),
longarray,
ptrarray,
realarray,
realarray2,
boolarray,
pos,
len,
)
end
function SCIPsortedvecDelPosLongPtrRealRealIntBool(
longarray,
ptrarray,
realarray,
realarray2,
intarray,
boolarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosLongPtrRealRealIntBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cuint},
Cint,
Ptr{Cint},
),
longarray,
ptrarray,
realarray,
realarray2,
intarray,
boolarray,
pos,
len,
)
end
function SCIPsortedvecDelPosLongPtrPtrInt(
longarray,
ptrarray1,
ptrarray2,
intarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosLongPtrPtrInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Cint,
Ptr{Cint},
),
longarray,
ptrarray1,
ptrarray2,
intarray,
pos,
len,
)
end
function SCIPsortedvecDelPosLongPtrPtrIntInt(
longarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosLongPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Cint,
Ptr{Cint},
),
longarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
pos,
len,
)
end
function SCIPsortedvecDelPosLongPtrPtrBoolInt(
longarray,
ptrarray1,
ptrarray2,
boolarray,
intarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosLongPtrPtrBoolInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cuint},
Ptr{Cint},
Cint,
Ptr{Cint},
),
longarray,
ptrarray1,
ptrarray2,
boolarray,
intarray,
pos,
len,
)
end
function SCIPsortedvecDelPosPtrIntIntBoolBool(
ptrarray,
intarray1,
intarray2,
boolarray1,
boolarray2,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosPtrIntIntBoolBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray,
intarray1,
intarray2,
boolarray1,
boolarray2,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosIntPtrIntIntBoolBool(
intarray1,
ptrarray,
intarray2,
intarray3,
boolarray1,
boolarray2,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosIntPtrIntIntBoolBool, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Cint,
Ptr{Cint},
),
intarray1,
ptrarray,
intarray2,
intarray3,
boolarray1,
boolarray2,
pos,
len,
)
end
function SCIPsortedvecDelPosDownInd(indarray, indcomp, dataptr, pos, len)
ccall(
(:SCIPsortedvecDelPosDownInd, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cvoid}, Ptr{Cvoid}, Cint, Ptr{Cint}),
indarray,
indcomp,
dataptr,
pos,
len,
)
end
function SCIPsortedvecDelPosDownPtr(ptrarray, ptrcomp, pos, len)
ccall(
(:SCIPsortedvecDelPosDownPtr, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cvoid}, Cint, Ptr{Cint}),
ptrarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosDownPtrPtr(ptrarray1, ptrarray2, ptrcomp, pos, len)
ccall(
(:SCIPsortedvecDelPosDownPtrPtr, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Ptr{Cvoid}, Cint, Ptr{Cint}),
ptrarray1,
ptrarray2,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosDownPtrReal(ptrarray, realarray, ptrcomp, pos, len)
ccall(
(:SCIPsortedvecDelPosDownPtrReal, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cvoid}, Cint, Ptr{Cint}),
ptrarray,
realarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosDownPtrInt(ptrarray, intarray, ptrcomp, pos, len)
ccall(
(:SCIPsortedvecDelPosDownPtrInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cvoid}, Cint, Ptr{Cint}),
ptrarray,
intarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosDownPtrBool(ptrarray, boolarray, ptrcomp, pos, len)
ccall(
(:SCIPsortedvecDelPosDownPtrBool, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cuint}, Ptr{Cvoid}, Cint, Ptr{Cint}),
ptrarray,
boolarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosDownPtrIntInt(
ptrarray,
intarray1,
intarray2,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownPtrIntInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cint}, Ptr{Cvoid}, Cint, Ptr{Cint}),
ptrarray,
intarray1,
intarray2,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosDownPtrRealInt(
ptrarray,
realarray,
intarray,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownPtrRealInt, libscip),
Cvoid,
(Ptr{Ptr{Cvoid}}, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cvoid}, Cint, Ptr{Cint}),
ptrarray,
realarray,
intarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosDownPtrRealBool(
ptrarray,
realarray,
boolarray,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownPtrRealBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray,
realarray,
boolarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosDownPtrPtrInt(
ptrarray1,
ptrarray2,
intarray,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownPtrPtrInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
intarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosDownPtrPtrReal(
ptrarray1,
ptrarray2,
realarray,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownPtrPtrReal, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
realarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosDownPtrPtrIntInt(
ptrarray1,
ptrarray2,
intarray1,
intarray2,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
intarray1,
intarray2,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosDownPtrRealIntInt(
ptrarray,
realarray,
intarray1,
intarray2,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownPtrRealIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray,
realarray,
intarray1,
intarray2,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosDownPtrPtrRealInt(
ptrarray1,
ptrarray2,
realarray,
intarray,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownPtrPtrRealInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
realarray,
intarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosDownPtrPtrRealBool(
ptrarray1,
ptrarray2,
realarray,
boolarray,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownPtrPtrRealBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
realarray,
boolarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosDownPtrPtrLongInt(
ptrarray1,
ptrarray2,
longarray,
intarray,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownPtrPtrLongInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Clonglong},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
longarray,
intarray,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosDownPtrPtrLongIntInt(
ptrarray1,
ptrarray2,
longarray,
intarray1,
intarray2,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownPtrPtrLongIntInt, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Clonglong},
Ptr{Cint},
Ptr{Cint},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray1,
ptrarray2,
longarray,
intarray1,
intarray2,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosDownReal(realarray, pos, len)
ccall(
(:SCIPsortedvecDelPosDownReal, libscip),
Cvoid,
(Ptr{Cdouble}, Cint, Ptr{Cint}),
realarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownRealBoolPtr(
realarray,
boolarray,
ptrarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownRealBoolPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cuint}, Ptr{Ptr{Cvoid}}, Cint, Ptr{Cint}),
realarray,
boolarray,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownRealPtr(realarray, ptrarray, pos, len)
ccall(
(:SCIPsortedvecDelPosDownRealPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Cint, Ptr{Cint}),
realarray,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownRealInt(realarray, intarray, pos, len)
ccall(
(:SCIPsortedvecDelPosDownRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Cint, Ptr{Cint}),
realarray,
intarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownRealIntInt(
realarray,
intarray1,
intarray2,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownRealIntInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}, Cint, Ptr{Cint}),
realarray,
intarray1,
intarray2,
pos,
len,
)
end
function SCIPsortedvecDelPosDownRealIntLong(
realarray,
intarray,
longarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownRealIntLong, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Ptr{Clonglong}, Cint, Ptr{Cint}),
realarray,
intarray,
longarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownRealIntPtr(
realarray,
intarray,
ptrarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownRealIntPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint, Ptr{Cint}),
realarray,
intarray,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownRealRealInt(
realarray1,
realarray2,
intarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownRealRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cint}, Cint, Ptr{Cint}),
realarray1,
realarray2,
intarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownRealRealPtr(
realarray1,
realarray2,
ptrarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownRealRealPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Cint, Ptr{Cint}),
realarray1,
realarray2,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownRealRealPtrPtr(
realarray1,
realarray2,
ptrarray1,
ptrarray2,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownRealRealPtrPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Cint,
Ptr{Cint},
),
realarray1,
realarray2,
ptrarray1,
ptrarray2,
pos,
len,
)
end
function SCIPsortedvecDelPosDownRealPtrPtr(
realarray,
ptrarray1,
ptrarray2,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownRealPtrPtr, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Ptr{Cvoid}}, Ptr{Ptr{Cvoid}}, Cint, Ptr{Cint}),
realarray,
ptrarray1,
ptrarray2,
pos,
len,
)
end
function SCIPsortedvecDelPosDownRealPtrPtrInt(
realarray,
ptrarray1,
ptrarray2,
intarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownRealPtrPtrInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Cint,
Ptr{Cint},
),
realarray,
ptrarray1,
ptrarray2,
intarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownRealPtrPtrIntInt(
realarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownRealPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Cint,
Ptr{Cint},
),
realarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
pos,
len,
)
end
function SCIPsortedvecDelPosDownRealLongRealInt(
realarray1,
longarray,
realarray3,
intarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownRealLongRealInt, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Clonglong},
Ptr{Cdouble},
Ptr{Cint},
Cint,
Ptr{Cint},
),
realarray1,
longarray,
realarray3,
intarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownRealRealIntInt(
realarray1,
realarray2,
intarray1,
intarray2,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownRealRealIntInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}, Cint, Ptr{Cint}),
realarray1,
realarray2,
intarray1,
intarray2,
pos,
len,
)
end
function SCIPsortedvecDelPosDownRealRealRealInt(
realarray1,
realarray2,
realarray3,
intarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownRealRealRealInt, libscip),
Cvoid,
(Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cint}, Cint, Ptr{Cint}),
realarray1,
realarray2,
realarray3,
intarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownRealRealRealPtr(
realarray1,
realarray2,
realarray3,
ptrarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownRealRealRealPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Ptr{Cvoid}},
Cint,
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownRealRealRealBoolPtr(
realarray1,
realarray2,
realarray3,
boolarray,
ptrarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownRealRealRealBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Cint,
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
boolarray,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownRealRealRealBoolBoolPtr(
realarray1,
realarray2,
realarray3,
boolarray1,
boolarray2,
ptrarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownRealRealRealBoolBoolPtr, libscip),
Cvoid,
(
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Ptr{Cvoid}},
Cint,
Ptr{Cint},
),
realarray1,
realarray2,
realarray3,
boolarray1,
boolarray2,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownInt(intarray, pos, len)
ccall(
(:SCIPsortedvecDelPosDownInt, libscip),
Cvoid,
(Ptr{Cint}, Cint, Ptr{Cint}),
intarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownIntInt(intarray1, intarray2, pos, len)
ccall(
(:SCIPsortedvecDelPosDownIntInt, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Cint, Ptr{Cint}),
intarray1,
intarray2,
pos,
len,
)
end
function SCIPsortedvecDelPosDownIntReal(intarray, realarray, pos, len)
ccall(
(:SCIPsortedvecDelPosDownIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cdouble}, Cint, Ptr{Cint}),
intarray,
realarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownIntIntInt(
intarray1,
intarray2,
intarray3,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownIntIntInt, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Cint, Ptr{Cint}),
intarray1,
intarray2,
intarray3,
pos,
len,
)
end
function SCIPsortedvecDelPosDownIntIntLong(
intarray1,
intarray2,
longarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownIntIntLong, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Clonglong}, Cint, Ptr{Cint}),
intarray1,
intarray2,
longarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownIntIntPtr(
intarray1,
intarray2,
ptrarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownIntIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint, Ptr{Cint}),
intarray1,
intarray2,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownIntIntReal(
intarray1,
intarray2,
realarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownIntIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cdouble}, Cint, Ptr{Cint}),
intarray1,
intarray2,
realarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownIntPtr(intarray, ptrarray, pos, len)
ccall(
(:SCIPsortedvecDelPosDownIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint, Ptr{Cint}),
intarray,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownIntIntIntPtr(
intarray1,
intarray2,
intarray3,
ptrarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownIntIntIntPtr, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Ptr{Ptr{Cvoid}}, Cint, Ptr{Cint}),
intarray1,
intarray2,
intarray3,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownIntIntIntReal(
intarray1,
intarray2,
intarray3,
realarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownIntIntIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Cint}, Ptr{Cint}, Ptr{Cdouble}, Cint, Ptr{Cint}),
intarray1,
intarray2,
intarray3,
realarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownIntPtrIntReal(
intarray1,
ptrarray,
intarray2,
realarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownIntPtrIntReal, libscip),
Cvoid,
(Ptr{Cint}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Ptr{Cdouble}, Cint, Ptr{Cint}),
intarray1,
ptrarray,
intarray2,
realarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownLong(longarray, pos, len)
ccall(
(:SCIPsortedvecDelPosDownLong, libscip),
Cvoid,
(Ptr{Clonglong}, Cint, Ptr{Cint}),
longarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownLongPtr(longarray, ptrarray, pos, len)
ccall(
(:SCIPsortedvecDelPosDownLongPtr, libscip),
Cvoid,
(Ptr{Clonglong}, Ptr{Ptr{Cvoid}}, Cint, Ptr{Cint}),
longarray,
ptrarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownLongPtrInt(
longarray,
ptrarray,
intarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownLongPtrInt, libscip),
Cvoid,
(Ptr{Clonglong}, Ptr{Ptr{Cvoid}}, Ptr{Cint}, Cint, Ptr{Cint}),
longarray,
ptrarray,
intarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownLongPtrRealBool(
longarray,
ptrarray,
realarray,
boolarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownLongPtrRealBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cuint},
Cint,
Ptr{Cint},
),
longarray,
ptrarray,
realarray,
boolarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownLongPtrRealRealBool(
longarray,
ptrarray,
realarray,
realarray2,
boolarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownLongPtrRealRealBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Cint,
Ptr{Cint},
),
longarray,
ptrarray,
realarray,
realarray2,
boolarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownLongPtrRealRealIntBool(
longarray,
ptrarray,
realarray,
realarray2,
intarray,
boolarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownLongPtrRealRealIntBool, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cuint},
Cint,
Ptr{Cint},
),
longarray,
ptrarray,
realarray,
realarray2,
intarray,
boolarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownLongPtrPtrInt(
longarray,
ptrarray1,
ptrarray2,
intarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownLongPtrPtrInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Cint,
Ptr{Cint},
),
longarray,
ptrarray1,
ptrarray2,
intarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownLongPtrPtrIntInt(
longarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownLongPtrPtrIntInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Cint,
Ptr{Cint},
),
longarray,
ptrarray1,
ptrarray2,
intarray1,
intarray2,
pos,
len,
)
end
function SCIPsortedvecDelPosDownLongPtrPtrBoolInt(
longarray,
ptrarray1,
ptrarray2,
boolarray,
intarray,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownLongPtrPtrBoolInt, libscip),
Cvoid,
(
Ptr{Clonglong},
Ptr{Ptr{Cvoid}},
Ptr{Ptr{Cvoid}},
Ptr{Cuint},
Ptr{Cint},
Cint,
Ptr{Cint},
),
longarray,
ptrarray1,
ptrarray2,
boolarray,
intarray,
pos,
len,
)
end
function SCIPsortedvecDelPosDownPtrIntIntBoolBool(
ptrarray,
intarray1,
intarray2,
boolarray1,
boolarray2,
ptrcomp,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownPtrIntIntBoolBool, libscip),
Cvoid,
(
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cvoid},
Cint,
Ptr{Cint},
),
ptrarray,
intarray1,
intarray2,
boolarray1,
boolarray2,
ptrcomp,
pos,
len,
)
end
function SCIPsortedvecDelPosDownIntPtrIntIntBoolBool(
intarray1,
ptrarray,
intarray2,
intarray3,
boolarray1,
boolarray2,
pos,
len,
)
ccall(
(:SCIPsortedvecDelPosDownIntPtrIntIntBoolBool, libscip),
Cvoid,
(
Ptr{Cint},
Ptr{Ptr{Cvoid}},
Ptr{Cint},
Ptr{Cint},
Ptr{Cuint},
Ptr{Cuint},
Cint,
Ptr{Cint},
),
intarray1,
ptrarray,
intarray2,
intarray3,
boolarray1,
boolarray2,
pos,
len,
)
end
function SCIPsortedvecFindInd(indarray, indcomp, dataptr, val, len, pos)
ccall(
(:SCIPsortedvecFindInd, libscip),
Cuint,
(Ptr{Cint}, Ptr{Cvoid}, Ptr{Cvoid}, Cint, Cint, Ptr{Cint}),
indarray,
indcomp,
dataptr,
val,
len,
pos,
)
end
function SCIPsortedvecFindPtr(ptrarray, ptrcomp, val, len, pos)
ccall(
(:SCIPsortedvecFindPtr, libscip),
Cuint,
(Ptr{Ptr{Cvoid}}, Ptr{Cvoid}, Ptr{Cvoid}, Cint, Ptr{Cint}),
ptrarray,
ptrcomp,
val,
len,
pos,
)
end
function SCIPsortedvecFindReal(realarray, val, len, pos)
ccall(
(:SCIPsortedvecFindReal, libscip),
Cuint,
(Ptr{Cdouble}, Cdouble, Cint, Ptr{Cint}),
realarray,
val,
len,
pos,
)
end
function SCIPsortedvecFindInt(intarray, val, len, pos)
ccall(
(:SCIPsortedvecFindInt, libscip),
Cuint,
(Ptr{Cint}, Cint, Cint, Ptr{Cint}),
intarray,
val,
len,
pos,
)
end
function SCIPsortedvecFindLong(longarray, val, len, pos)
ccall(
(:SCIPsortedvecFindLong, libscip),
Cuint,
(Ptr{Clonglong}, Clonglong, Cint, Ptr{Cint}),
longarray,
val,
len,
pos,
)
end
function SCIPsortedvecFindDownInd(indarray, indcomp, dataptr, val, len, pos)
ccall(
(:SCIPsortedvecFindDownInd, libscip),
Cuint,
(Ptr{Cint}, Ptr{Cvoid}, Ptr{Cvoid}, Cint, Cint, Ptr{Cint}),
indarray,
indcomp,
dataptr,
val,
len,
pos,
)
end
function SCIPsortedvecFindDownPtr(ptrarray, ptrcomp, val, len, pos)
ccall(
(:SCIPsortedvecFindDownPtr, libscip),
Cuint,
(Ptr{Ptr{Cvoid}}, Ptr{Cvoid}, Ptr{Cvoid}, Cint, Ptr{Cint}),
ptrarray,
ptrcomp,
val,
len,
pos,
)
end
function SCIPsortedvecFindDownReal(realarray, val, len, pos)
ccall(
(:SCIPsortedvecFindDownReal, libscip),
Cuint,
(Ptr{Cdouble}, Cdouble, Cint, Ptr{Cint}),
realarray,
val,
len,
pos,
)
end
function SCIPsortedvecFindDownInt(intarray, val, len, pos)
ccall(
(:SCIPsortedvecFindDownInt, libscip),
Cuint,
(Ptr{Cint}, Cint, Cint, Ptr{Cint}),
intarray,
val,
len,
pos,
)
end
function SCIPsortedvecFindDownLong(longarray, val, len, pos)
ccall(
(:SCIPsortedvecFindDownLong, libscip),
Cuint,
(Ptr{Clonglong}, Clonglong, Cint, Ptr{Cint}),
longarray,
val,
len,
pos,
)
end
function SCIPnlhdlrSetCopyHdlr(nlhdlr, copy)
ccall(
(:SCIPnlhdlrSetCopyHdlr, libscip),
Cvoid,
(Ptr{SCIP_NLHDLR}, Ptr{Cvoid}),
nlhdlr,
copy,
)
end
function SCIPnlhdlrSetFreeHdlrData(nlhdlr, freehdlrdata)
ccall(
(:SCIPnlhdlrSetFreeHdlrData, libscip),
Cvoid,
(Ptr{SCIP_NLHDLR}, Ptr{Cvoid}),
nlhdlr,
freehdlrdata,
)
end
function SCIPnlhdlrSetFreeExprData(nlhdlr, freeexprdata)
ccall(
(:SCIPnlhdlrSetFreeExprData, libscip),
Cvoid,
(Ptr{SCIP_NLHDLR}, Ptr{Cvoid}),
nlhdlr,
freeexprdata,
)
end
function SCIPnlhdlrSetInitExit(nlhdlr, init, exit)
ccall(
(:SCIPnlhdlrSetInitExit, libscip),
Cvoid,
(Ptr{SCIP_NLHDLR}, Ptr{Cvoid}, Ptr{Cvoid}),
nlhdlr,
init,
exit,
)
end
function SCIPnlhdlrSetProp(nlhdlr, inteval, reverseprop)
ccall(
(:SCIPnlhdlrSetProp, libscip),
Cvoid,
(Ptr{SCIP_NLHDLR}, Ptr{Cvoid}, Ptr{Cvoid}),
nlhdlr,
inteval,
reverseprop,
)
end
function SCIPnlhdlrSetSepa(nlhdlr, initsepa, enfo, estimate, exitsepa)
ccall(
(:SCIPnlhdlrSetSepa, libscip),
Cvoid,
(Ptr{SCIP_NLHDLR}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}),
nlhdlr,
initsepa,
enfo,
estimate,
exitsepa,
)
end
function SCIPnlhdlrGetName(nlhdlr)
ccall(
(:SCIPnlhdlrGetName, libscip),
Ptr{Cchar},
(Ptr{SCIP_NLHDLR},),
nlhdlr,
)
end
function SCIPnlhdlrGetDesc(nlhdlr)
ccall(
(:SCIPnlhdlrGetDesc, libscip),
Ptr{Cchar},
(Ptr{SCIP_NLHDLR},),
nlhdlr,
)
end
function SCIPnlhdlrGetDetectPriority(nlhdlr)
ccall(
(:SCIPnlhdlrGetDetectPriority, libscip),
Cint,
(Ptr{SCIP_NLHDLR},),
nlhdlr,
)
end
function SCIPnlhdlrGetEnfoPriority(nlhdlr)
ccall(
(:SCIPnlhdlrGetEnfoPriority, libscip),
Cint,
(Ptr{SCIP_NLHDLR},),
nlhdlr,
)
end
function SCIPnlhdlrIsEnabled(nlhdlr)
ccall((:SCIPnlhdlrIsEnabled, libscip), Cuint, (Ptr{SCIP_NLHDLR},), nlhdlr)
end
function SCIPnlhdlrGetData(nlhdlr)
ccall(
(:SCIPnlhdlrGetData, libscip),
Ptr{SCIP_NLHDLRDATA},
(Ptr{SCIP_NLHDLR},),
nlhdlr,
)
end
function SCIPnlhdlrHasIntEval(nlhdlr)
ccall((:SCIPnlhdlrHasIntEval, libscip), Cuint, (Ptr{SCIP_NLHDLR},), nlhdlr)
end
function SCIPnlhdlrHasReverseProp(nlhdlr)
ccall(
(:SCIPnlhdlrHasReverseProp, libscip),
Cuint,
(Ptr{SCIP_NLHDLR},),
nlhdlr,
)
end
function SCIPnlhdlrHasInitSepa(nlhdlr)
ccall((:SCIPnlhdlrHasInitSepa, libscip), Cuint, (Ptr{SCIP_NLHDLR},), nlhdlr)
end
function SCIPnlhdlrHasExitSepa(nlhdlr)
ccall((:SCIPnlhdlrHasExitSepa, libscip), Cuint, (Ptr{SCIP_NLHDLR},), nlhdlr)
end
function SCIPnlhdlrHasEnfo(nlhdlr)
ccall((:SCIPnlhdlrHasEnfo, libscip), Cuint, (Ptr{SCIP_NLHDLR},), nlhdlr)
end
function SCIPnlhdlrHasEstimate(nlhdlr)
ccall((:SCIPnlhdlrHasEstimate, libscip), Cuint, (Ptr{SCIP_NLHDLR},), nlhdlr)
end
function SCIPnlhdlrComp(elem1, elem2)
ccall(
(:SCIPnlhdlrComp, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPnlrowGetConstant(nlrow)
ccall((:SCIPnlrowGetConstant, libscip), Cdouble, (Ptr{SCIP_NLROW},), nlrow)
end
function SCIPnlrowGetNLinearVars(nlrow)
ccall((:SCIPnlrowGetNLinearVars, libscip), Cint, (Ptr{SCIP_NLROW},), nlrow)
end
function SCIPnlrowGetLinearVars(nlrow)
ccall(
(:SCIPnlrowGetLinearVars, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP_NLROW},),
nlrow,
)
end
function SCIPnlrowGetLinearCoefs(nlrow)
ccall(
(:SCIPnlrowGetLinearCoefs, libscip),
Ptr{Cdouble},
(Ptr{SCIP_NLROW},),
nlrow,
)
end
function SCIPnlrowGetExpr(nlrow)
ccall(
(:SCIPnlrowGetExpr, libscip),
Ptr{SCIP_EXPR},
(Ptr{SCIP_NLROW},),
nlrow,
)
end
function SCIPnlrowGetLhs(nlrow)
ccall((:SCIPnlrowGetLhs, libscip), Cdouble, (Ptr{SCIP_NLROW},), nlrow)
end
function SCIPnlrowGetRhs(nlrow)
ccall((:SCIPnlrowGetRhs, libscip), Cdouble, (Ptr{SCIP_NLROW},), nlrow)
end
function SCIPnlrowGetCurvature(nlrow)
ccall(
(:SCIPnlrowGetCurvature, libscip),
SCIP_EXPRCURV,
(Ptr{SCIP_NLROW},),
nlrow,
)
end
function SCIPnlrowSetCurvature(nlrow, curvature)
ccall(
(:SCIPnlrowSetCurvature, libscip),
Cvoid,
(Ptr{SCIP_NLROW}, SCIP_EXPRCURV),
nlrow,
curvature,
)
end
function SCIPnlrowGetName(nlrow)
ccall((:SCIPnlrowGetName, libscip), Ptr{Cchar}, (Ptr{SCIP_NLROW},), nlrow)
end
function SCIPnlrowGetNLPPos(nlrow)
ccall((:SCIPnlrowGetNLPPos, libscip), Cint, (Ptr{SCIP_NLROW},), nlrow)
end
function SCIPnlrowIsInNLP(nlrow)
ccall((:SCIPnlrowIsInNLP, libscip), Cuint, (Ptr{SCIP_NLROW},), nlrow)
end
function SCIPnlrowGetDualsol(nlrow)
ccall((:SCIPnlrowGetDualsol, libscip), Cdouble, (Ptr{SCIP_NLROW},), nlrow)
end
function SCIPnlpiComp(elem1, elem2)
ccall(
(:SCIPnlpiComp, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPnlpiGetData(nlpi)
ccall(
(:SCIPnlpiGetData, libscip),
Ptr{SCIP_NLPIDATA},
(Ptr{SCIP_NLPI},),
nlpi,
)
end
function SCIPnlpiGetName(nlpi)
ccall((:SCIPnlpiGetName, libscip), Ptr{Cchar}, (Ptr{SCIP_NLPI},), nlpi)
end
function SCIPnlpiGetDesc(nlpi)
ccall((:SCIPnlpiGetDesc, libscip), Ptr{Cchar}, (Ptr{SCIP_NLPI},), nlpi)
end
function SCIPnlpiGetPriority(nlpi)
ccall((:SCIPnlpiGetPriority, libscip), Cint, (Ptr{SCIP_NLPI},), nlpi)
end
function SCIPnlpiGetNProblems(nlpi)
ccall((:SCIPnlpiGetNProblems, libscip), Cint, (Ptr{SCIP_NLPI},), nlpi)
end
function SCIPnlpiGetProblemTime(nlpi)
ccall((:SCIPnlpiGetProblemTime, libscip), Cdouble, (Ptr{SCIP_NLPI},), nlpi)
end
function SCIPnlpiGetNSolves(nlpi)
ccall((:SCIPnlpiGetNSolves, libscip), Cint, (Ptr{SCIP_NLPI},), nlpi)
end
function SCIPnlpiGetSolveTime(nlpi)
ccall((:SCIPnlpiGetSolveTime, libscip), Cdouble, (Ptr{SCIP_NLPI},), nlpi)
end
function SCIPnlpiGetEvalTime(nlpi)
ccall((:SCIPnlpiGetEvalTime, libscip), Cdouble, (Ptr{SCIP_NLPI},), nlpi)
end
function SCIPnlpiGetNIterations(nlpi)
ccall(
(:SCIPnlpiGetNIterations, libscip),
Clonglong,
(Ptr{SCIP_NLPI},),
nlpi,
)
end
function SCIPnlpiGetNTermStat(nlpi, termstatus)
ccall(
(:SCIPnlpiGetNTermStat, libscip),
Cint,
(Ptr{SCIP_NLPI}, SCIP_NLPTERMSTAT),
nlpi,
termstatus,
)
end
function SCIPnlpiGetNSolStat(nlpi, solstatus)
ccall(
(:SCIPnlpiGetNSolStat, libscip),
Cint,
(Ptr{SCIP_NLPI}, SCIP_NLPSOLSTAT),
nlpi,
solstatus,
)
end
function SCIPnlpiMergeStatistics(targetnlpi, sourcenlpi, reset)
ccall(
(:SCIPnlpiMergeStatistics, libscip),
Cvoid,
(Ptr{SCIP_NLPI}, Ptr{SCIP_NLPI}, Cuint),
targetnlpi,
sourcenlpi,
reset,
)
end
function SCIPnodeselGetName(nodesel)
ccall(
(:SCIPnodeselGetName, libscip),
Ptr{Cchar},
(Ptr{SCIP_NODESEL},),
nodesel,
)
end
function SCIPnodeselGetDesc(nodesel)
ccall(
(:SCIPnodeselGetDesc, libscip),
Ptr{Cchar},
(Ptr{SCIP_NODESEL},),
nodesel,
)
end
function SCIPnodeselGetStdPriority(nodesel)
ccall(
(:SCIPnodeselGetStdPriority, libscip),
Cint,
(Ptr{SCIP_NODESEL},),
nodesel,
)
end
function SCIPnodeselGetMemsavePriority(nodesel)
ccall(
(:SCIPnodeselGetMemsavePriority, libscip),
Cint,
(Ptr{SCIP_NODESEL},),
nodesel,
)
end
function SCIPnodeselGetData(nodesel)
ccall(
(:SCIPnodeselGetData, libscip),
Ptr{SCIP_NODESELDATA},
(Ptr{SCIP_NODESEL},),
nodesel,
)
end
function SCIPnodeselSetData(nodesel, nodeseldata)
ccall(
(:SCIPnodeselSetData, libscip),
Cvoid,
(Ptr{SCIP_NODESEL}, Ptr{SCIP_NODESELDATA}),
nodesel,
nodeseldata,
)
end
function SCIPnodeselIsInitialized(nodesel)
ccall(
(:SCIPnodeselIsInitialized, libscip),
Cuint,
(Ptr{SCIP_NODESEL},),
nodesel,
)
end
function SCIPnodeselGetSetupTime(nodesel)
ccall(
(:SCIPnodeselGetSetupTime, libscip),
Cdouble,
(Ptr{SCIP_NODESEL},),
nodesel,
)
end
function SCIPnodeselGetTime(nodesel)
ccall(
(:SCIPnodeselGetTime, libscip),
Cdouble,
(Ptr{SCIP_NODESEL},),
nodesel,
)
end
function SCIPparamGetType(param)
ccall(
(:SCIPparamGetType, libscip),
SCIP_PARAMTYPE,
(Ptr{SCIP_PARAM},),
param,
)
end
function SCIPparamGetName(param)
ccall((:SCIPparamGetName, libscip), Ptr{Cchar}, (Ptr{SCIP_PARAM},), param)
end
function SCIPparamGetDesc(param)
ccall((:SCIPparamGetDesc, libscip), Ptr{Cchar}, (Ptr{SCIP_PARAM},), param)
end
function SCIPparamGetData(param)
ccall(
(:SCIPparamGetData, libscip),
Ptr{SCIP_PARAMDATA},
(Ptr{SCIP_PARAM},),
param,
)
end
function SCIPparamIsAdvanced(param)
ccall((:SCIPparamIsAdvanced, libscip), Cuint, (Ptr{SCIP_PARAM},), param)
end
function SCIPparamIsFixed(param)
ccall((:SCIPparamIsFixed, libscip), Cuint, (Ptr{SCIP_PARAM},), param)
end
function SCIPparamSetFixed(param, fixed)
ccall(
(:SCIPparamSetFixed, libscip),
Cvoid,
(Ptr{SCIP_PARAM}, Cuint),
param,
fixed,
)
end
function SCIPparamGetBool(param)
ccall((:SCIPparamGetBool, libscip), Cuint, (Ptr{SCIP_PARAM},), param)
end
function SCIPparamGetBoolDefault(param)
ccall((:SCIPparamGetBoolDefault, libscip), Cuint, (Ptr{SCIP_PARAM},), param)
end
function SCIPparamGetInt(param)
ccall((:SCIPparamGetInt, libscip), Cint, (Ptr{SCIP_PARAM},), param)
end
function SCIPparamGetIntMin(param)
ccall((:SCIPparamGetIntMin, libscip), Cint, (Ptr{SCIP_PARAM},), param)
end
function SCIPparamGetIntMax(param)
ccall((:SCIPparamGetIntMax, libscip), Cint, (Ptr{SCIP_PARAM},), param)
end
function SCIPparamGetIntDefault(param)
ccall((:SCIPparamGetIntDefault, libscip), Cint, (Ptr{SCIP_PARAM},), param)
end
function SCIPparamGetLongint(param)
ccall((:SCIPparamGetLongint, libscip), Clonglong, (Ptr{SCIP_PARAM},), param)
end
function SCIPparamGetLongintMin(param)
ccall(
(:SCIPparamGetLongintMin, libscip),
Clonglong,
(Ptr{SCIP_PARAM},),
param,
)
end
function SCIPparamGetLongintMax(param)
ccall(
(:SCIPparamGetLongintMax, libscip),
Clonglong,
(Ptr{SCIP_PARAM},),
param,
)
end
function SCIPparamGetLongintDefault(param)
ccall(
(:SCIPparamGetLongintDefault, libscip),
Clonglong,
(Ptr{SCIP_PARAM},),
param,
)
end
function SCIPparamGetReal(param)
ccall((:SCIPparamGetReal, libscip), Cdouble, (Ptr{SCIP_PARAM},), param)
end
function SCIPparamGetRealMin(param)
ccall((:SCIPparamGetRealMin, libscip), Cdouble, (Ptr{SCIP_PARAM},), param)
end
function SCIPparamGetRealMax(param)
ccall((:SCIPparamGetRealMax, libscip), Cdouble, (Ptr{SCIP_PARAM},), param)
end
function SCIPparamGetRealDefault(param)
ccall(
(:SCIPparamGetRealDefault, libscip),
Cdouble,
(Ptr{SCIP_PARAM},),
param,
)
end
function SCIPparamGetChar(param)
ccall((:SCIPparamGetChar, libscip), Cchar, (Ptr{SCIP_PARAM},), param)
end
function SCIPparamGetCharAllowedValues(param)
ccall(
(:SCIPparamGetCharAllowedValues, libscip),
Ptr{Cchar},
(Ptr{SCIP_PARAM},),
param,
)
end
function SCIPparamGetCharDefault(param)
ccall((:SCIPparamGetCharDefault, libscip), Cchar, (Ptr{SCIP_PARAM},), param)
end
function SCIPparamGetString(param)
ccall((:SCIPparamGetString, libscip), Ptr{Cchar}, (Ptr{SCIP_PARAM},), param)
end
function SCIPparamGetStringDefault(param)
ccall(
(:SCIPparamGetStringDefault, libscip),
Ptr{Cchar},
(Ptr{SCIP_PARAM},),
param,
)
end
function SCIPparamIsDefault(param)
ccall((:SCIPparamIsDefault, libscip), Cuint, (Ptr{SCIP_PARAM},), param)
end
function SCIPpresolComp(elem1, elem2)
ccall(
(:SCIPpresolComp, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPpresolCompName(elem1, elem2)
ccall(
(:SCIPpresolCompName, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPpresolGetData(presol)
ccall(
(:SCIPpresolGetData, libscip),
Ptr{SCIP_PRESOLDATA},
(Ptr{SCIP_PRESOL},),
presol,
)
end
function SCIPpresolSetData(presol, presoldata)
ccall(
(:SCIPpresolSetData, libscip),
Cvoid,
(Ptr{SCIP_PRESOL}, Ptr{SCIP_PRESOLDATA}),
presol,
presoldata,
)
end
function SCIPpresolGetName(presol)
ccall(
(:SCIPpresolGetName, libscip),
Ptr{Cchar},
(Ptr{SCIP_PRESOL},),
presol,
)
end
function SCIPpresolGetDesc(presol)
ccall(
(:SCIPpresolGetDesc, libscip),
Ptr{Cchar},
(Ptr{SCIP_PRESOL},),
presol,
)
end
function SCIPpresolGetPriority(presol)
ccall((:SCIPpresolGetPriority, libscip), Cint, (Ptr{SCIP_PRESOL},), presol)
end
function SCIPpresolGetMaxrounds(presol)
ccall((:SCIPpresolGetMaxrounds, libscip), Cint, (Ptr{SCIP_PRESOL},), presol)
end
function SCIPpresolGetTiming(presol)
ccall(
(:SCIPpresolGetTiming, libscip),
SCIP_PRESOLTIMING,
(Ptr{SCIP_PRESOL},),
presol,
)
end
function SCIPpresolSetTiming(presol, timing)
ccall(
(:SCIPpresolSetTiming, libscip),
Cvoid,
(Ptr{SCIP_PRESOL}, SCIP_PRESOLTIMING),
presol,
timing,
)
end
function SCIPpresolIsInitialized(presol)
ccall(
(:SCIPpresolIsInitialized, libscip),
Cuint,
(Ptr{SCIP_PRESOL},),
presol,
)
end
function SCIPpresolGetSetupTime(presol)
ccall(
(:SCIPpresolGetSetupTime, libscip),
Cdouble,
(Ptr{SCIP_PRESOL},),
presol,
)
end
function SCIPpresolGetTime(presol)
ccall((:SCIPpresolGetTime, libscip), Cdouble, (Ptr{SCIP_PRESOL},), presol)
end
function SCIPpresolGetNFixedVars(presol)
ccall(
(:SCIPpresolGetNFixedVars, libscip),
Cint,
(Ptr{SCIP_PRESOL},),
presol,
)
end
function SCIPpresolGetNAggrVars(presol)
ccall((:SCIPpresolGetNAggrVars, libscip), Cint, (Ptr{SCIP_PRESOL},), presol)
end
function SCIPpresolGetNChgVarTypes(presol)
ccall(
(:SCIPpresolGetNChgVarTypes, libscip),
Cint,
(Ptr{SCIP_PRESOL},),
presol,
)
end
function SCIPpresolGetNChgBds(presol)
ccall((:SCIPpresolGetNChgBds, libscip), Cint, (Ptr{SCIP_PRESOL},), presol)
end
function SCIPpresolGetNAddHoles(presol)
ccall((:SCIPpresolGetNAddHoles, libscip), Cint, (Ptr{SCIP_PRESOL},), presol)
end
function SCIPpresolGetNDelConss(presol)
ccall((:SCIPpresolGetNDelConss, libscip), Cint, (Ptr{SCIP_PRESOL},), presol)
end
function SCIPpresolGetNAddConss(presol)
ccall((:SCIPpresolGetNAddConss, libscip), Cint, (Ptr{SCIP_PRESOL},), presol)
end
function SCIPpresolGetNUpgdConss(presol)
ccall(
(:SCIPpresolGetNUpgdConss, libscip),
Cint,
(Ptr{SCIP_PRESOL},),
presol,
)
end
function SCIPpresolGetNChgCoefs(presol)
ccall((:SCIPpresolGetNChgCoefs, libscip), Cint, (Ptr{SCIP_PRESOL},), presol)
end
function SCIPpresolGetNChgSides(presol)
ccall((:SCIPpresolGetNChgSides, libscip), Cint, (Ptr{SCIP_PRESOL},), presol)
end
function SCIPpresolGetNCalls(presol)
ccall((:SCIPpresolGetNCalls, libscip), Cint, (Ptr{SCIP_PRESOL},), presol)
end
function SCIPpricerComp(elem1, elem2)
ccall(
(:SCIPpricerComp, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPpricerCompName(elem1, elem2)
ccall(
(:SCIPpricerCompName, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPpricerGetData(pricer)
ccall(
(:SCIPpricerGetData, libscip),
Ptr{SCIP_PRICERDATA},
(Ptr{SCIP_PRICER},),
pricer,
)
end
function SCIPpricerSetData(pricer, pricerdata)
ccall(
(:SCIPpricerSetData, libscip),
Cvoid,
(Ptr{SCIP_PRICER}, Ptr{SCIP_PRICERDATA}),
pricer,
pricerdata,
)
end
function SCIPpricerGetName(pricer)
ccall(
(:SCIPpricerGetName, libscip),
Ptr{Cchar},
(Ptr{SCIP_PRICER},),
pricer,
)
end
function SCIPpricerGetDesc(pricer)
ccall(
(:SCIPpricerGetDesc, libscip),
Ptr{Cchar},
(Ptr{SCIP_PRICER},),
pricer,
)
end
function SCIPpricerGetPriority(pricer)
ccall((:SCIPpricerGetPriority, libscip), Cint, (Ptr{SCIP_PRICER},), pricer)
end
function SCIPpricerGetNCalls(pricer)
ccall((:SCIPpricerGetNCalls, libscip), Cint, (Ptr{SCIP_PRICER},), pricer)
end
function SCIPpricerGetNVarsFound(pricer)
ccall(
(:SCIPpricerGetNVarsFound, libscip),
Cint,
(Ptr{SCIP_PRICER},),
pricer,
)
end
function SCIPpricerGetSetupTime(pricer)
ccall(
(:SCIPpricerGetSetupTime, libscip),
Cdouble,
(Ptr{SCIP_PRICER},),
pricer,
)
end
function SCIPpricerGetTime(pricer)
ccall((:SCIPpricerGetTime, libscip), Cdouble, (Ptr{SCIP_PRICER},), pricer)
end
function SCIPpricerIsActive(pricer)
ccall((:SCIPpricerIsActive, libscip), Cuint, (Ptr{SCIP_PRICER},), pricer)
end
function SCIPpricerIsDelayed(pricer)
ccall((:SCIPpricerIsDelayed, libscip), Cuint, (Ptr{SCIP_PRICER},), pricer)
end
function SCIPpricerIsInitialized(pricer)
ccall(
(:SCIPpricerIsInitialized, libscip),
Cuint,
(Ptr{SCIP_PRICER},),
pricer,
)
end
function SCIPpropComp(elem1, elem2)
ccall(
(:SCIPpropComp, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPpropCompPresol(elem1, elem2)
ccall(
(:SCIPpropCompPresol, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPpropCompName(elem1, elem2)
ccall(
(:SCIPpropCompName, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPpropGetData(prop)
ccall(
(:SCIPpropGetData, libscip),
Ptr{SCIP_PROPDATA},
(Ptr{SCIP_PROP},),
prop,
)
end
function SCIPpropSetData(prop, propdata)
ccall(
(:SCIPpropSetData, libscip),
Cvoid,
(Ptr{SCIP_PROP}, Ptr{SCIP_PROPDATA}),
prop,
propdata,
)
end
function SCIPpropGetName(prop)
ccall((:SCIPpropGetName, libscip), Ptr{Cchar}, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetDesc(prop)
ccall((:SCIPpropGetDesc, libscip), Ptr{Cchar}, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetPriority(prop)
ccall((:SCIPpropGetPriority, libscip), Cint, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetPresolPriority(prop)
ccall((:SCIPpropGetPresolPriority, libscip), Cint, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetFreq(prop)
ccall((:SCIPpropGetFreq, libscip), Cint, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetSetupTime(prop)
ccall((:SCIPpropGetSetupTime, libscip), Cdouble, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropSetFreq(prop, freq)
ccall(
(:SCIPpropSetFreq, libscip),
Cvoid,
(Ptr{SCIP_PROP}, Cint),
prop,
freq,
)
end
function SCIPpropGetTime(prop)
ccall((:SCIPpropGetTime, libscip), Cdouble, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetStrongBranchPropTime(prop)
ccall(
(:SCIPpropGetStrongBranchPropTime, libscip),
Cdouble,
(Ptr{SCIP_PROP},),
prop,
)
end
function SCIPpropGetRespropTime(prop)
ccall((:SCIPpropGetRespropTime, libscip), Cdouble, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetPresolTime(prop)
ccall((:SCIPpropGetPresolTime, libscip), Cdouble, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetNCalls(prop)
ccall((:SCIPpropGetNCalls, libscip), Clonglong, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetNRespropCalls(prop)
ccall(
(:SCIPpropGetNRespropCalls, libscip),
Clonglong,
(Ptr{SCIP_PROP},),
prop,
)
end
function SCIPpropGetNCutoffs(prop)
ccall((:SCIPpropGetNCutoffs, libscip), Clonglong, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetNDomredsFound(prop)
ccall(
(:SCIPpropGetNDomredsFound, libscip),
Clonglong,
(Ptr{SCIP_PROP},),
prop,
)
end
function SCIPpropIsDelayed(prop)
ccall((:SCIPpropIsDelayed, libscip), Cuint, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropWasDelayed(prop)
ccall((:SCIPpropWasDelayed, libscip), Cuint, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropIsInitialized(prop)
ccall((:SCIPpropIsInitialized, libscip), Cuint, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetNFixedVars(prop)
ccall((:SCIPpropGetNFixedVars, libscip), Cint, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetNAggrVars(prop)
ccall((:SCIPpropGetNAggrVars, libscip), Cint, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetNChgVarTypes(prop)
ccall((:SCIPpropGetNChgVarTypes, libscip), Cint, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetNChgBds(prop)
ccall((:SCIPpropGetNChgBds, libscip), Cint, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetNAddHoles(prop)
ccall((:SCIPpropGetNAddHoles, libscip), Cint, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetNDelConss(prop)
ccall((:SCIPpropGetNDelConss, libscip), Cint, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetNAddConss(prop)
ccall((:SCIPpropGetNAddConss, libscip), Cint, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetNUpgdConss(prop)
ccall((:SCIPpropGetNUpgdConss, libscip), Cint, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetNChgCoefs(prop)
ccall((:SCIPpropGetNChgCoefs, libscip), Cint, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetNChgSides(prop)
ccall((:SCIPpropGetNChgSides, libscip), Cint, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetNPresolCalls(prop)
ccall((:SCIPpropGetNPresolCalls, libscip), Cint, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetTimingmask(prop)
ccall(
(:SCIPpropGetTimingmask, libscip),
SCIP_PROPTIMING,
(Ptr{SCIP_PROP},),
prop,
)
end
function SCIPpropDoesPresolve(prop)
ccall((:SCIPpropDoesPresolve, libscip), Cuint, (Ptr{SCIP_PROP},), prop)
end
function SCIPpropGetPresolTiming(prop)
ccall(
(:SCIPpropGetPresolTiming, libscip),
SCIP_PRESOLTIMING,
(Ptr{SCIP_PROP},),
prop,
)
end
function SCIPpropSetPresolTiming(prop, presoltiming)
ccall(
(:SCIPpropSetPresolTiming, libscip),
Cvoid,
(Ptr{SCIP_PROP}, SCIP_PRESOLTIMING),
prop,
presoltiming,
)
end
function SCIPreaderGetData(reader)
ccall(
(:SCIPreaderGetData, libscip),
Ptr{SCIP_READERDATA},
(Ptr{SCIP_READER},),
reader,
)
end
function SCIPreaderSetData(reader, readerdata)
ccall(
(:SCIPreaderSetData, libscip),
Cvoid,
(Ptr{SCIP_READER}, Ptr{SCIP_READERDATA}),
reader,
readerdata,
)
end
function SCIPreaderGetName(reader)
ccall(
(:SCIPreaderGetName, libscip),
Ptr{Cchar},
(Ptr{SCIP_READER},),
reader,
)
end
function SCIPreaderGetDesc(reader)
ccall(
(:SCIPreaderGetDesc, libscip),
Ptr{Cchar},
(Ptr{SCIP_READER},),
reader,
)
end
function SCIPreaderGetExtension(reader)
ccall(
(:SCIPreaderGetExtension, libscip),
Ptr{Cchar},
(Ptr{SCIP_READER},),
reader,
)
end
function SCIPreaderCanRead(reader)
ccall((:SCIPreaderCanRead, libscip), Cuint, (Ptr{SCIP_READER},), reader)
end
function SCIPreaderCanWrite(reader)
ccall((:SCIPreaderCanWrite, libscip), Cuint, (Ptr{SCIP_READER},), reader)
end
function SCIPrelaxComp(elem1, elem2)
ccall(
(:SCIPrelaxComp, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPrelaxCompName(elem1, elem2)
ccall(
(:SCIPrelaxCompName, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPrelaxGetData(relax)
ccall(
(:SCIPrelaxGetData, libscip),
Ptr{SCIP_RELAXDATA},
(Ptr{SCIP_RELAX},),
relax,
)
end
function SCIPrelaxSetData(relax, relaxdata)
ccall(
(:SCIPrelaxSetData, libscip),
Cvoid,
(Ptr{SCIP_RELAX}, Ptr{SCIP_RELAXDATA}),
relax,
relaxdata,
)
end
function SCIPrelaxGetName(relax)
ccall((:SCIPrelaxGetName, libscip), Ptr{Cchar}, (Ptr{SCIP_RELAX},), relax)
end
function SCIPrelaxGetDesc(relax)
ccall((:SCIPrelaxGetDesc, libscip), Ptr{Cchar}, (Ptr{SCIP_RELAX},), relax)
end
function SCIPrelaxGetPriority(relax)
ccall((:SCIPrelaxGetPriority, libscip), Cint, (Ptr{SCIP_RELAX},), relax)
end
function SCIPrelaxGetFreq(relax)
ccall((:SCIPrelaxGetFreq, libscip), Cint, (Ptr{SCIP_RELAX},), relax)
end
function SCIPrelaxGetSetupTime(relax)
ccall((:SCIPrelaxGetSetupTime, libscip), Cdouble, (Ptr{SCIP_RELAX},), relax)
end
function SCIPrelaxGetTime(relax)
ccall((:SCIPrelaxGetTime, libscip), Cdouble, (Ptr{SCIP_RELAX},), relax)
end
function SCIPrelaxGetNCalls(relax)
ccall((:SCIPrelaxGetNCalls, libscip), Clonglong, (Ptr{SCIP_RELAX},), relax)
end
function SCIPrelaxGetNCutoffs(relax)
ccall(
(:SCIPrelaxGetNCutoffs, libscip),
Clonglong,
(Ptr{SCIP_RELAX},),
relax,
)
end
function SCIPrelaxGetNImprovedLowerbound(relax)
ccall(
(:SCIPrelaxGetNImprovedLowerbound, libscip),
Clonglong,
(Ptr{SCIP_RELAX},),
relax,
)
end
function SCIPrelaxGetImprovedLowerboundTime(relax)
ccall(
(:SCIPrelaxGetImprovedLowerboundTime, libscip),
Cdouble,
(Ptr{SCIP_RELAX},),
relax,
)
end
function SCIPrelaxGetNAddedConss(relax)
ccall(
(:SCIPrelaxGetNAddedConss, libscip),
Clonglong,
(Ptr{SCIP_RELAX},),
relax,
)
end
function SCIPrelaxGetNReducedDomains(relax)
ccall(
(:SCIPrelaxGetNReducedDomains, libscip),
Clonglong,
(Ptr{SCIP_RELAX},),
relax,
)
end
function SCIPrelaxGetNSeparatedCuts(relax)
ccall(
(:SCIPrelaxGetNSeparatedCuts, libscip),
Clonglong,
(Ptr{SCIP_RELAX},),
relax,
)
end
function SCIPrelaxIsInitialized(relax)
ccall((:SCIPrelaxIsInitialized, libscip), Cuint, (Ptr{SCIP_RELAX},), relax)
end
function SCIPrelaxMarkUnsolved(relax)
ccall((:SCIPrelaxMarkUnsolved, libscip), Cvoid, (Ptr{SCIP_RELAX},), relax)
end
function SCIPreoptnodeGetNVars(reoptnode)
ccall(
(:SCIPreoptnodeGetNVars, libscip),
Cint,
(Ptr{SCIP_REOPTNODE},),
reoptnode,
)
end
function SCIPreoptnodeGetNConss(reoptnode)
ccall(
(:SCIPreoptnodeGetNConss, libscip),
Cint,
(Ptr{SCIP_REOPTNODE},),
reoptnode,
)
end
function SCIPreoptnodeGetNDualBoundChgs(reoptnode)
ccall(
(:SCIPreoptnodeGetNDualBoundChgs, libscip),
Cint,
(Ptr{SCIP_REOPTNODE},),
reoptnode,
)
end
function SCIPreoptnodeGetNChildren(reoptnode)
ccall(
(:SCIPreoptnodeGetNChildren, libscip),
Cint,
(Ptr{SCIP_REOPTNODE},),
reoptnode,
)
end
function SCIPreoptnodeGetLowerbound(reoptnode)
ccall(
(:SCIPreoptnodeGetLowerbound, libscip),
Cdouble,
(Ptr{SCIP_REOPTNODE},),
reoptnode,
)
end
function SCIPreoptnodeGetType(reoptnode)
ccall(
(:SCIPreoptnodeGetType, libscip),
SCIP_REOPTTYPE,
(Ptr{SCIP_REOPTNODE},),
reoptnode,
)
end
function SCIPreoptnodeGetSplitCons(
reoptnode,
vars,
vals,
constype,
conssize,
nvars,
)
ccall(
(:SCIPreoptnodeGetSplitCons, libscip),
Cvoid,
(
Ptr{SCIP_REOPTNODE},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Ptr{REOPT_CONSTYPE},
Cint,
Ptr{Cint},
),
reoptnode,
vars,
vals,
constype,
conssize,
nvars,
)
end
function SCIPreoptnodeGetConss(
reoptnode,
vars,
bounds,
boundtypes,
mem,
nconss,
nvars,
)
ccall(
(:SCIPreoptnodeGetConss, libscip),
Cvoid,
(
Ptr{SCIP_REOPTNODE},
Ptr{Ptr{Ptr{SCIP_VAR}}},
Ptr{Ptr{Cdouble}},
Ptr{Ptr{SCIP_BOUNDTYPE}},
Cint,
Ptr{Cint},
Ptr{Cint},
),
reoptnode,
vars,
bounds,
boundtypes,
mem,
nconss,
nvars,
)
end
function SCIPreoptnodeSetParentID(reoptnode, parentid)
ccall(
(:SCIPreoptnodeSetParentID, libscip),
Cvoid,
(Ptr{SCIP_REOPTNODE}, Cuint),
reoptnode,
parentid,
)
end
function SCIPreoptGetNRestartsGlobal(reopt)
ccall(
(:SCIPreoptGetNRestartsGlobal, libscip),
Cint,
(Ptr{SCIP_REOPT},),
reopt,
)
end
function SCIPreoptGetNRestartsLocal(reopt)
ccall(
(:SCIPreoptGetNRestartsLocal, libscip),
Cint,
(Ptr{SCIP_REOPT},),
reopt,
)
end
function SCIPreoptGetNTotalRestartsLocal(reopt)
ccall(
(:SCIPreoptGetNTotalRestartsLocal, libscip),
Cint,
(Ptr{SCIP_REOPT},),
reopt,
)
end
function SCIPreoptGetFirstRestarts(reopt)
ccall(
(:SCIPreoptGetFirstRestarts, libscip),
Cint,
(Ptr{SCIP_REOPT},),
reopt,
)
end
function SCIPreoptGetLastRestarts(reopt)
ccall((:SCIPreoptGetLastRestarts, libscip), Cint, (Ptr{SCIP_REOPT},), reopt)
end
function SCIPreoptGetNFeasNodes(reopt)
ccall((:SCIPreoptGetNFeasNodes, libscip), Cint, (Ptr{SCIP_REOPT},), reopt)
end
function SCIPreoptGetNTotalFeasNodes(reopt)
ccall(
(:SCIPreoptGetNTotalFeasNodes, libscip),
Cint,
(Ptr{SCIP_REOPT},),
reopt,
)
end
function SCIPreoptGetNPrunedNodes(reopt)
ccall((:SCIPreoptGetNPrunedNodes, libscip), Cint, (Ptr{SCIP_REOPT},), reopt)
end
function SCIPreoptGetNTotalPrunedNodes(reopt)
ccall(
(:SCIPreoptGetNTotalPrunedNodes, libscip),
Cint,
(Ptr{SCIP_REOPT},),
reopt,
)
end
function SCIPreoptGetNCutoffReoptnodes(reopt)
ccall(
(:SCIPreoptGetNCutoffReoptnodes, libscip),
Cint,
(Ptr{SCIP_REOPT},),
reopt,
)
end
function SCIPreoptGetNTotalCutoffReoptnodes(reopt)
ccall(
(:SCIPreoptGetNTotalCutoffReoptnodes, libscip),
Cint,
(Ptr{SCIP_REOPT},),
reopt,
)
end
function SCIPreoptGetNInfNodes(reopt)
ccall((:SCIPreoptGetNInfNodes, libscip), Cint, (Ptr{SCIP_REOPT},), reopt)
end
function SCIPreoptGetNTotalInfNodes(reopt)
ccall(
(:SCIPreoptGetNTotalInfNodes, libscip),
Cint,
(Ptr{SCIP_REOPT},),
reopt,
)
end
function SCIPsepaComp(elem1, elem2)
ccall(
(:SCIPsepaComp, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPsepaCompName(elem1, elem2)
ccall(
(:SCIPsepaCompName, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPsepaGetData(sepa)
ccall(
(:SCIPsepaGetData, libscip),
Ptr{SCIP_SEPADATA},
(Ptr{SCIP_SEPA},),
sepa,
)
end
function SCIPsepaSetData(sepa, sepadata)
ccall(
(:SCIPsepaSetData, libscip),
Cvoid,
(Ptr{SCIP_SEPA}, Ptr{SCIP_SEPADATA}),
sepa,
sepadata,
)
end
function SCIPsepaGetName(sepa)
ccall((:SCIPsepaGetName, libscip), Ptr{Cchar}, (Ptr{SCIP_SEPA},), sepa)
end
function SCIPsepaGetDesc(sepa)
ccall((:SCIPsepaGetDesc, libscip), Ptr{Cchar}, (Ptr{SCIP_SEPA},), sepa)
end
function SCIPsepaGetPriority(sepa)
ccall((:SCIPsepaGetPriority, libscip), Cint, (Ptr{SCIP_SEPA},), sepa)
end
function SCIPsepaGetFreq(sepa)
ccall((:SCIPsepaGetFreq, libscip), Cint, (Ptr{SCIP_SEPA},), sepa)
end
function SCIPsepaSetFreq(sepa, freq)
ccall(
(:SCIPsepaSetFreq, libscip),
Cvoid,
(Ptr{SCIP_SEPA}, Cint),
sepa,
freq,
)
end
function SCIPsepaGetMaxbounddist(sepa)
ccall((:SCIPsepaGetMaxbounddist, libscip), Cdouble, (Ptr{SCIP_SEPA},), sepa)
end
function SCIPsepaUsesSubscip(sepa)
ccall((:SCIPsepaUsesSubscip, libscip), Cuint, (Ptr{SCIP_SEPA},), sepa)
end
function SCIPsepaGetSetupTime(sepa)
ccall((:SCIPsepaGetSetupTime, libscip), Cdouble, (Ptr{SCIP_SEPA},), sepa)
end
function SCIPsepaGetTime(sepa)
ccall((:SCIPsepaGetTime, libscip), Cdouble, (Ptr{SCIP_SEPA},), sepa)
end
function SCIPsepaGetNCalls(sepa)
ccall((:SCIPsepaGetNCalls, libscip), Clonglong, (Ptr{SCIP_SEPA},), sepa)
end
function SCIPsepaGetNCallsAtNode(sepa)
ccall((:SCIPsepaGetNCallsAtNode, libscip), Cint, (Ptr{SCIP_SEPA},), sepa)
end
function SCIPsepaGetNCutoffs(sepa)
ccall((:SCIPsepaGetNCutoffs, libscip), Clonglong, (Ptr{SCIP_SEPA},), sepa)
end
function SCIPsepaGetNCutsFound(sepa)
ccall((:SCIPsepaGetNCutsFound, libscip), Clonglong, (Ptr{SCIP_SEPA},), sepa)
end
function SCIPsepaGetNCutsApplied(sepa)
ccall(
(:SCIPsepaGetNCutsApplied, libscip),
Clonglong,
(Ptr{SCIP_SEPA},),
sepa,
)
end
function SCIPsepaGetNCutsFoundAtNode(sepa)
ccall(
(:SCIPsepaGetNCutsFoundAtNode, libscip),
Clonglong,
(Ptr{SCIP_SEPA},),
sepa,
)
end
function SCIPsepaGetNConssFound(sepa)
ccall(
(:SCIPsepaGetNConssFound, libscip),
Clonglong,
(Ptr{SCIP_SEPA},),
sepa,
)
end
function SCIPsepaGetNDomredsFound(sepa)
ccall(
(:SCIPsepaGetNDomredsFound, libscip),
Clonglong,
(Ptr{SCIP_SEPA},),
sepa,
)
end
function SCIPsepaIsDelayed(sepa)
ccall((:SCIPsepaIsDelayed, libscip), Cuint, (Ptr{SCIP_SEPA},), sepa)
end
function SCIPsepaWasLPDelayed(sepa)
ccall((:SCIPsepaWasLPDelayed, libscip), Cuint, (Ptr{SCIP_SEPA},), sepa)
end
function SCIPsepaWasSolDelayed(sepa)
ccall((:SCIPsepaWasSolDelayed, libscip), Cuint, (Ptr{SCIP_SEPA},), sepa)
end
function SCIPsepaIsInitialized(sepa)
ccall((:SCIPsepaIsInitialized, libscip), Cuint, (Ptr{SCIP_SEPA},), sepa)
end
function SCIPsepaIsParentsepa(sepa)
ccall((:SCIPsepaIsParentsepa, libscip), Cuint, (Ptr{SCIP_SEPA},), sepa)
end
function SCIPsepaGetParentsepa(sepa)
ccall(
(:SCIPsepaGetParentsepa, libscip),
Ptr{SCIP_SEPA},
(Ptr{SCIP_SEPA},),
sepa,
)
end
function SCIPsolGetOrigin(sol)
ccall((:SCIPsolGetOrigin, libscip), SCIP_SOLORIGIN, (Ptr{SCIP_SOL},), sol)
end
function SCIPsolIsOriginal(sol)
ccall((:SCIPsolIsOriginal, libscip), Cuint, (Ptr{SCIP_SOL},), sol)
end
function SCIPsolIsPartial(sol)
ccall((:SCIPsolIsPartial, libscip), Cuint, (Ptr{SCIP_SOL},), sol)
end
function SCIPsolGetOrigObj(sol)
ccall((:SCIPsolGetOrigObj, libscip), Cdouble, (Ptr{SCIP_SOL},), sol)
end
function SCIPsolGetTime(sol)
ccall((:SCIPsolGetTime, libscip), Cdouble, (Ptr{SCIP_SOL},), sol)
end
function SCIPsolGetRunnum(sol)
ccall((:SCIPsolGetRunnum, libscip), Cint, (Ptr{SCIP_SOL},), sol)
end
function SCIPsolGetNodenum(sol)
ccall((:SCIPsolGetNodenum, libscip), Clonglong, (Ptr{SCIP_SOL},), sol)
end
function SCIPsolGetDepth(sol)
ccall((:SCIPsolGetDepth, libscip), Cint, (Ptr{SCIP_SOL},), sol)
end
function SCIPsolGetType(sol)
ccall((:SCIPsolGetType, libscip), SCIP_SOLTYPE, (Ptr{SCIP_SOL},), sol)
end
function SCIPsolGetHeur(sol)
ccall((:SCIPsolGetHeur, libscip), Ptr{SCIP_HEUR}, (Ptr{SCIP_SOL},), sol)
end
function SCIPsolGetRelax(sol)
ccall((:SCIPsolGetRelax, libscip), Ptr{SCIP_RELAX}, (Ptr{SCIP_SOL},), sol)
end
function SCIPsolSetHeur(sol, heur)
ccall(
(:SCIPsolSetHeur, libscip),
Cvoid,
(Ptr{SCIP_SOL}, Ptr{SCIP_HEUR}),
sol,
heur,
)
end
function SCIPsolSetRelax(sol, relax)
ccall(
(:SCIPsolSetRelax, libscip),
Cvoid,
(Ptr{SCIP_SOL}, Ptr{SCIP_RELAX}),
sol,
relax,
)
end
function SCIPsolSetLPRelaxation(sol)
ccall((:SCIPsolSetLPRelaxation, libscip), Cvoid, (Ptr{SCIP_SOL},), sol)
end
function SCIPsolSetStrongbranching(sol)
ccall((:SCIPsolSetStrongbranching, libscip), Cvoid, (Ptr{SCIP_SOL},), sol)
end
function SCIPsolSetPseudo(sol)
ccall((:SCIPsolSetPseudo, libscip), Cvoid, (Ptr{SCIP_SOL},), sol)
end
function SCIPsolGetIndex(sol)
ccall((:SCIPsolGetIndex, libscip), Cint, (Ptr{SCIP_SOL},), sol)
end
function SCIPsolGetAbsBoundViolation(sol)
ccall(
(:SCIPsolGetAbsBoundViolation, libscip),
Cdouble,
(Ptr{SCIP_SOL},),
sol,
)
end
function SCIPsolGetRelBoundViolation(sol)
ccall(
(:SCIPsolGetRelBoundViolation, libscip),
Cdouble,
(Ptr{SCIP_SOL},),
sol,
)
end
function SCIPsolGetAbsIntegralityViolation(sol)
ccall(
(:SCIPsolGetAbsIntegralityViolation, libscip),
Cdouble,
(Ptr{SCIP_SOL},),
sol,
)
end
function SCIPsolGetAbsLPRowViolation(sol)
ccall(
(:SCIPsolGetAbsLPRowViolation, libscip),
Cdouble,
(Ptr{SCIP_SOL},),
sol,
)
end
function SCIPsolGetRelLPRowViolation(sol)
ccall(
(:SCIPsolGetRelLPRowViolation, libscip),
Cdouble,
(Ptr{SCIP_SOL},),
sol,
)
end
function SCIPsolGetAbsConsViolation(sol)
ccall(
(:SCIPsolGetAbsConsViolation, libscip),
Cdouble,
(Ptr{SCIP_SOL},),
sol,
)
end
function SCIPsolGetRelConsViolation(sol)
ccall(
(:SCIPsolGetRelConsViolation, libscip),
Cdouble,
(Ptr{SCIP_SOL},),
sol,
)
end
function SCIPtableGetData(table)
ccall(
(:SCIPtableGetData, libscip),
Ptr{SCIP_TABLEDATA},
(Ptr{SCIP_TABLE},),
table,
)
end
function SCIPtableSetData(table, tabledata)
ccall(
(:SCIPtableSetData, libscip),
Cvoid,
(Ptr{SCIP_TABLE}, Ptr{SCIP_TABLEDATA}),
table,
tabledata,
)
end
function SCIPtableGetName(table)
ccall((:SCIPtableGetName, libscip), Ptr{Cchar}, (Ptr{SCIP_TABLE},), table)
end
function SCIPtableGetDesc(table)
ccall((:SCIPtableGetDesc, libscip), Ptr{Cchar}, (Ptr{SCIP_TABLE},), table)
end
function SCIPtableGetPosition(table)
ccall((:SCIPtableGetPosition, libscip), Cint, (Ptr{SCIP_TABLE},), table)
end
function SCIPtableGetEarliestStage(table)
ccall(
(:SCIPtableGetEarliestStage, libscip),
SCIP_STAGE,
(Ptr{SCIP_TABLE},),
table,
)
end
function SCIPtableIsActive(table)
ccall((:SCIPtableIsActive, libscip), Cuint, (Ptr{SCIP_TABLE},), table)
end
function SCIPtableIsInitialized(table)
ccall((:SCIPtableIsInitialized, libscip), Cuint, (Ptr{SCIP_TABLE},), table)
end
function SCIPnodeCompLowerbound(elem1, elem2)
ccall(
(:SCIPnodeCompLowerbound, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPnodeGetParentBranchings(
node,
branchvars,
branchbounds,
boundtypes,
nbranchvars,
branchvarssize,
)
ccall(
(:SCIPnodeGetParentBranchings, libscip),
Cvoid,
(
Ptr{SCIP_NODE},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Ptr{SCIP_BOUNDTYPE},
Ptr{Cint},
Cint,
),
node,
branchvars,
branchbounds,
boundtypes,
nbranchvars,
branchvarssize,
)
end
function SCIPnodeGetAncestorBranchings(
node,
branchvars,
branchbounds,
boundtypes,
nbranchvars,
branchvarssize,
)
ccall(
(:SCIPnodeGetAncestorBranchings, libscip),
Cvoid,
(
Ptr{SCIP_NODE},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Ptr{SCIP_BOUNDTYPE},
Ptr{Cint},
Cint,
),
node,
branchvars,
branchbounds,
boundtypes,
nbranchvars,
branchvarssize,
)
end
function SCIPnodeGetAncestorBranchingsPart(
node,
parent,
branchvars,
branchbounds,
boundtypes,
nbranchvars,
branchvarssize,
)
ccall(
(:SCIPnodeGetAncestorBranchingsPart, libscip),
Cvoid,
(
Ptr{SCIP_NODE},
Ptr{SCIP_NODE},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Ptr{SCIP_BOUNDTYPE},
Ptr{Cint},
Cint,
),
node,
parent,
branchvars,
branchbounds,
boundtypes,
nbranchvars,
branchvarssize,
)
end
function SCIPnodePrintAncestorBranchings(node, file)
ccall(
(:SCIPnodePrintAncestorBranchings, libscip),
SCIP_RETCODE,
(Ptr{SCIP_NODE}, Ptr{Libc.FILE}),
node,
file,
)
end
function SCIPnodeGetAncestorBranchingPath(
node,
branchvars,
branchbounds,
boundtypes,
nbranchvars,
branchvarssize,
nodeswitches,
nnodes,
nodeswitchsize,
)
ccall(
(:SCIPnodeGetAncestorBranchingPath, libscip),
Cvoid,
(
Ptr{SCIP_NODE},
Ptr{Ptr{SCIP_VAR}},
Ptr{Cdouble},
Ptr{SCIP_BOUNDTYPE},
Ptr{Cint},
Cint,
Ptr{Cint},
Ptr{Cint},
Cint,
),
node,
branchvars,
branchbounds,
boundtypes,
nbranchvars,
branchvarssize,
nodeswitches,
nnodes,
nodeswitchsize,
)
end
function SCIPnodesSharePath(node1, node2)
ccall(
(:SCIPnodesSharePath, libscip),
Cuint,
(Ptr{SCIP_NODE}, Ptr{SCIP_NODE}),
node1,
node2,
)
end
function SCIPnodesGetCommonAncestor(node1, node2)
ccall(
(:SCIPnodesGetCommonAncestor, libscip),
Ptr{SCIP_NODE},
(Ptr{SCIP_NODE}, Ptr{SCIP_NODE}),
node1,
node2,
)
end
function SCIPnodeGetType(node)
ccall((:SCIPnodeGetType, libscip), SCIP_NODETYPE, (Ptr{SCIP_NODE},), node)
end
function SCIPnodeGetNumber(node)
ccall((:SCIPnodeGetNumber, libscip), Clonglong, (Ptr{SCIP_NODE},), node)
end
function SCIPnodeGetDepth(node)
ccall((:SCIPnodeGetDepth, libscip), Cint, (Ptr{SCIP_NODE},), node)
end
function SCIPnodeGetLowerbound(node)
ccall((:SCIPnodeGetLowerbound, libscip), Cdouble, (Ptr{SCIP_NODE},), node)
end
function SCIPnodeGetEstimate(node)
ccall((:SCIPnodeGetEstimate, libscip), Cdouble, (Ptr{SCIP_NODE},), node)
end
function SCIPnodeGetReopttype(node)
ccall(
(:SCIPnodeGetReopttype, libscip),
SCIP_REOPTTYPE,
(Ptr{SCIP_NODE},),
node,
)
end
function SCIPnodeGetReoptID(node)
ccall((:SCIPnodeGetReoptID, libscip), Cuint, (Ptr{SCIP_NODE},), node)
end
function SCIPnodeSetReopttype(node, reopttype)
ccall(
(:SCIPnodeSetReopttype, libscip),
Cvoid,
(Ptr{SCIP_NODE}, SCIP_REOPTTYPE),
node,
reopttype,
)
end
function SCIPnodeSetReoptID(node, id)
ccall(
(:SCIPnodeSetReoptID, libscip),
Cvoid,
(Ptr{SCIP_NODE}, Cuint),
node,
id,
)
end
function SCIPnodeGetNDomchg(node, nbranchings, nconsprop, nprop)
ccall(
(:SCIPnodeGetNDomchg, libscip),
Cvoid,
(Ptr{SCIP_NODE}, Ptr{Cint}, Ptr{Cint}, Ptr{Cint}),
node,
nbranchings,
nconsprop,
nprop,
)
end
function SCIPnodeGetDomchg(node)
ccall(
(:SCIPnodeGetDomchg, libscip),
Ptr{SCIP_DOMCHG},
(Ptr{SCIP_NODE},),
node,
)
end
function SCIPnodeGetParent(node)
ccall(
(:SCIPnodeGetParent, libscip),
Ptr{SCIP_NODE},
(Ptr{SCIP_NODE},),
node,
)
end
function SCIPnodeGetAddedConss(node, addedconss, naddedconss, addedconsssize)
ccall(
(:SCIPnodeGetAddedConss, libscip),
Cvoid,
(Ptr{SCIP_NODE}, Ptr{Ptr{SCIP_CONS}}, Ptr{Cint}, Cint),
node,
addedconss,
naddedconss,
addedconsssize,
)
end
function SCIPnodeGetNAddedConss(node)
ccall((:SCIPnodeGetNAddedConss, libscip), Cint, (Ptr{SCIP_NODE},), node)
end
function SCIPnodeIsActive(node)
ccall((:SCIPnodeIsActive, libscip), Cuint, (Ptr{SCIP_NODE},), node)
end
function SCIPnodeIsPropagatedAgain(node)
ccall((:SCIPnodeIsPropagatedAgain, libscip), Cuint, (Ptr{SCIP_NODE},), node)
end
function SCIPnodeGetConssetchg(node)
ccall(
(:SCIPnodeGetConssetchg, libscip),
Ptr{SCIP_CONSSETCHG},
(Ptr{SCIP_NODE},),
node,
)
end
function SCIPvarGetNLocksDown(var)
ccall((:SCIPvarGetNLocksDown, libscip), Cint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetNLocksUp(var)
ccall((:SCIPvarGetNLocksUp, libscip), Cint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetNLocksUpType(var, locktype)
ccall(
(:SCIPvarGetNLocksUpType, libscip),
Cint,
(Ptr{SCIP_VAR}, SCIP_LOCKTYPE),
var,
locktype,
)
end
function SCIPvarGetNLocksDownType(var, locktype)
ccall(
(:SCIPvarGetNLocksDownType, libscip),
Cint,
(Ptr{SCIP_VAR}, SCIP_LOCKTYPE),
var,
locktype,
)
end
function SCIPvarMayRoundDown(var)
ccall((:SCIPvarMayRoundDown, libscip), Cuint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarMayRoundUp(var)
ccall((:SCIPvarMayRoundUp, libscip), Cuint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarCompareActiveAndNegated(var1, var2)
ccall(
(:SCIPvarCompareActiveAndNegated, libscip),
Cint,
(Ptr{SCIP_VAR}, Ptr{SCIP_VAR}),
var1,
var2,
)
end
function SCIPvarCompActiveAndNegated(elem1, elem2)
ccall(
(:SCIPvarCompActiveAndNegated, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPvarCompare(var1, var2)
ccall(
(:SCIPvarCompare, libscip),
Cint,
(Ptr{SCIP_VAR}, Ptr{SCIP_VAR}),
var1,
var2,
)
end
function SCIPvarComp(elem1, elem2)
ccall((:SCIPvarComp, libscip), Cint, (Ptr{Cvoid}, Ptr{Cvoid}), elem1, elem2)
end
function SCIPvarCompObj(elem1, elem2)
ccall(
(:SCIPvarCompObj, libscip),
Cint,
(Ptr{Cvoid}, Ptr{Cvoid}),
elem1,
elem2,
)
end
function SCIPvarGetHashkey(userptr, elem)
ccall(
(:SCIPvarGetHashkey, libscip),
Ptr{Cvoid},
(Ptr{Cvoid}, Ptr{Cvoid}),
userptr,
elem,
)
end
function SCIPvarIsHashkeyEq(userptr, key1, key2)
ccall(
(:SCIPvarIsHashkeyEq, libscip),
Cuint,
(Ptr{Cvoid}, Ptr{Cvoid}, Ptr{Cvoid}),
userptr,
key1,
key2,
)
end
function SCIPvarGetHashkeyVal(userptr, key)
ccall(
(:SCIPvarGetHashkeyVal, libscip),
UInt64,
(Ptr{Cvoid}, Ptr{Cvoid}),
userptr,
key,
)
end
function SCIPvarsGetProbvar(vars, nvars)
ccall(
(:SCIPvarsGetProbvar, libscip),
Cvoid,
(Ptr{Ptr{SCIP_VAR}}, Cint),
vars,
nvars,
)
end
function SCIPvarGetProbvar(var)
ccall((:SCIPvarGetProbvar, libscip), Ptr{SCIP_VAR}, (Ptr{SCIP_VAR},), var)
end
function SCIPvarsGetProbvarBinary(vars, negatedarr, nvars)
ccall(
(:SCIPvarsGetProbvarBinary, libscip),
SCIP_RETCODE,
(Ptr{Ptr{Ptr{SCIP_VAR}}}, Ptr{Ptr{Cuint}}, Cint),
vars,
negatedarr,
nvars,
)
end
function SCIPvarGetProbvarBinary(var, negated)
ccall(
(:SCIPvarGetProbvarBinary, libscip),
SCIP_RETCODE,
(Ptr{Ptr{SCIP_VAR}}, Ptr{Cuint}),
var,
negated,
)
end
function SCIPvarGetProbvarBound(var, bound, boundtype)
ccall(
(:SCIPvarGetProbvarBound, libscip),
SCIP_RETCODE,
(Ptr{Ptr{SCIP_VAR}}, Ptr{Cdouble}, Ptr{SCIP_BOUNDTYPE}),
var,
bound,
boundtype,
)
end
function SCIPvarGetProbvarHole(var, left, right)
ccall(
(:SCIPvarGetProbvarHole, libscip),
SCIP_RETCODE,
(Ptr{Ptr{SCIP_VAR}}, Ptr{Cdouble}, Ptr{Cdouble}),
var,
left,
right,
)
end
function SCIPvarGetOrigvarSum(var, scalar, constant)
ccall(
(:SCIPvarGetOrigvarSum, libscip),
SCIP_RETCODE,
(Ptr{Ptr{SCIP_VAR}}, Ptr{Cdouble}, Ptr{Cdouble}),
var,
scalar,
constant,
)
end
function SCIPvarIsTransformedOrigvar(var)
ccall((:SCIPvarIsTransformedOrigvar, libscip), Cuint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetNBranchings(var, dir)
ccall(
(:SCIPvarGetNBranchings, libscip),
Clonglong,
(Ptr{SCIP_VAR}, SCIP_BRANCHDIR),
var,
dir,
)
end
function SCIPvarGetNBranchingsCurrentRun(var, dir)
ccall(
(:SCIPvarGetNBranchingsCurrentRun, libscip),
Clonglong,
(Ptr{SCIP_VAR}, SCIP_BRANCHDIR),
var,
dir,
)
end
function SCIPvarGetInferenceSum(var, dir)
ccall(
(:SCIPvarGetInferenceSum, libscip),
Cdouble,
(Ptr{SCIP_VAR}, SCIP_BRANCHDIR),
var,
dir,
)
end
function SCIPvarGetInferenceSumCurrentRun(var, dir)
ccall(
(:SCIPvarGetInferenceSumCurrentRun, libscip),
Cdouble,
(Ptr{SCIP_VAR}, SCIP_BRANCHDIR),
var,
dir,
)
end
function SCIPvarGetCutoffSum(var, dir)
ccall(
(:SCIPvarGetCutoffSum, libscip),
Cdouble,
(Ptr{SCIP_VAR}, SCIP_BRANCHDIR),
var,
dir,
)
end
function SCIPvarGetCutoffSumCurrentRun(var, dir)
ccall(
(:SCIPvarGetCutoffSumCurrentRun, libscip),
Cdouble,
(Ptr{SCIP_VAR}, SCIP_BRANCHDIR),
var,
dir,
)
end
function SCIPvarGetAvgBranchdepth(var, dir)
ccall(
(:SCIPvarGetAvgBranchdepth, libscip),
Cdouble,
(Ptr{SCIP_VAR}, SCIP_BRANCHDIR),
var,
dir,
)
end
function SCIPvarGetAvgBranchdepthCurrentRun(var, dir)
ccall(
(:SCIPvarGetAvgBranchdepthCurrentRun, libscip),
Cdouble,
(Ptr{SCIP_VAR}, SCIP_BRANCHDIR),
var,
dir,
)
end
function SCIPvarHasImplic(var, varfixing, implvar, impltype)
ccall(
(:SCIPvarHasImplic, libscip),
Cuint,
(Ptr{SCIP_VAR}, Cuint, Ptr{SCIP_VAR}, SCIP_BOUNDTYPE),
var,
varfixing,
implvar,
impltype,
)
end
function SCIPvarHasBinaryImplic(var, varfixing, implvar, implvarfixing)
ccall(
(:SCIPvarHasBinaryImplic, libscip),
Cuint,
(Ptr{SCIP_VAR}, Cuint, Ptr{SCIP_VAR}, Cuint),
var,
varfixing,
implvar,
implvarfixing,
)
end
function SCIPvarGetImplicVarBounds(var, varfixing, implvar, lb, ub)
ccall(
(:SCIPvarGetImplicVarBounds, libscip),
Cvoid,
(Ptr{SCIP_VAR}, Cuint, Ptr{SCIP_VAR}, Ptr{Cdouble}, Ptr{Cdouble}),
var,
varfixing,
implvar,
lb,
ub,
)
end
function SCIPvarsHaveCommonClique(var1, value1, var2, value2, regardimplics)
ccall(
(:SCIPvarsHaveCommonClique, libscip),
Cuint,
(Ptr{SCIP_VAR}, Cuint, Ptr{SCIP_VAR}, Cuint, Cuint),
var1,
value1,
var2,
value2,
regardimplics,
)
end
function SCIPvarGetAggregatedObj(var, aggrobj)
ccall(
(:SCIPvarGetAggregatedObj, libscip),
SCIP_RETCODE,
(Ptr{SCIP_VAR}, Ptr{Cdouble}),
var,
aggrobj,
)
end
function SCIPvarSetInitial(var, initial)
ccall(
(:SCIPvarSetInitial, libscip),
SCIP_RETCODE,
(Ptr{SCIP_VAR}, Cuint),
var,
initial,
)
end
function SCIPvarSetRemovable(var, removable)
ccall(
(:SCIPvarSetRemovable, libscip),
SCIP_RETCODE,
(Ptr{SCIP_VAR}, Cuint),
var,
removable,
)
end
function SCIPvarGetName(var)
ccall((:SCIPvarGetName, libscip), Ptr{Cchar}, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetNUses(var)
ccall((:SCIPvarGetNUses, libscip), Cint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetData(var)
ccall((:SCIPvarGetData, libscip), Ptr{SCIP_VARDATA}, (Ptr{SCIP_VAR},), var)
end
function SCIPvarSetData(var, vardata)
ccall(
(:SCIPvarSetData, libscip),
Cvoid,
(Ptr{SCIP_VAR}, Ptr{SCIP_VARDATA}),
var,
vardata,
)
end
function SCIPvarSetDelorigData(var, vardelorig)
ccall(
(:SCIPvarSetDelorigData, libscip),
Cvoid,
(Ptr{SCIP_VAR}, Ptr{Cvoid}),
var,
vardelorig,
)
end
function SCIPvarSetTransData(var, vartrans)
ccall(
(:SCIPvarSetTransData, libscip),
Cvoid,
(Ptr{SCIP_VAR}, Ptr{Cvoid}),
var,
vartrans,
)
end
function SCIPvarSetDeltransData(var, vardeltrans)
ccall(
(:SCIPvarSetDeltransData, libscip),
Cvoid,
(Ptr{SCIP_VAR}, Ptr{Cvoid}),
var,
vardeltrans,
)
end
function SCIPvarSetCopyData(var, varcopy)
ccall(
(:SCIPvarSetCopyData, libscip),
Cvoid,
(Ptr{SCIP_VAR}, Ptr{Cvoid}),
var,
varcopy,
)
end
function SCIPvarGetStatus(var)
ccall((:SCIPvarGetStatus, libscip), SCIP_VARSTATUS, (Ptr{SCIP_VAR},), var)
end
function SCIPvarIsOriginal(var)
ccall((:SCIPvarIsOriginal, libscip), Cuint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarIsTransformed(var)
ccall((:SCIPvarIsTransformed, libscip), Cuint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarIsNegated(var)
ccall((:SCIPvarIsNegated, libscip), Cuint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetType(var)
ccall((:SCIPvarGetType, libscip), SCIP_VARTYPE, (Ptr{SCIP_VAR},), var)
end
function SCIPvarIsBinary(var)
ccall((:SCIPvarIsBinary, libscip), Cuint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarIsIntegral(var)
ccall((:SCIPvarIsIntegral, libscip), Cuint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarIsInitial(var)
ccall((:SCIPvarIsInitial, libscip), Cuint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarIsRemovable(var)
ccall((:SCIPvarIsRemovable, libscip), Cuint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarIsDeleted(var)
ccall((:SCIPvarIsDeleted, libscip), Cuint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarMarkDeletable(var)
ccall((:SCIPvarMarkDeletable, libscip), Cvoid, (Ptr{SCIP_VAR},), var)
end
function SCIPvarMarkNotDeletable(var)
ccall((:SCIPvarMarkNotDeletable, libscip), Cvoid, (Ptr{SCIP_VAR},), var)
end
function SCIPvarIsDeletable(var)
ccall((:SCIPvarIsDeletable, libscip), Cuint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarMarkDeleteGlobalStructures(var)
ccall(
(:SCIPvarMarkDeleteGlobalStructures, libscip),
Cvoid,
(Ptr{SCIP_VAR},),
var,
)
end
function SCIPvarIsActive(var)
ccall((:SCIPvarIsActive, libscip), Cuint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetIndex(var)
ccall((:SCIPvarGetIndex, libscip), Cint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetProbindex(var)
ccall((:SCIPvarGetProbindex, libscip), Cint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetTransVar(var)
ccall((:SCIPvarGetTransVar, libscip), Ptr{SCIP_VAR}, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetCol(var)
ccall((:SCIPvarGetCol, libscip), Ptr{SCIP_COL}, (Ptr{SCIP_VAR},), var)
end
function SCIPvarIsInLP(var)
ccall((:SCIPvarIsInLP, libscip), Cuint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetAggrVar(var)
ccall((:SCIPvarGetAggrVar, libscip), Ptr{SCIP_VAR}, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetAggrScalar(var)
ccall((:SCIPvarGetAggrScalar, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetAggrConstant(var)
ccall((:SCIPvarGetAggrConstant, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetMultaggrNVars(var)
ccall((:SCIPvarGetMultaggrNVars, libscip), Cint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetMultaggrVars(var)
ccall(
(:SCIPvarGetMultaggrVars, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP_VAR},),
var,
)
end
function SCIPvarGetMultaggrScalars(var)
ccall(
(:SCIPvarGetMultaggrScalars, libscip),
Ptr{Cdouble},
(Ptr{SCIP_VAR},),
var,
)
end
function SCIPvarGetMultaggrConstant(var)
ccall(
(:SCIPvarGetMultaggrConstant, libscip),
Cdouble,
(Ptr{SCIP_VAR},),
var,
)
end
function SCIPvarGetNegatedVar(var)
ccall(
(:SCIPvarGetNegatedVar, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP_VAR},),
var,
)
end
function SCIPvarGetNegationVar(var)
ccall(
(:SCIPvarGetNegationVar, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP_VAR},),
var,
)
end
function SCIPvarGetNegationConstant(var)
ccall(
(:SCIPvarGetNegationConstant, libscip),
Cdouble,
(Ptr{SCIP_VAR},),
var,
)
end
function SCIPvarGetObj(var)
ccall((:SCIPvarGetObj, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetUnchangedObj(var)
ccall((:SCIPvarGetUnchangedObj, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetLbOriginal(var)
ccall((:SCIPvarGetLbOriginal, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetUbOriginal(var)
ccall((:SCIPvarGetUbOriginal, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetHolelistOriginal(var)
ccall(
(:SCIPvarGetHolelistOriginal, libscip),
Ptr{SCIP_HOLELIST},
(Ptr{SCIP_VAR},),
var,
)
end
function SCIPvarGetLbGlobal(var)
ccall((:SCIPvarGetLbGlobal, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetUbGlobal(var)
ccall((:SCIPvarGetUbGlobal, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetHolelistGlobal(var)
ccall(
(:SCIPvarGetHolelistGlobal, libscip),
Ptr{SCIP_HOLELIST},
(Ptr{SCIP_VAR},),
var,
)
end
function SCIPvarGetBestBoundGlobal(var)
ccall((:SCIPvarGetBestBoundGlobal, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetWorstBoundGlobal(var)
ccall(
(:SCIPvarGetWorstBoundGlobal, libscip),
Cdouble,
(Ptr{SCIP_VAR},),
var,
)
end
function SCIPvarGetLbLocal(var)
ccall((:SCIPvarGetLbLocal, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetUbLocal(var)
ccall((:SCIPvarGetUbLocal, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetHolelistLocal(var)
ccall(
(:SCIPvarGetHolelistLocal, libscip),
Ptr{SCIP_HOLELIST},
(Ptr{SCIP_VAR},),
var,
)
end
function SCIPvarGetBestBoundLocal(var)
ccall((:SCIPvarGetBestBoundLocal, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetWorstBoundLocal(var)
ccall((:SCIPvarGetWorstBoundLocal, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetBestBoundType(var)
ccall(
(:SCIPvarGetBestBoundType, libscip),
SCIP_BOUNDTYPE,
(Ptr{SCIP_VAR},),
var,
)
end
function SCIPvarGetWorstBoundType(var)
ccall(
(:SCIPvarGetWorstBoundType, libscip),
SCIP_BOUNDTYPE,
(Ptr{SCIP_VAR},),
var,
)
end
function SCIPvarGetLbLazy(var)
ccall((:SCIPvarGetLbLazy, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetUbLazy(var)
ccall((:SCIPvarGetUbLazy, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetBranchFactor(var)
ccall((:SCIPvarGetBranchFactor, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetBranchPriority(var)
ccall((:SCIPvarGetBranchPriority, libscip), Cint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetBranchDirection(var)
ccall(
(:SCIPvarGetBranchDirection, libscip),
SCIP_BRANCHDIR,
(Ptr{SCIP_VAR},),
var,
)
end
function SCIPvarGetNVlbs(var)
ccall((:SCIPvarGetNVlbs, libscip), Cint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetVlbVars(var)
ccall(
(:SCIPvarGetVlbVars, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP_VAR},),
var,
)
end
function SCIPvarGetVlbCoefs(var)
ccall((:SCIPvarGetVlbCoefs, libscip), Ptr{Cdouble}, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetVlbConstants(var)
ccall(
(:SCIPvarGetVlbConstants, libscip),
Ptr{Cdouble},
(Ptr{SCIP_VAR},),
var,
)
end
function SCIPvarGetNVubs(var)
ccall((:SCIPvarGetNVubs, libscip), Cint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetVubVars(var)
ccall(
(:SCIPvarGetVubVars, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP_VAR},),
var,
)
end
function SCIPvarGetVubCoefs(var)
ccall((:SCIPvarGetVubCoefs, libscip), Ptr{Cdouble}, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetVubConstants(var)
ccall(
(:SCIPvarGetVubConstants, libscip),
Ptr{Cdouble},
(Ptr{SCIP_VAR},),
var,
)
end
function SCIPvarGetNImpls(var, varfixing)
ccall(
(:SCIPvarGetNImpls, libscip),
Cint,
(Ptr{SCIP_VAR}, Cuint),
var,
varfixing,
)
end
function SCIPvarGetImplVars(var, varfixing)
ccall(
(:SCIPvarGetImplVars, libscip),
Ptr{Ptr{SCIP_VAR}},
(Ptr{SCIP_VAR}, Cuint),
var,
varfixing,
)
end
function SCIPvarGetImplTypes(var, varfixing)
ccall(
(:SCIPvarGetImplTypes, libscip),
Ptr{SCIP_BOUNDTYPE},
(Ptr{SCIP_VAR}, Cuint),
var,
varfixing,
)
end
function SCIPvarGetImplBounds(var, varfixing)
ccall(
(:SCIPvarGetImplBounds, libscip),
Ptr{Cdouble},
(Ptr{SCIP_VAR}, Cuint),
var,
varfixing,
)
end
function SCIPvarGetImplIds(var, varfixing)
ccall(
(:SCIPvarGetImplIds, libscip),
Ptr{Cint},
(Ptr{SCIP_VAR}, Cuint),
var,
varfixing,
)
end
function SCIPvarGetNCliques(var, varfixing)
ccall(
(:SCIPvarGetNCliques, libscip),
Cint,
(Ptr{SCIP_VAR}, Cuint),
var,
varfixing,
)
end
function SCIPvarGetCliques(var, varfixing)
ccall(
(:SCIPvarGetCliques, libscip),
Ptr{Ptr{SCIP_CLIQUE}},
(Ptr{SCIP_VAR}, Cuint),
var,
varfixing,
)
end
function SCIPvarGetLPSol(var)
ccall((:SCIPvarGetLPSol, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetNLPSol(var)
ccall((:SCIPvarGetNLPSol, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetBdchgInfoLb(var, pos)
ccall(
(:SCIPvarGetBdchgInfoLb, libscip),
Ptr{SCIP_BDCHGINFO},
(Ptr{SCIP_VAR}, Cint),
var,
pos,
)
end
function SCIPvarGetNBdchgInfosLb(var)
ccall((:SCIPvarGetNBdchgInfosLb, libscip), Cint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetBdchgInfoUb(var, pos)
ccall(
(:SCIPvarGetBdchgInfoUb, libscip),
Ptr{SCIP_BDCHGINFO},
(Ptr{SCIP_VAR}, Cint),
var,
pos,
)
end
function SCIPvarGetNBdchgInfosUb(var)
ccall((:SCIPvarGetNBdchgInfosUb, libscip), Cint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetValuehistory(var)
ccall(
(:SCIPvarGetValuehistory, libscip),
Ptr{SCIP_VALUEHISTORY},
(Ptr{SCIP_VAR},),
var,
)
end
function SCIPvarIsRelaxationOnly(var)
ccall((:SCIPvarIsRelaxationOnly, libscip), Cuint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarMarkRelaxationOnly(var)
ccall((:SCIPvarMarkRelaxationOnly, libscip), Cvoid, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetLPSol_rec(var)
ccall((:SCIPvarGetLPSol_rec, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetNLPSol_rec(var)
ccall((:SCIPvarGetNLPSol_rec, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetPseudoSol(var)
ccall((:SCIPvarGetPseudoSol, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetSol(var, getlpval)
ccall(
(:SCIPvarGetSol, libscip),
Cdouble,
(Ptr{SCIP_VAR}, Cuint),
var,
getlpval,
)
end
function SCIPvarGetRootSol(var)
ccall((:SCIPvarGetRootSol, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetBestRootSol(var)
ccall((:SCIPvarGetBestRootSol, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetBestRootRedcost(var)
ccall((:SCIPvarGetBestRootRedcost, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetBestRootLPObjval(var)
ccall(
(:SCIPvarGetBestRootLPObjval, libscip),
Cdouble,
(Ptr{SCIP_VAR},),
var,
)
end
function SCIPvarSetBestRootSol(var, rootsol, rootredcost, rootlpobjval)
ccall(
(:SCIPvarSetBestRootSol, libscip),
Cvoid,
(Ptr{SCIP_VAR}, Cdouble, Cdouble, Cdouble),
var,
rootsol,
rootredcost,
rootlpobjval,
)
end
function SCIPvarGetAvgSol(var)
ccall((:SCIPvarGetAvgSol, libscip), Cdouble, (Ptr{SCIP_VAR},), var)
end
function SCIPvarGetLbchgInfo(var, bdchgidx, after)
ccall(
(:SCIPvarGetLbchgInfo, libscip),
Ptr{SCIP_BDCHGINFO},
(Ptr{SCIP_VAR}, Ptr{SCIP_BDCHGIDX}, Cuint),
var,
bdchgidx,
after,
)
end
function SCIPvarGetUbchgInfo(var, bdchgidx, after)
ccall(
(:SCIPvarGetUbchgInfo, libscip),
Ptr{SCIP_BDCHGINFO},
(Ptr{SCIP_VAR}, Ptr{SCIP_BDCHGIDX}, Cuint),
var,
bdchgidx,
after,
)
end
function SCIPvarGetBdchgInfo(var, boundtype, bdchgidx, after)
ccall(
(:SCIPvarGetBdchgInfo, libscip),
Ptr{SCIP_BDCHGINFO},
(Ptr{SCIP_VAR}, SCIP_BOUNDTYPE, Ptr{SCIP_BDCHGIDX}, Cuint),
var,
boundtype,
bdchgidx,
after,
)
end
function SCIPvarGetLbAtIndex(var, bdchgidx, after)
ccall(
(:SCIPvarGetLbAtIndex, libscip),
Cdouble,
(Ptr{SCIP_VAR}, Ptr{SCIP_BDCHGIDX}, Cuint),
var,
bdchgidx,
after,
)
end
function SCIPvarGetUbAtIndex(var, bdchgidx, after)
ccall(
(:SCIPvarGetUbAtIndex, libscip),
Cdouble,
(Ptr{SCIP_VAR}, Ptr{SCIP_BDCHGIDX}, Cuint),
var,
bdchgidx,
after,
)
end
function SCIPvarGetBdAtIndex(var, boundtype, bdchgidx, after)
ccall(
(:SCIPvarGetBdAtIndex, libscip),
Cdouble,
(Ptr{SCIP_VAR}, SCIP_BOUNDTYPE, Ptr{SCIP_BDCHGIDX}, Cuint),
var,
boundtype,
bdchgidx,
after,
)
end
function SCIPvarWasFixedAtIndex(var, bdchgidx, after)
ccall(
(:SCIPvarWasFixedAtIndex, libscip),
Cuint,
(Ptr{SCIP_VAR}, Ptr{SCIP_BDCHGIDX}, Cuint),
var,
bdchgidx,
after,
)
end
function SCIPvarGetLastBdchgIndex(var)
ccall(
(:SCIPvarGetLastBdchgIndex, libscip),
Ptr{SCIP_BDCHGIDX},
(Ptr{SCIP_VAR},),
var,
)
end
function SCIPvarGetLastBdchgDepth(var)
ccall((:SCIPvarGetLastBdchgDepth, libscip), Cint, (Ptr{SCIP_VAR},), var)
end
function SCIPvarWasFixedEarlier(var1, var2)
ccall(
(:SCIPvarWasFixedEarlier, libscip),
Cuint,
(Ptr{SCIP_VAR}, Ptr{SCIP_VAR}),
var1,
var2,
)
end
function SCIPbdchgidxIsEarlier(bdchgidx1, bdchgidx2)
ccall(
(:SCIPbdchgidxIsEarlier, libscip),
Cuint,
(Ptr{SCIP_BDCHGIDX}, Ptr{SCIP_BDCHGIDX}),
bdchgidx1,
bdchgidx2,
)
end
function SCIPbdchgidxIsEarlierNonNull(bdchgidx1, bdchgidx2)
ccall(
(:SCIPbdchgidxIsEarlierNonNull, libscip),
Cuint,
(Ptr{SCIP_BDCHGIDX}, Ptr{SCIP_BDCHGIDX}),
bdchgidx1,
bdchgidx2,
)
end
function SCIPbdchginfoGetOldbound(bdchginfo)
ccall(
(:SCIPbdchginfoGetOldbound, libscip),
Cdouble,
(Ptr{SCIP_BDCHGINFO},),
bdchginfo,
)
end
function SCIPbdchginfoGetNewbound(bdchginfo)
ccall(
(:SCIPbdchginfoGetNewbound, libscip),
Cdouble,
(Ptr{SCIP_BDCHGINFO},),
bdchginfo,
)
end
function SCIPbdchginfoGetVar(bdchginfo)
ccall(
(:SCIPbdchginfoGetVar, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP_BDCHGINFO},),
bdchginfo,
)
end
function SCIPbdchginfoGetChgtype(bdchginfo)
ccall(
(:SCIPbdchginfoGetChgtype, libscip),
SCIP_BOUNDCHGTYPE,
(Ptr{SCIP_BDCHGINFO},),
bdchginfo,
)
end
function SCIPbdchginfoGetBoundtype(bdchginfo)
ccall(
(:SCIPbdchginfoGetBoundtype, libscip),
SCIP_BOUNDTYPE,
(Ptr{SCIP_BDCHGINFO},),
bdchginfo,
)
end
function SCIPbdchginfoGetDepth(bdchginfo)
ccall(
(:SCIPbdchginfoGetDepth, libscip),
Cint,
(Ptr{SCIP_BDCHGINFO},),
bdchginfo,
)
end
function SCIPbdchginfoGetPos(bdchginfo)
ccall(
(:SCIPbdchginfoGetPos, libscip),
Cint,
(Ptr{SCIP_BDCHGINFO},),
bdchginfo,
)
end
function SCIPbdchginfoGetIdx(bdchginfo)
ccall(
(:SCIPbdchginfoGetIdx, libscip),
Ptr{SCIP_BDCHGIDX},
(Ptr{SCIP_BDCHGINFO},),
bdchginfo,
)
end
function SCIPbdchginfoGetInferVar(bdchginfo)
ccall(
(:SCIPbdchginfoGetInferVar, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP_BDCHGINFO},),
bdchginfo,
)
end
function SCIPbdchginfoGetInferCons(bdchginfo)
ccall(
(:SCIPbdchginfoGetInferCons, libscip),
Ptr{SCIP_CONS},
(Ptr{SCIP_BDCHGINFO},),
bdchginfo,
)
end
function SCIPbdchginfoGetInferProp(bdchginfo)
ccall(
(:SCIPbdchginfoGetInferProp, libscip),
Ptr{SCIP_PROP},
(Ptr{SCIP_BDCHGINFO},),
bdchginfo,
)
end
function SCIPbdchginfoGetInferInfo(bdchginfo)
ccall(
(:SCIPbdchginfoGetInferInfo, libscip),
Cint,
(Ptr{SCIP_BDCHGINFO},),
bdchginfo,
)
end
function SCIPbdchginfoGetInferBoundtype(bdchginfo)
ccall(
(:SCIPbdchginfoGetInferBoundtype, libscip),
SCIP_BOUNDTYPE,
(Ptr{SCIP_BDCHGINFO},),
bdchginfo,
)
end
function SCIPbdchginfoIsRedundant(bdchginfo)
ccall(
(:SCIPbdchginfoIsRedundant, libscip),
Cuint,
(Ptr{SCIP_BDCHGINFO},),
bdchginfo,
)
end
function SCIPbdchginfoHasInferenceReason(bdchginfo)
ccall(
(:SCIPbdchginfoHasInferenceReason, libscip),
Cuint,
(Ptr{SCIP_BDCHGINFO},),
bdchginfo,
)
end
function SCIPbdchginfoIsTighter(bdchginfo1, bdchginfo2)
ccall(
(:SCIPbdchginfoIsTighter, libscip),
Cuint,
(Ptr{SCIP_BDCHGINFO}, Ptr{SCIP_BDCHGINFO}),
bdchginfo1,
bdchginfo2,
)
end
function SCIPboundchgGetNewbound(boundchg)
ccall(
(:SCIPboundchgGetNewbound, libscip),
Cdouble,
(Ptr{SCIP_BOUNDCHG},),
boundchg,
)
end
function SCIPboundchgGetVar(boundchg)
ccall(
(:SCIPboundchgGetVar, libscip),
Ptr{SCIP_VAR},
(Ptr{SCIP_BOUNDCHG},),
boundchg,
)
end
function SCIPboundchgGetBoundchgtype(boundchg)
ccall(
(:SCIPboundchgGetBoundchgtype, libscip),
SCIP_BOUNDCHGTYPE,
(Ptr{SCIP_BOUNDCHG},),
boundchg,
)
end
function SCIPboundchgGetBoundtype(boundchg)
ccall(
(:SCIPboundchgGetBoundtype, libscip),
SCIP_BOUNDTYPE,
(Ptr{SCIP_BOUNDCHG},),
boundchg,
)
end
function SCIPboundchgIsRedundant(boundchg)
ccall(
(:SCIPboundchgIsRedundant, libscip),
Cuint,
(Ptr{SCIP_BOUNDCHG},),
boundchg,
)
end
function SCIPdomchgGetNBoundchgs(domchg)
ccall(
(:SCIPdomchgGetNBoundchgs, libscip),
Cint,
(Ptr{SCIP_DOMCHG},),
domchg,
)
end
function SCIPdomchgGetBoundchg(domchg, pos)
ccall(
(:SCIPdomchgGetBoundchg, libscip),
Ptr{SCIP_BOUNDCHG},
(Ptr{SCIP_DOMCHG}, Cint),
domchg,
pos,
)
end
function SCIPholelistGetLeft(holelist)
ccall(
(:SCIPholelistGetLeft, libscip),
Cdouble,
(Ptr{SCIP_HOLELIST},),
holelist,
)
end
function SCIPholelistGetRight(holelist)
ccall(
(:SCIPholelistGetRight, libscip),
Cdouble,
(Ptr{SCIP_HOLELIST},),
holelist,
)
end
function SCIPholelistGetNext(holelist)
ccall(
(:SCIPholelistGetNext, libscip),
Ptr{SCIP_HOLELIST},
(Ptr{SCIP_HOLELIST},),
holelist,
)
end
function BMSclearMemory_call(ptr, size)
ccall(
(:BMSclearMemory_call, libscip),
Cvoid,
(Ptr{Cvoid}, Csize_t),
ptr,
size,
)
end
function BMScopyMemory_call(ptr, source, size)
ccall(
(:BMScopyMemory_call, libscip),
Cvoid,
(Ptr{Cvoid}, Ptr{Cvoid}, Csize_t),
ptr,
source,
size,
)
end
function BMSmoveMemory_call(ptr, source, size)
ccall(
(:BMSmoveMemory_call, libscip),
Cvoid,
(Ptr{Cvoid}, Ptr{Cvoid}, Csize_t),
ptr,
source,
size,
)
end
function BMSgetPointerSize_call(ptr)
ccall((:BMSgetPointerSize_call, libscip), Csize_t, (Ptr{Cvoid},), ptr)
end
function BMSdisplayMemory_call()
ccall((:BMSdisplayMemory_call, libscip), Cvoid, ())
end
function BMScheckEmptyMemory_call()
ccall((:BMScheckEmptyMemory_call, libscip), Cvoid, ())
end
function BMSgetMemoryUsed_call()
ccall((:BMSgetMemoryUsed_call, libscip), Clonglong, ())
end
const BMS_ChkMem = Cvoid
const BMS_CHKMEM = BMS_ChkMem
function BMScreateChunkMemory_call(
size,
initchunksize,
garbagefactor,
filename,
line,
)
ccall(
(:BMScreateChunkMemory_call, libscip),
Ptr{BMS_CHKMEM},
(Csize_t, Cint, Cint, Ptr{Cchar}, Cint),
size,
initchunksize,
garbagefactor,
filename,
line,
)
end
function BMSclearChunkMemory_call(chkmem, filename, line)
ccall(
(:BMSclearChunkMemory_call, libscip),
Cvoid,
(Ptr{BMS_CHKMEM}, Ptr{Cchar}, Cint),
chkmem,
filename,
line,
)
end
function BMSdestroyChunkMemory_call(chkmem, filename, line)
ccall(
(:BMSdestroyChunkMemory_call, libscip),
Cvoid,
(Ptr{Ptr{BMS_CHKMEM}}, Ptr{Cchar}, Cint),
chkmem,
filename,
line,
)
end
function BMSallocChunkMemory_call(chkmem, size, filename, line)
ccall(
(:BMSallocChunkMemory_call, libscip),
Ptr{Cvoid},
(Ptr{BMS_CHKMEM}, Csize_t, Ptr{Cchar}, Cint),
chkmem,
size,
filename,
line,
)
end
function BMSduplicateChunkMemory_call(chkmem, source, size, filename, line)
ccall(
(:BMSduplicateChunkMemory_call, libscip),
Ptr{Cvoid},
(Ptr{BMS_CHKMEM}, Ptr{Cvoid}, Csize_t, Ptr{Cchar}, Cint),
chkmem,
source,
size,
filename,
line,
)
end
function BMSfreeChunkMemory_call(chkmem, ptr, size, filename, line)
ccall(
(:BMSfreeChunkMemory_call, libscip),
Cvoid,
(Ptr{BMS_CHKMEM}, Ptr{Ptr{Cvoid}}, Csize_t, Ptr{Cchar}, Cint),
chkmem,
ptr,
size,
filename,
line,
)
end
function BMSfreeChunkMemoryNull_call(chkmem, ptr, size, filename, line)
ccall(
(:BMSfreeChunkMemoryNull_call, libscip),
Cvoid,
(Ptr{BMS_CHKMEM}, Ptr{Ptr{Cvoid}}, Csize_t, Ptr{Cchar}, Cint),
chkmem,
ptr,
size,
filename,
line,
)
end
function BMSgarbagecollectChunkMemory_call(chkmem)
ccall(
(:BMSgarbagecollectChunkMemory_call, libscip),
Cvoid,
(Ptr{BMS_CHKMEM},),
chkmem,
)
end
function BMSgetChunkMemoryUsed_call(chkmem)
ccall(
(:BMSgetChunkMemoryUsed_call, libscip),
Clonglong,
(Ptr{BMS_CHKMEM},),
chkmem,
)
end
function BMScreateBlockMemory_call(initchunksize, garbagefactor, filename, line)
ccall(
(:BMScreateBlockMemory_call, libscip),
Ptr{BMS_BLKMEM},
(Cint, Cint, Ptr{Cchar}, Cint),
initchunksize,
garbagefactor,
filename,
line,
)
end
function BMSclearBlockMemory_call(blkmem, filename, line)
ccall(
(:BMSclearBlockMemory_call, libscip),
Cvoid,
(Ptr{BMS_BLKMEM}, Ptr{Cchar}, Cint),
blkmem,
filename,
line,
)
end
function BMSdestroyBlockMemory_call(blkmem, filename, line)
ccall(
(:BMSdestroyBlockMemory_call, libscip),
Cvoid,
(Ptr{Ptr{BMS_BLKMEM}}, Ptr{Cchar}, Cint),
blkmem,
filename,
line,
)
end
function BMSgarbagecollectBlockMemory_call(blkmem)
ccall(
(:BMSgarbagecollectBlockMemory_call, libscip),
Cvoid,
(Ptr{BMS_BLKMEM},),
blkmem,
)
end
function BMSgetBlockMemoryAllocated_call(blkmem)
ccall(
(:BMSgetBlockMemoryAllocated_call, libscip),
Clonglong,
(Ptr{BMS_BLKMEM},),
blkmem,
)
end
function BMSgetBlockMemoryUsed_call(blkmem)
ccall(
(:BMSgetBlockMemoryUsed_call, libscip),
Clonglong,
(Ptr{BMS_BLKMEM},),
blkmem,
)
end
function BMSgetBlockMemoryUnused_call(blkmem)
ccall(
(:BMSgetBlockMemoryUnused_call, libscip),
Clonglong,
(Ptr{BMS_BLKMEM},),
blkmem,
)
end
function BMSgetBlockMemoryUsedMax_call(blkmem)
ccall(
(:BMSgetBlockMemoryUsedMax_call, libscip),
Clonglong,
(Ptr{BMS_BLKMEM},),
blkmem,
)
end
function BMSgetBlockMemoryUnusedMax_call(blkmem)
ccall(
(:BMSgetBlockMemoryUnusedMax_call, libscip),
Clonglong,
(Ptr{BMS_BLKMEM},),
blkmem,
)
end
function BMSgetBlockMemoryAllocatedMax_call(blkmem)
ccall(
(:BMSgetBlockMemoryAllocatedMax_call, libscip),
Clonglong,
(Ptr{BMS_BLKMEM},),
blkmem,
)
end
function BMSgetBlockPointerSize_call(blkmem, ptr)
ccall(
(:BMSgetBlockPointerSize_call, libscip),
Csize_t,
(Ptr{BMS_BLKMEM}, Ptr{Cvoid}),
blkmem,
ptr,
)
end
function BMSdisplayBlockMemory_call(blkmem)
ccall(
(:BMSdisplayBlockMemory_call, libscip),
Cvoid,
(Ptr{BMS_BLKMEM},),
blkmem,
)
end
function BMScheckEmptyBlockMemory_call(blkmem)
ccall(
(:BMScheckEmptyBlockMemory_call, libscip),
Clonglong,
(Ptr{BMS_BLKMEM},),
blkmem,
)
end
function BMSreallocBufferMemory_call(buffer, ptr, size, filename, line)
ccall(
(:BMSreallocBufferMemory_call, libscip),
Ptr{Cvoid},
(Ptr{BMS_BUFMEM}, Ptr{Cvoid}, Csize_t, Ptr{Cchar}, Cint),
buffer,
ptr,
size,
filename,
line,
)
end
function BMScreateBufferMemory_call(
arraygrowfac,
arraygrowinit,
clean,
filename,
line,
)
ccall(
(:BMScreateBufferMemory_call, libscip),
Ptr{BMS_BUFMEM},
(Cdouble, Cint, Cuint, Ptr{Cchar}, Cint),
arraygrowfac,
arraygrowinit,
clean,
filename,
line,
)
end
function BMSdestroyBufferMemory_call(buffer, filename, line)
ccall(
(:BMSdestroyBufferMemory_call, libscip),
Cvoid,
(Ptr{Ptr{BMS_BUFMEM}}, Ptr{Cchar}, Cint),
buffer,
filename,
line,
)
end
function BMSalignMemsize(size)
ccall((:BMSalignMemsize, libscip), Cvoid, (Ptr{Csize_t},), size)
end
function BMSisAligned(size)
ccall((:BMSisAligned, libscip), Cint, (Csize_t,), size)
end
function BMSsetBufferMemoryArraygrowfac(buffer, arraygrowfac)
ccall(
(:BMSsetBufferMemoryArraygrowfac, libscip),
Cvoid,
(Ptr{BMS_BUFMEM}, Cdouble),
buffer,
arraygrowfac,
)
end
function BMSsetBufferMemoryArraygrowinit(buffer, arraygrowinit)
ccall(
(:BMSsetBufferMemoryArraygrowinit, libscip),
Cvoid,
(Ptr{BMS_BUFMEM}, Cint),
buffer,
arraygrowinit,
)
end
function BMSgetNUsedBufferMemory(buffer)
ccall(
(:BMSgetNUsedBufferMemory, libscip),
Csize_t,
(Ptr{BMS_BUFMEM},),
buffer,
)
end
function BMSgetBufferMemoryUsed(bufmem)
ccall(
(:BMSgetBufferMemoryUsed, libscip),
Clonglong,
(Ptr{BMS_BUFMEM},),
bufmem,
)
end
function BMSprintBufferMemory(buffer)
ccall((:BMSprintBufferMemory, libscip), Cvoid, (Ptr{BMS_BUFMEM},), buffer)
end
function SCIPlpiGetSolverName()
ccall((:SCIPlpiGetSolverName, libscip), Ptr{Cchar}, ())
end
function SCIPlpiGetSolverDesc()
ccall((:SCIPlpiGetSolverDesc, libscip), Ptr{Cchar}, ())
end
function SCIPlpiGetSolverPointer(lpi)
ccall(
(:SCIPlpiGetSolverPointer, libscip),
Ptr{Cvoid},
(Ptr{SCIP_LPI},),
lpi,
)
end
function SCIPlpiSetIntegralityInformation(lpi, ncols, intInfo)
ccall(
(:SCIPlpiSetIntegralityInformation, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Cint, Ptr{Cint}),
lpi,
ncols,
intInfo,
)
end
function SCIPlpiHasPrimalSolve()
ccall((:SCIPlpiHasPrimalSolve, libscip), Cuint, ())
end
function SCIPlpiHasDualSolve()
ccall((:SCIPlpiHasDualSolve, libscip), Cuint, ())
end
function SCIPlpiHasBarrierSolve()
ccall((:SCIPlpiHasBarrierSolve, libscip), Cuint, ())
end
@enum SCIP_ObjSen::Int32 begin
SCIP_OBJSEN_MAXIMIZE = -1
SCIP_OBJSEN_MINIMIZE = 1
end
const SCIP_OBJSEN = SCIP_ObjSen
function SCIPlpiCreate(lpi, messagehdlr, name, objsen)
ccall(
(:SCIPlpiCreate, libscip),
SCIP_RETCODE,
(Ptr{Ptr{SCIP_LPI}}, Ptr{SCIP_MESSAGEHDLR}, Ptr{Cchar}, SCIP_OBJSEN),
lpi,
messagehdlr,
name,
objsen,
)
end
function SCIPlpiFree(lpi)
ccall((:SCIPlpiFree, libscip), SCIP_RETCODE, (Ptr{Ptr{SCIP_LPI}},), lpi)
end
function SCIPlpiLoadColLP(
lpi,
objsen,
ncols,
obj,
lb,
ub,
colnames,
nrows,
lhs,
rhs,
rownames,
nnonz,
beg,
ind,
val,
)
ccall(
(:SCIPlpiLoadColLP, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_LPI},
SCIP_OBJSEN,
Cint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Ptr{Cchar}},
Cint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Ptr{Cchar}},
Cint,
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
),
lpi,
objsen,
ncols,
obj,
lb,
ub,
colnames,
nrows,
lhs,
rhs,
rownames,
nnonz,
beg,
ind,
val,
)
end
function SCIPlpiAddCols(lpi, ncols, obj, lb, ub, colnames, nnonz, beg, ind, val)
ccall(
(:SCIPlpiAddCols, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_LPI},
Cint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Ptr{Cchar}},
Cint,
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
),
lpi,
ncols,
obj,
lb,
ub,
colnames,
nnonz,
beg,
ind,
val,
)
end
function SCIPlpiDelCols(lpi, firstcol, lastcol)
ccall(
(:SCIPlpiDelCols, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Cint, Cint),
lpi,
firstcol,
lastcol,
)
end
function SCIPlpiDelColset(lpi, dstat)
ccall(
(:SCIPlpiDelColset, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{Cint}),
lpi,
dstat,
)
end
function SCIPlpiAddRows(lpi, nrows, lhs, rhs, rownames, nnonz, beg, ind, val)
ccall(
(:SCIPlpiAddRows, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_LPI},
Cint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Ptr{Cchar}},
Cint,
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
),
lpi,
nrows,
lhs,
rhs,
rownames,
nnonz,
beg,
ind,
val,
)
end
function SCIPlpiDelRows(lpi, firstrow, lastrow)
ccall(
(:SCIPlpiDelRows, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Cint, Cint),
lpi,
firstrow,
lastrow,
)
end
function SCIPlpiDelRowset(lpi, dstat)
ccall(
(:SCIPlpiDelRowset, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{Cint}),
lpi,
dstat,
)
end
function SCIPlpiClear(lpi)
ccall((:SCIPlpiClear, libscip), SCIP_RETCODE, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiChgBounds(lpi, ncols, ind, lb, ub)
ccall(
(:SCIPlpiChgBounds, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Cint, Ptr{Cint}, Ptr{Cdouble}, Ptr{Cdouble}),
lpi,
ncols,
ind,
lb,
ub,
)
end
function SCIPlpiChgSides(lpi, nrows, ind, lhs, rhs)
ccall(
(:SCIPlpiChgSides, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Cint, Ptr{Cint}, Ptr{Cdouble}, Ptr{Cdouble}),
lpi,
nrows,
ind,
lhs,
rhs,
)
end
function SCIPlpiChgCoef(lpi, row, col, newval)
ccall(
(:SCIPlpiChgCoef, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Cint, Cint, Cdouble),
lpi,
row,
col,
newval,
)
end
function SCIPlpiChgObjsen(lpi, objsen)
ccall(
(:SCIPlpiChgObjsen, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, SCIP_OBJSEN),
lpi,
objsen,
)
end
function SCIPlpiChgObj(lpi, ncols, ind, obj)
ccall(
(:SCIPlpiChgObj, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Cint, Ptr{Cint}, Ptr{Cdouble}),
lpi,
ncols,
ind,
obj,
)
end
function SCIPlpiScaleRow(lpi, row, scaleval)
ccall(
(:SCIPlpiScaleRow, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Cint, Cdouble),
lpi,
row,
scaleval,
)
end
function SCIPlpiScaleCol(lpi, col, scaleval)
ccall(
(:SCIPlpiScaleCol, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Cint, Cdouble),
lpi,
col,
scaleval,
)
end
function SCIPlpiGetNRows(lpi, nrows)
ccall(
(:SCIPlpiGetNRows, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{Cint}),
lpi,
nrows,
)
end
function SCIPlpiGetNCols(lpi, ncols)
ccall(
(:SCIPlpiGetNCols, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{Cint}),
lpi,
ncols,
)
end
function SCIPlpiGetObjsen(lpi, objsen)
ccall(
(:SCIPlpiGetObjsen, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{SCIP_OBJSEN}),
lpi,
objsen,
)
end
function SCIPlpiGetNNonz(lpi, nnonz)
ccall(
(:SCIPlpiGetNNonz, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{Cint}),
lpi,
nnonz,
)
end
function SCIPlpiGetCols(lpi, firstcol, lastcol, lb, ub, nnonz, beg, ind, val)
ccall(
(:SCIPlpiGetCols, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_LPI},
Cint,
Cint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
),
lpi,
firstcol,
lastcol,
lb,
ub,
nnonz,
beg,
ind,
val,
)
end
function SCIPlpiGetRows(lpi, firstrow, lastrow, lhs, rhs, nnonz, beg, ind, val)
ccall(
(:SCIPlpiGetRows, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_LPI},
Cint,
Cint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cint},
Ptr{Cint},
Ptr{Cint},
Ptr{Cdouble},
),
lpi,
firstrow,
lastrow,
lhs,
rhs,
nnonz,
beg,
ind,
val,
)
end
function SCIPlpiGetColNames(
lpi,
firstcol,
lastcol,
colnames,
namestorage,
namestoragesize,
storageleft,
)
ccall(
(:SCIPlpiGetColNames, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_LPI},
Cint,
Cint,
Ptr{Ptr{Cchar}},
Ptr{Cchar},
Cint,
Ptr{Cint},
),
lpi,
firstcol,
lastcol,
colnames,
namestorage,
namestoragesize,
storageleft,
)
end
function SCIPlpiGetRowNames(
lpi,
firstrow,
lastrow,
rownames,
namestorage,
namestoragesize,
storageleft,
)
ccall(
(:SCIPlpiGetRowNames, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_LPI},
Cint,
Cint,
Ptr{Ptr{Cchar}},
Ptr{Cchar},
Cint,
Ptr{Cint},
),
lpi,
firstrow,
lastrow,
rownames,
namestorage,
namestoragesize,
storageleft,
)
end
function SCIPlpiGetObj(lpi, firstcol, lastcol, vals)
ccall(
(:SCIPlpiGetObj, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Cint, Cint, Ptr{Cdouble}),
lpi,
firstcol,
lastcol,
vals,
)
end
function SCIPlpiGetBounds(lpi, firstcol, lastcol, lbs, ubs)
ccall(
(:SCIPlpiGetBounds, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Cint, Cint, Ptr{Cdouble}, Ptr{Cdouble}),
lpi,
firstcol,
lastcol,
lbs,
ubs,
)
end
function SCIPlpiGetSides(lpi, firstrow, lastrow, lhss, rhss)
ccall(
(:SCIPlpiGetSides, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Cint, Cint, Ptr{Cdouble}, Ptr{Cdouble}),
lpi,
firstrow,
lastrow,
lhss,
rhss,
)
end
function SCIPlpiGetCoef(lpi, row, col, val)
ccall(
(:SCIPlpiGetCoef, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Cint, Cint, Ptr{Cdouble}),
lpi,
row,
col,
val,
)
end
function SCIPlpiSolvePrimal(lpi)
ccall((:SCIPlpiSolvePrimal, libscip), SCIP_RETCODE, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiSolveDual(lpi)
ccall((:SCIPlpiSolveDual, libscip), SCIP_RETCODE, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiSolveBarrier(lpi, crossover)
ccall(
(:SCIPlpiSolveBarrier, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Cuint),
lpi,
crossover,
)
end
function SCIPlpiStartStrongbranch(lpi)
ccall(
(:SCIPlpiStartStrongbranch, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI},),
lpi,
)
end
function SCIPlpiEndStrongbranch(lpi)
ccall(
(:SCIPlpiEndStrongbranch, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI},),
lpi,
)
end
function SCIPlpiStrongbranchFrac(
lpi,
col,
psol,
itlim,
down,
up,
downvalid,
upvalid,
iter,
)
ccall(
(:SCIPlpiStrongbranchFrac, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_LPI},
Cint,
Cdouble,
Cint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cint},
),
lpi,
col,
psol,
itlim,
down,
up,
downvalid,
upvalid,
iter,
)
end
function SCIPlpiStrongbranchesFrac(
lpi,
cols,
ncols,
psols,
itlim,
down,
up,
downvalid,
upvalid,
iter,
)
ccall(
(:SCIPlpiStrongbranchesFrac, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_LPI},
Ptr{Cint},
Cint,
Ptr{Cdouble},
Cint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cint},
),
lpi,
cols,
ncols,
psols,
itlim,
down,
up,
downvalid,
upvalid,
iter,
)
end
function SCIPlpiStrongbranchInt(
lpi,
col,
psol,
itlim,
down,
up,
downvalid,
upvalid,
iter,
)
ccall(
(:SCIPlpiStrongbranchInt, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_LPI},
Cint,
Cdouble,
Cint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cint},
),
lpi,
col,
psol,
itlim,
down,
up,
downvalid,
upvalid,
iter,
)
end
function SCIPlpiStrongbranchesInt(
lpi,
cols,
ncols,
psols,
itlim,
down,
up,
downvalid,
upvalid,
iter,
)
ccall(
(:SCIPlpiStrongbranchesInt, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_LPI},
Ptr{Cint},
Cint,
Ptr{Cdouble},
Cint,
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cuint},
Ptr{Cuint},
Ptr{Cint},
),
lpi,
cols,
ncols,
psols,
itlim,
down,
up,
downvalid,
upvalid,
iter,
)
end
function SCIPlpiWasSolved(lpi)
ccall((:SCIPlpiWasSolved, libscip), Cuint, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiGetSolFeasibility(lpi, primalfeasible, dualfeasible)
ccall(
(:SCIPlpiGetSolFeasibility, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{Cuint}, Ptr{Cuint}),
lpi,
primalfeasible,
dualfeasible,
)
end
function SCIPlpiExistsPrimalRay(lpi)
ccall((:SCIPlpiExistsPrimalRay, libscip), Cuint, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiHasPrimalRay(lpi)
ccall((:SCIPlpiHasPrimalRay, libscip), Cuint, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiIsPrimalUnbounded(lpi)
ccall((:SCIPlpiIsPrimalUnbounded, libscip), Cuint, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiIsPrimalInfeasible(lpi)
ccall((:SCIPlpiIsPrimalInfeasible, libscip), Cuint, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiIsPrimalFeasible(lpi)
ccall((:SCIPlpiIsPrimalFeasible, libscip), Cuint, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiExistsDualRay(lpi)
ccall((:SCIPlpiExistsDualRay, libscip), Cuint, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiHasDualRay(lpi)
ccall((:SCIPlpiHasDualRay, libscip), Cuint, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiIsDualUnbounded(lpi)
ccall((:SCIPlpiIsDualUnbounded, libscip), Cuint, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiIsDualInfeasible(lpi)
ccall((:SCIPlpiIsDualInfeasible, libscip), Cuint, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiIsDualFeasible(lpi)
ccall((:SCIPlpiIsDualFeasible, libscip), Cuint, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiIsOptimal(lpi)
ccall((:SCIPlpiIsOptimal, libscip), Cuint, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiIsStable(lpi)
ccall((:SCIPlpiIsStable, libscip), Cuint, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiIsObjlimExc(lpi)
ccall((:SCIPlpiIsObjlimExc, libscip), Cuint, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiIsIterlimExc(lpi)
ccall((:SCIPlpiIsIterlimExc, libscip), Cuint, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiIsTimelimExc(lpi)
ccall((:SCIPlpiIsTimelimExc, libscip), Cuint, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiGetInternalStatus(lpi)
ccall((:SCIPlpiGetInternalStatus, libscip), Cint, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiIgnoreInstability(lpi, success)
ccall(
(:SCIPlpiIgnoreInstability, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{Cuint}),
lpi,
success,
)
end
function SCIPlpiGetObjval(lpi, objval)
ccall(
(:SCIPlpiGetObjval, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{Cdouble}),
lpi,
objval,
)
end
function SCIPlpiGetSol(lpi, objval, primsol, dualsol, activity, redcost)
ccall(
(:SCIPlpiGetSol, libscip),
SCIP_RETCODE,
(
Ptr{SCIP_LPI},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
Ptr{Cdouble},
),
lpi,
objval,
primsol,
dualsol,
activity,
redcost,
)
end
function SCIPlpiGetPrimalRay(lpi, ray)
ccall(
(:SCIPlpiGetPrimalRay, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{Cdouble}),
lpi,
ray,
)
end
function SCIPlpiGetDualfarkas(lpi, dualfarkas)
ccall(
(:SCIPlpiGetDualfarkas, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{Cdouble}),
lpi,
dualfarkas,
)
end
function SCIPlpiGetIterations(lpi, iterations)
ccall(
(:SCIPlpiGetIterations, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{Cint}),
lpi,
iterations,
)
end
@enum SCIP_LPSolQuality::UInt32 begin
SCIP_LPSOLQUALITY_ESTIMCONDITION = 0
SCIP_LPSOLQUALITY_EXACTCONDITION = 1
end
const SCIP_LPSOLQUALITY = SCIP_LPSolQuality
function SCIPlpiGetRealSolQuality(lpi, qualityindicator, quality)
ccall(
(:SCIPlpiGetRealSolQuality, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, SCIP_LPSOLQUALITY, Ptr{Cdouble}),
lpi,
qualityindicator,
quality,
)
end
function SCIPlpiGetBase(lpi, cstat, rstat)
ccall(
(:SCIPlpiGetBase, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{Cint}, Ptr{Cint}),
lpi,
cstat,
rstat,
)
end
function SCIPlpiSetBase(lpi, cstat, rstat)
ccall(
(:SCIPlpiSetBase, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{Cint}, Ptr{Cint}),
lpi,
cstat,
rstat,
)
end
function SCIPlpiGetBasisInd(lpi, bind)
ccall(
(:SCIPlpiGetBasisInd, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{Cint}),
lpi,
bind,
)
end
function SCIPlpiGetBInvRow(lpi, r, coef, inds, ninds)
ccall(
(:SCIPlpiGetBInvRow, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Cint, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}),
lpi,
r,
coef,
inds,
ninds,
)
end
function SCIPlpiGetBInvCol(lpi, c, coef, inds, ninds)
ccall(
(:SCIPlpiGetBInvCol, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Cint, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}),
lpi,
c,
coef,
inds,
ninds,
)
end
function SCIPlpiGetBInvARow(lpi, r, binvrow, coef, inds, ninds)
ccall(
(:SCIPlpiGetBInvARow, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Cint, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}),
lpi,
r,
binvrow,
coef,
inds,
ninds,
)
end
function SCIPlpiGetBInvACol(lpi, c, coef, inds, ninds)
ccall(
(:SCIPlpiGetBInvACol, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Cint, Ptr{Cdouble}, Ptr{Cint}, Ptr{Cint}),
lpi,
c,
coef,
inds,
ninds,
)
end
function SCIPlpiGetState(lpi, blkmem, lpistate)
ccall(
(:SCIPlpiGetState, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{BMS_BLKMEM}, Ptr{Ptr{SCIP_LPISTATE}}),
lpi,
blkmem,
lpistate,
)
end
function SCIPlpiSetState(lpi, blkmem, lpistate)
ccall(
(:SCIPlpiSetState, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{BMS_BLKMEM}, Ptr{SCIP_LPISTATE}),
lpi,
blkmem,
lpistate,
)
end
function SCIPlpiClearState(lpi)
ccall((:SCIPlpiClearState, libscip), SCIP_RETCODE, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiFreeState(lpi, blkmem, lpistate)
ccall(
(:SCIPlpiFreeState, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{BMS_BLKMEM}, Ptr{Ptr{SCIP_LPISTATE}}),
lpi,
blkmem,
lpistate,
)
end
function SCIPlpiHasStateBasis(lpi, lpistate)
ccall(
(:SCIPlpiHasStateBasis, libscip),
Cuint,
(Ptr{SCIP_LPI}, Ptr{SCIP_LPISTATE}),
lpi,
lpistate,
)
end
function SCIPlpiReadState(lpi, fname)
ccall(
(:SCIPlpiReadState, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{Cchar}),
lpi,
fname,
)
end
function SCIPlpiWriteState(lpi, fname)
ccall(
(:SCIPlpiWriteState, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{Cchar}),
lpi,
fname,
)
end
function SCIPlpiGetNorms(lpi, blkmem, lpinorms)
ccall(
(:SCIPlpiGetNorms, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{BMS_BLKMEM}, Ptr{Ptr{SCIP_LPINORMS}}),
lpi,
blkmem,
lpinorms,
)
end
function SCIPlpiSetNorms(lpi, blkmem, lpinorms)
ccall(
(:SCIPlpiSetNorms, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{BMS_BLKMEM}, Ptr{SCIP_LPINORMS}),
lpi,
blkmem,
lpinorms,
)
end
function SCIPlpiFreeNorms(lpi, blkmem, lpinorms)
ccall(
(:SCIPlpiFreeNorms, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{BMS_BLKMEM}, Ptr{Ptr{SCIP_LPINORMS}}),
lpi,
blkmem,
lpinorms,
)
end
@enum SCIP_LPParam::UInt32 begin
SCIP_LPPAR_FROMSCRATCH = 0
SCIP_LPPAR_FASTMIP = 1
SCIP_LPPAR_SCALING = 2
SCIP_LPPAR_PRESOLVING = 3
SCIP_LPPAR_PRICING = 4
SCIP_LPPAR_LPINFO = 5
SCIP_LPPAR_FEASTOL = 6
SCIP_LPPAR_DUALFEASTOL = 7
SCIP_LPPAR_BARRIERCONVTOL = 8
SCIP_LPPAR_OBJLIM = 9
SCIP_LPPAR_LPITLIM = 10
SCIP_LPPAR_LPTILIM = 11
SCIP_LPPAR_MARKOWITZ = 12
SCIP_LPPAR_ROWREPSWITCH = 13
SCIP_LPPAR_THREADS = 14
SCIP_LPPAR_CONDITIONLIMIT = 15
SCIP_LPPAR_TIMING = 16
SCIP_LPPAR_RANDOMSEED = 17
SCIP_LPPAR_POLISHING = 18
SCIP_LPPAR_REFACTOR = 19
end
const SCIP_LPPARAM = SCIP_LPParam
function SCIPlpiGetIntpar(lpi, type, ival)
ccall(
(:SCIPlpiGetIntpar, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, SCIP_LPPARAM, Ptr{Cint}),
lpi,
type,
ival,
)
end
function SCIPlpiSetIntpar(lpi, type, ival)
ccall(
(:SCIPlpiSetIntpar, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, SCIP_LPPARAM, Cint),
lpi,
type,
ival,
)
end
function SCIPlpiGetRealpar(lpi, type, dval)
ccall(
(:SCIPlpiGetRealpar, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, SCIP_LPPARAM, Ptr{Cdouble}),
lpi,
type,
dval,
)
end
function SCIPlpiSetRealpar(lpi, type, dval)
ccall(
(:SCIPlpiSetRealpar, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, SCIP_LPPARAM, Cdouble),
lpi,
type,
dval,
)
end
function SCIPlpiInterrupt(lpi, interrupt)
ccall(
(:SCIPlpiInterrupt, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Cuint),
lpi,
interrupt,
)
end
function SCIPlpiInfinity(lpi)
ccall((:SCIPlpiInfinity, libscip), Cdouble, (Ptr{SCIP_LPI},), lpi)
end
function SCIPlpiIsInfinity(lpi, val)
ccall(
(:SCIPlpiIsInfinity, libscip),
Cuint,
(Ptr{SCIP_LPI}, Cdouble),
lpi,
val,
)
end
function SCIPlpiReadLP(lpi, fname)
ccall(
(:SCIPlpiReadLP, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{Cchar}),
lpi,
fname,
)
end
function SCIPlpiWriteLP(lpi, fname)
ccall(
(:SCIPlpiWriteLP, libscip),
SCIP_RETCODE,
(Ptr{SCIP_LPI}, Ptr{Cchar}),
lpi,
fname,
)
end
@enum SCIP_Pricing::UInt32 begin
SCIP_PRICING_LPIDEFAULT = 0
SCIP_PRICING_AUTO = 1
SCIP_PRICING_FULL = 2
SCIP_PRICING_PARTIAL = 3
SCIP_PRICING_STEEP = 4
SCIP_PRICING_STEEPQSTART = 5
SCIP_PRICING_DEVEX = 6
end
const SCIP_PRICING = SCIP_Pricing
const CMAKE_BUILD_TYPE = "Release"
const SCIP_VERSION_MAJOR = 7
const SCIP_VERSION_MINOR = 0
const SCIP_VERSION_PATCH = 3
const SCIP_VERSION_SUB = 5
const SCIP_VERSION_API = 77
# Skipping MacroDefinition: SCIP_EXPORT __attribute__ ( ( visibility ( "default" ) ) )
# Skipping MacroDefinition: SCIP_NO_EXPORT __attribute__ ( ( visibility ( "hidden" ) ) )
# Skipping MacroDefinition: SCIP_DEPRECATED __attribute__ ( ( __deprecated__ ) )
const SCIP_Real = Float64
const SCIP_Bool = Cuint
const SCIP_Longint = Clonglong
const SCIP_NLINCONSTYPES = Cint(SCIP_LINCONSTYPE_GENERAL) + 1
const SCIP_DECOMP_LINKVAR = -1
const SCIP_DECOMP_LINKCONS = -2
const SCIP_EVENTTYPE_DISABLED = UINT64_C(0x0000000000000000)
const SCIP_EVENTTYPE_VARADDED = UINT64_C(0x0000000000000001)
const SCIP_EVENTTYPE_VARDELETED = UINT64_C(0x0000000000000002)
const SCIP_EVENTTYPE_VARFIXED = UINT64_C(0x0000000000000004)
const SCIP_EVENTTYPE_VARUNLOCKED = UINT64_C(0x0000000000000008)
const SCIP_EVENTTYPE_OBJCHANGED = UINT64_C(0x0000000000000010)
const SCIP_EVENTTYPE_GLBCHANGED = UINT64_C(0x0000000000000020)
const SCIP_EVENTTYPE_GUBCHANGED = UINT64_C(0x0000000000000040)
const SCIP_EVENTTYPE_LBTIGHTENED = UINT64_C(0x0000000000000080)
const SCIP_EVENTTYPE_LBRELAXED = UINT64_C(0x0000000000000100)
const SCIP_EVENTTYPE_UBTIGHTENED = UINT64_C(0x0000000000000200)
const SCIP_EVENTTYPE_UBRELAXED = UINT64_C(0x0000000000000400)
const SCIP_EVENTTYPE_GHOLEADDED = UINT64_C(0x0000000000000800)
const SCIP_EVENTTYPE_GHOLEREMOVED = UINT64_C(0x0000000000001000)
const SCIP_EVENTTYPE_LHOLEADDED = UINT64_C(0x0000000000002000)
const SCIP_EVENTTYPE_LHOLEREMOVED = UINT64_C(0x0000000000004000)
const SCIP_EVENTTYPE_IMPLADDED = UINT64_C(0x0000000000008000)
const SCIP_EVENTTYPE_TYPECHANGED = UINT64_C(0x0000000000010000)
const SCIP_EVENTTYPE_PRESOLVEROUND = UINT64_C(0x0000000000020000)
const SCIP_EVENTTYPE_NODEFOCUSED = UINT64_C(0x0000000000040000)
const SCIP_EVENTTYPE_NODEFEASIBLE = UINT64_C(0x0000000000080000)
const SCIP_EVENTTYPE_NODEINFEASIBLE = UINT64_C(0x0000000000100000)
const SCIP_EVENTTYPE_NODEBRANCHED = UINT64_C(0x0000000000200000)
const SCIP_EVENTTYPE_NODEDELETE = UINT64_C(0x0000000000400000)
const SCIP_EVENTTYPE_FIRSTLPSOLVED = UINT64_C(0x0000000000800000)
const SCIP_EVENTTYPE_LPSOLVED = UINT64_C(0x0000000001000000)
const SCIP_EVENTTYPE_POORSOLFOUND = UINT64_C(0x0000000002000000)
const SCIP_EVENTTYPE_BESTSOLFOUND = UINT64_C(0x0000000004000000)
const SCIP_EVENTTYPE_ROWADDEDSEPA = UINT64_C(0x0000000008000000)
const SCIP_EVENTTYPE_ROWDELETEDSEPA = UINT64_C(0x0000000010000000)
const SCIP_EVENTTYPE_ROWADDEDLP = UINT64_C(0x0000000020000000)
const SCIP_EVENTTYPE_ROWDELETEDLP = UINT64_C(0x0000000040000000)
const SCIP_EVENTTYPE_ROWCOEFCHANGED = UINT64_C(0x0000000080000000)
const SCIP_EVENTTYPE_ROWCONSTCHANGED = UINT64_C(0x0000000100000000)
const SCIP_EVENTTYPE_ROWSIDECHANGED = UINT64_C(0x0000000200000000)
const SCIP_EVENTTYPE_SYNC = UINT64_C(0x0000000400000000)
const SCIP_EVENTTYPE_GBDCHANGED =
SCIP_EVENTTYPE_GLBCHANGED | SCIP_EVENTTYPE_GUBCHANGED
const SCIP_EVENTTYPE_LBCHANGED =
SCIP_EVENTTYPE_LBTIGHTENED | SCIP_EVENTTYPE_LBRELAXED
const SCIP_EVENTTYPE_UBCHANGED =
SCIP_EVENTTYPE_UBTIGHTENED | SCIP_EVENTTYPE_UBRELAXED
const SCIP_EVENTTYPE_BOUNDTIGHTENED =
SCIP_EVENTTYPE_LBTIGHTENED | SCIP_EVENTTYPE_UBTIGHTENED
const SCIP_EVENTTYPE_BOUNDRELAXED =
SCIP_EVENTTYPE_LBRELAXED | SCIP_EVENTTYPE_UBRELAXED
const SCIP_EVENTTYPE_BOUNDCHANGED =
SCIP_EVENTTYPE_LBCHANGED | SCIP_EVENTTYPE_UBCHANGED
const SCIP_EVENTTYPE_GHOLECHANGED =
SCIP_EVENTTYPE_GHOLEADDED | SCIP_EVENTTYPE_GHOLEREMOVED
const SCIP_EVENTTYPE_LHOLECHANGED =
SCIP_EVENTTYPE_LHOLEADDED | SCIP_EVENTTYPE_LHOLEREMOVED
const SCIP_EVENTTYPE_HOLECHANGED =
SCIP_EVENTTYPE_GHOLECHANGED | SCIP_EVENTTYPE_LHOLECHANGED
const SCIP_EVENTTYPE_DOMCHANGED =
SCIP_EVENTTYPE_BOUNDCHANGED | SCIP_EVENTTYPE_HOLECHANGED
const SCIP_EVENTTYPE_VARCHANGED =
(
(
(
(
(
(SCIP_EVENTTYPE_VARFIXED | SCIP_EVENTTYPE_VARUNLOCKED) |
SCIP_EVENTTYPE_OBJCHANGED
) | SCIP_EVENTTYPE_GBDCHANGED
) | SCIP_EVENTTYPE_DOMCHANGED
) | SCIP_EVENTTYPE_IMPLADDED
) | SCIP_EVENTTYPE_VARDELETED
) | SCIP_EVENTTYPE_TYPECHANGED
const SCIP_EVENTTYPE_VAREVENT =
(SCIP_EVENTTYPE_VARADDED | SCIP_EVENTTYPE_VARCHANGED) |
SCIP_EVENTTYPE_TYPECHANGED
const SCIP_EVENTTYPE_NODESOLVED =
(SCIP_EVENTTYPE_NODEFEASIBLE | SCIP_EVENTTYPE_NODEINFEASIBLE) |
SCIP_EVENTTYPE_NODEBRANCHED
const SCIP_EVENTTYPE_NODEEVENT =
SCIP_EVENTTYPE_NODEFOCUSED | SCIP_EVENTTYPE_NODESOLVED
const SCIP_EVENTTYPE_LPEVENT =
SCIP_EVENTTYPE_FIRSTLPSOLVED | SCIP_EVENTTYPE_LPSOLVED
const SCIP_EVENTTYPE_SOLFOUND =
SCIP_EVENTTYPE_POORSOLFOUND | SCIP_EVENTTYPE_BESTSOLFOUND
const SCIP_EVENTTYPE_SOLEVENT = SCIP_EVENTTYPE_SOLFOUND
const SCIP_EVENTTYPE_ROWCHANGED =
(SCIP_EVENTTYPE_ROWCOEFCHANGED | SCIP_EVENTTYPE_ROWCONSTCHANGED) |
SCIP_EVENTTYPE_ROWSIDECHANGED
const SCIP_EVENTTYPE_ROWEVENT =
(
(
(SCIP_EVENTTYPE_ROWADDEDSEPA | SCIP_EVENTTYPE_ROWDELETEDSEPA) |
SCIP_EVENTTYPE_ROWADDEDLP
) | SCIP_EVENTTYPE_ROWDELETEDLP
) | SCIP_EVENTTYPE_ROWCHANGED
const SCIP_EVENTTYPE_FORMAT = PRIx64
const SCIP_EXPR_MAXINITESTIMATES = 10
const SCIP_EXPRITER_MAXNACTIVE = 5
const SCIP_EXPRITER_ENTEREXPR = Cuint(1)
const SCIP_EXPRITER_VISITINGCHILD = Cuint(2)
const SCIP_EXPRITER_VISITEDCHILD = Cuint(4)
const SCIP_EXPRITER_LEAVEEXPR = Cuint(8)
const SCIP_EXPRITER_ALLSTAGES =
(
(SCIP_EXPRITER_ENTEREXPR | SCIP_EXPRITER_VISITINGCHILD) |
SCIP_EXPRITER_VISITEDCHILD
) | SCIP_EXPRITER_LEAVEEXPR
const SCIP_EXPRPRINT_EXPRSTRING = Cuint(0x01)
const SCIP_EXPRPRINT_EXPRHDLR = Cuint(0x02)
const SCIP_EXPRPRINT_NUSES = Cuint(0x04)
const SCIP_EXPRPRINT_EVALVALUE = Cuint(0x08)
const SCIP_EXPRPRINT_EVALTAG = Cuint(0x18)
const SCIP_EXPRPRINT_ACTIVITY = Cuint(0x20)
const SCIP_EXPRPRINT_ACTIVITYTAG = Cuint(0x60)
const SCIP_EXPRPRINT_OWNER = Cuint(0x80)
const SCIP_EXPRPRINT_ALL =
(
(
(
(SCIP_EXPRPRINT_EXPRSTRING | SCIP_EXPRPRINT_EXPRHDLR) |
SCIP_EXPRPRINT_NUSES
) | SCIP_EXPRPRINT_EVALTAG
) | SCIP_EXPRPRINT_ACTIVITYTAG
) | SCIP_EXPRPRINT_OWNER
const SCIP_EXPRINTCAPABILITY_NONE = 0x00000000
const SCIP_EXPRINTCAPABILITY_FUNCVALUE = 0x00000001
const SCIP_EXPRINTCAPABILITY_GRADIENT = 0x00000010
const SCIP_EXPRINTCAPABILITY_HESSIAN = 0x00000100
const SCIP_EXPRINTCAPABILITY_ALL =
(SCIP_EXPRINTCAPABILITY_FUNCVALUE | SCIP_EXPRINTCAPABILITY_GRADIENT) |
SCIP_EXPRINTCAPABILITY_HESSIAN
const SCIP_DIVETYPE_NONE = Cuint(0x0000)
const SCIP_DIVETYPE_INTEGRALITY = Cuint(0x0001)
const SCIP_DIVETYPE_SOS1VARIABLE = Cuint(0x0002)
const SCIP_HEURDISPCHAR_LNS = Cchar('L')
const SCIP_HEURDISPCHAR_DIVING = Cchar('d')
const SCIP_HEURDISPCHAR_ITERATIVE = Cchar('i')
const SCIP_HEURDISPCHAR_OBJDIVING = Cchar('o')
const SCIP_HEURDISPCHAR_PROP = Cchar('p')
const SCIP_HEURDISPCHAR_ROUNDING = Cchar('r')
const SCIP_HEURDISPCHAR_TRIVIAL = Cchar('t')
const SCIP_NLHDLR_METHOD_NONE = Cuint(0x00)
const SCIP_NLHDLR_METHOD_SEPABELOW = Cuint(0x01)
const SCIP_NLHDLR_METHOD_SEPAABOVE = Cuint(0x02)
const SCIP_NLHDLR_METHOD_SEPABOTH =
SCIP_NLHDLR_METHOD_SEPABELOW | SCIP_NLHDLR_METHOD_SEPAABOVE
const SCIP_NLHDLR_METHOD_ACTIVITY = Cuint(0x04)
const SCIP_NLHDLR_METHOD_ALL =
SCIP_NLHDLR_METHOD_SEPABOTH | SCIP_NLHDLR_METHOD_ACTIVITY
const SCIP_NLPPARAM_DEFAULT_VERBLEVEL = 0
const SCIP_REAL_MIN = -(SCIP_Real(DBL_MAX))
const SCIP_REAL_MAX = SCIP_Real(DBL_MAX)
const FALSE = 0
const SCIP_PRESOLTIMING_NONE = Cuint(0x0002)
const SCIP_PRESOLTIMING_FAST = Cuint(0x0004)
const SCIP_PRESOLTIMING_MEDIUM = Cuint(0x0008)
const SCIP_PRESOLTIMING_EXHAUSTIVE = Cuint(0x0010)
const SCIP_PRESOLTIMING_FINAL = Cuint(0x0020)
const SCIP_PRESOLTIMING_ALWAYS =
(SCIP_PRESOLTIMING_FAST | SCIP_PRESOLTIMING_MEDIUM) |
SCIP_PRESOLTIMING_EXHAUSTIVE
const SCIP_PRESOLTIMING_MAX =
(
(SCIP_PRESOLTIMING_FAST | SCIP_PRESOLTIMING_MEDIUM) |
SCIP_PRESOLTIMING_EXHAUSTIVE
) | SCIP_PRESOLTIMING_FINAL
const SCIP_PROPTIMING_BEFORELP = Cuint(0x0001)
const SCIP_PROPTIMING_DURINGLPLOOP = Cuint(0x0002)
const SCIP_PROPTIMING_AFTERLPLOOP = Cuint(0x0004)
const SCIP_PROPTIMING_AFTERLPNODE = Cuint(0x0008)
const SCIP_PROPTIMING_ALWAYS =
(
(SCIP_PROPTIMING_BEFORELP | SCIP_PROPTIMING_DURINGLPLOOP) |
SCIP_PROPTIMING_AFTERLPLOOP
) | SCIP_PROPTIMING_AFTERLPNODE
const SCIP_HEURTIMING_BEFORENODE = Cuint(0x0001)
const SCIP_HEURTIMING_DURINGLPLOOP = Cuint(0x0002)
const SCIP_HEURTIMING_AFTERLPLOOP = Cuint(0x0004)
const SCIP_HEURTIMING_AFTERLPNODE = Cuint(0x0008)
const SCIP_HEURTIMING_AFTERPSEUDONODE = Cuint(0x0010)
const SCIP_HEURTIMING_AFTERLPPLUNGE = Cuint(0x0020)
const SCIP_HEURTIMING_AFTERPSEUDOPLUNGE = Cuint(0x0040)
const SCIP_HEURTIMING_DURINGPRICINGLOOP = Cuint(0x0080)
const SCIP_HEURTIMING_BEFOREPRESOL = Cuint(0x0100)
const SCIP_HEURTIMING_DURINGPRESOLLOOP = Cuint(0x0200)
const SCIP_HEURTIMING_AFTERPROPLOOP = Cuint(0x0400)
const SCIP_HEURTIMING_AFTERNODE =
SCIP_HEURTIMING_AFTERLPNODE | SCIP_HEURTIMING_AFTERPSEUDONODE
const SCIP_HEURTIMING_AFTERPLUNGE =
SCIP_HEURTIMING_AFTERLPPLUNGE | SCIP_HEURTIMING_AFTERPSEUDOPLUNGE
const NLOCKTYPES = 2
const SCIP_HAVE_VARIADIC_MACROS = 1
const TRUE = 1
const SCIP_Shortbool = uint8_t
const SCIP_VERSION = 800
const SCIP_SUBVERSION = 1
const SCIP_APIVERSION = 101
const SCIP_COPYRIGHT = "Copyright (C) 2002-2021 Konrad-Zuse-Zentrum fuer Informationstechnik Berlin (ZIB)"
const SCIP_VARTYPE_BINARY_CHAR = Cchar('B')
const SCIP_VARTYPE_INTEGER_CHAR = Cchar('I')
const SCIP_VARTYPE_IMPLINT_CHAR = Cchar('M')
const SCIP_VARTYPE_CONTINUOUS_CHAR = Cchar('C')
const SCIP_LONGINT_MAX = LLONG_MAX
const SCIP_LONGINT_MIN = LLONG_MIN
const SCIP_LONGINT_FORMAT = "lld"
const SCIP_REAL_FORMAT = "lf"
const SCIP_DEFAULT_INFINITY = 1.0e20
const SCIP_DEFAULT_EPSILON = 1.0e-9
const SCIP_DEFAULT_SUMEPSILON = 1.0e-6
const SCIP_DEFAULT_FEASTOL = 1.0e-6
const SCIP_DEFAULT_CHECKFEASTOLFAC = 1.0
const SCIP_DEFAULT_LPFEASTOLFACTOR = 1.0
const SCIP_DEFAULT_DUALFEASTOL = 1.0e-7
const SCIP_DEFAULT_BARRIERCONVTOL = 1.0e-10
const SCIP_DEFAULT_BOUNDSTREPS = 0.05
const SCIP_DEFAULT_PSEUDOCOSTEPS = 0.1
const SCIP_DEFAULT_PSEUDOCOSTDELTA = 0.0001
const SCIP_DEFAULT_RECOMPFAC = 1.0e7
const SCIP_DEFAULT_HUGEVAL = 1.0e15
const SCIP_MAXEPSILON = 0.001
const SCIP_MINEPSILON = 1.0e-20
const SCIP_INVALID = Float64(1.0e99)
const SCIP_UNKNOWN = Float64(1.0e98)
const SCIP_INTERVAL_INFINITY = Float64(1.0e300)
const COPYSIGN = copysign
const SCIP_MAXSTRLEN = 1024
const SCIP_MAXMEMSIZE = SIZE_MAX ÷ 2
const SCIP_HASHSIZE_PARAMS = 2048
const SCIP_HASHSIZE_NAMES = 500
const SCIP_HASHSIZE_CUTPOOLS = 500
const SCIP_HASHSIZE_CLIQUES = 500
const SCIP_HASHSIZE_NAMES_SMALL = 100
const SCIP_HASHSIZE_CUTPOOLS_SMALL = 100
const SCIP_HASHSIZE_CLIQUES_SMALL = 100
const SCIP_HASHSIZE_VBC = 500
const SCIP_DEFAULT_MEM_ARRAYGROWFAC = 1.2
const SCIP_DEFAULT_MEM_ARRAYGROWINIT = 4
const SCIP_MEM_NOLIMIT = SCIP_Longint(SCIP_LONGINT_MAX >> 20)
const SCIP_MAXTREEDEPTH = 65534
const SCIP_PROBINGSCORE_PENALTYRATIO = 2
const QUAD_EPSILON = 1.0e-12
const SCIP_MAXVERTEXPOLYDIM = 14
const SYM_SPEC_INTEGER = UINT32_C(0x00000001)
const SYM_SPEC_BINARY = UINT32_C(0x00000002)
const SYM_SPEC_REAL = UINT32_C(0x00000004)
const SYM_COMPUTETIMING_BEFOREPRESOL = 0
const SYM_COMPUTETIMING_DURINGPRESOL = 1
const SYM_COMPUTETIMING_AFTERPRESOL = 2
const SYM_HANDLETYPE_NONE = UINT32_C(0x00000000)
const SYM_HANDLETYPE_SYMBREAK = UINT32_C(0x00000001)
const SYM_HANDLETYPE_ORBITALFIXING = UINT32_C(0x00000002)
const SYM_HANDLETYPE_SST = UINT32_C(0x00000004)
const SYM_HANDLETYPE_SYMCONS = SYM_HANDLETYPE_SYMBREAK | SYM_HANDLETYPE_SST
const ARTIFICIALVARNAMEPREFIX = "andresultant_"
# Skipping MacroDefinition: SCIPdebugMessage while ( FALSE ) /*lint -e{530}*/ printf
# Skipping MacroDefinition: SCIPdebugPrintf while ( FALSE ) /*lint -e{530}*/ printf
# Skipping MacroDefinition: SCIPstatisticMessage while ( FALSE ) /*lint -e{530}*/ printf
# Skipping MacroDefinition: SCIPstatisticPrintf while ( FALSE ) /*lint -e{530}*/ printf
const SCIPisFinite = isfinite
# exports
const PREFIXES = ["SCIP_", "SCIP", "BMS_"]
for name in names(@__MODULE__; all=true), prefix in PREFIXES
if startswith(string(name), prefix)
@eval export $name
end
end
end # module
| SCIP | https://github.com/scipopt/SCIP.jl.git |
|
[
"MIT"
] | 0.11.14 | 3d6a6516d6940a93b732e8ec7127652a0ead89c6 | code | 12973 | using MathOptInterface
const MOI = MathOptInterface
const MOIU = MOI.Utilities
# indices
const VI = MOI.VariableIndex
const CI = MOI.ConstraintIndex
# supported functions
const SAF = MOI.ScalarAffineFunction{Float64}
const SQF = MOI.ScalarQuadraticFunction{Float64}
const VAF = MOI.VectorAffineFunction{Float64}
const VECTOR = MOI.VectorOfVariables
# supported sets
const BOUNDS = Union{
MOI.EqualTo{Float64},
MOI.GreaterThan{Float64},
MOI.LessThan{Float64},
MOI.Interval{Float64},
}
const VAR_TYPES = Union{MOI.ZeroOne,MOI.Integer}
const SOS1 = MOI.SOS1{Float64}
const SOS2 = MOI.SOS2{Float64}
# other MOI types
const AFF_TERM = MOI.ScalarAffineTerm{Float64}
const QUAD_TERM = MOI.ScalarQuadraticTerm{Float64}
const VEC_TERM = MOI.VectorAffineTerm{Float64}
const PtrMap = Dict{Ptr{Cvoid},Union{VarRef,ConsRef}}
const ConsTypeMap = Dict{Tuple{DataType,DataType},Set{ConsRef}}
mutable struct Optimizer <: MOI.AbstractOptimizer
inner::SCIPData
reference::PtrMap
constypes::ConsTypeMap
binbounds::Dict{VI,BOUNDS} # only for binary variables
params::Dict{String,Any}
start::Dict{VI,Float64} # can be partial
moi_separator::Any # ::Union{CutCbSeparator, Nothing}
moi_heuristic::Any # ::Union{HeuristicCb, Nothing}
objective_sense::Union{Nothing,MOI.OptimizationSense}
objective_function_set::Bool
function Optimizer(; kwargs...)
scip = Ref{Ptr{SCIP_}}(C_NULL)
@SCIP_CALL SCIPcreate(scip)
@assert scip[] != C_NULL
@SCIP_CALL SCIPincludeDefaultPlugins(scip[])
@SCIP_CALL SCIP.SCIPcreateProbBasic(scip[], "")
scip_data = SCIPData(
scip,
Dict(),
Dict(),
0,
0,
Dict(),
Dict(),
Dict(),
Dict(),
Dict(),
Dict(),
[],
)
o = new(
scip_data,
PtrMap(),
ConsTypeMap(),
Dict(),
Dict(),
Dict(),
nothing,
nothing,
nothing,
false,
)
finalizer(free_scip, o)
# Set all parameters given as keyword arguments, replacing the
# delimiter, since "/" is used by all SCIP parameters, but is not
# allowed in Julia identifiers.
for (key, value) in kwargs
name = replace(String(key), "_" => "/")
MOI.set(o, MOI.RawOptimizerAttribute(name), value)
end
return o
end
end
free_scip(o::Optimizer) = free_scip(o.inner)
Base.cconvert(::Type{Ptr{SCIP_}}, o::Optimizer) = o
# Protect Optimizer from GC for ccall with Ptr{SCIP_} argument.
Base.unsafe_convert(::Type{Ptr{SCIP_}}, o::Optimizer) = o.inner.scip[]
## convenience functions (not part of MOI)
"Return pointer to SCIP variable."
function var(o::Optimizer, v::VI)::Ptr{SCIP_VAR}
return var(o.inner, VarRef(v.value))
end
"Return var/cons reference of SCIP variable/constraint."
ref(o::Optimizer, ptr::Ptr{Cvoid}) = o.reference[ptr]
"Return pointer to SCIP constraint."
function cons(o::Optimizer, c::CI{F,S})::Ptr{SCIP_CONS} where {F,S}
return cons(o.inner, ConsRef(c.value))
end
"Extract bounds from sets."
bounds(set::MOI.EqualTo{Float64}) = (set.value, set.value)
bounds(set::MOI.GreaterThan{Float64}) = (set.lower, nothing)
bounds(set::MOI.LessThan{Float64}) = (nothing, set.upper)
bounds(set::MOI.Interval{Float64}) = (set.lower, set.upper)
"Make set from bounds."
function from_bounds(::Type{MOI.EqualTo{Float64}}, lower, upper)
MOI.EqualTo{Float64}(lower)
end
function from_bounds(::Type{MOI.GreaterThan{Float64}}, lower, upper)
MOI.GreaterThan{Float64}(lower)
end
function from_bounds(::Type{MOI.LessThan{Float64}}, lower, upper)
MOI.LessThan{Float64}(upper)
end
function from_bounds(::Type{MOI.Interval{Float64}}, lower, upper)
MOI.Interval{Float64}(lower, upper)
end
"Register pointer in mapping, return var/cons reference."
function register!(
o::Optimizer,
ptr::Ptr{Cvoid},
ref::R,
) where {R<:Union{VarRef,ConsRef}}
@assert !haskey(o.reference, ptr)
o.reference[ptr] = ref
return ref
end
"Register constraint in mapping, return constraint reference."
function register!(o::Optimizer, c::CI{F,S}) where {F,S}
cr = ConsRef(c.value)
if haskey(o.constypes, (F, S))
push!(o.constypes[F, S], cr)
else
o.constypes[F, S] = Set([cr])
end
return c
end
"Go back from solved stage to problem modification stage, invalidating results."
function allow_modification(o::Optimizer)
if !(SCIPgetStage(o) in (SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING))
@SCIP_CALL SCIPfreeTransform(o)
end
return nothing
end
## general queries and support
MOI.get(::Optimizer, ::MOI.SolverName) = "SCIP"
MOI.supports_incremental_interface(::Optimizer) = true
function _throw_if_invalid(o::Optimizer, ci::CI{F,S}) where {F,S}
if !haskey(o.constypes, (F, S)) || !in(ConsRef(ci.value), o.constypes[F, S])
throw(MOI.InvalidIndex(ci))
end
return nothing
end
function MOI.get(o::Optimizer, param::MOI.RawOptimizerAttribute)
return get_parameter(o.inner, param.name)
end
function MOI.set(o::Optimizer, param::MOI.RawOptimizerAttribute, value)
set_parameter(o.inner, param.name, value)
o.params[param.name] = value
return nothing
end
MOI.supports(o::Optimizer, ::MOI.Silent) = true
function MOI.get(o::Optimizer, ::MOI.Silent)
return MOI.get(o, MOI.RawOptimizerAttribute("display/verblevel")) == 0
end
function MOI.set(o::Optimizer, ::MOI.Silent, value)
param = MOI.RawOptimizerAttribute("display/verblevel")
if value
MOI.set(o, param, 0) # no output at all
else
MOI.set(o, param, 4) # default level
end
end
MOI.supports(o::Optimizer, ::MOI.TimeLimitSec) = true
function MOI.get(o::Optimizer, ::MOI.TimeLimitSec)
raw_value = MOI.get(o, MOI.RawOptimizerAttribute("limits/time"))
if raw_value == SCIPinfinity(o)
return nothing
else
return raw_value
end
end
function MOI.set(o::Optimizer, ::MOI.TimeLimitSec, value)
if value === nothing
return MOI.set(o, MOI.RawOptimizerAttribute("limits/time"), SCIPinfinity(o))
end
return MOI.set(o, MOI.RawOptimizerAttribute("limits/time"), value)
end
MOI.supports(::Optimizer, ::MOI.AbsoluteGapTolerance) = true
function MOI.get(o::Optimizer, ::MOI.AbsoluteGapTolerance)
raw_value = MOI.get(o, MOI.RawOptimizerAttribute("limits/absgap"))
if raw_value == 0
return nothing
end
return raw_value
end
function MOI.set(o::Optimizer, ::MOI.AbsoluteGapTolerance, value)
if value === nothing
MOI.set(o, MOI.RawOptimizerAttribute("limits/absgap"), 0.0)
else
MOI.set(o, MOI.RawOptimizerAttribute("limits/absgap"), value)
end
return nothing
end
MOI.supports(::Optimizer, ::MOI.RelativeGapTolerance) = true
function MOI.get(o::Optimizer, ::MOI.RelativeGapTolerance)
raw_value = MOI.get(o, MOI.RawOptimizerAttribute("limits/gap"))
if raw_value == 0
return nothing
end
return raw_value
end
function MOI.set(o::Optimizer, ::MOI.RelativeGapTolerance, value)
if value === nothing
MOI.set(o, MOI.RawOptimizerAttribute("limits/gap"), 0.0)
else
MOI.set(o, MOI.RawOptimizerAttribute("limits/gap"), value)
end
return nothing
end
MOI.supports(::Optimizer, ::MOI.SolverVersion) = true
MOI.get(::Optimizer, ::MOI.SolverVersion) = "v" * string(SCIP_versionnumber())
## model creation, query and modification
function MOI.is_empty(o::Optimizer)
return length(o.inner.vars) == 0 && length(o.inner.conss) == 0
end
function MOI.empty!(o::Optimizer)
# free the underlying problem
free_scip(o.inner)
# clear auxiliary mapping structures
o.reference = PtrMap()
o.constypes = ConsTypeMap()
o.binbounds = Dict()
o.start = Dict()
# manually recreate empty o.inner (formerly done by creating a new mscip before ManagedSCIP was removed)
scip = Ref{Ptr{SCIP_}}(C_NULL)
@SCIP_CALL SCIPcreate(scip)
@assert scip[] != C_NULL
@SCIP_CALL SCIPincludeDefaultPlugins(scip[])
@SCIP_CALL SCIP.SCIPcreateProbBasic(scip[], "")
# create a new problem
o.inner =
SCIPData(scip, Dict(), Dict(), 0, 0, Dict(), Dict(), Dict(), Dict(), Dict(), Dict(), [])
# reapply parameters
for pair in o.params
set_parameter(o.inner, pair.first, pair.second)
end
o.objective_sense = nothing
o.objective_function_set = false
o.moi_separator = nothing
o.moi_heuristic = nothing
return nothing
end
function MOI.copy_to(dest::Optimizer, src::MOI.ModelLike)
return MOIU.default_copy_to(dest, src)
end
MOI.get(o::Optimizer, ::MOI.Name) = unsafe_string(SCIPgetProbName(o))
function MOI.set(o::Optimizer, ::MOI.Name, name::String)
@SCIP_CALL SCIPsetProbName(o, name)
end
"""
Presolving
Attribute for activating presolving in SCIP.
"""
struct Presolving <: MOI.AbstractOptimizerAttribute end
MOI.supports(o::Optimizer, ::Presolving) = true
function MOI.get(o::Optimizer, ::Presolving)
return MOI.get(o, MOI.RawOptimizerAttribute("presolving/maxrounds")) != 0
end
function MOI.set(o::Optimizer, ::Presolving, value::Bool)
param = MOI.RawOptimizerAttribute("presolving/maxrounds")
if value
MOI.set(o, param, -1) # max presolving rounds
else
MOI.set(o, param, 0) # no presolving
end
end
function MOI.get(o::Optimizer, ::MOI.NumberOfConstraints{F,S}) where {F,S}
return haskey(o.constypes, (F, S)) ? length(o.constypes[F, S]) : 0
end
function MOI.get(o::Optimizer, ::MOI.ListOfConstraintTypesPresent)
return collect(keys(o.constypes))
end
function MOI.get(o::Optimizer, ::MOI.ListOfConstraintIndices{F,S}) where {F,S}
list_indices = Vector{CI{F,S}}()
if !haskey(o.constypes, (F, S))
return list_indices
end
for cref in o.constypes[F, S]
push!(list_indices, CI{F,S}(cref.val))
end
return sort!(list_indices; by=v -> v.value)
end
function set_start_values(o::Optimizer)
if isempty(o.start)
# no primal start values are given
return
end
# create new partial solution object
sol__ = Ref{Ptr{SCIP_SOL}}(C_NULL)
@SCIP_CALL SCIPcreatePartialSol(o, sol__, C_NULL)
@assert sol__[] != C_NULL
# set all given values
sol_ = sol__[]
for (vi, value) in o.start
@SCIP_CALL SCIPsetSolVal(o, sol_, var(o, vi), value)
end
# submit the candidate
stored_ = Ref{SCIP_Bool}(FALSE)
@SCIP_CALL SCIPaddSolFree(o, sol__, stored_)
@assert sol__[] == C_NULL
end
function MOI.optimize!(o::Optimizer)
set_start_values(o)
if o.objective_sense == MOI.FEASIBILITY_SENSE
MOI.set(o, MOI.ObjectiveFunction{SAF}(), SAF([], 0.0))
end
@SCIP_CALL SCIPsolve(o)
return nothing
end
function MOI.delete(o::Optimizer, ci::CI{F,S}) where {F,S}
_throw_if_invalid(o, ci)
allow_modification(o)
delete!(o.constypes[F, S], ConsRef(ci.value))
if isempty(o.constypes[F, S])
delete!(o.constypes, (F, S))
end
delete!(o.reference, cons(o, ci))
delete(o.inner, ConsRef(ci.value))
return nothing
end
function MOI.get(o::Optimizer, ::MOI.ListOfVariableAttributesSet)
attributes = MOI.AbstractVariableAttribute[MOI.VariableName()]
if !isempty(o.start)
push!(attributes, MOI.VariablePrimalStart())
end
return attributes
end
function MOI.get(o::Optimizer, ::MOI.ListOfModelAttributesSet)
ret = MOI.AbstractModelAttribute[MOI.Name()]
if o.objective_sense !== nothing
push!(ret, MOI.ObjectiveSense())
end
if o.objective_function_set
F = MOI.get(o, MOI.ObjectiveFunctionType())
push!(ret, MOI.ObjectiveFunction{F}())
end
return ret
end
function MOI.get(
::Optimizer,
::MOI.ListOfConstraintAttributesSet{F,S},
) where {F,S}
attributes = MOI.AbstractConstraintAttribute[]
if F != MOI.VariableIndex
return push!(attributes, MOI.ConstraintName())
end
return attributes
end
function MOI.get(::Optimizer, ::MOI.ListOfOptimizerAttributesSet)
attributes = MOI.ListOfOptimizerAttributesSet[]
timelim = MOI.get(o, MOI.TimeLimitSec())
if timelim !== nothing
push!(attributes, MOI.TimeLimitSec())
end
return attributes
end
include(joinpath("MOI_wrapper", "variable.jl"))
include(joinpath("MOI_wrapper", "constraints.jl"))
include(joinpath("MOI_wrapper", "linear_constraints.jl"))
include(joinpath("MOI_wrapper", "quadratic_constraints.jl"))
include(joinpath("MOI_wrapper", "sos_constraints.jl"))
include(joinpath("MOI_wrapper", "indicator_constraints.jl"))
include(joinpath("MOI_wrapper", "nonlinear_constraints.jl"))
include(joinpath("MOI_wrapper", "objective.jl"))
include(joinpath("MOI_wrapper", "results.jl"))
include(joinpath("MOI_wrapper", "conshdlr.jl"))
include(joinpath("MOI_wrapper", "sepa.jl"))
include(joinpath("MOI_wrapper", "heuristic.jl"))
| SCIP | https://github.com/scipopt/SCIP.jl.git |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.