Skip to content

Instantly share code, notes, and snippets.

Avatar
🎲

Abel Siqueira abelsiqueira

🎲
View GitHub Profile
View Project.toml
[deps]
JSOSolvers = "10dff2fc-5484-5881-a0e0-c90441020f8a"
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
NLPModelsJuMP = "792afdf1-32c1-5681-94e0-d7bf7a5df49e"
[compat]
JSOSolvers = "0.2.0"
JuMP = "0.18"
NLPModelsJuMP = "0.5.0"
View runcutest.jl
using CUTEst, JSOFilter, NLPModelsIpopt, Plots, SolverBenchmark, SolverTools
pyplot()
function runcutest()
#ps = CUTEst.select(max_var=300, min_con=1, max_con=300, only_free_var=true, only_equ_con=true, objtype=2:6)
#ps = CUTEst.select(max_var=300, min_con=1, max_con=300, only_free_var=true, objtype=2:6)
ps = CUTEst.select(max_var=300, min_con=1, max_con=300, objtype=2:6)
#ps = CUTEst.select(max_var=2, min_con=1, max_con=2, objtype=2:6)
problems = (CUTEstModel(p) for p in ps)
View exemplo1.jl
using QuiverMutation
function exemplo1()
lt = Lattice(2, 4)
P = [(3,2), (2,2), (1,2), (1,1), (2,1)]
plot_lattice(lt, title="Inicial", filename="quiver-0")
for (i,p) in enumerate(P)
lt = activate(lt, p[1], p[2])
View filter.md
name nvar ncon status objective elapsed_time neval_obj dual_feas primal_feas
HS7 2 1 first_order -1.7e+00 1.2e-01 33 1.3e-06 7.5e-24
MARATOS 2 1 first_order -1.0e+00 2.4e+00 651 1.1e-06 1.2e-32
HS6 2 1 first_order 8.0e-19 2.3e-02 6 1.8e-09 1.2e-30
HS10 2 1 first_order -1.0e+00 6.5e-01 88 1.3e-06 2.5e-09
HS8 2 2 first_order -1.0e+00 5.1e-03 3 0.0e+00 4.7e-24
View lops.jl
# put in file lops.jl
# LinearOperator and hcat precompilation problem
using LinearOperators
using Profile
function foo()
N = 15; n = 5
lops = [ LinearOperator(randn(n,n)) for i=1:N ]
#C = hvcat(ntuple(x -> N, N), lops...)
View lops.jl
# put in file lops.jl
# LinearOperator and hcat precompilation problem
using LinearOperators
using Profile
function foo()
N = 15; n = 5
lops = [ LinearOperator(randn(n,n)) for i=1:N ]
#C = hvcat(ntuple(x -> N, N), lops...)
View profile
12.589108 seconds (956.13 k allocations: 46.069 MiB, 0.08% gc time)
0.000016 seconds (58 allocations: 11.453 KiB)
9669 ./client.jl:464; _start()
9669 ./client.jl:295; exec_options(::Base.JLOptions)
9669 ./Base.jl:31; include(::Module, ::String)
9669 ./loading.jl:1094; include_relative(::Module, ::St...
9669 ./boot.jl:328; include
113 ...mpiler/typeinfer.jl:599; typeinf_ext(::Core.MethodInstan...
113 ...mpiler/typeinfer.jl:568; typeinf_ext(::Core.MethodInstan...
107 ...mpiler/typeinfer.jl:12; typeinf(::Core.Compiler.Inferen...
@abelsiqueira
abelsiqueira / # open-mpi - 2018-10-05_07-52-32.txt
Created Oct 5, 2018
open-mpi on 4.18.5-arch1-1-ARCH - Homebrew build logs
View # open-mpi - 2018-10-05_07-52-32.txt
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 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