Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| home_test_julia [2017/02/07 08:35] – antonello | home_test_julia [2025/07/01 13:57] (current) – antonello | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | not in code | + | Run, only once, the following |
| <code julia> | <code julia> | ||
| - | #= | + | Pkg.update() |
| - | test | + | Pkg.add(" |
| - | #= | + | Pkg.add(" |
| + | Pkg.add(" | ||
| + | Pkg.add(" | ||
| + | </ | ||
| - | # | ||
| - | # | ||
| - | #This problem finds a least cost shipping schedule that meets | ||
| - | # | ||
| - | |||
| - | a = [" | ||
| + | <code julia> | ||
| + | # Import of the JuMP and DataFrames modules (the latter one just to import the data from a header-based table, as in the original trasnport example in GAMS | ||
| + | using JuMP, DataFrames | ||
| </ | </ | ||
| - | ~~NOCACHE~~ | + | <code julia> |
| + | # Define sets # | ||
| + | # Sets | ||
| + | # | ||
| + | # | ||
| + | plants | ||
| + | markets = [" | ||
| + | </ | ||
| + | {{: | ||
