Skip to content

Instantly share code, notes, and snippets.

Avatar

Joaquim Dias Garcia joaquimg

View GitHub Profile
View test_csdp.jl
#=
(soi) pkg> st
Status `~/soi/Project.toml`
[0a46da34] CSDP v0.5.0 #bl/moiv0.9 (https://github.com/JuliaOpt/CSDP.jl.git)
[b8f27783] MathOptInterface v0.9.0 #master (https://github.com/JuliaOpt/MathOptInterface.jl.git)
[f0680fed] SemidefiniteOptInterface v0.6.0 #bl/moiv0.9 (https://github.com/JuliaOpt/SemidefiniteOptInterface.jl.git)
=#
using LinearAlgebra
using MathOptInterface
View bench2.jl
using JuMP
using GLPK
using ParameterJuMP
using TimerOutputs
#=
add parameters
=#
function add_parameters(model, N)
x = Parameters(model, 4.0*ones(N))
View list of functions
Main
CplexSolver
cpx_setparam
cpx_setlogfile
cpx_getprobtype
Constraints
cpx_chgbds
View addcon.md
using Xpress
Solver = Xpress

using BenchmarkTools

BenchmarkTools.DEFAULT_PARAMETERS.samples = 100

const nvars = 1000
const ncons = 1000
View addvar.md
using Xpress
Solver = Xpress

using BenchmarkTools

BenchmarkTools.DEFAULT_PARAMETERS.samples = 100

m1 = Solver.Model()
function add1000vars1(m)
@joaquimg
joaquimg / ex.jl
Created Jul 2, 2017
JuMP query example
View ex.jl
using JuMP
m = Model()
# Variables section
@variable(m, x[1:10] >= 0)
@variable(m, y[1:10] >= 0)
@variable(m, z >= 0)
# Constraints section
@joaquimg
joaquimg / problem.jl
Last active Aug 4, 2016
Julia JuMP example for cutting planes
View problem.jl
using JuMP
using Gurobi
# define type to hold cutting planes info
# ---------------------------------------
type cuts
RHS::Vector{Vector{Float64}}
Coeff::Vector{Vector{Float64}}
n::Int
You can’t perform that action at this time.