-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from rafaelmartinelli/new-loader
New Loader
- Loading branch information
Showing
61 changed files
with
428 additions
and
122 deletions.
There are no files selected for viewing
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
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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,32 @@ | ||
module FacilityLocationProblems | ||
|
||
export loadFacilityLocationProblem, FacilityLocationProblem | ||
export loadPMedianProblem, PMedianProblem | ||
export loadMaximumCoverageProblem, MaximumCoverageProblem | ||
export loadFacilityLocationProblem, FacilityLocationProblem, getFacilityLocationInstances | ||
export loadPMedianProblem, PMedianProblem, getPMedianInstances | ||
export loadMaximumCoverageProblem, MaximumCoverageProblem, getMaximumCoverageInstances | ||
export nf, nc | ||
|
||
const data_path = joinpath(pkgdir(FacilityLocationProblems), "data") | ||
|
||
const orlib_url = "http://people.brunel.ac.uk/~mastjjb/jeb/orlib/files/" | ||
|
||
using Distances | ||
using Downloads | ||
using ZipFile | ||
using Printf | ||
|
||
include("util/Download.jl") | ||
include("util/Bounds.jl") | ||
|
||
include("facility-location/Instances.jl") | ||
include("facility-location/Data.jl") | ||
include("facility-location/Loader.jl") | ||
|
||
include("maximum-coverage/Data.jl") | ||
include("maximum-coverage/Loader.jl") | ||
|
||
include("p-median/Instances.jl") | ||
include("p-median/Data.jl") | ||
include("p-median/Loader.jl") | ||
|
||
include("Util.jl") | ||
include("maximum-coverage/Instances.jl") | ||
include("maximum-coverage/Data.jl") | ||
include("maximum-coverage/Loader.jl") | ||
|
||
end |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
@enum FacilityLocationInstances begin | ||
cap41 | ||
cap42 | ||
cap43 | ||
cap44 | ||
cap51 | ||
cap61 | ||
cap62 | ||
cap63 | ||
cap64 | ||
cap71 | ||
cap72 | ||
cap73 | ||
cap74 | ||
cap81 | ||
cap82 | ||
cap83 | ||
cap84 | ||
cap91 | ||
cap92 | ||
cap93 | ||
cap94 | ||
cap101 | ||
cap102 | ||
cap103 | ||
cap104 | ||
cap111 | ||
cap112 | ||
cap113 | ||
cap114 | ||
cap121 | ||
cap122 | ||
cap123 | ||
cap124 | ||
cap131 | ||
cap132 | ||
cap133 | ||
cap134 | ||
capa | ||
capb | ||
capc | ||
end | ||
|
||
for inst in instances(FacilityLocationInstances) | ||
@eval export $(Symbol(inst)) | ||
end | ||
|
||
function getFacilityLocationInstances() | ||
return [ Symbol(inst) for inst in instances(FacilityLocationInstances) ] | ||
end |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
function getMaximumCoverageInstances() | ||
return [ Symbol(inst) for inst in instances(PMedianInstances) ] | ||
end |
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
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
Oops, something went wrong.