Originally posted by: Eliosa
Hello,
Providing that I set some of my vessel fleet information such as:
{string} Vessels = ...;
tuple VesselType{
float MaxCap;
float Ladden_BO;
float Ballast_BO;
float HFO;
float MGO;
float Pilot_Consumption[12..19];
float Ladden_Consumption[12..19];
float Ballast_Consumption[12..19];
string Current_Location;
float Current_Date;
int Loaded;
}
VesselType VesselsInfo[Vessels]= ...;
What is the proper way to create an array containing each "Current_Location" of all the vessels such as:
tuple locationtest {
float id;
string loc;
}
locationtest locv = {0, t.Current_Location | t in VesselsInfo};
Thanks a lot of the great help provided on this forum.
#DecisionOptimization#OPLusingCPLEXOptimizer