![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/26189743_1649332198474_DEF.jpg)
Haydar El Fouany
Followers: 0 Following: 0
Feeds
提问
How to define a binary variable in non linear constraints
if x(1)+x(2)+x(3)> 0 then x(4)= 1 otherwise x(4)=0
5 months 前 | 1 个回答 | 0
1
个回答提问
How to define if/else non linear constraint in an optimization problem
if x(1)+x(2)+x(3)= 0 then x(4)= 0 elseif 0<x(1)+x(2)+x(3)<20 then x(4)=10 elseif 20<x(1)+x(2)+x(3)<60 then x(4)=30
5 months 前 | 1 个回答 | 0