Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图解决一个优化问题,其中一个约束是:x*y=0,其中 x 和 y 是决策变量,只有 x 或 y 可以是正数。换句话说,如果 x!=0 则 y=0,如果 y!=0 则 x=0。请帮忙
假设:x并且y是非负的
x
y
推断上限UB_x和UB_y对于x,y
UB_x
UB_y
引入新的布尔变量b
b
添加约束:
x <= (1-b) * UB_x y <= b * UB_y