Skip to content

Instantly share code, notes, and snippets.

View jd-foster's full-sized avatar

James Foster jd-foster

View GitHub Profile
@jd-foster
jd-foster / lib_sundials_search.jl
Created November 17, 2021 05:42
Search sundials shared libraries for symbols and count them
using Sundials
artifact_dir = Sundials.Sundials_jll.artifact_dir
include_dir = joinpath(artifact_dir, "include") |> normpath
lib_dir = joinpath(artifact_dir, "lib") |> normpath
## Just search the main libraries (must keep up-to-date):
dylibs = [
@jd-foster
jd-foster / interval_arithmetic_solution.jl
Created June 4, 2021 04:48
interval_arithmetic_solution_split
using IntervalConstraintProgramming
using IntervalArithmetic
using ModelingToolkit
using BenchmarkTools
"Cs is a list of contractors"
function pave(Cs, working::Vector{IntervalBox{N,T}}, ϵ, bisection_point=nothing) where {N,T}
boundary = SubPaving{N,T}()
@jd-foster
jd-foster / gurobi_solution_split.jl
Created June 4, 2021 04:42
gurobi_solution_split
## Packages
using JuMP
using Gurobi
using BenchmarkTools
# function example_big_sum(rowsum, colsum; verbose::Bool = true)
function create_model(rowsum, colsum; verbose::Bool = true)
## Model:
model = Model(Gurobi.Optimizer)