Pinned topic Error as Operator not available for float
This reply was deleted by Puppy26 270006HY79 2013-09-05T12:48:19Z.
ol 270002SRX733 PostsACCEPTED ANSWER
Re: Error as Operator not available for float2013-09-02T09:47:37Z in response to Puppy26
you can add a post processing step as in the following example.
float F[I]= [0.4,0.2];
dvar boolean y[I][J];
dexpr float Z = sum(i in I,j in J) (F[i]*A[j])* y[i][j];
sum(i in I,j in J) (F[i]+A[j])* y[i][j];
2 >= sum(i in I, j in J) y[i][j];
writeln("Z = ",Z);