Skip to content

[FileFormats.LP] I promised it was the last one but... #2058

@matbesancon

Description

@matbesancon
julia> instance = "/nfs/optimi/kombadon/MINLP/instances/qplib/lp/QPLIB_9008.lp.gz"

julia> o = MOI.Utilities.Model{Float64}()

julia> MOI.read_from_file(o, instance)
ERROR: zlib error: <no message> (code: -5)
Stacktrace:
  [1] changemode!(stream::TranscodingStreams.TranscodingStream{CodecZlib.GzipDecompressor, IOStream}, newmode::Symbol)
    @ TranscodingStreams /scratch/opt/mbesanco/.julia/packages/TranscodingStreams/DYpJd/src/stream.jl:732
  [2] callprocess(stream::TranscodingStreams.TranscodingStream{CodecZlib.GzipDecompressor, IOStream}, inbuf::TranscodingStreams.Buffer, outbuf::TranscodingStreams.Buffer)
    @ TranscodingStreams /scratch/opt/mbesanco/.julia/packages/TranscodingStreams/DYpJd/src/stream.jl:658
  [3] fillbuffer(stream::TranscodingStreams.TranscodingStream{CodecZlib.GzipDecompressor, IOStream}; eager::Bool)
    @ TranscodingStreams /scratch/opt/mbesanco/.julia/packages/TranscodingStreams/DYpJd/src/stream.jl:586
  [4] fillbuffer
    @ /scratch/opt/mbesanco/.julia/packages/TranscodingStreams/DYpJd/src/stream.jl:573 [inlined]
  [5] eof(stream::TranscodingStreams.TranscodingStream{CodecZlib.GzipDecompressor, IOStream})
    @ TranscodingStreams /scratch/opt/mbesanco/.julia/packages/TranscodingStreams/DYpJd/src/stream.jl:191
  [6] eof(stream::TranscodingStreams.TranscodingStream{CodecZlib.GzipDecompressor, IOStream})
    @ TranscodingStreams /scratch/opt/mbesanco/.julia/packages/TranscodingStreams/DYpJd/src/stream.jl:189
  [7] _readline
    @ /scratch/opt/mbesanco/.julia/dev/MathOptInterface/src/FileFormats/LP/LP.jl:975 [inlined]
  [8] read!(io::TranscodingStreams.TranscodingStream{CodecZlib.GzipDecompressor, IOStream}, model::MathOptInterface.Utilities.GenericModel{Float64, MathOptInterface.Utilities.ObjectiveContainer{Float64}, MathOptInterface.Utilities.VariablesContainer{Float64}, MathOptInterface.FileFormats.LP.ModelFunctionConstraints{Float64}})
    @ MathOptInterface.FileFormats.LP /scratch/opt/mbesanco/.julia/dev/MathOptInterface/src/FileFormats/LP/LP.jl:952
  [9] #11
    @ /scratch/opt/mbesanco/.julia/dev/MathOptInterface/src/FileFormats/FileFormats.jl:121 [inlined]
 [10] open(::MathOptInterface.FileFormats.var"#11#12"{MathOptInterface.Utilities.GenericModel{Float64, MathOptInterface.Utilities.ObjectiveContainer{Float64}, MathOptInterface.Utilities.VariablesContainer{Float64}, MathOptInterface.FileFormats.LP.ModelFunctionConstraints{Float64}}}, ::Type{TranscodingStreams.TranscodingStream{CodecZlib.GzipDecompressor, S} where S<:IO}, ::String, ::String)
    @ TranscodingStreams /scratch/opt/mbesanco/.julia/packages/TranscodingStreams/DYpJd/src/stream.jl:164
 [11] compressed_open(f::Function, filename::String, mode::String, #unused#::MathOptInterface.FileFormats.Gzip)
    @ MathOptInterface.FileFormats /scratch/opt/mbesanco/.julia/dev/MathOptInterface/src/FileFormats/utils.jl:224
 [12] compressed_open(f::Function, filename::String, mode::String, #unused#::MathOptInterface.FileFormats.AutomaticCompression)
    @ MathOptInterface.FileFormats /scratch/opt/mbesanco/.julia/dev/MathOptInterface/src/FileFormats/utils.jl:251
 [13] read_from_file(model::MathOptInterface.Utilities.GenericModel{Float64, MathOptInterface.Utilities.ObjectiveContainer{Float64}, MathOptInterface.Utilities.VariablesContainer{Float64}, MathOptInterface.FileFormats.LP.ModelFunctionConstraints{Float64}}, filename::String)
    @ MathOptInterface.FileFormats /scratch/opt/mbesanco/.julia/dev/MathOptInterface/src/FileFormats/FileFormats.jl:120
 [14] read_from_file(model::MathOptInterface.Utilities.Model{Float64}, filename::String)
    @ MathOptInterface /scratch/opt/mbesanco/.julia/dev/MathOptInterface/src/MathOptInterface.jl:152
 [15] top-level scope
    @ REPL[14]:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions