LazyConstraint based MIP yields incorrect optimum
まだ誰も着手していません。
評価
調査の方向性
添付された lazy-minimal-example.py.txt から始め、その complete-model、lazy-constraint、lazy-constraint-generator の実行結果を実行ログと比較します。CBC を使用した Python-MIP の lazy constraint 処理を追跡します。両方の lazy バリアントが complete model と同じ最適値を生成し、それを正しく報告すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
Solving a MIP with lazy constraints yields a sub optimal solution. Yet, the solver reports the solution to be optimal.
My assumption is that adding all constraints (a) up-front, (b) as lazy constraints, or (c) using a lazy constraint generator should not affect the optimal of the solution. Is this assumption incorrect?
To Reproduce
A minimal example with 1 continuous variable (the objective), 4 integer variables, and 2 constraint is provided.
The problem is solved three times: (a) complete model, (b) lazy constraints, (c) using lazy constraint generator.
Solving the complete model yields the true optimal solution. Both lazy variants provide a sub-optimal solution.
Variant (c) shows that both constraints are generated and added to the model in the first call to the lazy constraint generator.
Expected behavior
Using (generated) lazy constraints should yield the same optimum as solving the complete model with all constraint provided up front.
Desktop (please complete the following information):
- Operating System, version: macOS Monterey 12.4 (M1)
- Python version: 3.9.6
- Python-MIP version (we recommend you to test with the latest version): 1.14.2
- CBC built from coin-or/cbc/0713c30b8e5e2b2a8e1b804ee9d98087fc524530 (23.Nov 2022)
Example Program and Execution Log:
lazy-minimal-example.py.txt
lazy-minimal-example.log
- 主要言語
- Linear Programming
- スター
- 605
- フォーク
- 108
- 平均マージ
- 1日 22分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coin-or/python-mip のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
coin-or/python-mip#426 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
coin-or/python-mip#425 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
coin-or/python-mip#423 · コメント 4 件 · リアクション 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
coin-or/python-mip#422 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
coin-or/python-mip#420 · コメント 4 件 ·
coin-or/python-mip の issue をすべて見る
似ている issue
-
C-bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
rust-lang/rust-analyzer#23501 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
feedback simulation workshop
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
githubnext/gh-aw-workshop#4455 ·
メンテナーはふだん 1 日以内に返信
-
status: needs triage type: enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
haskell/haskell-language-server#5128 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
int128/typescript-action#1575 ·
メンテナーはふだん 1 日以内に返信