File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -390,10 +390,6 @@ double HeuristicQueue::rejectionProbability(){
390390 return (margDist[margDist.size ()-1 ]);
391391}
392392
393- double HeuristicQueue::expectedOccupancyFraction (){
394- return (expectedOccupancy ()/cap);
395- }
396-
397393void HeuristicQueue::printStateSpace (){
398394 initializeState ();
399395 for (int i=0 ; i<Ns; i++){
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ class HeuristicQueue {
6464
6565 void marginalDist (vector<double > &pi); // returns the marginal distribution
6666 double expectedOccupancy (); // returns the expected occupancy of capacity
67- double expectedOccupancyFraction (); // returns the expected fraction of capacity utilized
6867 double rejectionProbability (); // returns the rejection probability using the marginal occupancy distribution
6968
7069 // constructor and destructor
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ void RelocEvaluation::evalSingleWard(int widx){
226226 for (int k=0 ; k<marginalDist.size (); k++){
227227 expectedOccupancy += marginalDist[k]*k;
228228 }
229- expOccFraction = servers/ expectedOccupancy;
229+ expOccFraction = expectedOccupancy/( double )servers ;
230230 blockingProbability = marginalDist[marginalDist.size ()-1 ];
231231 }
232232}
@@ -316,7 +316,7 @@ void RelocEvaluation::runHeuristic(int main_widx){
316316
317317 }
318318 expectedOccupancy = hqueue.expectedOccupancy ();
319- expOccFraction = hqueue. expectedOccupancyFraction () ;
319+ expOccFraction = expectedOccupancy/( double )capacity ;
320320 blockingProbability = marginalDist[marginalDist.size ()-1 ];
321321
322322 auto stop = high_resolution_clock::now (); // stop time
Original file line number Diff line number Diff line change 99 <url >RelocSimulation.h</url >
1010 <bookmark id =" 4" >
1111 <name />
12- <line >120 </line >
12+ <line >117 </line >
1313 <key />
1414 </bookmark >
1515 <bookmark id =" 1" >
1616 <name />
17- <line >137 </line >
17+ <line >135 </line >
1818 <key />
1919 </bookmark >
2020 </file >
2121 </editor-bookmarks >
2222 <open-files xmlns =" http://www.netbeans.org/ns/projectui-open-files/2" >
2323 <group >
24- <file >file:/home/anders/Dropbox/Til%20mig%20selv/Forskning/Projekter/Multimorbidity/Projekter/Sengefordeling/Beregninger/Git/RelSys/RelSys/main.cpp</file >
25- <file >file:/home/anders/Dropbox/Til%20mig%20selv/Forskning/Projekter/Multimorbidity/Projekter/Sengefordeling/Beregninger/Git/RelSys/RelSys/RelocSimulation.h</file >
26- <file >file:/home/anders/Dropbox/Til%20mig%20selv/Forskning/Projekter/Multimorbidity/Projekter/Sengefordeling/Beregninger/Git/RelSys/RelSys/RelocSimulation.cpp</file >
27- <file >file:/home/anders/Dropbox/Til%20mig%20selv/Forskning/Projekter/Multimorbidity/Projekter/Sengefordeling/Beregninger/Git/RelSys/RelSys/RelocEvaluation.cpp</file >
24+ <file >file:/C:/Users/arean/Dropbox/Til%20mig%20selv/Forskning/Projekter/Multimorbidity/Projekter/Sengefordeling/Beregninger/Git/RelSys/RelSys/main.cpp</file >
2825 </group >
2926 </open-files >
3027</project-private >
You can’t perform that action at this time.
0 commit comments