如何在具有 3 个整数变量的线性规划中定义 'if and only if'

How to define 'if and only if' in linear programming with 3 integer variables

所以有这 3 个整数变量(A、B 和 C)并且我有这个约束:

A can only be used if both B and C are used.

因此,如果使用变量,则等于 1。

知道如何在线性规划中制定此约束吗?谢谢!

如果变量是二进制使用 A <= (B + C) / 2

我认为这种约束的标准形式只是 2 个简单的约束:

A <= B
A <= C