Problem with decision variable and cost function
Posted: Mon May 24, 2021 2:57 pm
Dear all,
I have a binary decision variable, y(X,t) as follows:
As it can be seen, the variable y(X,t) can take 1 or 0 value for all X set. In other words:
y(X,t) can take as follows (an example):
I want to define a variable, Y(t) ( for equation ):
such that if for any t,
Y(t) should be 1, else Y(t) should be 0.
Please note that, I do not want to have conditional-statement, because I cannot use it while writing equations. Also, there should be no dollar condition for variables.
Thanks
I have a binary decision variable, y(X,t) as follows:
Code: Select all
sets
t /t1*t5/
X /X1*X2/ ;
binary variable
y(X,t);
y(X,t) can take as follows (an example):
Code: Select all
X1 X2
t1 0 0
t2 1 0
t3 0 1
t4 1 1
t5 1 1
such that if for any t,
Code: Select all
sum(X,y(X,t)) > 1
Please note that, I do not want to have conditional-statement, because I cannot use it while writing equations. Also, there should be no dollar condition for variables.
Thanks