File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -256,12 +256,16 @@ function Base.read!(io::IO, model::Model{T}) where T
256
256
continue
257
257
end
258
258
num_variables_read = true
259
- MOI. add_variables (model, parse (Int, line))
259
+ # According to http://plato.asu.edu/ftp/sdpa_format.txt,
260
+ # additional text after the number of variables should be ignored.
261
+ MOI. add_variables (model, parse (Int, split (line)[1 ]))
260
262
elseif num_blocks === nothing
261
263
if isempty (line)
262
264
continue
263
265
end
264
- num_blocks = parse (Int, line)
266
+ # According to http://plato.asu.edu/ftp/sdpa_format.txt,
267
+ # additional text after the number of blocks should be ignored.
268
+ num_blocks = parse (Int, split (line)[1 ])
265
269
elseif block_sets === nothing
266
270
if isempty (line) && ! iszero (num_blocks)
267
271
continue
You can’t perform that action at this time.
0 commit comments