Skip to content
Snippets Groups Projects
Commit 727ad83a authored by ThibautDemare's avatar ThibautDemare
Browse files

Create new variable for a parameter which used to be hard coded in the source

parent 445511b1
Branches
Tags
No related merge requests found
...@@ -146,7 +146,7 @@ global { ...@@ -146,7 +146,7 @@ global {
if(length(customers) > 0){ if(length(customers) > 0){
int j <- 0; int j <- 0;
loop while: 50 < length(timeToDeliver) { loop while: nbDeliveriesConsideredForTimeToDelivered < length(timeToDeliver) {
remove index: 0 from: timeToDeliver; remove index: 0 from: timeToDeliver;
} }
...@@ -172,7 +172,7 @@ global { ...@@ -172,7 +172,7 @@ global {
int j <- 0; int j <- 0;
int localSum <- 0; int localSum <- 0;
loop while: 50 < length(localTimeToBeDeliveredLastDeliveries) { loop while: nbDeliveriesConsideredForTimeToDelivered < length(localTimeToBeDeliveredLastDeliveries) {
remove index: 0 from: localTimeToBeDeliveredLastDeliveries; remove index: 0 from: localTimeToBeDeliveredLastDeliveries;
} }
......
...@@ -34,6 +34,7 @@ global { ...@@ -34,6 +34,7 @@ global {
list<int> possibleLSPSwitcStrats <- [1, 2, 3]; // 1 : NbStockShortages - 2 : TimeToBeDelivered - 3 : Costs list<int> possibleLSPSwitcStrats <- [1, 2, 3]; // 1 : NbStockShortages - 2 : TimeToBeDelivered - 3 : Costs
int globalLSPSwitchStrat <- 3; int globalLSPSwitchStrat <- 3;
int nbStepsConsideredForLPEfficiency <- 96; // 4 days // The number of steps considered to compute the logistic provider efficiency int nbStepsConsideredForLPEfficiency <- 96; // 4 days // The number of steps considered to compute the logistic provider efficiency
int nbDeliveriesConsideredForTimeToDelivered <- 50;
// Attractiveness parameters // Attractiveness parameters
float LHAttractiveness; float LHAttractiveness;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment