Skip to content

Commit

Permalink
Support 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ericphanson committed Nov 6, 2019
1 parent 3d79025 commit e4ba9a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion examples/literate/general_examples/robust_approx_fitting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
# (reduces to minimizing $\max\{\|(A-B)x - b\|_2, \|(A+B)x - b\|_2\}$ ).
#
using Convex, LinearAlgebra, SCS

if VERSION < v"1.2.0-DEV.0"
LinearAlgebra.diagm(v::AbstractVector) = diagm(0 => v)
end
# Input Data
m = 20;
n = 10;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ square(x) <= sum(y)

M = Z
for i = 1:length(y)
global M += rand(size(Z))*y[i]
global M += rand(size(Z)...)*y[i]
end
M 0

Expand Down

0 comments on commit e4ba9a2

Please sign in to comment.