Hello, everyone!Now I have a problem about how to set ranges for specific values of a variable.
I have a variable “Cmatrix(t,x,conv) ” and “t,x,conv” are some sets. I need that Cmatrix(t,x,conv) ∈ x-1,1] only when conv ≠ 'Heat_pump' . And Cmatrix(t,x,conv) >1 only when conv = 'Heat_pump'.
How do I write this in the red box?

When I set a constraint to bound the “Cmatrix(t,x,conv) ”, there will be errors as “The solver CONOPT 4.1 cannot handle the ranged constraint Cmatrix_except_HP(1,Elec,CHP_engine) in mathematical program "Cost_minimization"; please define the middle term as a variable and add bounds.”

Can some kind person save me? Thank you so so so much! Wish you happy every day.