Skip to content

Commit

Permalink
update params for ss multif
Browse files Browse the repository at this point in the history
  • Loading branch information
NaroaCS committed Jan 16, 2024
1 parent 74b177e commit d74db95
Show file tree
Hide file tree
Showing 7 changed files with 2,897 additions and 6,530 deletions.
Binary file modified .DS_Store
Binary file not shown.
8 changes: 4 additions & 4 deletions models/Parameters.gaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ global {
//date starting_date <- date("2019-10-07 00:00:00"); // CAMBRIDGE

//Date for log files
date logDate <- date("2024-01-15 10:00:00");
date logDate <- date("2024-01-16 14:00:00");

date nowDate <- #now;

Expand Down Expand Up @@ -64,7 +64,7 @@ global {
float V2IChargingRate <- maxBatteryLifeAutonomousBike/(111) #m/#s; // 111 s battery swapping -> average of the two reported by Fei-Hui Huang 2019 Understanding user acceptancd of battery swapping service of sustainable transport

//--------------------------User Parameters----------------------------
float maxWaitTimePeople <- 15 #mn;
float maxWaitTimePeople <- 20 #mn;
float maxDistancePeople_AutonomousBike <- maxWaitTimePeople*DrivingSpeedAutonomousBike #m; //The maxWaitTime is translated into a max radius taking into account the speed of the bikes
float peopleSpeed <- 5/3.6 #m/#s;
float RidingSpeedAutonomousBike <- 10.2/3.6;
Expand Down Expand Up @@ -102,8 +102,8 @@ global {
//High demand areas for rebalancing
bool rebalEnabled <- true;
csv_file food_hotspot_csv <- csv_file (cityDemandFolder+ "/food_top5density.csv",true);
csv_file user_hotspot_csv <- csv_file (cityDemandFolder+ "/user_top10density.csv",true);
*/
csv_file user_hotspot_csv <- csv_file (cityDemandFolder+ "/user_top10density.csv",true);*/



//************* CASE SAN SEBASTIAN ***************
Expand Down
21 changes: 11 additions & 10 deletions models/main.gaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ global {

//--------------------------------- MAIN HEADLESS EXPERIMENT (Fleet sizing, performance evaluation) ----------------------------------

experiment numreps_fleetSizing type: batch repeat: 3 parallel: 3 until: (cycle >= numberOfWeeks * numberOfDays * numberOfHours * 3600 / step){
experiment numreps_fleetSizing type: batch repeat: 19 parallel: 19 until: (cycle >= numberOfWeeks * numberOfDays * numberOfHours * 3600 / step){

//Defining parameter values - some overwrite their default values saved in Paramters.gaml
parameter var: step init: 5.0 #sec;
Expand All @@ -185,14 +185,14 @@ experiment numreps_fleetSizing type: batch repeat: 3 parallel: 3 until: (cycle >

parameter var: rebalEnabled init: true;

parameter var: numAutonomousBikes among: [86,86];
parameter var: numAutonomousBikes among: [311, 311];
//CAMBRIDGE: Food only 164, users only 86, both 217
//DONOSTI: Food only 89, User only 95, both 122

parameter var: dynamicFleetsizing init: true; //TODO: REMEMBER to adapt weekendfirst or not!
parameter var: dynamicFleetsizing init: false; //TODO: REMEMBER to adapt weekendfirst or not!

parameter var: peopleEnabled init: true;//TODO: REMEMBER to adapt weekendfirst or not!
parameter var: packagesEnabled init: false;
parameter var: packagesEnabled init: true;
parameter var: biddingEnabled init: false;

parameter var: loggingEnabled init: true;
Expand Down Expand Up @@ -300,7 +300,7 @@ experiment param_search type: batch repeat: 15 parallel: 15 keep_seed: true unti


//Define values to explore; the weights are relative weights so they have to add up 1
method exploration with: [
/*method exploration with: [
["maxBiddingTime"::0, "w_urgency"::0.0, "w_wait"::0.0, "w_proximity"::0.0], //Reference with nobid
["maxBiddingTime"::0.5, "w_urgency"::0.0, "w_wait"::0.0, "w_proximity"::1.0],
["maxBiddingTime"::0.5, "w_urgency"::0.0, "w_wait"::0.25, "w_proximity"::0.75],
Expand All @@ -317,9 +317,9 @@ experiment param_search type: batch repeat: 15 parallel: 15 keep_seed: true unti
["maxBiddingTime"::0.5, "w_urgency"::0.75, "w_wait"::0.0, "w_proximity"::0.25],
["maxBiddingTime"::0.5, "w_urgency"::0.75, "w_wait"::0.25, "w_proximity"::0.0],
["maxBiddingTime"::0.5, "w_urgency"::1.0, "w_wait"::0.0, "w_proximity"::0.0]
];
];*/

/*method exploration with: [
method exploration with: [
["maxBiddingTime"::1, "w_urgency"::0.0, "w_wait"::0.0, "w_proximity"::1.0],
["maxBiddingTime"::1, "w_urgency"::0.0, "w_wait"::0.25, "w_proximity"::0.75],
["maxBiddingTime"::1, "w_urgency"::0.0, "w_wait"::0.5, "w_proximity"::0.5],
Expand All @@ -334,7 +334,8 @@ experiment param_search type: batch repeat: 15 parallel: 15 keep_seed: true unti
["maxBiddingTime"::1, "w_urgency"::0.5, "w_wait"::0.5, "w_proximity"::0.0],
["maxBiddingTime"::1, "w_urgency"::0.75, "w_wait"::0.0, "w_proximity"::0.25],
["maxBiddingTime"::1, "w_urgency"::0.75, "w_wait"::0.25, "w_proximity"::0.0],
["maxBiddingTime"::1, "w_urgency"::1.0, "w_wait"::0.0, "w_proximity"::0.0],
["maxBiddingTime"::1, "w_urgency"::1.0, "w_wait"::0.0, "w_proximity"::0.0]
/*
["maxBiddingTime"::2, "w_urgency"::0.0, "w_wait"::0.0, "w_proximity"::1.0],
["maxBiddingTime"::2, "w_urgency"::0.0, "w_wait"::0.25, "w_proximity"::0.75],
["maxBiddingTime"::2, "w_urgency"::0.0, "w_wait"::0.5, "w_proximity"::0.5],
Expand All @@ -348,9 +349,9 @@ experiment param_search type: batch repeat: 15 parallel: 15 keep_seed: true unti
["maxBiddingTime"::2, "w_urgency"::0.5, "w_wait"::0.5, "w_proximity"::0.0],
["maxBiddingTime"::2, "w_urgency"::0.75, "w_wait"::0.0, "w_proximity"::0.25],
["maxBiddingTime"::2, "w_urgency"::0.75, "w_wait"::0.25, "w_proximity"::0.0],
["maxBiddingTime"::2, "w_urgency"::1.0, "w_wait"::0.0, "w_proximity"::0.0]
["maxBiddingTime"::2, "w_urgency"::1.0, "w_wait"::0.0, "w_proximity"::0.0]*/

];*/
];

}

Expand Down
Loading

0 comments on commit d74db95

Please sign in to comment.