I am looking for a way to express an "or" option in a system of linear inequalities for a linear program I am working on.
I will explain what I mean precisely: Lets say I have a set of inequalities $eq_1$ to $eq_n$, which must hold. But, additionally, I have several more inequalities $eqa_1,....,eqa_k$ and $eqb_1,...,eqb_k$, that can be partitioned to couples (of the form $\left< eqa_i ,\, eqb_i\right>$ for all $1\leq i \leq k$), such that either $eqa_i$ holds or if it doesn't then $eqb_i$. Nonetheless, it is also possible for both of them to hold. What I am looking for is an option to encode such an "or" condition on a set of inequalities.
Ofcourse, if we say that $eqa_i$ is lets say $f\left(...\right) \leq K$ and $eqb_i$ is $g\left(...\right) \leq M$ I can write $f\left(...\right)+g\left(...\right) \leq K+M$, but this demand is too strong, because in my original problem I may allow $f\left(...\right) > K+M$ (for example) as long as $g\left(...\right) \leq M$, but then $f\left(...\right)+g\left(...\right) > K+M$. So requiring $f\left(...\right)+g\left(...\right) \leq K+M$ is too strong for me.
My question can be divided to 2 questions:
- Is there any idea for a nice trick here or for some sort of a reduction to Linear Programming? (A reduction from an instance in which you have couples of inequalities with an or, to a regular instance of LP)
- Perhaps there exists a software or an online site which allow this kind of "or"? I am using this site: https://online-optimizer.appspot.com/. However, if there are other sites or software which have such a built in option for an "or", it'd be great as well.
If my inequalities are too generic, I know that most of them seem from the form $x_{i_1}+x_{i_2}+x_{i_3} \leq K$, where $K$ is the same $K$ for all the inequalities, and the rest are either $x_{i_1}+x_{i_2} \leq K$ or $x_{i_1}+x_{i_2}+x_{i_3}+x_{i_4} \leq K$.