Skip to content

FileFormats.LP reader is broken #1786

Closed
@MarieJC

Description

@MarieJC

The original .lp being written into Julia is perfectly feasible.
The following code lines in Julia produce infeasible solution

    model = read_from_file(probPath)  #probPath is a path to .lp 
    set_optimizer(model, ()->Xpress.Optimizer(DEFAULTALG = 2, PRESOLVE = 1, logfile = "lp.log"))
    optimize!(model)

I‘ve tried various options for the Optimizer.
I’ve also written the model back from Julia into an .lp. Compared with original .lp and found diffs in constraint rows. The .lp from Julia is also infeasible with IVE.

And then attempt to enforce model in LP format – produces the model that is incompatible with set_optimizer method:

model = MOI.FileFormats.Model(format = MOI.FileFormats.FORMAT_LP)
MOI.read_from_file(model, probPath)
set_optimizer(.) – given that model doesn’t work.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions