Commit ae9fa47a by Febby Simanjuntak

fix SA

parent 1f91cf5b
......@@ -315,11 +315,11 @@
" return time_hours\n",
" \n",
" # 3. function Estimasi Biaya to calculating total cost of each itinerary\n",
" def estimasiBiaya(waktu):\n",
" def estimasiBiaya(jarak):\n",
" BBM = 7650 # Biaya BBM 1 Liter = Rp.7650\n",
" S_BBM =3.45 # Jarak tempuh untuk 1 Liter BBM = 3.45 KM\n",
" Biaya_R = 950000 # Biaya sewa/rental bus = Rp.950000\n",
" Biaya_BBM = round((waktu / S_BBM) * BBM) \n",
" Biaya_BBM = round((jarak / S_BBM) * BBM) \n",
" Total_Cost = Biaya_BBM + Biaya_R\n",
" return Total_Cost\n",
" \n",
......@@ -352,7 +352,7 @@
" f = fitnessFunction\n",
" jarak = f.haversineFormula(preproses_Itinerary)\n",
" waktu = f.estimasiWaktu(jarak)\n",
" biaya = f.estimasiBiaya(waktu)\n",
" biaya = f.estimasiBiaya(jarak)\n",
" rate = f.averageRating(preproses_Rating)\n",
" inputt.append((jarak, waktu, biaya, rate))\n",
" return inputt"
......
Markdown is supported
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