Skip to content

Instantly share code, notes, and snippets.

Avatar
🎲

Abel Soares Siqueira abelsiqueira

🎲
View GitHub Profile
@abelsiqueira
abelsiqueira / # open-mpi - 2018-10-04_11-33-36.txt
Created Oct 4, 2018
open-mpi on 4.18.5-arch1-1-ARCH - Homebrew build logs
View # open-mpi - 2018-10-04_11-33-36.txt
Homebrew build logs for open-mpi on 4.18.5-arch1-1-ARCH
Build date: 2018-10-04 11:33:36
View minex.py
#!/usr/bin/python
from gurobipy import *
m = Model("minex")
x = m.addVar(name="x", vtype=GRB.CONTINUOUS, lb=0.0)
y = m.addVar(name="y", vtype=GRB.CONTINUOUS, lb=0.0)
m.setObjective(0.0 * x, GRB.MINIMIZE)
m.addConstr(y >= 2, "c0")
m.addConstr(x <= 1, "c1")
View Output
Academic license - for non-commercial use only
Optimize a model with 2 rows, 2 columns and 2 nonzeros
Model has 1 quadratic constraint
Coefficient statistics:
Matrix range [1e+00, 1e+00]
QMatrix range [1e+00, 1e+00]
Objective range [0e+00, 0e+00]
Bounds range [0e+00, 0e+00]
RHS range [1e+00, 2e+00]
Presolve removed 2 rows and 2 columns
View Respostas
1/2 + 4685/9370 = 1
1/2 + 4865/9730 = 1
1/2 + 3485/6970 = 1
1/2 + 3548/7096 = 1
1/2 + 3845/7690 = 1
1/2 + 4538/9076 = 1
1/2 + 4835/9670 = 1
1/2 + 4853/9706 = 1
1/4 + 7365/9820 = 1
2/4 + 3079/6158 = 1
View blas_bench.jl
using BenchmarkTools, Plots
function bench()
N = 20
T1 = zeros(N, 3)
T2 = zeros(N, 3)
for i = 1:N
n = 2^i
println("Running for $n")
x = rand(n)
View blas_bench.jl
using BenchmarkTools, Plots
function foo()
N = 20
T1 = zeros(N, 3)
T2 = zeros(N, 3)
for i = 1:N
n = 2^i
println("Running for $n")
x = rand(n)
View interface_bench.jl
using BenchmarkTools
using CUTEst
using NLPModels
function nlpsolver(nlp; itmax=100000, eta=1e-4, eps=1e-6, sigma=0.66)
if !unconstrained(nlp)
error("Problem is not unconstrained")
end
f(x) = obj(nlp, x)
∇f(x) = grad(nlp, x)
View unc-problems.txt
HILBERTA
HIMMELBB
SISSER
SINEVAL
HAIRY
MARATOSB
HIMMELBG
DENSCHNF
HIMMELBH
ZANGWIL2
@abelsiqueira
abelsiqueira / All
Created Oct 17, 2016
Equality CUTEst problems with no bounds on variables
View All
DIXMAANI
LIARWHD
SCHMVETT
VAREIGVL
MSS1
AUG2D
HS79
LUKVLE8
DIXMAANJ
SBRYBND
View mwe_indirect_call.jl
include("src/CUTEst.jl")
using CUTEst
macro dlsym(func, lib)
z, zlocal = gensym(string(func)), gensym()
eval(current_module(), :(global $z = C_NULL))
z = esc(z)
quote
let $zlocal::Ptr{Void} = $z::Ptr{Void}