Giter VIP home page Giter VIP logo

mathoptpresolve.jl's People

Contributors

anhtu07 avatar blegat avatar bochuanbob avatar joehuchette avatar mtanneau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mathoptpresolve.jl's Issues

Upgrade legacy code for continuous models

Current progress on upgrading legacy code to the new convention (i.e., rules, reductions and apply!-based syntax).

  • Empty row (#13)
  • Row singleton
  • Forcing/Dominated row
  • Fixed variable (#7)
  • Empty column (#18)
  • Free column singleton
  • Dominated column

It would be nice to support QP problems as well.

MIP presolve reductions roadmap

Coarse roadmap towards implementing the reductions described in this paper (which is, AFAIK, the most comprehensive and recent paper on the subject).

The table below follows the paper's structure, namely:
3. Individual row reduction
4. Individual variable reduction
5. Multiple row reductions
6. Multiple variable reductions
7. Full-problem reduction

The second and third columns indicate whether each reduction is applicable to LP/MIP models (see detailed legend below)

Reduction LP MIP Current progress
3.1 Redundant constraints ✔️ ✔️ LP:🚧 📝; MIP: 🙅
3.2 Bound strengthening ✔️ ✔️ LP:🚧 📝; MIP: 🙅
3.3 Coefficient strengthening ✔️ 🟢 #14
3.4 C-G strengthening ✔️ 🙅
3.5 Euclidean and modular inverse ✔️ 🙅
3.6 Single-row probing ✔️ 🙅
3.7 SOS reductions ✔️ 🙅
4.1 Fixed variables ✔️ ✔️ 🟢 #7
4.2 Rounding integer bounds ✔️ 🚧 #8
4.3 Strengthen SC/SI bounds ✔️ 🙅
4.4 Dual fixing ✔️ ✔️ 🙅
4.5 Implied-free variables ✔️ ✔️ LP:🚧 📝; MIP: 🙅
5.1 Redundancy detection ✔️ ✔️ 🙅
5.2. Parallel rows ✔️ ✔️ 🙅
5.3 Non-zero cancellation ✔️ ✔️ 🙅
5.4 (multi-row) bound strengthening ✔️ ✔️ 🙅
5.5 Clique merging ✔️ 🙅
6.1 Dual fixing extension ✔️ 🙅
6.2 Redundant penalty variables ✔️ ✔️ 🙅
6.3 Parallel columns ✔️ ✔️ 🙅
6.4 Dominated columns ✔️ ✔️ 🙅
7.1 Symmetric variables ✔️ 🙅
7.2 Probing ✔️ 🙅
7.3 Disconnected components ✔️ ✔️ 🙅
7.4 Almost disconnected components ✔️ ✔️ 🙅
7.5 Complementary slackness ✔️ 🙅
7.6 Implied integer ✔️ 🙅

Legend:

  • ✔️/ ❌: applicable / not applicable
  • Current progress:
    • 🙅: not implemented
    • 🚧 : basic implementation
    • 📝 : documentation needed
    • 👷 : in progress
    • 🟢: done

cc @joehuchette @BochuanBob

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

⚠️ arithmetic operations with Inf

If we want to be able to use Multifloats.jl, we need to be careful about arithmetic operations with Inf.
Our current implementation relies on conventions like Inf + 1 == Inf and -1 * Inf == -Inf, from which Multifloats.jl deviates.
After taking a quick glance, it shouldn't be too hard for us to add manual checks to avoid arithmetic operations with Inf when possible.

Pointers: here and here.

We can also add Float64x2 to the tests.

Separate presolve routines for LP / MIP?

The question of how MIP reductions (resp. LP reductions) should handle continuous (resp integer) variables has come up a few times now.

It might make sense to fully separate LP reductions from MIP reductions (incidentally, we already have src/lp and src/mip), at least for now.
We can still have a "meta-main" presolve! function that would check whether a problem is LP/MIP and call the appropriate LP/MIP-specific "main" presolve. Data structures like ProblemData and style conventions can also be shared.

Pros:

  • No need to ensure that each reduction handles LP/MIP models satisfactorily
  • MIP presolve can completely ignore dual reductions & dual presolve
  • Future MIP-specific data structures (e.g. clique tables) can be added directly

Cons:

  • We'll inevitably end up with some duplicate code

@joehuchette what do you think?

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.