You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Conversion from SpaseMatrixCSC to Matrix fails if the eltype is VariableRef since it calls zeros(::VariableRef, ...) which tries to store zero(::VariableRef) (of type AffExpr) into a matrix of VariableRef.
m =Model()
@variable m x
S =sparse([1, 2], [1, 2], [x, x])
Matrix(S) # fails
The text was updated successfully, but these errors were encountered:
Conversion from SpaseMatrixCSC to Matrix fails if the
eltype
isVariableRef
since it callszeros(::VariableRef, ...)
which tries to storezero(::VariableRef)
(of typeAffExpr
) into a matrix ofVariableRef
.The text was updated successfully, but these errors were encountered: