Originally posted by: OrhanOzguven
Hi,
I try to use multiple array variable in C# .NET VS 2017. There is a error below codes & also find in the attachment. How can i correct this problem?
internal static voidPopulateByRow(IMPModeler model,
INumVar[][] var,
IRange[][] rng,
List<XX> XX_,
List<YY> YY_)
{
INumVar[] x = newINumVar[4];
INumVar[,] vrx = newINumVar[XX_.Count,YY_.Count];
for(intxi = 0; xi < XX_.Count; xi++)
{
for(intyi = 0; yi < YY_.Count; yi++)
{
vrx[xi,yi] = model.IntVar(0, 1, "x"+ xi.ToString() +"y"+ xi.ToString());
}
}
var[0] = vrx;
#CPLEXOptimizers#DecisionOptimization