Skip to content

Commit

Permalink
Merge ceeabb7 into 7e926c6
Browse files Browse the repository at this point in the history
  • Loading branch information
ericphanson committed Dec 5, 2019
2 parents 7e926c6 + ceeabb7 commit ffb9e1a
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/examples_literate/mixed_integer/n_queens.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# # N queens

using Convex, GLPK, LinearAlgebra, SparseArrays, Test
aux(str) = joinpath(@__DIR__, "aux", str) # path to auxiliary files
aux(str) = joinpath(@__DIR__, "aux_files", str) # path to auxiliary files
include(aux("antidiag.jl"))

n = 8
Expand Down
2 changes: 1 addition & 1 deletion docs/examples_literate/mixed_integer/section_allocation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# student $i$ is assigned to section $j$ and $0$ otherwise.

using Convex, GLPK
aux(str) = joinpath(@__DIR__, "aux", str) # path to auxiliary files
aux(str) = joinpath(@__DIR__, "aux_files", str) # path to auxiliary files

# Load our preference matrix, `P`
include(aux("data.jl"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Convex, SCS
using Test
using MAT #Pkg.add("MAT")
aux(str) = joinpath(@__DIR__, "aux", str) # path to auxiliary files
aux(str) = joinpath(@__DIR__, "aux_files", str) # path to auxiliary files

TOL = 1e-2;
input = matopen(aux("Data.mat"))
Expand Down
2 changes: 1 addition & 1 deletion docs/examples_literate/time_series/time_series.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# A time series is a sequence of data points, each associated with a time. In our example, we will work with a time series of daily temperatures in the city of Melbourne, Australia over a period of a few years. Let $x$ be the vector of the time series, and $x_i$ denote the temperature in Melbourne on day $i$. Here is a picture of the time series:

using Plots, Convex, ECOS, DelimitedFiles
aux(str) = joinpath(@__DIR__, "aux", str) # path to auxiliary files
aux(str) = joinpath(@__DIR__, "aux_files", str) # path to auxiliary files

temps = readdlm(aux("melbourne_temps.txt"), ',')
n = size(temps, 1)
Expand Down
2 changes: 1 addition & 1 deletion docs/examples_literate/tomography/tomography.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# This is simply an unconstrained least squares problem; something we can readily solve!

using Convex, ECOS, DelimitedFiles, SparseArrays
aux(str) = joinpath(@__DIR__, "aux", str) # path to auxiliary files
aux(str) = joinpath(@__DIR__, "aux_files", str) # path to auxiliary files
line_mat_x = readdlm(aux("tux_sparse_x.txt"))
summary(line_mat_x)

Expand Down

0 comments on commit ffb9e1a

Please sign in to comment.