Debugging infeasible models

Open
#970 0 comments 0 reactions 1 assignee View on GitHub

@johanlofberg is already working on this.

Since Aug 20, 2021.

Assessment

This issue has not been assessed yet.

Description

module:core
Discussed in https://github.com/yalmip/YALMIP/discussions/969

Originally posted by zoharl3 August 20, 2021
There's this comprehensive page:

https://yalmip.github.io/debugginginfeasible

Usually, that's what I do more or less.

I just wanted to point out that it's possible to write a general tool to find the problematic constraint given a problem:

  • Change the objective to 1.
  • Run the problem with all possibilities of constraints turned on and off. Offer also a faster option that turns on constraints inclemently and reports the first failure.
  • Maybe name the constraints automatically as the line number in code.
Dominant language
MATLAB
Stars
569
Forks
150
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from yalmip/YALMIP

All issues in yalmip/YALMIP

Similar issues

More MATLAB issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.