Skip to content

Instantly share code, notes, and snippets.

View abelsiqueira's full-sized avatar
🎲

Abel Soares Siqueira abelsiqueira

🎲
View GitHub Profile
@abelsiqueira
abelsiqueira / # open-mpi - 2018-10-05_07-52-32.txt
Created October 5, 2018 11:00
open-mpi on 4.18.5-arch1-1-ARCH - Homebrew build logs
Homebrew build logs for open-mpi on 4.18.5-arch1-1-ARCH
Build date: 2018-10-05 07:52:32
@abelsiqueira
abelsiqueira / # open-mpi - 2018-10-04_11-33-36.txt
Created October 4, 2018 15:25
open-mpi on 4.18.5-arch1-1-ARCH - Homebrew build logs
Homebrew build logs for open-mpi on 4.18.5-arch1-1-ARCH
Build date: 2018-10-04 11:33:36
#!/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")
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
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
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)
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)
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)
HILBERTA
HIMMELBB
SISSER
SINEVAL
HAIRY
MARATOSB
HIMMELBG
DENSCHNF
HIMMELBH
ZANGWIL2