photo

Haydar El Fouany


Last seen: 2 mesi fa Attivo dal 2024

Followers: 0   Following: 0

Statistica

Feeds

Visto da

Domanda


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

4 mesi fa | 1 risposta | 0

1

risposta

Domanda


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

4 mesi fa | 1 risposta | 0

1

risposta