I'm new to gekko and APM, I'm trying to solve a problem but the solution seems to get infeasible with a new equation in a binary variable that should be viable. Here's the simplified APM model:
Model
Variables
int_v1 = 0, >= 0
int_v2 = 0, <= 1, >= 0
v3 = 0
v4 = 0
v5 = 0
v6 = 0
End Variables
Equations
(0+int_v1)>=100
v3=((3.15)*(int_v1))
v4>=((int_v2)*(300))
v5=(0+((int_v1)*(3.15)))
minimize v6
End Equations
Connections
v3 = sum_1.x[1]
v4 = sum_1.y
v5 = sum_2.x[1]
v6 = sum_2.y
End Connections
Objects
sum_1 = sum(1)
sum_2 = sum(1)
End Objects
End Model
Solving this problem in http://apmonitor.com/online/view_pass.php will give a solution in which int_v2 = 1. But if I add the following equation after v4 to the problem, it says solution not found:
(((1-int_v2))*(v4))=0
I looked into the infeasibilities file but cloud not grasp the problem. Since the above solution gives int_v2 = 1 then this equation should be always true with 0 = 0. Appreciate any guidance.