Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TA13
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
12
Issues
12
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Febby B. Simanjuntak
TA13
Commits
ae9fa47a
Commit
ae9fa47a
authored
Apr 20, 2020
by
Febby Simanjuntak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix SA
parent
1f91cf5b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
TA13-checkpoint.ipynb
.ipynb_checkpoints/TA13-checkpoint.ipynb
+0
-0
TA13.ipynb
TA13.ipynb
+3
-3
No files found.
.ipynb_checkpoints/TA13-checkpoint.ipynb
View file @
ae9fa47a
This diff is collapsed.
Click to expand it.
TA13.ipynb
View file @
ae9fa47a
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment