Hello everyone,
I have a probably rather simple question concerning "implies" and I am not quite sure why I get the error message.
So I wanted two of my constraints in the MATLAB code to be
Constraints = [Constraints, [implies o, P_th_grid==zeros(N,1)]:'binary district heating'];
Constraints = [Constraints, [implies v, P_gas_th==zeros(N,1)]:'binary gas heating'];
meaning that if o=true, P_th_grid should be zero (and P_gas_th should be zero, if v is true).
MATLAB now gives me the error message
"Index exceeds matrix dimensions.
Error in implies (line 49)
X = varargin{1};
Error in model20190911 (line 356)
Constraints = [Constraints, [implies o, P_th_grid==zeros(N,1)]:'binary district heating'];"
Thanks a lot in advance!!