This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==26500== Memcheck, a memory error detector | |
==26500== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. | |
==26500== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info | |
==26500== Command: julia --project=/home/rs/.julia/environments/scip /home/rs/.julia/dev/SCIP/test/runtests.jl | |
==26500== | |
==26500== Syscall param msync(start) points to unaddressable byte(s) | |
==26500== at 0x59C479D: ??? (syscall-template.S:84) | |
==26500== by 0x4FDB6B7: msync_validate (in /home/rs/opt/julia-1.1.0/lib/libjulia.so.1.1) | |
==26500== by 0x4FDB7E5: validate_mem (in /home/rs/opt/julia-1.1.0/lib/libjulia.so.1.1) | |
==26500== by 0x4FDB920: access_mem (in /home/rs/opt/julia-1.1.0/lib/libjulia.so.1.1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rs@t440p:~ [16:38:07] | |
$ julia --project=/home/rs/.julia/environments/scip ~/.julia/dev/SCIP/test/runtests.jl | |
linear expressions: Test Failed at /home/rs/.julia/dev/SCIP/test/MOI_nonlinear_exprs.jl:49 | |
Expression: MOI.get(optimizer, MOI.TerminationStatus()) == MOI.OPTIMAL | |
Evaluated: DUAL_INFEASIBLE::TerminationStatusCode = 3 == OPTIMAL::TerminationStatusCode = 1 | |
Stacktrace: | |
[1] top-level scope at /home/rs/.julia/dev/SCIP/test/MOI_nonlinear_exprs.jl:49 | |
[2] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Test/src/Test.jl:1083 | |
[3] top-level scope at /home/rs/.julia/dev/SCIP/test/MOI_nonlinear_exprs.jl:20 | |
linear expressions: Test Failed at /home/rs/.julia/dev/SCIP/test/MOI_nonlinear_exprs.jl:53 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "scip/scip.h" | |
#include "scip/scipdefplugins.h" | |
// compile with: | |
// gcc -lscip del_var.c -o del_var | |
int main() { | |
SCIP* scip; | |
SCIP_CALL(SCIPcreate(&scip)); | |
SCIP_CALL(SCIPincludeDefaultPlugins(scip)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Pkg | |
import Pkg.TOML | |
const STDLIB_DIR = "/home/rs/opt/julia-1.0.2/share/julia/stdlib/v1.0" | |
const STDLIBS = readdir(STDLIB_DIR) | |
println("digraph stdlib {") | |
for (i, stdlib) in enumerate(STDLIBS) | |
proj = Pkg.TOML.parsefile(joinpath(STDLIB_DIR, stdlib, "Project.toml")) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Generating static HTML using Clojure macros | |
;; It is possible to write a DSL in Clojure that generates HTML markup without the need to write a separate parser and compiler (e.g. HAML). | |
;; Our aim here would be to write code that converts the following Clojure code into the HTML below it | |
;; (html | |
;; (head) | |
;; (body | |
;; (h1 "An example") |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run once to warm up. | |
force garbage collection. | |
run once to warm up (again). | |
force garbage collection. | |
-- calling CSIPfreeModel -- 0 mem used | |
run 3x | |
force garbage collection. | |
-- calling CSIPfreeModel -- 0 mem used | |
-- calling CSIPfreeModel -- 19043000 mem used | |
-- calling CSIPfreeModel -- 9521500 mem used |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using JuMP | |
using Cbc | |
using SCIP | |
function leaky(solver, d) | |
m = Model(solver=solver) | |
@variable(m, x[1:d] >= 0) | |
solve(m) | |
end |