Dear Löfberg,
I want to use cplex to solve the problem of energy interconnection optimization.
When I finished all the programs, it was found that Solver not applicable (cplex). I guess it might be that my constraints are problematic, and when I delete some constraints(See below), CPLEX can be applicable.
But these constraints are the most core part of my entire program. What should I do?
for k = 1:24
Constraints =[Constraints,Beta(k)*(Pe_net(k)+Pw(k)-P_p2g(k)+2.934*Gamma(k)*(Pg_net(k)+0.0987*P_p2g(k)-Pg_dc(k)))-Pe_dc(k)==Pe_load(k)]; %电功率平衡约束
Constraints =[Constraints,0.9*(1-Beta(k))*(Pe_net(k)+Pw(k)-P_p2g(k)+2.934*Gamma(k)*(Pg_net(k)+0.0987*P_p2g(k)-Pg_dc(k)))+6.651*Gamma(k)*(Pg_net(k)+0.0987*P_p2g(k)-Pg_dc(k))+7.9218*(1-Gamma(k))*(Pg_net(k)+0.0987*P_p2g(k)-Pg_dc(k))-Ph_dc(k)==(Pc_load(k)/1.38)+Ph_load(k)]; %冷热功率平衡约束
end
for k = 1:24
Constraints = [Constraints, 0<=Gamma(k)*(Pg_net(k)+Pg_dc(k)-0.0987*P_p2g(k))<=204.499];%微燃机额定容量约束
Constraints = [Constraints, 0<=(1-Gamma(k))*(Pg_net(k)+Pg_dc(k)-0.0987*P_p2g(k))<=71.515];%燃气锅炉额定容量约束
Constraints = [Constraints, 0<=(1-Beta(k))*(Pe_net(k)+Pw(k)-P_p2g(k)+2.934*Gamma(k)*(Pg_net(k)+0.0987*P_p2g(k)+Pg_dc(k)))<=500];%电锅炉额定容量约束
end
Thank you!