Open xiru3kfa opened 6 years ago
It looks like your inputs to create_lineups are off and the solver can't work with the data. It's really hard to tell though. Try looking at your inputs before they go into create_lineups() and make sure that they are as they should be.
Can anyone help me with this error? Full text below, and Line 44 string beneath:
ERROR LANGUAGE
LoadError: DimensionMismatch("mismatch in dimension 1 (expected 1 got 671)") Stacktrace: [1] _cs(::Int64, ::Bool, ::Int64, ::Int64) at ./abstractarray.jl:1193 [2] _cshp at ./abstractarray.jl:1189 [inlined] [3] cat_shape(::Tuple{Bool,Bool}, ::Tuple{Int64,Int64}, ::Tuple{Int64}) at ./abstractarray.jl:1170 (repeats 2 times) [4] cat_t(::Type{T} where T, ::Type{T} where T, ::Void, ::Vararg{Any,N} where N) at ./abstractarray.jl:1203 [5] hcat(::Void, ::Array{Int64,1}) at ./abstractarray.jl:1301 [6] create_lineups(::Int64, ::Int64, ::Int64, ::#baseball_formulation, ::String, ::String, ::String) at /Users/NAME/Desktop/GitHub_MLB_Code/data_cleaning.jl:439 [7] include_from_node1(::String) at ./loading.jl:576 [8] include(::String) at ./sysimg.jl:14 while loading /Users/NAME/Desktop/GitHub_MLB_Code/optimize_multiple_lineups_baseball.jl, in expression starting on line 44
Line 44 string: