Giter Club home page Giter Club logo

Comments (3)

mtanneau avatar mtanneau commented on June 4, 2024

entries in subsequent sections that correspond to unregistered rows should be ignored, not raise an error

Currently, this case is not explicitly handled, however, a KeyError will be raised, e.g., here, when a row is encountered whose name has not been seen before.

from qpsreader.jl.

dpo avatar dpo commented on June 4, 2024

I don't have very strong feelings here but I'm in favor of an implementation that does not silently ignore data.

If we don't currently accept multiple objectives, I'm in favor of throwing an error when multiple objectives are defined, and possibly allowing an option (defaulting to false) that, when set to true, would cause subsequent objectives to be ignored.

Another possibility is to use logging to warn the user that objective rows (or right-hand sides) were ignored.

Summing duplicate coefficients seems reasonable. Again, a warning could be issued if we find any.

Duplicate entries in RHS, BOUNDS, RANGES sections over-write previous entries.

Again I would prefer to raise an error and ask to user to explicitly set an option if they know what they're doing.

It would be good to have a list of MPS files that we currently can't handle and the reason why we can't handle them. We could tick off boxes as we make progress.

from qpsreader.jl.

mtanneau avatar mtanneau commented on June 4, 2024

Another possibility is to use logging to warn the user that objective rows (or right-hand sides) were ignored.

I would prefer that option over throwing an error if multiple objectives/RHS/bounds/etc. are encountered.

For instance, Mosek displays which objective/RHS/bounds/etc... was selected, with the convention that others are ignored:

Open file 'mps/stat96v1.mps.gz'
Reading started.
Using 'OBJ.FUNC' as objective vector
Read 972414 number of A nonzeros in 0.25 seconds.
Using 'RHS' as rhs vector
Using 'BOUNDS' as bound vector
Reading terminated. Time: 0.25

(from this logfile in Hans Mittelmann's benchmark).

from qpsreader.jl.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.