I am trying to run the following code, but there is an error in dvar float+
using CP;
int rows=3;
int columns=3;
range para=1..rows*columns;
float model1[para]=...;
dvar float+ model0[para];
maximize
sum(p in para) model0[p]*(lg(model0[p]/model1[p]));
subject to{
c1:
sum(p in para)
model0[p]==3.0;
}