Skip to content

Commit

Permalink
Julia 0.5 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsiqueira committed Oct 3, 2016
1 parent dc1d1c9 commit 423bc2d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/classification.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import JSON

# Some enumerations and correspondance dicts
const objtypes = ["none", "constant", "linear", "quadratic", "sum_of_squares", "other"]
const classdb_objtype = [x=>objtypes[i] for (i,x) in enumerate("NCLQSO")]
const classdb_objtype = Dict(x=>objtypes[i] for (i,x) in enumerate("NCLQSO"))

const contypes = ["unc", "fixed_vars", "bounds", "network", "linear", "quadratic", "general"]
const classdb_contype = [x=>contypes[i] for (i,x) in enumerate("UXBNLQO")]
const classdb_contype = Dict(x=>contypes[i] for (i,x) in enumerate("UXBNLQO"))

const origins = ["academic", "modelling", "real"]
const classdb_origin = [x=>origins[i] for (i,x) in enumerate("AMR")]
const classdb_origin = Dict(x=>origins[i] for (i,x) in enumerate("AMR"))

"""`create_class()`
Expand Down
1 change: 1 addition & 0 deletions test/REQUIRE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Combinatorics
FactCheck
MathProgBase
Ipopt
Expand Down
2 changes: 2 additions & 0 deletions test/test_select.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using Combinatorics

small_problem = "HS4"
large_problem = "AUG3D"
unc_problem = "BARD"
Expand Down

0 comments on commit 423bc2d

Please sign in to comment.