Home > other >  How to solve the Python optimization model
How to solve the Python optimization model

Time:10-06

How to use Python, give expression to this formula?

CodePudding user response:

If x (I, j) not 0 or 1, the y (I, j) is equal to what?

If x and y elements, the range is 0 or 1
I suppose it should be said
 
[I] [j]=0, y if x [I] [j]==0 else 1

CodePudding user response:

reference 1st floor seakingx response:
if x (I, j) not 0 or 1, the y (I, j) is equal to what?

If x and y elements, the range is 0 or 1
I suppose it should be said
 
[I] [j]=0, y if x [I] [j]==0 else 1

Xi, j should be in the case of not equal to zero is equal to 1, write wrong, but I appreciate you
  • Related