Originally posted by: SystemAdmin
[shadi said:]
Didier Vidal,
my Data file has more complex data type than integer as in the example
my data file is:
/*********************************************
* OPL 5.5 Data
* Author: Hugues Juille
* Creation Date: 12/6/2007 at 4:02 PM
*********************************************/
LocationType={<", 1>, <", 0>, <", 0>, <", 0>};
TypeOfTrip = {"inter city", "city", "regional"};
TypeOfService = {"school trip", "regular trip", "service trip"};
SheetConnection sheet("TLV-NTN Bus TimeTables & Costs.xls");
// RawTimetable from SheetRead(sheet,"SUN!R3:X485");
// Segments from SheetRead(sheet,"SUN!AA3:AE485");
RawTimetable from SheetRead(sheet,"SUN!R3:X79");
Segments from SheetRead(sheet,"SUN!AA3:AE79");
//RawTimetable from SheetRead(sheet,"SUN!R3:X28");
//Segments from SheetRead(sheet,"SUN!AA3:AE28");
//RawTimetable from SheetRead(sheet,"SUN!R3:X12");
//Segments from SheetRead(sheet,"SUN!AA3:AE12");
Timetable={};
CostStructureType = {"CityBus_55passenger_CST", "InterCity_55passenger_CST", "LowEntryBus_55passenger_CST"};
BusCategories = {
<", "city", "CityBus_55passenger_CST", 55, 0>,
<", "inter city", "InterCity_55passenger_CST", 55, 0>,
<", "inter city", "InterCity_55passenger_CST", 55, 1>
};
Fleet = {
<", 5, 7>,
<", 5, 7>,
<", 2, 11>,
<", 4, 6>
};
coverTrip=5;
busCategoryId = "InterCity_55passengerManual";
nSeq = 20;
minStop = 2;
maxStop = 50;
longStop = 240;
Origin = [];
Destination = [];
OriginLoc = [];
DestinationLoc = [];
DepTime = [];
ArrTime = [];
StartFromDepot = [];
Distance = [];
isEmptyTrip = [];
tripType = [];
busCategoryIdx = [];
busTypeByCategory = [];
which as you can see has tuples, tupleset, ranges....
so can i use this method in order to assign all these data types?????
thank you
#DecisionOptimization#OPLusingCPOptimizer