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
# According to http://plato.asu.edu/ftp/sdpa_format.txt,
374
372
# additional text after the number of blocks should be ignored.
375
-
num_blocks =parse(Int, split(line)[1])
373
+
num_blocks =parse(Int, first(_split(line)))
376
374
elseif!block_sets_read
377
375
ifisempty(line) &&!iszero(num_blocks)
378
376
continue
379
377
end
380
-
block_sets =_parse_dimensions(line)
378
+
block_sets =_dim_to_set.(_split(line))
381
379
block_sets_read =true
382
380
iflength(block_sets) != num_blocks
383
381
error(
@@ -399,7 +397,7 @@ function Base.read!(io::IO, model::Model{T}) where {T<:Real}
399
397
continue
400
398
end
401
399
objective_read =true
402
-
c =parse.(T, split(line))
400
+
c =parse.(T, _split(line))
403
401
iflength(c) != num_vars
404
402
error(
405
403
"The number of variables ($num_vars) does not match the length of the list of coefficients for the objective function vector of coefficients ($(length(c))).",
@@ -416,7 +414,7 @@ function Base.read!(io::IO, model::Model{T}) where {T<:Real}
416
414
ifisempty(line)
417
415
continue
418
416
end
419
-
values =split(line)
417
+
values =_split(line)
420
418
iflength(values) !=5
421
419
error(
422
420
"Invalid line specifying entry: $line. There are $(length(values)) values instead of 5.",
0 commit comments