Hi
if you turn
Energy_purchased to SheetWrite(sheet,"Energy_purchased!A1:TN24");
into
Energy_purchased to SheetWrite(sheet,"Energy_purchased!A1:A24");
your model will work.
You cannot write a 1D array into a 2D array!
Regards
------------------------------
[Alex] [Fleischer]
[Data and AI Technical Sales]
[IBM]
------------------------------
Original Message:
Sent: Thu November 07, 2024 11:04 PM
From: 宗純 岩科
Subject: CPLEX outputs the message "Exception from IBM ILOG Concert: excel: range has a bad size. it must be only 1 line or 1 row."
CPLEX outputs the error message mentioned in the discussion subject when it runs the attached program with the attached data, but no specific location is given.
I checked the Excel file but couldn't find a problem.
Could you tell the point to be fixed?
Thank you in advance for your help.
#Decision Optimization
------------------------------
宗純 岩科
------------------------------