简体   繁体   中英

Anylogic Excel Row in Parameter

I have an Excel File which I like to use to fill my parameter. The Excel file is an output so I don't want to change something on the formation of the file.

For my first parameter I want to import all values of the certain row in the Excel file. For example all values for all years of row 3. I already created a parameter as army with the years as dimension but doesn't know how to get the values in the best way. Maybe someone can help me.

电子表格

Assume number of years equal to 30 and you have an array p[] with years as dimension:

for( int i = 0 ; i < 30 ; i++)
{
p[i] = excelFile.getCellNumericValue(1, 3, i + 3);
i++;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM