Skip to main content

LPFICS Lib to find incompatible constraints set in Linear Problems

LPFICS Idea

Objective: This project aims to enable to find ONE incompatible constraint set if a model is considered infeasible once resolved. Note that it MAY NOT be the ONLY ONE set of constraints making your problem infeasible.

This project is based on PuLP (https://github.com/coin-or/pulp) a LP modeler written in Python. PuLP integrates the solver CBC. This solution works with CBC, and GLPK solvers but does not work with Gurobi (as the output is always NotSolved and not Infeasible if the problem is overconstrainted).

Here is a simplified explaination: If a problem is overconstrainted, the problem will:

  • test to solve the problem with the first half of the constraints
    • if there is no solution it continues taking the first half (of the half) of the constraints
    • if there is a solution, it will test the other half
      • if the second half has no solution it will continue dividing the second half set of constraints to test it
      • if the second half has a solution it will rearrange the constraints and test again

References

The methodology (quickXplain) on which the program is based is described, discussed and modeled on the following references:

Junker, Ulrich. 2004. « QUICKXPLAIN: Preferred Explanations and Relaxations for Over-Constrained Problems », In: AAAI-04. San Jose. https://www.aaai .org/Papers/AAAI/2004/AAAI04-027.pdf

Morriet, Lou, Benoit Delinchant, Gilles Debizet, Frédéric Wurtz. 2020. « Algorithme d identification de contraintes incompatibles pour les problemes d optimisation : application à un projet energetique ». In: soumis à IBPSA 2020.

Rodler, Patrick. 2020. « Understanding the QuickXPlain Algorithm: Simple Explanation and Formal Proof ». ArXiv:2001.01835, janvier. http://arxiv .org/abs/2001.01835.

Verger, Guillaume, 2016. Ruby-Cbc [Logiciel]. Ruby. In : Github. Consulte le 15 novembre 2020, https://github.com/gverger/ruby-cbc.

Installation Help

Please install LPFICS Lib with pip using the command prompt and type:

pip install git+https://gricad-gitlab.univ-grenoble-alpes.fr/omegalpes/lpfics.git

Please ask omegalpes-users@groupes.renater.fr if you are struggling during your installation

Library Installation Requirements

PuLP > 1.6.10

Copyright

This project contains a derivative work based on https://github.com/gverger/ruby-cbc. Project ruby-cbc is released under the MIT license, Copyright 2016 Guillaume Verger. Modifications Copyright 2019 G2Elab / MAGE See the LICENSE file for copyright information.

Main Authors:

Guillaume VERGER

Lou MORRIET

Partners:

Univ. Grenoble Alpes, CNRS, Grenoble INP, G2Elab, CEA, Université Paris-Sud

Acknowledgments:

This work has been partially supported by the CDP Eco-SESA receiving fund from the French National Research Agency in the framework of the "Investissements d’avenir" program (ANR-15-IDEX-02), by the ADEME, the French Agency for Environment and Energy Management, with the RETHINE project and by the Region Auvergne Rhône Alpes with the project OREBE.

Metadata

Release files for lpfics 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lpfics 0.0.1
File Size Uploaded
LPFICS-0.0.1.tar.gz 7.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for lpfics 0.0.1
File Interpreter ABI Platform
lpfics-0.0.1-py3-none-any.whl Python 3 none any Details
LPFICS-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 30.0 kB

Release files / LPFICS-0.0.1.tar.gz

Download URL LPFICS-0.0.1.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bbfaee428fd947a539986e2c312efc8bc2d790f93add04c74b1745da33400cfb
BLAKE2b-256 checksum
How to use checksums
e8f76c9dbd36cd502518825358b6796bb00fd4aa76cf20820207d85a39109577
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.0

Release files / lpfics-0.0.1-py3-none-any.whl

Download URL lpfics-0.0.1-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88d233aca21054821da56c477043b062ff16fa2afe6a6818ce4a97272eb0baf1
BLAKE2b-256 checksum
How to use checksums
23e4017cfffe213ab81bd15980ec09abae54acc0decec204854f1b5f83b4bfc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.0

Release files / LPFICS-0.0.1-py3-none-any.whl

Download URL LPFICS-0.0.1-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01ae82b51bebe764171e2fd3e27e39ceb18b9e92add3b78e606fd4e18b7c52cb
BLAKE2b-256 checksum
How to use checksums
ee865e26a56f445831313fbe0d8102d6e744494f9be97984886be30330df8b75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.0

Release history Release notifications | RSS feed

This release

0.0.1 This release

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page