-
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.
Model: Objective function and plant constraints
- Loading branch information
Showing
10 changed files
with
273 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ authors = ["Alinson S. Xavier <[email protected]>"] | |
version = "0.1.0" | ||
|
||
[deps] | ||
Geodesy = "0ef565a4-170c-5f04-8de2-149903a85f3d" | ||
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6" | ||
JuMP = "4076af6c-e467-56ae-b986-b466b2749572" | ||
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d" | ||
|
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,11 @@ | ||
# RELOG: Reverse Logistics Optimization | ||
# Copyright (C) 2020, UChicago Argonne, LLC. All rights reserved. | ||
# Released under the modified BSD license. See COPYING.md for more details. | ||
|
||
using Geodesy | ||
|
||
function _calculate_distance(source_lat, source_lon, dest_lat, dest_lon)::Float64 | ||
x = LLA(source_lat, source_lon, 0.0) | ||
y = LLA(dest_lat, dest_lon, 0.0) | ||
return round(euclidean_distance(x, y) / 1000.0, digits = 3) | ||
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
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.