<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ray Soesanto on Medium]]></title>
        <description><![CDATA[Stories by Ray Soesanto on Medium]]></description>
        <link>https://medium.com/@raysoesanto?source=rss-a1efeabde928------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AOWj5LUd2EFWbMtBQ-Z6Iw.png</url>
            <title>Stories by Ray Soesanto on Medium</title>
            <link>https://medium.com/@raysoesanto?source=rss-a1efeabde928------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 20:23:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@raysoesanto/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[War Tiket King Nassar, Bot Calo, dan Pelajaran Simulasi dari Sebuah Antrean]]></title>
            <link>https://medium.com/@raysoesanto/war-tiket-king-nassar-bot-calo-dan-pelajaran-simulasi-dari-sebuah-antrean-49c08de9152b?source=rss-a1efeabde928------2</link>
            <guid isPermaLink="false">https://medium.com/p/49c08de9152b</guid>
            <category><![CDATA[industrial-engineering]]></category>
            <category><![CDATA[simulation]]></category>
            <category><![CDATA[ticketing]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[discrete-event-simulation]]></category>
            <dc:creator><![CDATA[Ray Soesanto]]></dc:creator>
            <pubDate>Mon, 31 Aug 2026 04:01:03 GMT</pubDate>
            <atom:updated>2026-08-31T04:01:03.079Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Mengapa tiket konser selalu ludes lebih cepat dari yang Anda kira, dan apa yang bisa dipelajari Teknik Industri dari fenomena ini?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zsGEh-BfWr-qeUR6" /><figcaption>Photo by <a href="https://unsplash.com/@andylid0?utm_source=medium&amp;utm_medium=referral">Andy Li</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Jumat, 28 Agustus 2026, pukul 18.59 WIB. Ribuan orang di seluruh Indonesia duduk di depan layar masing-masing. Jari sudah siap di mouse. Internet sudah dicek dua kali. Aplikasi myBCA sudah dibuka. Targetnya satu: tiket konser tunggal perdana King Nassar, <strong>Lost in the Jungle</strong>, di Istora Senayan, 7 November 2026.</p><p>Pukul 19.00. Penjualan dibuka.</p><p>Dalam waktu kurang dari sepuluh menit, kabar mulai bertebaran di media sosial: tiket kategori Festival dan VIP sudah menipis. Beberapa menit kemudian, status tiket berubah menjadi ludes. Di kolom komentar, ribuan orang bertanya hal yang sama: “Kok bisa? Saya dari pukul 18.30 sudah standby.”</p><p>Apakah 7.000 kursi Istora Senayan benar-benar habis dibeli oleh puluhan ribu manusia dalam sepuluh menit? Mungkin. Tapi ada kemungkinan lain yang lebih menarik untuk diselidiki: sebagian tiket itu mungkin tidak pernah dibeli oleh manusia.</p><p>Selamat datang di dunia <strong>war tiket, bot calo, dan simulasi antrean</strong>.</p><h3>Fakta di balik kabar itu</h3><p>Sebelum masuk ke model, mari bereskan dulu fakta yang bisa diverifikasi.</p><p>Konser King Nassar “Lost in the Jungle” benar-benar akan digelar di Istora Senayan pada 7 November 2026, dengan Erwin Gutawa Orchestra, dipromotori oleh Vindes dan Boss Creator. Penjualan tiket dibuka pada 28 Agustus 2026 pukul 19.00 WIB melalui aplikasi myBCA yang mengarah ke platform Tiket.com. Ada 6 kategori harga: Tribun 4 (Rp350.000), Festival (Rp600.000), Tribun 2 (Rp700.000), Tribun 1 (Rp1.000.000), VIP (Rp2.500.000), dan VVIP (Rp3.500.000). Setiap akun dibatasi maksimal empat tiket.</p><p>Kapasitas Istora Senayan setelah renovasi sekitar 7.000 penonton. Artinya, total tiket yang diperebutkan jauh lebih sedikit daripada jumlah peminat. Itu sudah menjadi formula antrean yang sempurna.</p><p>Dan fenomena bot calo bukan isapan jempol. Laporan Imperva Bad Bot Report menyebut hampir separuh lalu lintas internet global berasal dari bot, dan sekitar 30% di antaranya adalah bad bot yang sering dipakai untuk memborong tiket. Promotor Indonesia bahkan pernah menemukan lebih dari separuh pembelian tiket festivalnya berasal dari alamat IP Amerika Serikat, padahal acaranya di Jakarta. Itu jejak bot yang tidak sengaja terekam.</p><h3>Dari fenomena ke model simulasi</h3><p>Sebagai dosen Teknik Industri, pertanyaan pertama saya selalu sama: kalau ini sistem antrean, bagaimana cara memodelkannya?</p><p>Di sini SimPy masuk. Pustaka Python untuk discrete event simulation ini memungkinkan kita membangun model antrean pembelian tiket: pembeli datang, mengantre di server penjualan, mengisi formulir, membayar, lalu mendapat tiket. Selama kapasitas masih ada, antrean berjalan. Begitu tiket habis, pembeli berikutnya ditolak.</p><p>Model yang saya bangun sederhana tapi jujur. Saya tidak mengklaim ini model resmi penjualan tiket King Nassar. Ini model ilustrasi dengan asumsi yang eksplisit:</p><ul><li>kapasitas tiket 7.000 (sesuai kapasitas Istora),</li><li>kedatangan pembeli 500 orang per menit di menit-menit awal (asumsi lonjakan war),</li><li>Pembeli manusia butuh waktu sekitar 2 detik untuk mengisi formulir dan membayar (asumsi);</li><li>bot calo membutuhkan sekitar 0,5 detik, empat kali lebih cepat (asumsi);</li><li>Dalam skenario “dengan bot”, 40% trafik datang dari bot (mengacu pada temuan Imperva).</li></ul><p>Semua asumsi ini bisa diubah. Justru itu keunggulan simulasi: model adalah tempat aman untuk bereksperimen, tanpa harus benar-benar mengganggu sistem nyata (Banks et al., 2010).</p><h3>Model antrean di SimPy</h3><p>Struktur modelnya sama dengan antrean klasik M/M/c: kedatangan acak (Poisson), waktu layanan acak (eksponensial), dan sejumlah server paralel. Di sini “server” adalah slot pemrosesan pembelian di platform tiket.</p><pre>import simpy<br>import random<br>import statistics<br><br>HUMAN_LAMA = 2.0    # detik isi formulir + bayar (manusia)<br>BOT_LAMA = 0.5      # detik (bot, 4x lebih cepat)<br>class WarTiket:<br>    def __init__(self, env, jumlah_server, kapasitas):<br>        self.env = env<br>        self.server = simpy.Resource(env, capacity=jumlah_server)<br>        self.kapasitas = kapasitas<br>        self.tiket = 0<br>        self.dapat = {&quot;human&quot;: 0, &quot;bot&quot;: 0}<br>        self.gagal = {&quot;human&quot;: 0, &quot;bot&quot;: 0}<br>        self.waktu_tunggu = []<br>    def beli(self, jenis, lama):<br>        tiba = self.env.now<br>        if self.tiket &gt;= self.kapasitas:<br>            self.gagal[jenis] += 1<br>            return<br>        with self.server.request() as req:<br>            yield req<br>            self.waktu_tunggu.append(self.env.now - tiba)<br>            yield self.env.timeout(lama)<br>            if self.tiket &lt; self.kapasitas:<br>                self.tiket += 1<br>                self.dapat[jenis] += 1<br>            else:<br>                self.gagal[jenis] += 1</pre><p>Perhatikan bagian kunci: with self.server.request() as req. Inilah idiom SimPy untuk “minta slot, pakai, lalu lepaskan otomatis”. Pembeli yang tidak kebagian slot akan menunggu di sini; itulah antreannya. Setelah mendapat slot, pembeli “dilayani” selama waktu untuk mengisi formulir dan membayar. Kalau tiket sudah habis saat pembeli selesai dilayani, ia masuk kategori gagal.</p><p>Generator kedatangan membedakan human dan bot:</p><pre>def kedatangan(self, laju):<br>        i = 0<br>        while True:<br>            yield self.env.timeout(random.expovariate(laju))<br>            i += 1<br>            if random.random() &lt; BOT_PROPORSI:<br>                self.env.process(self.beli(&quot;bot&quot;, BOT_LAMA))<br>            else:<br>                self.env.process(self.beli(&quot;human&quot;, HUMAN_LAMA))</pre><p>Simulasi dijalankan dengan seed tetap agar hasil bisa direproduksi, lalu kita bandingkan dua skenario: dengan bot (40% trafik) dan tanpa bot.</p><pre>def jalankan(bot_aktif, seed=7, durasi=600.0):<br>    random.seed(seed)<br>    env = simpy.Environment()<br>    m = WarTiket(env, 100, 7000)<br>    laju = 500.0<br>    proporsi_bot = 0.40 if bot_aktif else 0.0<br><br>def kedatangan():<br>        i = 0<br>        while True:<br>            yield env.timeout(random.expovariate(laju))<br>            i += 1<br>            if random.random() &lt; proporsi_bot:<br>                env.process(m.beli(&quot;bot&quot;, BOT_LAMA))<br>            else:<br>                env.process(m.beli(&quot;human&quot;, HUMAN_LAMA))<br>    env.process(kedatangan())<br>    env.run(until=durasi)<br>    return m</pre><p>Seluruh kode ada di repositori GitHub saya: <a href="https://github.com/911ray911/snippets">github.com/911ray911/snippets</a> (file war_tiket.py), atau langsung lewat <a href="https://gist.github.com/911ray911/806ac197f33f66eb831c8ef806425d1f">gist-nya</a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/05f28c5fbdd9091bb0011238a5448867/href">https://medium.com/media/05f28c5fbdd9091bb0011238a5448867/href</a></iframe><h3>Apa kata simulasi</h3><p>Saya menjalankan model dengan lima seed berbeda agar hasilnya stabil, lalu membandingkan dua dunia: dunia dengan bot dan dunia tanpa bot.</p><p>Hasilnya konsisten.</p><p><strong>Skenario dengan bot (40% trafik):</strong> * dari 7.000 tiket, <strong>human mendapat 4.143 (59%)</strong> dan <strong>bot mendapat 2.857 (41%)</strong>, * waktu tunggu rata-rata pembeli sekitar 179 detik (3 menit), * tiket ludes dalam waktu kurang dari 10 menit (konsisten di lima seed).</p><p><strong>Skenario tanpa bot (semua human):</strong> * seluruh 7.000 tiket jatuh ke human, * waktu tunggu rata-rata 269 detik (4,5 menit), * tiket juga ludes dalam waktu kurang dari 10 menit.</p><p>Dua hal yang menarik dari angka ini.</p><p>Pertama, kehadiran bot mengubah siapa yang dapat tiket, bukan sekadar berapa cepat tiket ludes. Dalam skenario ini, 41% tiket, sekitar 2.857 lembar, jatuh ke tangan yang bukan manusia. Itu tiket yang kemudian bisa dijual kembali dengan harga markup. Kalau rata-rata markup satu tiket Rp500.000 saja, potensi nilai tiket yang dikuasai bot di skenario ini sekitar Rp1,4 miliar. Itu insentif ekonomi yang sangat besar.</p><p>Kedua, dan ini yang lebih penting secara teknis: dalam antrean FIFO yang adil, proporsi tiket yang didapat kira-kira sebanding dengan proporsi trafik. Bot “hanya” mendapat 41% karena porsinya 40%. Artinya, bahaya bot tidak terutama terletak pada kecepatan mengisi formulir, melainkan pada <strong>jumlah akun paralel dan kemampuan menyelinap ke depan antrean</strong> (pre-bot, akses API, akun massal). Kalau bot bisa membuat ribuan permintaan paralel, porsinya melonjak jauh melampaui 40%.</p><blockquote><em>Jadi pertanyaan yang benar bukan “seberapa cepat bot mengisi formulir?”, melainkan “berapa banyak antrean paralel yang bisa dibuat bot?”</em></blockquote><h3>Pelajaran untuk Teknik Industri</h3><p>Fenomena war tiket ini, kalau dilihat dari kacamata simulasi, adalah kasus antrean klasik dengan bumbu ketidakadilan. Dan dari situ ada tiga pelajaran.</p><p><strong>Pertama, kapasitas selalu lebih kecil dari permintaan.</strong> 7.000 tiket versus puluhan ribu peminat adalah antrean yang pasti panjang. Desain sistem penjualan yang baik harus berpikir dari sisi kapasitas: berapa server, berapa kuota per kategori, berapa lama sesi pembayaran.</p><p><strong>Kedua, ukur kinerja dengan simulasi, bukan perasaan.</strong> Selisih waktu tunggu 179 detik versus 269 detik adalah angka yang bisa diperdebatkan, tapi setidaknya bisa direplikasi. Coba ganti asumsi 40% bot menjadi 10% atau 60%. Lihat bagaimana hasilnya berubah. Itulah kekuatan eksperimen terkendali yang tidak bisa dilakukan di sistem nyata.</p><p><strong>Ketiga, keadilan sistem adalah parameter desain.</strong> Sistem yang adil (satu manusia satu antrean) menghasilkan alokasi yang proporsional. Sistem yang bisa dimanipulasi (akun massal, API terbuka) menghasilkan alokasi yang timpang. Desainer sistem penjualan tiket, seperti halnya desainer lantai produksi, harus memutuskan seberapa adil sistemnya sejak awal. Ada trade-off: makin banyak verifikasi (captcha, KTP, kuota per akun), makin lambat pembeli sah, tapi makin kecil celah bot.</p><h3>Penutup</h3><p>Hari ini, 28 Agustus 2026, ribuan orang kembali membuka aplikasi mereka untuk war tiket. Sebagian akan berhasil, sebagian besar akan gagal, dan sebagian kecil tiket mungkin akan muncul di marketplace dengan harga dua kali lipat.</p><p>Simulasi tidak bisa menghentikan bot. Tapi simulasi bisa membantu kita memahami siapa yang menang, mengapa menang, dan berapa besar nilai yang dipertaruhkan. Di dunia yang makin penuh ketidakpastian, kemampuan untuk “melihat masa depan sebelum terjadi” bukan lagi keunggulan, melainkan kebutuhan.</p><p>Kalau Anda pernah kalah war tiket, atau justru pernah menang, tulis di kolom komentar. Pengalaman nyata Anda adalah data yang tidak bisa digantikan oleh simulasi mana pun.</p><h3>Referensi</h3><p>Banks, J., Carson, J. S., Nelson, B. L., &amp; Nicol, D. M. (2010). <em>Discrete-event system simulation</em> (5th ed.). Pearson.</p><p>Law, A. M., &amp; Kelton, W. D. (2015). <em>Simulation modeling and analysis</em> (5th ed.). McGraw-Hill.</p><p>Imperva. (2024). <em>Bad Bot Report</em>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49c08de9152b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dari Antrean di Depan Mesin ke Keputusan Strategis: Belajar SimPy untuk Simulasi Kejadian Diskrit]]></title>
            <link>https://medium.com/@raysoesanto/dari-antrean-di-depan-mesin-ke-keputusan-strategis-belajar-simpy-untuk-simulasi-kejadian-diskrit-ce09b240c438?source=rss-a1efeabde928------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce09b240c438</guid>
            <category><![CDATA[manufacturing]]></category>
            <category><![CDATA[discrete-event-simulation]]></category>
            <category><![CDATA[industrial-engineering]]></category>
            <category><![CDATA[simpy]]></category>
            <category><![CDATA[simulation]]></category>
            <dc:creator><![CDATA[Ray Soesanto]]></dc:creator>
            <pubDate>Sat, 29 Aug 2026 11:53:21 GMT</pubDate>
            <atom:updated>2026-08-29T11:53:21.969Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Sebuah tutorial praktis untuk Teknik Industri, dengan studi kasus yang mungkin pernah Anda temui di lantai produksi.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vVA6tc8HO9_Qu-4v" /><figcaption>Photo by <a href="https://unsplash.com/@simonkadula?utm_source=medium&amp;utm_medium=referral">Simon Kadula</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Ada satu momen yang sering terjadi di kelas simulasi: dosen memberi soal sederhana. Satu mesin. Mesin itu mampu memproses lima part per jam. Part datang dengan rata-rata empat part per jam.</p><p>“Kalau begitu, pasti mesinnya nganggur terus, kan?” kata seorang mahasiswa.</p><p>Semua orang mengangguk. Logis. Kapasitas lebih besar dari permintaan.</p><p>Lalu dosen menjalankan simulasi, dan hasilnya membuat kelas terdiam: part justru menunggu hampir satu jam sebelum diproses.</p><p>Kenapa? Karena part tidak datang dengan rapi satu per satu. Kadang tiga part datang berbarengan. Kadang lima belas menit tidak ada siapa-siapa. Mesin juga tidak selamanya konsisten. Variasi itulah biang keroknya. Dan variasi adalah hal yang paling sering dilupakan saat kita menghitung pakai rata-rata.</p><p>Selamat datang di dunia <em>discrete event simulation</em> (DES).</p><h3>Kenapa DES, dan kenapa SimPy</h3><p>Sistem nyata di pabrik itu hidup. Barang datang, diproses, keluar. Mesin rusak, pekerja istirahat, antrean menumpuk. Kalau kita potret sistemnya di satu titik waktu, kita kehilangan semua dinamika itu: bottleneck yang bergeser, antrean yang membengkak, keterlambatan yang merambat.</p><p>DES memodelkan sistem sebagai deretan <em>event</em> yang terjadi pada titik waktu tertentu. “Mesin selesai memproses unit 42.” “Part baru tiba.” “Mesin breakdown.” Di antara dua event, tidak ada yang berubah. Jadi, simulasi melompat dari event ke event, bukan berjalan menit demi menit.</p><p>Pendekatan ini bukan barang baru. Ia sudah dipakai secara luas di manufaktur, logistik, dan layanan sejak lama (Banks et al., 2010). Yang berubah adalah aksesnya.</p><p>Dulu, tools DES komersial mahal, butuh lisensi, dan hanya perusahaan besar yang mampu. Sekarang ada SimPy: pustaka Python yang gratis, open source, dan dipakai secara luas. Kalau Anda bisa menulis Python dasar, Anda bisa membangun model simulasi pertama dalam waktu kurang dari 15 menit.</p><p>SimPy menarik karena:</p><ul><li>gratis dan open source (MIT license),</li><li>Cara kerjanya intuitif: model ditulis sebagai <em>generator function</em> Python biasa,</li><li>Ekosistem Python penuh: pandas untuk olah data, matplotlib untuk visualisasi, scipy untuk statistik,</li><li>Banyak dipakai di riset dan industri, dari antrean rumah sakit sampai sistem manufaktur.</li></ul><p>Versi yang saya pakai di tutorial ini adalah <strong>SimPy 4.1.2</strong>, versi stabil terbaru. Instalasinya satu perintah:</p><pre>pip install simpy==4.1.2</pre><p>Versi ini juga sudah mendukung Python 3.13 dan 3.14.</p><h3>Empat istilah yang membangun semua model SimPy</h3><p>Sebelum menulis kode, kenali empat konsep ini. Semua model SimPy, sesederhana apa pun, dibangun dari empat hal yang sama:</p><ol><li><strong>Environment</strong>: jam simulasi. Environment mengatur waktu berjalan dan menjadwalkan event. Anda tidak pernah menggerakkan jam secara manual; Anda menjadwalkan event, dan SimPy menjalankannya sesuai urutan waktu.</li><li><strong>Process</strong>: aktivitas berjalan yang dihasilkan oleh <em>generator function</em>. Contoh: proses “melayani pelanggan” yang berjalan selama beberapa satuan waktu.</li><li><strong>Event</strong>: sesuatu yang terjadi pada waktu tertentu, misalnya timeout (menunggu beberapa satuan waktu) atau request (meminta resource).</li><li><strong>Resource</strong>: sumber daya terbatas yang bisa diminta: proses: satu mesin, satu operator, satu ruang tunggu. Kalau resource sedang dipakai, proses lain menunggu.</li></ol><p>Cara kerjanya sederhana: proses meminta resource, proses menunggu event selesai, dan environment memajukan waktu simulasi di antara event-event itu.</p><p>Contoh paling sederhana, dua jam yang berdetak dengan interval berbeda:</p><pre>import simpy<br><br>def jam(env, nama, interval):<br>    while True:<br>        print(f&quot;{env.now:5.1f}  {nama} berbunyi&quot;)<br>        yield env.timeout(interval)<br>env = simpy.Environment()<br>env.process(jam(env, &quot;jam cepat&quot;, 0.5))<br>env.process(jam(env, &quot;jam lambat&quot;, 1.0))<br>env.run(until=2)</pre><p>Outputnya:</p><pre>0.0  jam cepat berbunyi<br>0.0  jam lambat berbunyi<br>0.5  jam cepat berbunyi<br>1.0  jam lambat berbunyi<br>1.0  jam cepat berbunyi<br>1.5  jam cepat berbunyi</pre><p>Perhatikan env.nowIa melompat, bukan berdetak per detik. Itulah inti DES. Simulasi tidak berjalan real-time; ia melompat dari event ke event.</p><h3>Studi kasus: antrean di depan satu mesin</h3><p>Sekarang kembali ke soal di awal. Sebuah stasiun kerja di lantai produksi dengan satu mesin. Part datang mengikuti <em>proses Poisson</em> (kedatangan acak dengan laju rata-rata konstan), dan mesin memproses tiap part dengan durasi <em>eksponensial</em> (waktu proses acak, lebih sering pendek daripada panjang).</p><p>Dalam teori antrean, model ini disebut <strong>M/M/1</strong>: kedatangan Markovian, layanan Markovian, satu server. Ia adalah model klasik yang paling sering diajarkan dan masih relevan: banyak stasiun kerja nyata perilakunya mendekati M/M/1.</p><p>Pertanyaan yang mau kita jawab:</p><ol><li>Berapa lama rata-rata part menunggu sebelum diproses?</li><li>Seberapa sibuk mesin tersebut?</li></ol><p>Konfigurasi dasarnya:</p><p>Ringkasan parameter modelnya ada di tabel ini:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/efed54cc8e0d7c5ec941f4dcaab0e8f2/href">https://medium.com/media/efed54cc8e0d7c5ec941f4dcaab0e8f2/href</a></iframe><p>Kenapa laju layanan harus lebih besar dari laju kedatangan? Kalau tidak, antrean akan tumbuh tanpa batas. Rasio 4/5 = 0,8 berarti mesin sibuk sekitar 80% dari waktu. Utilisasi teoretisnya 0,8.</p><h3>Membangun model, langkah demi langkah</h3><h3>Langkah 1: import dan kelas model</h3><pre>import simpy<br>import random<br>import statistics<br><br>class AntreanMM1:<br>    &quot;&quot;&quot;Model M/M/1: kedatangan Poisson, layanan eksponensial, 1 server.&quot;&quot;&quot;<br>    def __init__(self, env, laju_kedatangan, laju_layanan):<br>        self.env = env<br>        self.laju_kedatangan = laju_kedatangan<br>        self.laju_layanan = laju_layanan<br>        self.server = simpy.Resource(env, capacity=1)<br>        self.waktu_tunggu = []<br>        self.selesai = 0</pre><p>Kelas ini menyimpan semua kondisi model: environment, laju kedatangan dan layanan, resource server (kapasitas 1 = satu mesin), serta dua variabel pengamatan: waktu_tunggu (daftar waktu tunggu tiap part) dan selesai (jumlah part selesai diproses).</p><h3>Langkah 2: proses layanan</h3><pre>def layani(self, part_id):<br>        tiba = self.env.now<br>        with self.server.request() as req:<br>            yield req<br>            tunggu = self.env.now - tiba<br>            self.waktu_tunggu.append(tunggu)<br>            yield self.env.timeout(random.expovariate(self.laju_layanan))<br>            self.selesai += 1</pre><p>Ini jantung modelnya. part_id menandai part yang datang. Catat waktu kedatangan tiba = env.now, lalu minta resource mesin lewat self.server.request(). Kalau mesin sedang sibuk, proses <strong>menunggu di sini</strong>. Itulah antrean di model kita. Setelah dapat mesin, hitung selisih waktunya (waktu tunggu), simpan ke daftar, lalu proses part selama durasi eksponensial.</p><p>Perhatikan pola with ... as req: yield req. Inilah idiom SimPy untuk “minta resource, pakai, lalu lepaskan otomatis”. Tidak ada kode pengunci manual, tidak ada risiko lupa melepas mesin.</p><h3>Langkah 3: generator kedatangan</h3><pre>def kedatangan(self):<br>        i = 0<br>        while True:<br>            yield self.env.timeout(random.expovariate(self.laju_kedatangan))<br>            i += 1<br>            self.env.process(self.layani(i))</pre><p>Generator ini menghasilkan part tanpa henti. Setiap env.timeout yang selesai berarti satu part baru tiba, lalu proses layani dijalankan sebagai proses terpisah. SimPy menjadwalkan kedatangan berikutnya secara otomatis lewat timeout berikutnya. Interval antar kedatangan berdistribusi eksponensial dengan rata-rata 1 / laju_kedatangan.</p><h3>Langkah 4: menjalankan simulasi</h3><pre>def jalankan(laju_kedatangan=4.0, laju_layanan=5.0, durasi=1000, seed=42):<br>    random.seed(seed)<br>    env = simpy.Environment()<br>    model = AntreanMM1(env, laju_kedatangan, laju_layanan)<br>    env.process(model.kedatangan())<br>    env.run(until=durasi)<br>    n = len(model.waktu_tunggu)<br>    return {<br>        &quot;mulai_dilayani&quot;: n,<br>        &quot;selesai_dilayani&quot;: model.selesai,<br>        &quot;waktu_tunggu_rata&quot;: statistics.mean(model.waktu_tunggu) if n else 0,<br>        &quot;utilisasi&quot;: laju_kedatangan / laju_layanan,<br>    }</pre><p>Fungsi jalankan merangkai semuanya: seed acak (agar hasil bisa direproduksi), environment baru, model, generator kedatangan, lalu env.run(until=durasi) memutar simulasi sampai jam ke-1.000. Hasilnya dikembalikan sebagai dictionary.</p><p>Bagian utama program:</p><pre>if __name__ == &quot;__main__&quot;:<br>    hasil = jalankan()<br>    print(f&quot;Part mulai dilayani: {hasil[&#39;mulai_dilayani&#39;]}&quot;)<br>    print(f&quot;Part selesai dilayani: {hasil[&#39;selesai_dilayani&#39;]}&quot;)<br>    print(f&quot;Waktu tunggu rata-rata: {hasil[&#39;waktu_tunggu_rata&#39;]:.3f} satuan waktu&quot;)<br>    print(f&quot;Utilisasi server (teori): {hasil[&#39;utilisasi&#39;]:.3f}&quot;)</pre><h3>Menjalankan dan membaca hasil</h3><pre>python contoh_mm1.py</pre><p>Output yang saya dapatkan:</p><pre>Part mulai dilayani: 3961<br>Part selesai dilayani: 3960<br>Waktu tunggu rata-rata: 0.910 satuan waktu<br>Utilisasi server (teori): 0.800</pre><p>Mari baca angkanya satu per satu.</p><ul><li><strong>3.961 part mulai dilayani</strong> dalam 1.000 jam. Rata-rata 4 part/jam dikali 1.000 jam = 4.000 part “seharusnya” tiba. Tapi karena kedatangan acak, realisasi sampel acaknya 3.961. Itu normal; ini simulasi satu realisasi, bukan rata-rata teoretis.</li><li><strong>Waktu tunggu rata-rata 0,910 jam</strong>, sekitar 55 menit. Part datang, lalu menunggu hampir satu jam sebelum diproses, padahal waktu prosesnya sendiri rata-rata 0,2 jam (12 menit). Ini gambaran nyata M/M/1: di utilisasi 80%, waktu tunggu jauh lebih panjang daripada waktu proses.</li><li><strong>Utilisasi 0,800</strong> cocok dengan teori: laju kedatangan dibagi laju layanan.</li></ul><p>Menarik, bukan? Sistem yang “cuma” 80% sibuk sudah membuat part menunggu hampir satu jam. Ini alasan mengapa pabrik tidak bisa dijalankan di utilisasi 95% tanpa membangun antrean besar: <strong>variasi mengubah segalanya</strong>.</p><p>Teori antrean menyebut ini dengan rumus waktu tunggu M/M/1: Wq = ρ / (μ(1 − ρ)). Dengan ρ = 0,8 dan μ = 5, hasilnya 0,8 / (5 × 0,2) = 0,8 jam. Hasil simulasi kita, 0,910, mendekati nilai itu. Perbedaannya karena satu realisasi sampel acak dan horizon simulasi yang terbatas; makin panjang durasi dan makin banyak replikasi, makin dekat ke nilai teoretis.</p><blockquote><em>Jadi kalau Anda bertanya “kenapa mesin yang kapasitasnya lebih besar masih bikin antrean?”, jawabannya bukan di rata-rata, tapi di variasi.</em></blockquote><h3>Eksperimen cepat: seberapa sensitif antrean terhadap utilisasi?</h3><p>Salah satu keunggulan model simulasi: ia mudah dieksperimeni. Ubah laju layanan dari 5 menjadi 5,5 part/jam. Utilisasi turun dari 0,8 ke sekitar 0,73. Lalu lihat apa yang terjadi pada waktu tunggu.</p><pre>python contoh_mm1.py   # ubah laju_layanan=5.5 pada panggilan jalankan()</pre><p>Kalau Anda jalankan, waktu tunggu rata-rata turun drastis, tidak proporsional. Sedikit ruang ekstra di kapasitas mesin menghasilkan perbaikan besar pada antrean. Perilaku non-linear seperti ini sulit diprediksi dengan intuisi: perubahan kecil pada utilisasi mengubah waktu tunggu secara eksponensial di wilayah utilisasi tinggi. Justru di sinilah DES menunjukkan nilainya.</p><p>Coba juga variasikan seed untuk melihat variasi antar realisasi. Satu simulasi = satu sampel acak. Di praktik nyata, Anda perlu <strong>replikasi</strong> (banyak seed) lalu menganalisis selang kepercayaan.</p><h3>Kode lengkap dan repositori GitHub</h3><p>Seluruh kode tutorial ini ada di satu file: contoh_mm1.py. File lengkapnya bisa Anda unduh dari:</p><blockquote><strong><em>GitHub: </em></strong><a href="https://github.com/911ray911/snippets"><strong><em>github.com/911ray911/snippets</em></strong></a><em>, file </em><em>contoh_mm1.py</em></blockquote><p>Kalau Anda hanya ingin melihat kodenya tanpa clone, ada juga <a href="https://gist.github.com/911ray911/6d323eb8afbe1cdac69ad84a331a38a3">gist-nya di sini</a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6c55641af67889b606d6ed34b09ade50/href">https://medium.com/media/6c55641af67889b606d6ed34b09ade50/href</a></iframe><p>Repositori berisi kode lengkap, instruksi instalasi, dan contoh-contoh lanjutan (antrean multi-server M/M/c, mesin dengan breakdown). Kalau Anda menemukan bug atau punya ide perbaikan, silakan buka issue atau pull request. SimPy itu proyek komunitas; tidak ada salahnya ikut berkontribusi.</p><h3>Langkah berikutnya</h3><p>Tutorial ini baru permukaan. Kalau Anda ingin mendalami:</p><ol><li><strong>M/M/c</strong>: ganti capacity=1 menjadi beberapa mesin paralel, lalu bandingkan waktu tunggunya dengan satu mesin cepat.</li><li><strong>Breakdown</strong>: sisipkan env.timeout acak untuk kerusakan mesin, lalu lihat efeknya pada throughput.</li><li><strong>Replikasi dan analisis output</strong>: jalankan 30 seed, hitung mean dan selang kepercayaan pakai scipy.</li><li><strong>Optimasi</strong>: kombinasikan SimPy dengan library optimasi untuk mencari jumlah mesin terbaik.</li></ol><h3>Penutup</h3><p>Kembali ke kelas tadi. Setelah simulasi dijalankan dan kelas terdiam, dosen biasanya bertanya lagi:</p><p>“Jadi, kalau part datang rata-rata 4 per jam dan mesin mampu 5 per jam, kenapa masih antre?”</p><p>Dan sekarang Anda tahu jawabannya. Bukan karena mesinnya kurang cepat. Tapi karena sistem nyata tidak pernah serapi rata-rata di atas kertas. Variasi selalu ada, dan variasi selalu punya harga.</p><p>Simulasi tidak memberi Anda satu jawaban benar. Ia memberi spektrum kemungkinan, tempat aman untuk mencoba berbagai skenario tanpa harus mengganggu operasi nyata. Di dunia industri yang makin kompleks, kemampuan ini bukan lagi keunggulan, melainkan kebutuhan.</p><p>Kalau Anda pernah menghadapi kasus antrean serupa di kerjaan, tugas kuliah, atau sekadar penasaran dengan simulasi, tulis di kolom komentar. Diskusi dari pengalaman nyata selalu lebih berharga daripada teori di atas kertas.</p><h3>Referensi</h3><p>Banks, J., Carson, J. S., Nelson, B. L., &amp; Nicol, D. M. (2010). <em>Discrete-event system simulation</em> (5th ed.). Pearson.</p><p>Law, A. M., &amp; Kelton, W. D. (2015). <em>Simulation modeling and analysis</em> (5th ed.). McGraw-Hill.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce09b240c438" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Geo AI for Industrial Engineering: Build Your First Smart Location Map with Python]]></title>
            <link>https://medium.com/@raysoesanto/geo-ai-for-industrial-engineering-build-your-first-smart-location-map-with-python-dd2e8fb31eb5?source=rss-a1efeabde928------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd2e8fb31eb5</guid>
            <category><![CDATA[industrial-engineering]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[geoai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Ray Soesanto]]></dc:creator>
            <pubDate>Tue, 21 Apr 2026 10:17:37 GMT</pubDate>
            <atom:updated>2026-04-21T10:17:37.602Z</atom:updated>
            <content:encoded><![CDATA[<p>Learn how to turn simple location data into a visual decision-making map using Python, clustering, and a beginner-friendly industrial case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KQrm0glplHtX1p37" /><figcaption>Photo by <a href="https://unsplash.com/@arttravelling?utm_source=medium&amp;utm_medium=referral">oxana v</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>There is a moment when many students first hear the term <strong>Geo AI</strong> and immediately think, “This sounds advanced. Probably too mathematical. Probably not for me.”</p><p>I get it.</p><p>The phrase sounds like something that belongs in a research lab, hidden behind satellite imagery, massive GIS software, and complicated machine learning papers. But the truth is much simpler: at its core, Geo AI is often just <strong>location data + analysis + visual insight</strong>.</p><p>And if you are in <strong>Industrial Engineering</strong>, that combination is actually very familiar.</p><p>Industrial Engineering is full of location-based questions:<br>- Where should we place a facility?<br>- Which area should be prioritized first?<br>- Are some locations naturally grouped?<br>- Can a map help us make better operational decisions?</p><p>That is exactly why Geo AI matters.</p><p>In this tutorial, we will build a very simple mini-project using Python. We will pretend that we are analyzing several small distribution or service points in a city, then use a lightweight clustering method to group them, and finally show the results on an interactive map.</p><p>No heavy theory. No scary math. Just a clean first hands-on project that makes Geo AI feel real.</p><h3>Why this tutorial is useful</h3><p>If you are a beginner, the hardest part is usually not the code. It is understanding what the code is *for*.</p><p>This tutorial helps you see Geo AI in an Industrial Engineering context:<br>- not as a buzzword,<br>- not as a black-box AI system,<br>- but as a practical way to support decisions using spatial data.</p><p>By the end of this tutorial, you will build a small demo that:<br>1. creates sample industrial-related location data,<br>2. reads the data in Python,<br>3. groups nearby points using clustering,<br>4. shows the result on an interactive map.</p><blockquote>That is already enough to say: <br>“Okay, now I can see what Geo AI looks like in practice.”</blockquote><h3>What we are going to build</h3><p>We will build a simple Geo AI demo for a fictional case:</p><blockquote><em>A small urban logistics team wants to understand the pattern of delivery points or service locations in a city area.</em></blockquote><p>We will use:</p><ul><li><strong>latitude and longitude</strong> as location data,</li><li><strong>K-Means clustering</strong> to group nearby points,</li><li><strong>Folium</strong> to visualize them on an interactive map.</li></ul><p>In real Industrial Engineering work, this kind of demo can become the starting point for:</p><ul><li>delivery zone planning,</li><li>waste collection grouping,</li><li>service coverage analysis,</li><li>field survey planning,</li><li>micro-warehouse location exploration.</li></ul><p>So while this project is simple, the thinking behind it is very relevant.</p><h3>Prerequisites</h3><p>You do <strong>not</strong> need to be an expert in:</p><ul><li>GIS</li><li>AI</li><li>machine learning</li><li>mapping software</li></ul><p>You only need:</p><ul><li>basic Python installed</li><li>a code editor such as VS Code or Jupyter Notebook</li><li>willingness to try</li></ul><p>We will use three beginner-friendly Python libraries:</p><ul><li>pandas for handling tabular data</li><li>scikit-learn for simple clustering</li><li>folium for interactive maps</li></ul><p>Install them with:</p><pre>pip install pandas scikit-learn folium</pre><p>This command installs all the tools we need for the tutorial.</p><ul><li>pandas helps us read and manage data like a spreadsheet.</li><li>scikit-learn gives us a simple ready-to-use clustering algorithm.</li><li>folium lets us create a web-style interactive map directly from Python.</li></ul><h3>Step 1 — Create a simple industrial case dataset</h3><p>To keep things easy, we will make our own sample data first.</p><p>Imagine these are small delivery points, collection points, or customer service locations in a city.</p><p>Create a file namedgeo_ai_demo.py, then write this code:</p><pre>import pandas as pd<br><br>data = [<br>    {&quot;location_name&quot;: &quot;Point A&quot;, &quot;latitude&quot;: -6.9147, &quot;longitude&quot;: 107.6098, &quot;daily_demand&quot;: 20},<br>    {&quot;location_name&quot;: &quot;Point B&quot;, &quot;latitude&quot;: -6.9170, &quot;longitude&quot;: 107.6120, &quot;daily_demand&quot;: 15},<br>    {&quot;location_name&quot;: &quot;Point C&quot;, &quot;latitude&quot;: -6.9105, &quot;longitude&quot;: 107.6075, &quot;daily_demand&quot;: 18},<br>    {&quot;location_name&quot;: &quot;Point D&quot;, &quot;latitude&quot;: -6.9200, &quot;longitude&quot;: 107.6180, &quot;daily_demand&quot;: 25},<br>    {&quot;location_name&quot;: &quot;Point E&quot;, &quot;latitude&quot;: -6.9225, &quot;longitude&quot;: 107.6205, &quot;daily_demand&quot;: 22},<br>    {&quot;location_name&quot;: &quot;Point F&quot;, &quot;latitude&quot;: -6.9080, &quot;longitude&quot;: 107.6050, &quot;daily_demand&quot;: 12},<br>    {&quot;location_name&quot;: &quot;Point G&quot;, &quot;latitude&quot;: -6.9260, &quot;longitude&quot;: 107.6250, &quot;daily_demand&quot;: 30},<br>    {&quot;location_name&quot;: &quot;Point H&quot;, &quot;latitude&quot;: -6.9120, &quot;longitude&quot;: 107.6105, &quot;daily_demand&quot;: 17}<br>]<br><br>df = pd.DataFrame(data)<br><br>print(df)</pre><h3>What this code does</h3><p>We create a small dataset directly inside Python.</p><p>Each row represents one location, and each location has:</p><ul><li>a name,</li><li>a latitude,</li><li>a longitude,</li><li>a daily demand value.</li></ul><p>That The daily_demand field is optional for the clustering in this tutorial, but it makes the case feel more realistic for Industrial Engineering. It could represent:</p><ul><li>daily delivery demand,</li><li>number of customer requests,</li><li>waste volume,</li><li>service frequency,</li><li>or small parcel volume.</li></ul><p>Then we convert the list into apandas DataFrame, which is basically a table.</p><p>When you run the code, Python will print the dataset so you can see it clearly.</p><h3>Step 2 — Save the sample data as CSV</h3><p>Now, let us save the data into a CSV file. This is useful because most real projects do not start with hardcoded Python data. They start with files.</p><p>Add this below the previous code:</p><pre>df.to_csv(&quot;locations.csv&quot;, index=False)<br>print(&quot;CSV file saved as locations.csv&quot;)</pre><h3>What this code does</h3><p>This line saves the table into a file called locations.csv.</p><p>Why does this matter?</p><p>Because it helps you think more like a real analyst or engineer. In practice, your data may come from:</p><ul><li>Excel,</li><li>surveys,</li><li>GPS collection,</li><li>ERP exports,</li><li>or logistics records.</li></ul><p>Saving the file now gives us a more realistic workflow: first create or collect data, then read it back in for analysis.</p><h3>Step 3 — Load the CSV like a real project</h3><p>Now imagine the CSV already exists, and your job is to analyze it.</p><p>Add this code:</p><pre>df = pd.read_csv(&quot;locations.csv&quot;)<br>print(df.head())</pre><h3>What this code does</h3><p>This reloads the file we just saved.</p><p>read_csv() is one of the most common functions in data analysis. It reads a CSV file into a table structure so we can work with it in Python.</p><p>df.head() shows the first five rows, which is a quick way to check whether the data was loaded correctly.</p><p>This small habit is important. In real projects, always inspect your data early before doing any analysis.</p><h3>Step 4 — Understand the Geo AI idea before the AI part</h3><p>Before jumping into clustering, let us make one thing clear.</p><p>What makes this “Geo AI”?</p><p>It is not just the map.<br> It is not just machine learning.</p><p>It is the combination of:</p><ol><li><strong>geographic data</strong> → the coordinates,</li><li><strong>analytical logic</strong> → grouping similar locations,</li><li><strong>decision insight</strong> → seeing the pattern visually.</li></ol><p>In this tutorial, the “AI” part is very light. We will use <strong>K-Means clustering</strong>, which is a simple method to group points that are close to one another.</p><p>You can think of it like this:</p><blockquote><em>“Instead of manually staring at coordinates and guessing which locations belong together, let the algorithm help group them.”</em></blockquote><p>That is already a practical step toward intelligent spatial analysis.</p><h3>Step 5 — Run simple clustering on the coordinates</h3><p>Now we will group the points into 3 clusters.</p><p>Add this code:</p><pre>from sklearn.cluster import KMeans<br><br>X = df[[&quot;latitude&quot;, &quot;longitude&quot;]]<br><br>kmeans = KMeans(n_clusters=3, random_state=42, n_init=10)<br>df[&quot;cluster&quot;] = kmeans.fit_predict(X)<br><br>print(df[[&quot;location_name&quot;, &quot;latitude&quot;, &quot;longitude&quot;, &quot;cluster&quot;]])</pre><h3>What this code does</h3><p>Let us break it down carefully.</p><p><strong>1. Select the location columns</strong></p><pre>X = df[[&quot;latitude&quot;, &quot;longitude&quot;]]</pre><p>This tells Python that clustering should only use the coordinate columns.</p><p>We are saying:</p><blockquote><em>“Group locations based on where they are.”</em></blockquote><p>2. Create the K-Means model</p><pre>kmeans = KMeans(n_clusters=3, random_state=42, n_init=10)</pre><p>This creates a clustering model.</p><ul><li>n_clusters=3 means we want 3 groups.</li><li>random_state=42 makes the result more consistent each time you run it.</li><li>n_init=10 tells the algorithm to try several starting points before choosing the best grouping.</li></ul><p>3. Fit the model and assign cluster labels</p><pre>df[&quot;cluster&quot;] = kmeans.fit_predict(X)</pre><p>This is the key step.</p><p>The algorithm looks at the coordinates, finds a good grouping, and then writes the cluster number into a new column called cluster.</p><p>Each location will now belong to a cluster 0, 1, or 2.</p><p>This is useful in Industrial Engineering because grouping nearby points can help with:</p><ul><li>delivery zoning,</li><li>service territory design,</li><li>route planning preparation,</li><li>resource assignment.</li></ul><h3>Step 6 — Look at the cluster centers</h3><p>Now, let us inspect the center of each cluster.</p><p>Add this code:</p><pre>centers = kmeans.cluster_centers_<br>print(&quot;Cluster centers:&quot;)<br>print(centers)</pre><h3>What this code does</h3><p>Each cluster has a center point.</p><p>These centers are not necessarily actual real locations from the dataset. They are computed positions that represent the “middle” of each group.</p><p>In practical terms, cluster centers can help you think about:</p><ul><li>possible mini hubs,</li><li>approximate service zones,</li><li>representative area centers.</li></ul><p>Later, in more advanced projects, these centers could become candidates for:</p><ul><li>temporary storage points,</li><li>consolidation hubs,</li><li>inspection zones,</li><li>or dispatch planning regions.</li></ul><h3>Step 7 — Visualize the result on an interactive map</h3><p>Now comes the fun part. We will turn the data into a map.</p><p>Add this code:</p><pre>import folium<br><br>center_lat = df[&quot;latitude&quot;].mean()<br>center_lon = df[&quot;longitude&quot;].mean()<br><br>m = folium.Map(location=[center_lat, center_lon], zoom_start=14)</pre><h3>What this code does</h3><p>First, we compute the average latitude and longitude of all points.</p><p>That average is used as the center of the map, so when the map opens, it is already focused on the area where our points exist.</p><p>Then we create an folium.Map object.</p><ul><li>location=[center_lat, center_lon] sets the initial map center.</li><li>zoom_start=14 controls how close the map appears.</li></ul><p>This gives us a blank interactive map.</p><h3>Step 8 — Add markers for each location</h3><p>Now, let us place all the locations on the map.</p><p>Add this code:</p><pre>cluster_colors = {<br>    0: &quot;red&quot;,<br>    1: &quot;blue&quot;,<br>    2: &quot;green&quot;<br>}<br><br>for _, row in df.iterrows():<br>    folium.Marker(<br>        location=[row[&quot;latitude&quot;], row[&quot;longitude&quot;]],<br>        popup=(<br>            f&quot;{row[&#39;location_name&#39;]}&lt;br&gt;&quot;<br>            f&quot;Demand: {row[&#39;daily_demand&#39;]}&lt;br&gt;&quot;<br>            f&quot;Cluster: {row[&#39;cluster&#39;]}&quot;<br>        ),<br>        icon=folium.Icon(color=cluster_colors[row[&quot;cluster&quot;]])<br>    ).add_to(m)</pre><h3>What this code does</h3><p>This loop goes through each row in the dataset and places one marker on the map.</p><p>For every point, we add:</p><ul><li>Its position using latitude and longitude,</li><li>a pop-up that shows useful information,</li><li>a color based on the cluster.</li></ul><p>So if two points have the same cluster, they will share the same marker color.</p><p>This is where the analysis becomes visual.</p><p>Instead of reading rows in a table, you can now instantly see:</p><ul><li>which points are close to each other,</li><li>how the algorithm grouped them,</li><li>where demand is distributed spatially.</li></ul><p>That is one of the big strengths of Geo AI: It turns numbers into a spatial story.</p><h3>Step 9 — Add the cluster centers to the map</h3><p>Let us also show the centers of the clusters.</p><p>Add this code:</p><pre>for i, center in enumerate(centers):<br>    folium.Marker(<br>        location=[center[0], center[1]],<br>        popup=f&quot;Cluster Center {i}&quot;,<br>        icon=folium.Icon(color=&quot;black&quot;, icon=&quot;info-sign&quot;)<br>    ).add_to(m)</pre><h3>What this code does</h3><p>This loop adds one extra marker for each cluster center.</p><p>We use black icons so the centers are easy to distinguish from the normal locations.</p><p>This makes the map more informative because readers can now compare:</p><ul><li>the original points,</li><li>and the center of each group.</li></ul><p>In a real decision-making scenario, these centers could help answer questions like:</p><ul><li>Where should a field officer start?</li><li>Where is the rough center of activity?</li><li>Which zones appear dense enough to be managed together?</li></ul><h3>Step 10 — Save the map as an HTML file</h3><p>Finally, let us save the result.</p><p>Add this code:</p><pre>m.save(&quot;geo_ai_map.html&quot;)<br>print(&quot;Map saved as geo_ai_map.html&quot;)</pre><h3>What this code does</h3><p>This exports the interactive map into an HTML file.</p><p>That means you can open it in your browser just like a normal webpage.</p><p>This is one of the nicest parts of using Folium for beginners:<br>You do not need to build a web app yet.<br>Python can directly generate a map that you can click, zoom, and explore.</p><h3>Full code in one place</h3><p>Here is the full script so you can copy and run it more easily:</p><pre>import pandas as pd<br>from sklearn.cluster import KMeans<br>import folium<br><br>data = [<br>    {&quot;location_name&quot;: &quot;Point A&quot;, &quot;latitude&quot;: -6.9147, &quot;longitude&quot;: 107.6098, &quot;daily_demand&quot;: 20},<br>    {&quot;location_name&quot;: &quot;Point B&quot;, &quot;latitude&quot;: -6.9170, &quot;longitude&quot;: 107.6120, &quot;daily_demand&quot;: 15},<br>    {&quot;location_name&quot;: &quot;Point C&quot;, &quot;latitude&quot;: -6.9105, &quot;longitude&quot;: 107.6075, &quot;daily_demand&quot;: 18},<br>    {&quot;location_name&quot;: &quot;Point D&quot;, &quot;latitude&quot;: -6.9200, &quot;longitude&quot;: 107.6180, &quot;daily_demand&quot;: 25},<br>    {&quot;location_name&quot;: &quot;Point E&quot;, &quot;latitude&quot;: -6.9225, &quot;longitude&quot;: 107.6205, &quot;daily_demand&quot;: 22},<br>    {&quot;location_name&quot;: &quot;Point F&quot;, &quot;latitude&quot;: -6.9080, &quot;longitude&quot;: 107.6050, &quot;daily_demand&quot;: 12},<br>    {&quot;location_name&quot;: &quot;Point G&quot;, &quot;latitude&quot;: -6.9260, &quot;longitude&quot;: 107.6250, &quot;daily_demand&quot;: 30},<br>    {&quot;location_name&quot;: &quot;Point H&quot;, &quot;latitude&quot;: -6.9120, &quot;longitude&quot;: 107.6105, &quot;daily_demand&quot;: 17}<br>]<br><br>df = pd.DataFrame(data)<br><br>df.to_csv(&quot;locations.csv&quot;, index=False)<br><br>df = pd.read_csv(&quot;locations.csv&quot;)<br><br>X = df[[&quot;latitude&quot;, &quot;longitude&quot;]]<br><br>kmeans = KMeans(n_clusters=3, random_state=42, n_init=10)<br>df[&quot;cluster&quot;] = kmeans.fit_predict(X)<br><br>centers = kmeans.cluster_centers_<br><br>center_lat = df[&quot;latitude&quot;].mean()<br>center_lon = df[&quot;longitude&quot;].mean()<br><br>m = folium.Map(location=[center_lat, center_lon], zoom_start=14)<br><br>cluster_colors = {<br>    0: &quot;red&quot;,<br>    1: &quot;blue&quot;,<br>    2: &quot;green&quot;<br>}<br><br>for _, row in df.iterrows():<br>    folium.Marker(<br>        location=[row[&quot;latitude&quot;], row[&quot;longitude&quot;]],<br>        popup=(<br>            f&quot;{row[&#39;location_name&#39;]}&lt;br&gt;&quot;<br>            f&quot;Demand: {row[&#39;daily_demand&#39;]}&lt;br&gt;&quot;<br>            f&quot;Cluster: {row[&#39;cluster&#39;]}&quot;<br>        ),<br>        icon=folium.Icon(color=cluster_colors[row[&quot;cluster&quot;]])<br>    ).add_to(m)<br><br>for i, center in enumerate(centers):<br>    folium.Marker(<br>        location=[center[0], center[1]],<br>        popup=f&quot;Cluster Center {i}&quot;,<br>        icon=folium.Icon(color=&quot;black&quot;, icon=&quot;info-sign&quot;)<br>    ).add_to(m)<br><br>m.save(&quot;geo_ai_map.html&quot;)<br><br>print(&quot;Done! Open geo_ai_map.html in your browser.&quot;)</pre><h3>What the full code is doing overall</h3><p>If we zoom out, the full workflow is actually very simple:</p><ol><li>create sample location data,</li><li>save and reload it,</li><li>cluster the coordinates,</li><li>create a map,</li><li>show the points and cluster centers,</li><li>Save the final interactive visualization.</li></ol><p>That is a nice first Geo AI pipeline for beginners.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QTRNWk3kgc3NiagmpotmKQ.jpeg" /></figure><h3>What the final result looks like</h3><p>At the end, you will have an interactive HTML map where:</p><ul><li>each industrial-related location appears as a marker,</li><li>each marker color shows its cluster,</li><li>each popup shows name, demand, and cluster,</li><li>Cluster centers are also visible.</li></ul><p>This is already enough to demonstrate a basic Geo AI idea:</p><blockquote><em>using location data and lightweight intelligence to support spatial understanding.</em></blockquote><p>And that matters in Industrial Engineering because decisions are rarely only about numbers.<br> They are often about <strong>numbers in space</strong>.</p><p>A demand value becomes more meaningful when you know <strong>where</strong> it happens.<br> A service problem becomes more actionable when you know <strong>which points form a zone</strong>.<br> A logistics challenge becomes easier to discuss when the pattern is visible on a map.</p><h3>Why does this connect so well to Industrial Engineering</h3><p>Industrial Engineering is all about designing better systems.</p><p>Geo AI strengthens that mission when system problems have a spatial dimension.</p><p>For example:</p><ul><li><strong>Logistics:</strong> group delivery points before route design</li><li><strong>Waste management:</strong> cluster collection spots by area</li><li><strong>Facility planning:</strong> inspect service concentration visually</li><li><strong>Field operations:</strong> assign technicians by geographic zone</li><li><strong>Urban services:</strong> identify dense or underserved regions</li></ul><p>Notice what is happening here:<br> We are not using AI just to sound modern.</p><p>We are using it because it helps us make sense of operational reality.</p><p>That is the real value.</p><h3>Easy upgrades you can try next</h3><p>Once you are comfortable with this version, here are a few great beginner-friendly improvements:</p><h3>1. Use real CSV data</h3><p>Replace the dummy dataset with real coordinates from:</p><ul><li>Google Maps,</li><li>field surveys,</li><li>public datasets,</li><li>or simple manual collection.</li></ul><h3>2. Include demand in the analysis</h3><p>Right now, clustering only uses latitude and longitude.<br> Later, you could also include daily_demand to make the grouping more operationally meaningful.</p><h3>3. Try different cluster counts</h3><p>Change:</p><pre>n_clusters=3</pre><p>to 2, 4, or 5 and compare the map.</p><p>This helps you understand that analysis choices influence decision outcomes.</p><h3>4. Add circle markers by demand size</h3><p>You can make bigger demand points appear larger on the map.</p><h3>5. Move toward real decision support</h3><p>You could combine this with:</p><ul><li>route optimization,</li><li>facility selection,</li><li>service coverage analysis,</li><li>or priority ranking.</li></ul><p>That is where simple Geo AI can grow into a serious Industrial Engineering tool.</p><h3>Closing thoughts</h3><p>If you made it this far, you have already done something important.</p><p>You did not just read about Geo AI.<br> You built a small version of it.</p><p>You took location data, applied a simple analytical method, and turned the result into a visual map that supports decision-making. That is a very good first step, especially if you are coming from an Industrial Engineering background and want something practical instead of overly theoretical.</p><p>The nice part is that this project is small enough to finish in one sitting, but meaningful enough to open bigger ideas:</p><ul><li>smarter logistics,</li><li>better spatial planning,</li><li>clearer operational insights,</li><li>and more intuitive decision support tools.</li></ul><p>So experiment with it.</p><p>Change the case.<br>Add more points.<br>Use your own city.<br>Try a waste collection case, a facility case, or a service coverage case.</p><p>Because once Geo AI stops looking intimidating, it starts becoming useful.</p><p>And that is when the fun begins.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd2e8fb31eb5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dari Strategi Sepak Bola ke Strategi Industri: Cara ‘Mencoba Masa Depan’ Tanpa Risiko]]></title>
            <link>https://medium.com/@raysoesanto/dari-strategi-sepak-bola-ke-strategi-industri-cara-mencoba-masa-depan-tanpa-risiko-687ebd548453?source=rss-a1efeabde928------2</link>
            <guid isPermaLink="false">https://medium.com/p/687ebd548453</guid>
            <category><![CDATA[industrial-engineering]]></category>
            <category><![CDATA[simulation-system]]></category>
            <category><![CDATA[digital-twin]]></category>
            <category><![CDATA[decision-support-systems]]></category>
            <category><![CDATA[geo-intelligent]]></category>
            <dc:creator><![CDATA[Ray Soesanto]]></dc:creator>
            <pubDate>Mon, 13 Apr 2026 01:07:05 GMT</pubDate>
            <atom:updated>2026-04-13T01:07:05.299Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YDIMntMi1bkPBXiu" /><figcaption>Photo by <a href="https://unsplash.com/@udhies?utm_source=medium&amp;utm_medium=referral">usiswantoro</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Jika kita bicara soal sepak bola, ada satu pertanyaan klasik yang sering muncul, terutama saat tim favorit kita kalah:</p><blockquote>“Kenapa sih pelatihnya nggak ganti strategi dari tadi?”</blockquote><p>Pertanyaan ini terdengar sederhana, tapi sebenarnya kompleks. Karena di balik satu keputusan, misalnya mengganti formasi dari 4–3–3 ke 3–5–2, ada banyak variabel yang harus dipertimbangkan: stamina pemain, pola serangan lawan, posisi di lapangan, hingga probabilitas gol.</p><p>Masalahnya, pelatih tidak punya “tombol undo”.</p><p>Kalau salah strategi, ya sudah kebobolan.</p><p>Nah, sekarang bayangkan jika pelatih seperti di Persib bisa mencoba strategi itu dulu sebelum benar-benar diterapkan di lapangan. Dicoba 10 kali, dilihat hasilnya, lalu dipilih yang paling optimal.</p><p>Kalau ini terdengar seperti game, Anda tidak salah.</p><p>Selamat datang di dunia <strong>digital twin, simulasi, dan geo-intelligent</strong>.</p><h3>Ketika Dunia Nyata Punya “Versi Cadangan”</h3><p>Mari mulai dari digital twin.</p><p>Secara sederhana, digital twin adalah versi digital dari sistem nyata. Tapi bukan sekadar model statis seperti gambar atau diagram. Ia hidup. Ia berubah mengikuti data real-time.</p><p>Kalau kita tarik ke sepak bola, digital twin itu seperti punya “tim virtual” yang perilakunya mirip dengan tim asli yang lengkap dengan kecepatan pemain, akurasi passing, bahkan kecenderungan salah umpan (yang ini biasanya sensitif).</p><p>Dalam dunia industri, konsep ini sudah banyak digunakan. Misalnya, pada manufaktur, digital twin dipakai untuk memodelkan kondisi mesin dan alur produksi. Dengan ini, perusahaan bisa memantau performa sistem secara kontinu dan bahkan memprediksi kegagalan sebelum terjadi (Tao et al., 2019).</p><p>Artinya, kita tidak lagi sekadar melihat apa yang terjadi tapi juga memahami apa yang akan terjadi.</p><h3>Simulasi: Tempat Aman untuk “Salah”</h3><p>Sekarang masuk ke simulasi.</p><p>Kalau digital twin adalah modelnya, simulasi adalah “arena eksperimennya”.</p><p>Dalam sepak bola, ini seperti Anda mencoba berbagai strategi tanpa takut kalah. Mau coba pressing tinggi? Silakan. Mau main bertahan total? Silakan. Mau parkir bus? Ya… itu pilihan hidup.</p><p>Simulasi memungkinkan kita menjawab pertanyaan “bagaimana jika…”.</p><p>Dalam teknik industri, pendekatan ini sudah lama digunakan. Contohnya pada sistem antrian, supply chain, hingga perencanaan produksi. Dengan simulasi, perusahaan bisa menguji berbagai skenario tanpa harus benar-benar mengganggu operasi nyata (Banks et al., 2010).</p><p>Dan yang menarik, simulasi tidak selalu memberikan satu jawaban benar. Ia memberikan spektrum kemungkinan.</p><p>Jadi kalau hasilnya tidak sesuai harapan, kita tidak bilang “salah”… tapi “Oh, ternyata kalau begitu hasilnya seperti ini.”</p><p>Lebih elegan, dan lebih ilmiah.</p><h3>Geo-Intelligent: Karena Lokasi Itu Tidak Pernah Netral</h3><p>Sekarang kita masuk ke bagian yang sering dianggap “tambahan”, padahal justru krusial: lokasi.</p><p>Dalam sepak bola, semua orang tahu bahwa posisi itu penting. Serangan dari sisi kanan bisa berbeda hasilnya dibandingkan dengan sisi kiri. Bahkan satu langkah posisi bisa menentukan offside atau tidak.</p><p>Dalam industri, konsep ini diterjemahkan menjadi geo-intelligent.</p><p>Geo-intelligent menggabungkan data spasial (lokasi) dengan analisis cerdas. Artinya, keputusan tidak hanya berdasarkan angka, tetapi juga konteks geografis.</p><p>Misalnya:</p><ul><li>lokasi gudang</li><li>jarak distribusi</li><li>kondisi jalan</li><li>kepadatan wilayah</li></ul><p>Semua ini mempengaruhi keputusan secara signifikan. Penelitian menunjukkan bahwa integrasi GIS dengan sistem pendukung keputusan mampu meningkatkan kualitas perencanaan dan efisiensi operasional (Goodchild, 2007).</p><p>Jadi kalau sebelumnya kita hanya bertanya “apa yang harus dilakukan”, sekarang pertanyaannya berkembang menjadi:</p><blockquote>“apa yang harus dilakukan, dan di mana sebaiknya dilakukan?”</blockquote><h3>Ketika Ketiganya Digabung</h3><p>Sekarang kita gabungkan semuanya.</p><p>Bayangkan Anda adalah seorang engineer (atau pelatih, tergantung preferensi hidup):</p><p>Anda punya:</p><ul><li>digital twin → model sistem nyata</li><li>simulasi → alat untuk mencoba skenario</li><li>geo-intelligent → konteks lokasi</li></ul><p>Dengan kombinasi ini, Anda bisa:</p><ul><li>menguji berbagai keputusan</li><li>melihat dampaknya</li><li>mempertimbangkan faktor spasial</li></ul><p>Dalam sepak bola, ini seperti tahu:</p><ul><li>kapan harus menyerang</li><li>dari sisi mana</li><li>dengan formasi apa</li></ul><p>Dalam industri, ini berarti:</p><ul><li>rute distribusi lebih optimal</li><li>biaya lebih efisien</li><li>risiko lebih terkendali</li></ul><p>Dan yang paling penting: keputusan tidak lagi berbasis feeling semata.</p><p>Walaupun jujur saja, kadang feeling masih dipakai, tapi sekarang minimal ada backup datanya.</p><h3>Kenapa Ini Relevan</h3><p>Kita hidup di dunia yang penuh ketidakpastian. Permintaan bisa berubah, kondisi bisa terganggu, dan sistem bisa gagal kapan saja.</p><p>Pendekatan lama biasanya seperti ini:<br>coba → gagal → perbaiki → ulangi</p><p>Pendekatan modern:<br>simulasikan → analisis → baru implementasi</p><p>Perbedaan utamanya ada pada biaya dan risiko.</p><p>Jadi, tidak heran jika digital twin menjadi salah satu teknologi kunci dalam transformasi industri menuju sistem yang lebih cerdas dan berkelanjutan (Fuller et al., 2020).</p><h3>Penutup: Dari Pelatih ke Engineer (Atau Sebaliknya)</h3><p>Jika dipikir-pikir, pelatih sepak bola dan engineer itu tidak terlalu berbeda.</p><p>Keduanya:</p><ul><li>mengelola sistem</li><li>menghadapi ketidakpastian</li><li>harus mengambil keputusan cepat</li></ul><p>Perbedaannya, pelatih biasanya disoraki kalau salah. Engineer biasanya diminta bikin laporan dulu.</p><p>Namun dengan adanya digital twin, simulasi, dan geo-intelligent, keduanya punya satu keunggulan yang sama:</p><blockquote>kemampuan untuk “melihat masa depan” sebelum benar-benar terjadi.</blockquote><p>Dan di dunia yang semakin kompleks, kemampuan ini bukan lagi keunggulan, melainkan sebuah kebutuhan.</p><h3>Referensi</h3><p>Banks, J., Carson, J. S., Nelson, B. L., &amp; Nicol, D. M. (2010). <em>Discrete-event system simulation</em> (5th ed.). Pearson.</p><p>Fuller, A., Fan, Z., Day, C., &amp; Barlow, C. (2020). Digital twin: Enabling technologies, challenges and open research. <em>IEEE Access</em>, 8, 108952–108971. <a href="https://doi.org/10.1109/ACCESS.2020.2998358">https://doi.org/10.1109/ACCESS.2020.2998358</a></p><p>Goodchild, M. F. (2007). Citizens as sensors: The world of volunteered geography. <em>GeoJournal</em>, 69(4), 211–221. <a href="https://doi.org/10.1007/s10708-007-9111-y">https://doi.org/10.1007/s10708-007-9111-y</a></p><p>Tao, F., Zhang, H., Liu, A., &amp; Nee, A. Y. C. (2019). Digital twin in industry: State-of-the-art. <em>IEEE Transactions on Industrial Informatics</em>, 15(4), 2405–2415. <a href="https://doi.org/10.1109/TII.2018.2873186">https://doi.org/10.1109/TII.2018.2873186</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=687ebd548453" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The archipelago Problem: Why Agentic Geo-Intelligent AI is IE’s Most Urgent Frontier in Indonesia]]></title>
            <link>https://medium.com/geo-intelligent-lab/the-archipelago-problem-why-agentic-geo-intelligent-ai-is-ies-most-urgent-frontier-in-indonesia-9dc383a2582c?source=rss-a1efeabde928------2</link>
            <guid isPermaLink="false">https://medium.com/p/9dc383a2582c</guid>
            <category><![CDATA[supply-chain]]></category>
            <category><![CDATA[industrial-engineering]]></category>
            <category><![CDATA[indonesia]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[geo-intelligent]]></category>
            <dc:creator><![CDATA[Ray Soesanto]]></dc:creator>
            <pubDate>Tue, 07 Apr 2026 13:05:34 GMT</pubDate>
            <atom:updated>2026-04-07T13:10:09.112Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FIGci05aPqRignmh" /><figcaption>Photo by <a href="https://unsplash.com/@drwmrk?utm_source=medium&amp;utm_medium=referral">Andrew Stutesman</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><em>The greatest irony of modern industrial management: we have built systems that can optimize a supply chain across six continents, yet we still struggle to move a container of goods from Java to Papua at a reasonable cost.</em></p><p>Picture a production planning manager at a consumer goods manufacturer in Bekasi. It is a Tuesday morning, and the ERP dashboard is flashing red. A raw material shipment from a supplier in Sulawesi is delayed by eleven days. The reason? The cargo vessel had already departed the port, but nobody knew that the connecting road to the warehouse destination had been blocked by flooding for the past week. The geospatial reality on the ground had changed, but nobody in the supply chain had a system that was watching.</p><p>Eleven days of delay, in a manufacturing context, is not a scheduling inconvenience. It is a cascading failure: production lines halt, finished goods inventory depletes, retailers receive partial deliveries, and the total cost ripple extends far beyond what any spreadsheet model initially captured.</p><p>This is not a story about poor management. It is a story about a structural mismatch between the complexity of Indonesia’s industrial geography and the sophistication of the tools currently used to manage it.</p><p>And this is precisely where Agentic Geo-Intelligent AI enters the conversation, not as a technology trend to follow, but as an operational necessity to understand.</p><h3>Two Technologies, One Convergence</h3><p>To understand what makes this convergence genuinely significant, it helps to define both components precisely before examining what they produce together.</p><p><strong>Geo-Intelligent AI</strong>, or GeoAI, refers to artificial intelligence systems that integrate spatial and geographic data into their analytical and decision-making processes. Rather than treating location as a simple attribute in a database, GeoAI systems reason about space: they understand proximity, connectivity, flow, accessibility, and the way geographic conditions constrain or enable industrial operations. The global GeoAI market was valued at approximately $47.7 billion in 2024 and is forecast to reach over $470 billion by 2034, growing at a compound annual growth rate of 25.7% (Janea Systems, 2025). This growth is not driven by novelty. It is driven by the recognition that location-ignorant decision systems have a fundamental blind spot in a world where geography determines cost, risk, and efficiency as much as any operational variable.</p><p><strong>Agentic AI</strong>, as explored in a growing body of applied research, refers to AI systems that do not merely analyze and recommend but plan, decide, and execute sequences of actions autonomously toward defined objectives (Deloitte Insights, 2025). Unlike generative AI, which produces outputs in response to prompts, an agentic system maintains goals over time, interacts with external tools and databases, adapts to new information, and takes initiative without requiring human instruction at every step.</p><p>The convergence of these two paradigms produces something qualitatively new. An Agentic Geo-Intelligent AI system does not just tell you that a logistics route is suboptimal. It monitors spatial conditions in real time, detects when those conditions change, evaluates alternative routes across multiple constraints simultaneously, and autonomously reroutes the shipment, updates the production schedule, and notifies the relevant parties, all before a human has finished reading the first alert notification.</p><p>For industrial engineering, this is not an incremental improvement. It is a rearchitecting of the decision loop.</p><h3>Why Indonesia is the Most Extreme Industrial Geography on Earth</h3><p>Every country has supply chain complexity. Indonesia’s version, however, is structurally exceptional in ways that make the case for Agentic Geo-Intelligent AI not just compelling but urgent.</p><p>Consider the arithmetic of the problem. Indonesia comprises more than 17,500 islands, distributed across a maritime expanse roughly the width of the continental United States. Its 285 million people are distributed with extreme unevenness: more than 56% of the population lives on Java, which constitutes approximately 7% of the total land area (Indonesia Investments, n.d.). Java and Sumatra together account for approximately 80% of the population. The remaining 20% is scattered across Kalimantan, Sulawesi, Maluku, Nusa Tenggara, and Papua, islands that are vast in area but sparse in density and, critically, in industrial infrastructure.</p><p>Researchers at the UGM Center for Transportation and Logistics Studies have stated clearly that Indonesia’s high logistics costs are a direct consequence of this archipelagic geography (UGM Pustral, 2025). Cargo moving from a factory in Java to a distribution point in eastern Indonesia must traverse multiple transport modes: land, sea, and land again. Container vessels frequently return from eastern ports with less than optimal cargo loads because backhaul demand is insufficient, and the round-trip economics force carriers to price the outbound journey accordingly. The consumer on the receiving end pays the difference in the form of retail prices that can be double or triple those in Java, not because goods are scarce, but because distribution is structurally expensive.</p><p>This is not merely a logistics problem. In industrial engineering terms, it is a systems design failure at the national scale: a production and distribution architecture that has never been fully redesigned to match the geographic reality of the country it serves.</p><p>IDC, in its analysis of agentic AI adoption across Asia Pacific manufacturing, observes that most manufacturers in the region still operate advanced planning and scheduling tools that are static, rule-based, and highly dependent on human planners to intervene when conditions change (IDC, 2026). In a geography as dynamic as Indonesia’s, where weather, port congestion, road conditions, and vessel schedules can shift within hours, static rule-based planning is chronically insufficient. The conditions invalidate the plan faster than the plan can be revised.</p><h3>Three Industrial Domains Where Agentic GeoAI Changes the Equation</h3><h3>Supply Chain Network Optimization Across the Archipelago</h3><p>The most immediate and measurable application of Agentic Geo-Intelligent AI in the Indonesian industrial context is supply chain network optimization. This is not a novel concept in operations research, but the agentic and geospatial dimensions transform what was previously a periodic strategic exercise into a continuous, adaptive operational capability.</p><p>A traditional supply chain network optimization model is built once, based on data available at the time of modeling, and then consulted periodically as conditions change. An Agentic GeoAI system, by contrast, continuously ingests real-time signals: vessel position data from automatic identification systems, port congestion indices, weather forecasts, road closure reports, commodity price fluctuations, and production schedule updates. It evaluates trade-offs across these variables simultaneously, simulates multiple routing scenarios, and executes adjustments within predefined decision boundaries, escalating to human planners only when exceptions exceed defined risk thresholds (IDC, 2026).</p><p>ThroughPut Inc., an industrial AI supply chain platform, has demonstrated that geospatial overlays on supply chain data allow organizations to identify choke points, analyze material flow disruptions at the SKU level, and optimize routing dynamically in ways that improve on-time in-full delivery metrics while reducing logistics expenditure (ThroughPut Inc., 2022). Applied to Indonesia’s inter-island supply chain architecture, the implication is significant: a system that can continuously reoptimize which port to route through, which vessel schedule to prioritize, and which warehouse to pre-position inventory at, based not on last month’s plan but on this morning’s operational reality.</p><p>Gartner has predicted that half of all supply chain management solutions will include agentic AI capabilities by 2030 (as cited in Deloitte Insights, 2025). For manufacturers operating across Indonesia’s archipelago, the question is not whether to adopt such capabilities but how quickly the adoption can be made intelligent enough to account for geographic complexity that a generic global solution was not designed to handle.</p><h3>Geo-Aware Production Scheduling and Capacity Planning</h3><p>The second domain is production scheduling, which in the context of Indonesian manufacturing is inseparable from geographic constraints that simply do not exist in the same form for manufacturers in continental economies.</p><p>When a factory in Central Java is scheduling production for the next four weeks, its scheduling system must account for supplier lead times that are not only time-variable but spatially variable. A supplier in Makassar and a supplier in Surabaya may have identical nominal lead times on paper. In reality, the Makassar supplier’s lead time fluctuates with the shipping schedule of a single weekly vessel route, whereas the Surabaya supplier has road access that allows daily flexibility. A production schedule that treats these two lead times as equivalent is systematically inaccurate.</p><p>IDC’s prediction that over 40% of manufacturers with production scheduling systems in place will upgrade to AI-driven autonomous scheduling capabilities by 2027 reflects a growing recognition that static scheduling tools cannot handle the dynamic complexity of modern supply environments (IDC, 2026). For Indonesian manufacturers, that complexity is compounded by geography.</p><p>An Agentic GeoAI scheduling system ingests live data from manufacturing execution systems, maintenance records, logistics databases, and spatial infrastructure maps. It understands not just when a component is due to arrive, but which geographic pathway it is traveling through, what conditions currently affect that pathway, and what the probability distribution of actual arrival looks like given those conditions. When a disruption occurs, it does not simply flag a delay. It autonomously reconfigures the production sequence, identifies which substitute components or alternative suppliers can be sourced from locations with better current accessibility, and updates the master schedule without requiring a three-hour crisis meeting.</p><p>This is what Infor’s manufacturing intelligence team has described as the shift from AI that makes recommendations to AI that pursues defined outcomes by coordinating decisions, taking actions, and orchestrating processes across planning, production, and execution (Infor, 2026). In Indonesian industrial terms, those outcomes must be geographically informed to be operationally valid.</p><h3>Predictive Maintenance with Spatial Asset Intelligence</h3><p>The third domain is predictive maintenance, specifically the spatial dimension of asset management that becomes critical when industrial facilities are distributed across geographically dispersed and variably accessible locations.</p><p>Consider a manufacturing group that operates processing facilities in Kalimantan, plantations in Sumatra, and distribution centers in Java. Each facility has equipment whose failure risk is influenced not only by usage patterns and age but by the geographic and environmental conditions of its location: humidity levels, temperature variation, dust exposure from local terrain, and proximity to corrosive coastal environments. A predictive maintenance system that ignores these spatial factors produces maintenance schedules that are accurate on average but wrong in specific locations.</p><p>GeoAI systems can integrate spatial environmental data with equipment sensor data to produce location-adjusted failure probability models. A compressor at a coastal facility in Batam has a fundamentally different degradation curve than an identical compressor at a highland facility in West Sumatra, even if their operational hours are the same. An Agentic system goes further: when it detects that a high-probability failure event is imminent at a remote facility, it does not merely generate a maintenance work order. It checks the current accessibility of that facility (road conditions, nearest available technician location, spare parts inventory at the nearest depot), schedules the maintenance visit at the optimal time given those constraints, and triggers the spare parts replenishment order with sufficient lead time to account for the geographic reality of getting those parts to the location.</p><p>The XMPRO industrial operations research team has documented that advanced agentic implementations in industrial settings are already processing over 50 million monitoring events daily, with documented returns on investment exceeding 250% within 24 months for predictive maintenance applications (XMPRO, 2025). The geographic dimension in Indonesian industrial applications adds a layer of complexity that makes the value proposition even higher, because the cost of unplanned downtime at a remote facility is not just the production loss. It is the production loss compounded by the extended time required to mobilize a repair response across geographic distance.</p><h3>The Data Infrastructure Gap and Its Industrial Consequences</h3><p>A rigorous analysis of Agentic Geo-Intelligent AI’s potential in Indonesia cannot ignore a foundational challenge: the system’s intelligence is only as good as the data that feeds it, and Indonesia’s data infrastructure is spatially uneven in ways that matter enormously for industrial applications.</p><p>Indonesia’s national internet penetration reached 80.66% in 2025, with urban penetration at 85.53% and rural penetration at 76.96% (APJII, as cited in Intimedia, 2025). BPS data confirms that 72.78% of the Indonesian population accessed the internet in 2024, up from 69.21% the previous year (BPS, 2025). These headline figures, while representing genuine progress, obscure a critical distinction for industrial operations: connectivity penetration does not equal connectivity quality, and the quality gap between industrial zones in Java and remote production or extraction sites in eastern Indonesia remains significant.</p><p>For a manufacturer whose supply chain is entirely contained within the Jabodetabek industrial corridor, this gap is largely irrelevant. For a company whose supply chain touches nickel mining operations in Sulawesi, palm oil processing in Kalimantan, and distribution across the eastern archipelago, it is a structural constraint on how much real-time spatial intelligence the system can actually collect and act upon.</p><p>This has two practical implications for industrial engineering practitioners designing such systems in Indonesia.</p><p>The first is the importance of designing for data sparsity. Systems built on the assumption of continuous, high-quality sensor data from all nodes will perform poorly in the Indonesian context. Robust system design must incorporate probabilistic models that can produce useful decisions under conditions of incomplete spatial information, drawing on satellite imagery, vessel tracking data, weather models, and other sources that do not depend on ground-level connectivity.</p><p>The second is the recognition that data infrastructure investment is not separable from operational AI investment. Organizations that wish to deploy Agentic GeoAI effectively in geographically dispersed Indonesian industrial contexts must simultaneously invest in the data collection infrastructure that makes the system useful at those locations. These are not sequential investments; they are concurrent requirements.</p><h3>The Industrial Engineer’s Role in an Agentic Geo-Intelligent System</h3><p>A question that arises naturally from the preceding analysis is what remains for a human industrial engineer to do when the system is autonomously optimizing routes, rescheduling production, and dispatching maintenance crews.</p><p>The answer, examined carefully, reveals why this technology amplifies rather than diminishes the value of rigorous industrial engineering education.</p><p>Agentic AI systems are goal-pursuing. They are extraordinarily effective at pursuing the objectives they are given, within the constraints they are designed to respect. What they cannot do is determine whether those objectives are the right ones, whether the constraints are correctly specified, or whether the system’s outputs are producing the intended real-world outcomes rather than optimizing a proxy metric that has diverged from the underlying goal.</p><p>Deloitte’s analysis of agentic AI failures in manufacturing is instructive: organizations fail not because the technology does not work, but because they automate broken processes rather than redesigning operations (Deloitte Insights, 2025). The process redesign that must precede or accompany agentic AI implementation is precisely the work that industrial engineering training prepares practitioners to do. Defining the objective function correctly. Identifying the constraints that must hold. Mapping the end-to-end system to find where the real bottlenecks are, as opposed to where they appear to be in the existing data. Ensuring that the system’s autonomy is bounded in ways that prevent it from optimizing one node at the expense of system-level performance.</p><p>IDC’s analysis of agentic AI adoption in Asia Pacific manufacturing identifies the critical challenge as not the technology itself but decision rights, escalation paths, and aligning planners, engineers, IT, operational technology, and security teams around a shared operating model involving changed responsibility and job design (IDC, 2026). This is organizational systems design. It is the domain of industrial engineering, not software engineering.</p><p>In the specific context of Indonesia, there is an additional dimension. Designing Agentic GeoAI systems that account for the country’s particular industrial geography, its inter-island logistics constraints, its spatially uneven data infrastructure, and its demographic distribution across vastly different industrial regions requires people who understand both the technical capabilities of the systems and the operational realities of the geography. That combination is not common. It represents a genuine competitive capability that industrial engineering graduates who develop it will carry into a market that does not yet have enough of them.</p><p>CTI Group, which has analyzed Indonesia’s trajectory toward agentic AI adoption, frames the situation plainly: the question is no longer whether agentic AI will arrive in Indonesia, but who will be ready to lead when it does (Computradetech, 2026).</p><h3>Trends That Define the Next Five Years</h3><p>Five developments will shape how Agentic Geo-Intelligent AI evolves in the Indonesian industrial context between now and 2030.</p><p><strong>First, the integration of production scheduling with real-time geospatial infrastructure monitoring.</strong> IDC predicts that by 2027, over 40% of manufacturers with existing scheduling systems will upgrade to AI-driven autonomous capabilities (IDC, 2026). In Indonesia, the most valuable implementations will be those that connect scheduling logic directly to geospatial infrastructure data, making schedule reliability a function of spatial situational awareness rather than static lead time assumptions.</p><p><strong>Second, the expansion of GeoAI into warehouse and factory floor layout optimization.</strong> Platforms such as BigGeo and Zebra Technologies are already deploying geospatial intelligence within factory environments: analyzing equipment location, personnel movement patterns, and material flow paths to identify inefficiencies and optimize physical layouts (BigGeo, n.d.; GeoWGS84, 2025). Applied at scale across Indonesia’s manufacturing base, this capability offers measurable throughput gains that do not require capital investment in new equipment.</p><p><strong>Third, the growth of satellite-based data infrastructure as a complement to ground connectivity.</strong> As Indonesia’s terrestrial connectivity develops unevenly, satellite-based data collection, from imagery to IoT sensor uplinks, becomes increasingly important for maintaining GeoAI system effectiveness in remote industrial and resource extraction locations. The Technavio analysis of the GeoAI market confirms that satellite imagery processing and AI-driven change detection are among the fastest-growing application segments (Technavio, 2025).</p><p><strong>Fourth, the emergence of governance frameworks for autonomous industrial decision-making.</strong> Deloitte projects that by 2027, approximately 40% of agentic AI projects will be cancelled, primarily because organizations did not establish adequate governance before scaling (Deloitte Insights, 2025). In Indonesia’s regulatory context, where the national AI roadmap is still being formalized, industrial organizations that invest early in robust governance frameworks for agentic systems will have a structural advantage when regulatory requirements become more explicit.</p><p><strong>Fifth, the workforce transitions from task execution to system orchestration.</strong> Deloitte projects that between 2025 and 2027, agentic AI adoption in manufacturing will increase fourfold, from 6% to 24% of deployments (as cited in Dataiku, 2026). As this transition accelerates, the premium on human capability shifts from the ability to execute complex analytical tasks manually to the ability to design, govern, and continuously improve the systems that execute those tasks autonomously. This is a shift that industrial engineering, as a discipline, is better positioned to navigate than almost any other field.</p><h3>A Technology Built for a Problem That Was Already There</h3><p>Agentic Geo-Intelligent AI did not create Indonesia’s industrial geography challenge. That challenge has existed since the first inter-island supply chain was assembled across the archipelago. What this technology offers is, for the first time, an operational tool whose sophistication is genuinely commensurate with the complexity of the problem.</p><p>The mismatch between a 17,500-island industrial geography and the planning tools designed for continental economies has cost Indonesian manufacturers in logistics expenses, inventory inefficiency, and supply chain fragility for decades. A system that can perceive spatial conditions continuously, reason about geographic constraints in real time, and execute operational decisions autonomously within human-defined boundaries is not an answer to a new problem. It is a long-overdue answer to a very old one.</p><p>For industrial engineering students and early-career practitioners in Indonesia, the implication is clear. The most valuable professional capability in this emerging landscape is not knowing how to operate these systems. It is knowing how to design them correctly for the specific industrial geography they must serve, specify the objective functions and constraints that make their autonomy useful rather than dangerous, and build the organizational governance structures that allow them to scale without losing accountability.</p><p>That combination of systems thinking, operational knowledge, and geographic awareness is the contribution that the next generation of Indonesian industrial engineers can make to a transformation that is already underway.</p><p>The system is arriving. The question is whether the people who understand both the technology and the territory will be ready to shape it.</p><h3>References</h3><p>Aylak, B. L. (2025). SustAI-SCM: Intelligent supply chain process automation with agentic AI for sustainability and cost efficiency. <em>Sustainability</em>, <em>17</em>(6), 2453. <a href="https://doi.org/10.3390/su17062453">https://doi.org/10.3390/su17062453</a></p><p>Badan Pusat Statistik. (2025). <em>Telecommunication statistics in Indonesia 2024</em>. <a href="https://www.bps.go.id/en/publication/2025/08/29/beaa2be400eda6ce6c636ef8/telecommunication-statistics-in-indonesia-2024.html">https://www.bps.go.id/en/publication/2025/08/29/beaa2be400eda6ce6c636ef8/telecommunication-statistics-in-indonesia-2024.html</a></p><p>BigGeo. (n.d.). <em>Revolutionizing manufacturing with BigGeo: Enhancing efficiency with geospatial intelligence</em>. <a href="https://biggeo.com/industry-overview/revolutionizing-manufacturing-with-biggeo-enhancing-efficiency-with-geospatial-intelligence">https://biggeo.com/industry-overview/revolutionizing-manufacturing-with-biggeo-enhancing-efficiency-with-geospatial-intelligence</a></p><p>Computradetech. (2026, January 31). <em>The rise of agentic AI Indonesia: What 2026 will demand from leaders?</em> <a href="https://computradetech.com/blog/the-rise-of-agentic-ai-indonesia-what-2026-will-demand-from-leaders/">https://computradetech.com/blog/the-rise-of-agentic-ai-indonesia-what-2026-will-demand-from-leaders/</a></p><p>Dataiku. (2026, January 23). <em>Manufacturing’s 2026 mandate: From AI pilot to agentic profit</em>. <a href="https://www.dataiku.com/stories/blog/manufacturing-ai-trends-2026">https://www.dataiku.com/stories/blog/manufacturing-ai-trends-2026</a></p><p>Deloitte Insights. (2025, December 10). <em>Agentic AI strategy: Tech trends 2026</em>. <a href="https://www.deloitte.com/us/en/insights/topics/technology-management/tech-trends/2026/agentic-ai-strategy.html">https://www.deloitte.com/us/en/insights/topics/technology-management/tech-trends/2026/agentic-ai-strategy.html</a></p><p>Deloitte Insights. (2025, April 1). <em>The agentic supply chain in manufacturing</em>. <a href="https://www.deloitte.com/us/en/insights/industry/manufacturing-industrial-products/agentic-supply-chain-artificial-intelligence-manufacturing.html">https://www.deloitte.com/us/en/insights/industry/manufacturing-industrial-products/agentic-supply-chain-artificial-intelligence-manufacturing.html</a></p><p>GeoWGS84. (2025). <em>Top 10 GeoAI companies in the world 2025</em>. <a href="https://www.geowgs84.ai/post/top-10-geoai-companies-in-the-world-2025">https://www.geowgs84.ai/post/top-10-geoai-companies-in-the-world-2025</a></p><p>IDC. (2026, February 12). <em>Agentic AI in Asia/Pacific manufacturing: From prediction to practice</em>. <a href="https://www.idc.com/resource-center/blog/agentic-ai-in-asia-pacific-manufacturing-from-prediction-to-practice/">https://www.idc.com/resource-center/blog/agentic-ai-in-asia-pacific-manufacturing-from-prediction-to-practice/</a></p><p>Indonesia Investments. (n.d.). <em>Populasi Indonesia: Penduduk, demografi dan potensi ekonomi</em>. <a href="https://www.indonesia-investments.com/id/budaya/penduduk/item67">https://www.indonesia-investments.com/id/budaya/penduduk/item67</a></p><p>Infor. (2026, January 29). <em>2026: How agentic AI transforms industrial manufacturing</em>. <a href="https://www.infor.com/blog/agentic-ai-transforms-industrial-manufacturing-2026">https://www.infor.com/blog/agentic-ai-transforms-industrial-manufacturing-2026</a></p><p>Intimedia. (2025). <em>APJII records Indonesia’s internet penetration reaches 80.66 percent in 2025</em>. <a href="https://intimedia.id/read/apjii-records-indonesias-internet-penetration-reaches-8066-percent-in-2025">https://intimedia.id/read/apjii-records-indonesias-internet-penetration-reaches-8066-percent-in-2025</a></p><p>Janea Systems. (2025, April 15). <em>The power of geospatial AI across industries</em>. <a href="https://www.janeasystems.com/blog/geospatial-ai-across-industries">https://www.janeasystems.com/blog/geospatial-ai-across-industries</a></p><p>Technavio. (2025, December 11). <em>AI in geospatial technology market growth analysis: Size and forecast 2025–2029</em>. <a href="https://www.technavio.com/report/ai-in-geospatial-technology-market-industry-analysis">https://www.technavio.com/report/ai-in-geospatial-technology-market-industry-analysis</a></p><p>ThroughPut Inc. (2022, October 20). <em>ThroughPut Inc. announces new AI-powered geospatial capabilities for rapid supply chain network optimization with dynamic lead times</em> [Press release]. <a href="https://www.prnewswire.com/news-releases/throughput-inc-announces-new-ai-powered-geospatial-capabilities-for-rapid-supply-chain-network-optimization-with-dynamic-lead-times-301654607.html">https://www.prnewswire.com/news-releases/throughput-inc-announces-new-ai-powered-geospatial-capabilities-for-rapid-supply-chain-network-optimization-with-dynamic-lead-times-301654607.html</a></p><p>UGM Pustral. (2025, February 17). <em>National logistics costs remain high: Government urged to improve port infrastructure and maximize ship cargo</em>. Universitas Gadjah Mada. <a href="https://ugm.ac.id/en/news/national-logistics-costs-remain-high-government-urged-to-improve-port-infrastructure-and-maximize-ship-cargo/">https://ugm.ac.id/en/news/national-logistics-costs-remain-high-government-urged-to-improve-port-infrastructure-and-maximize-ship-cargo/</a></p><p>XMPRO. (2025, August 1). <em>The complete guide to agentic AI in industrial operations: How AI agents are transforming manufacturing, mining, and asset-intensive industries in 2025</em>. <a href="https://xmpro.com/the-complete-guide-to-agentic-ai-in-industrial-operations-how-ai-agents-are-transforming-manufacturing-mining-and-asset-intensive-industries-in-2025/">https://xmpro.com/the-complete-guide-to-agentic-ai-in-industrial-operations-how-ai-agents-are-transforming-manufacturing-mining-and-asset-intensive-industries-in-2025/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9dc383a2582c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geo-intelligent-lab/the-archipelago-problem-why-agentic-geo-intelligent-ai-is-ies-most-urgent-frontier-in-indonesia-9dc383a2582c">The archipelago Problem: Why Agentic Geo-Intelligent AI is IE’s Most Urgent Frontier in Indonesia</a> was originally published in <a href="https://medium.com/geo-intelligent-lab">Geo-Intelligent Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ketika AI Berhenti Menunggu Perintah dan Kita yang Justru Kebingungan]]></title>
            <link>https://medium.com/@raysoesanto/ketika-ai-berhenti-menunggu-perintah-dan-kita-yang-justru-kebingungan-b738d637b407?source=rss-a1efeabde928------2</link>
            <guid isPermaLink="false">https://medium.com/p/b738d637b407</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[industrial-engineering]]></category>
            <category><![CDATA[supply-chain]]></category>
            <category><![CDATA[future-of-work]]></category>
            <dc:creator><![CDATA[Ray Soesanto]]></dc:creator>
            <pubDate>Tue, 07 Apr 2026 12:49:27 GMT</pubDate>
            <atom:updated>2026-04-07T12:57:18.529Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Ironi terbesar abad ini: manusia menciptakan mesin agar tidak perlu berpikir keras, lalu mesin itu mulai berpikir sendiri, dan kini manusialah yang pusing memikirkan apa yang harus dilakukan selanjutnya.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KoHCKtLKwTYOc9zI" /><figcaption>Photo by <a href="https://unsplash.com/@zulfugarkarimov?utm_source=medium&amp;utm_medium=referral">Zulfugar Karimov</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Bayangkan seorang planner produksi di sebuah pabrik manufaktur. Senin pagi. Kopi belum habis. Tiba-tiba notifikasi masuk: supplier utama di Vietnam menghentikan produksi selama dua minggu karena banjir besar.</p><p>Bagi yang pernah bekerja di industri, tahu persis apa yang terjadi berikutnya. Bukan sekadar panik, melainkan sesuatu yang jauh lebih buruk daripada itu. Serangkaian rapat dadakan yang seharusnya bisa diselesaikan lewat satu email. Spreadsheet yang terbuka di lima tab berbeda, dan tidak ada yang yakin mana yang paling terbaru. Telepon ke supplier alternatif yang sebagian besar diakhiri dengan kalimat “Kami akan cek dulu kapasitas kami dan hubungi balik”, yang artinya tidak akan dihubungi balik dalam waktu dekat.</p><p>Dua hingga tiga hari kemudian, setelah banyak kopi dan sedikit tidur, keputusan akhirnya dibuat. Lega? Belum tentu. Karena kondisi sudah berubah lagi sejak keputusan itu dirumuskan.</p><p>Kini bayangkan skenario yang berbeda. Di perusahaan yang telah mengadopsi Agentic AI, seluruh rangkaian itu selesai sebelum kopi pertama habis. Sistem AI telah menganalisis situasi, mengevaluasi supplier cadangan berdasarkan data performa dan kapasitas terkini, menyesuaikan jadwal produksi, dan menyajikan laporan keputusan secara lengkap tanpa satu instruksi pun diberikan.</p><p>Si planner? Ia tinggal menyetujui.</p><p>Dan di sinilah muncul pertanyaan yang tidak nyaman: jika AI bisa melakukan semua itu, lalu apa sebenarnya yang akan dikerjakan oleh seorang industrial engineer di masa depan?</p><p>Artikel ini akan menjawab pertanyaan itu. Dengan jujur, dengan data, dan karena topiknya memang agak mengkhawatirkan, dengan sedikit humor untuk menjaga semangat tetap hidup.</p><h3>Apa Itu Agentic AI, dan Mengapa Namanya Terdengar Seperti Judul Film Sci-Fi?</h3><p>Mari mulai dari definisi yang tepat. Sebab “AI” adalah kata yang sudah terlalu banyak disalahgunakan untuk menggambarkan filter foto otomatis sekaligus sistem yang bisa mengelola rantai pasok global. Keduanya disebut AI. Keduanya jelas tidak setara.</p><p>Selama bertahun-tahun, AI yang dikenal luas bersifat reaktif. Manusia bertanya, AI menjawab. Manusia mengetik prompt; AI menghasilkan output. Hubungannya sederhana: manusia aktif, AI pasif. Sistem seperti ChatGPT, Gemini, dan sejenisnya sangat berguna, tetapi pada dasarnya masih merupakan alat yang sopan dan penurut. Ia tidak akan melakukan apa pun sampai ada yang menyuruhnya. Bahkan jika gudang kosong dan pesanan menumpuk, ia hanya diam menunggu.</p><p><em>Seperti pegawai baru yang sangat kompeten, tetapi terlalu takut mengambil inisiatif.</em></p><p>Agentic AI bekerja dengan logika yang berbeda. Sistem ini tidak menunggu instruksi; ia mengejar tujuan. Perbedaan antara “instruksi” dan “tujuan” terdengar halus, tetapi implikasinya sangat besar.</p><p>Secara teknis, sebuah sistem dikategorikan sebagai agentic ketika memiliki empat kapabilitas inti yang bekerja dalam satu siklus berkelanjutan:</p><p><strong>Persepsi lingkungan.</strong> Sistem secara aktif memantau data dari berbagai sumber sensor IoT, database ERP, berita pasar, cuaca, dan harga komoditas tanpa menunggu manusia menyajikan informasi tersebut kepadanya. Ia melek informasi sepanjang waktu, tanpa perlu tidur, tanpa pernah melewatkan notifikasi karena sedang rapat.</p><p><strong>Perencanaan tindakan.</strong> Berdasarkan data yang dikumpulkan, sistem menyusun urutan langkah paling efektif menuju tujuan yang ditetapkan. Ini bukan logika “jika A maka B” yang kaku. Ini adalah proses penalaran multilangkah yang mempertimbangkan trade-off, constraint, dan kemungkinan skenario alternatif.</p><p><strong>Eksekusi otonom.</strong> Sistem tidak berhenti pada rekomendasi. Ia mengeksekusi: mengubah parameter di ERP, mengirim notifikasi ke supplier, memperbarui jadwal produksi. Bukan membuat slide presentasi berisi rekomendasi yang kemudian dibahas dalam tiga rapat sebelum akhirnya diimplementasikan.</p><p><strong>Pembelajaran adaptif.</strong> Setelah setiap siklus tindakan, sistem mengevaluasi hasilnya dan memperbarui pendekatannya. Ia belajar dari kesalahan kemewahan yang, jujur saja, tidak selalu dimiliki oleh semua sistem organisasi manusia.</p><p>Jika ingin menggunakan analogi yang akrab bagi mahasiswa Teknik Industri: AI konvensional seperti mesin CNC yang mengeksekusi program yang sudah dituliskan secara eksplisit, tidak lebih dan tidak kurang. Agentic AI lebih menyerupai supervisor lantai produksi senior yang berpengalaman dua puluh tahun: ia mengerti tujuan keseluruhannya, paham konteks situasi, dan mampu mengambil keputusan sendiri ketika kondisi menyimpang dari rencana tanpa harus menelepon manajer terlebih dahulu untuk konfirmasi.</p><p>Bedanya? Supervisor senior itu bisa lelah, bisa sakit, dan kadang-kadang butuh cuti. Agentic AI tidak.</p><h3>Seberapa Besar Ini, Sebenarnya?</h3><p>Barangkali ada yang berpikir: “Ah, ini pasti hype lagi. Setiap beberapa tahun ada teknologi baru yang diklaim akan mengubah segalanya, lalu setahun kemudian sepi kabar.”</p><p>Skeptisisme itu sehat. Namun, angka-angkanya kali ini cukup sulit untuk diabaikan.</p><p>Pasar Agentic AI global diproyeksikan mencapai USD 10,8 miliar pada tahun 2026, dengan CAGR sebesar 43,8% yang diperkirakan bertahan hingga 2034. Gartner memprediksi 40% aplikasi enterprise akan menyematkan AI agents pada akhir 2026, naik dari kurang dari 5% pada 2025. Survei Cisco 2025 mencatat 83% organisasi yang disurvei telah berencana men-deploy Agentic AI. Estimasi terkini memproyeksikan bahwa 1,3 miliar agen AI aktif akan beroperasi pada tahun 2028.</p><p>Satu koma tiga miliar. Bukan juta. Miliar.</p><p>Untuk konteks: jumlah tersebut lebih banyak dari total populasi manusia di negara mana pun di dunia, dan mereka semua akan bekerja tanpa UMR, tanpa cuti Lebaran, tanpa mengeluh soal lembur.</p><p><em>Tidak ada maksud untuk menakut-nakuti. Tapi memang agak menakutkan.</em></p><p>Namun, ada angka lain yang sama pentingnya: menurut data Deloitte, hanya 11% organisasi yang benar-benar mengoperasikan Agentic AI dalam lingkungan produksi nyata. Gartner bahkan memprediksi 40% proyek Agentic AI akan dibatalkan sebelum 2027.</p><p>Artinya: teknologinya nyata, potensinya besar, tetapi implementasinya jauh lebih susah daripada yang terlihat di slide presentasi para vendor. Dan kesulitan implementasi itulah yang menjadi peluang paling konkret bagi seorang industrial engineer.</p><h3>Mengapa Ini Urusan Teknik Industri?</h3><p>Di sinilah bagian yang seharusnya membuat mahasiswa Teknik Industri sedikit merasa bangga atau setidaknya lebih tenang.</p><p>Agentic AI bukan sesuatu yang turun dari langit dan tidak ada kaitannya dengan apa yang dipelajari selama kuliah. Sebaliknya, hampir semua tantangan implementasi Agentic AI adalah tantangan yang sudah lama menjadi domain Teknik Industri.</p><h3>Supply Chain: Laboratorium Terbesar Agentic AI</h3><p>Supply chain modern adalah salah satu sistem paling kompleks yang pernah direkayasa manusia. Ratusan variabel berubah secara simultan: harga komoditas, kapasitas supplier, permintaan pasar, kondisi logistik, perubahan regulasi, cuaca, bahkan sentimen geopolitik. Mengelolanya dengan spreadsheet dan rapat koordinasi adalah, dan ini bukan kritik, ini fakta setara dengan mencoba menerbangkan pesawat menggunakan kompas dan intuisi.</p><p>Model optimasi konvensional dalam Operations Research, Linear Programming, Mixed Integer Programming, dan Dynamic Programming adalah alat yang secara matematis sangat powerful. Namun, ia punya kelemahan mendasar: statis. Model dibangun berdasarkan asumsi kondisi tertentu. Ketika kondisi berubah, model harus direvisi. Dan di dunia nyata, kondisi berubah lebih cepat daripada kemampuan tim untuk merevisi model.</p><p>Agentic AI hadir sebagai solusi untuk keterbatasan ini. Ia mengombinasikan kekuatan matematis Operations Research dengan kemampuan adaptasi real-time. Sebuah penelitian yang direferensikan oleh Databricks, berdasarkan karya Profesor David Simchi-Levi dari MIT, mendemonstrasikan sistem agentic yang bisa menjawab pertanyaan seperti “apa dampak terhadap total cost jika supplier A mengalami delay dua minggu?” bukan dalam bentuk slide rekomendasi, melainkan langsung menjalankan skenario optimasi dan mengeksekusi keputusan yang dihasilkan.</p><p>Walmart sudah menggunakannya untuk menyesuaikan inventori ribuan toko secara otomatis berdasarkan faktor hiperlokal seperti jadwal acara komunitas dan prakiraan cuaca. Amazon menggunakannya di fulfillment center untuk mengelola inventori dan mengotomatisasi order picking. DHL menggunakannya untuk mengoptimalkan rute logistik secara real-time.</p><p>Dan hasilnya bukan sekadar inkremental. Studi SustAI-SCM mencatat reduksi biaya 28,4%, penurunan emisi karbon 30,3%, dan peningkatan efisiensi gudang 21,8% dari implementasi framework Agentic AI pada manajemen rantai pasok.</p><h3>Decision Making: Ketika OR Bertemu AI</h3><p>Dalam Operations Research klasik, proses pengambilan keputusan mengikuti struktur yang rapi: definisi masalah, formulasi model, optimasi, interpretasi, implementasi. Manusia hadir di hampir setiap titik dalam rantai ini. Agentic AI tidak menghilangkan rantai ini; ia mempercepat dan mengotomatisasi sebagian besar titiknya.</p><p>Yang muncul kemudian adalah arsitektur Multi-Agent System (MAS). Konsepnya sebenarnya bukan baru; peneliti supply chain sudah membahasnya sejak awal 2000-an, tetapi dengan Large Language Models sebagai fondasi, MAS kini jauh lebih adaptif dan dapat diimplementasikan secara praktis.</p><p>Bayangkan sebuah pabrik dengan ekosistem agen yang bekerja seperti tim manajemen virtual: Orchestrator Agent sebagai koordinator keseluruhan, Planning Agent untuk kapasitas produksi, Procurement Agent untuk evaluasi dan negosiasi supplier, Quality Agent untuk pemantauan parameter mutu, dan Logistics Agent untuk optimasi distribusi. Mereka bekerja paralel, saling bertukar informasi, dan mengambil keputusan terkoordinasi tanpa rapat mingguan yang berlangsung dua jam dan menghasilkan satu action item.</p><p>Gartner melaporkan lonjakan 1.445% dalam permintaan informasi terkait multi-agent systems dari Q1 2024 ke Q2 2025. Kenaikan itu mencerminkan pergeseran serius dalam cara organisasi memandang otomasi operasional.</p><h3>Lima Tren yang Perlu Dipahami Sekarang</h3><h3>Supply Chain Agentic Menjadi Standar, Bukan Keunggulan Kompetitif</h3><p>Deloitte menyatakan bahwa perusahaan yang merancang ulang seluruh workflow dan operating model di sekitar kolaborasi manusia-AI akan berada di posisi terbaik untuk menghadapi kompleksitas supply chain. Kata kuncinya: “merancang ulang”, bukan “menambahkan.” Memasang AI di atas proses yang sudah bobrok tidak akan menghasilkan proses yang baik bertenaga AI. Ia hanya akan menghasilkan proses bobrok yang bergerak lebih cepat.</p><p>Prinsip ini sangat familiar di Teknik Industri. Namanya process redesign, dan itu pekerjaan yang tidak bisa dilakukan oleh AI sendirian.</p><h3>Manusia Tetap Dibutuhkan, tapi Bukan untuk Hal yang Sama</h3><p>Human-in-the-loop governance bukan sekadar konsesi etis agar AI tidak terasa terlalu menakutkan. Ia adalah kebutuhan fungsional. Sistem AI, secanggih apa pun, masih bisa salah terutama dalam situasi yang mengandung ambiguitas tinggi, nilai-nilai yang saling bertentangan, atau konteks organisasi yang tidak bisa dikodifikasikan dalam data. Manusia dibutuhkan sebagai validator keputusan kritis, auditor output sistem, dan penjaga agar tujuan sistem tetap selaras dengan tujuan manusia di baliknya.</p><p>Peran industrial engineer bergeser dari mengeksekusi keputusan menjadi merancang sistem yang mengeksekusi keputusan dengan benar.</p><h3>Integrasi dengan Sistem yang Sudah Ada Menjadi Battleground Utama</h3><p>AI agents kini didesain untuk terhubung langsung dengan infrastruktur enterprise yang telah ada: ERP, WMS, TMS, sistem quality management. AWS bersama A*STAR ARTC mengembangkan Logistics Agent yang mampu mengagregasi data dari berbagai sistem tersebut secara simultan, dengan dampak berupa eliminasi hingga 50% beban kerja manual dan reduksi expedite cost sebesar 3–5% dari total pengeluaran logistik.</p><p>Tantangannya? Sebagian besar sistem ERP yang digunakan perusahaan hari ini tidak dirancang untuk berinteraksi dengan AI agents. Mereka dirancang untuk berinteraksi dengan manusia yang sabar dan mau mengklik menu berlapis-lapis. Menjembatani kesenjangan ini membutuhkan pemahaman mendalam tentang sistem operasional, bukan hanya pemahaman tentang AI.</p><h3>Dari Reaktif ke Prediktif: Akhirnya</h3><p>Salah satu aspirasi lama manajemen operasional adalah bergerak dari mode reaktif menangani masalah setelah terjadi ke mode prediktif mencegah masalah sebelum terjadi. Konsepnya sederhana, implementasinya selalu susah karena membutuhkan data yang bersih, model yang akurat, dan kemampuan eksekusi yang cepat. Ketiganya jarang tersedia secara bersamaan.</p><p>Agentic AI membuat transisi ini lebih layak secara operasional. Sistem dapat secara aktif mengidentifikasi sinyal awal gangguan dan mengambil tindakan pencegahan sebelum dampaknya dirasakan di lantai produksi atau di meja manajer.</p><h3>Lebih Banyak yang Gagal daripada yang Berhasil, dan Itu Informasi Penting</h3><p>Dari semua tren, ini yang paling jarang masuk slide presentasi vendor, tapi paling penting untuk dipahami. Hanya 11% organisasi yang berhasil mengoperasikan Agentic AI dalam produksi nyata. Gartner memprediksi 40% proyek akan dibatalkan sebelum 2027. Tiga hambatan yang paling konsisten ditemukan: integrasi dengan legacy systems yang tidak kompatibel, ketiadaan governance framework yang memadai, dan kurangnya kompetensi internal untuk merancang serta mengawasi sistem yang kompleks.</p><p>Tiga hambatan itu bukan hambatan teknologi. Mereka adalah hambatan rekayasa sistem dan manajemen perubahan. Dan itu persis domain Teknik Industri.</p><h3>Jadi, apa yang harus dilakukan sekarang?</h3><p>Pertanyaan yang paling wajar setelah membaca semua ini adalah: lalu apa implikasinya bagi mahasiswa Teknik Industri yang saat ini sedang bergulat dengan tugas optimasi dan laporan praktikum?</p><p>Jawabannya tidak sesederhana “pelajari AI” atau “jangan khawatir, kalian tidak akan digantikan.” Keduanya terlalu mudah dan tidak terlalu berguna.</p><p>Jawaban yang lebih jujur adalah ini: Agentic AI akan menggantikan task, bukan profesi, tetapi hanya jika seorang industrial engineer memiliki kompetensi yang tidak bisa digantikan oleh sistem tersebut.</p><p>Task yang akan diotomatisasi adalah yang berulang, berbasis aturan yang dapat dikodifikasikan, dan tidak memerlukan judgment kontekstual mendalam. Menyusun jadwal produksi berdasarkan parameter yang sudah diketahui. Melakukan rekonsiliasi data inventori. Menghasilkan laporan performa rutin.</p><p>Yang tidak bisa digantikan adalah kemampuan mendefinisikan masalah yang benar sebelum model apa pun dibangun, karena AI yang sangat efisien dalam memecahkan masalah yang salah hanyalah bencana yang bergerak dengan kecepatan tinggi. Kemampuan merancang sistem yang robust terhadap kondisi yang tidak terantisipasi. Kemampuan mengidentifikasi asumsi yang keliru dalam sebuah model. Kemampuan memastikan bahwa output sistem AI sesuai dengan realitas operasional dan nilai-nilai organisasi.</p><p>Dan yang paling mendasar: kemampuan bertanya “Apakah kita sedang memecahkan masalah yang tepat?”</p><p>McKinsey mencatat bahwa 89% organisasi masih beroperasi dengan model era industri, sementara hanya 1% yang telah bertransformasi menjadi jaringan yang sepenuhnya adaptif. Kesenjangan yang sangat besar itu adalah representasi dari kerja transformasi yang belum dilakukan. Dan transformasi sistem operasional yang kompleks dari model lama ke model baru itu adalah pekerjaan yang, secara historis, selalu berada di persimpangan antara rekayasa sistem, manajemen proses, dan pengambilan keputusan berbasis data.</p><p>Dengan kata lain: persis di tempat seorang industrial engineer berdiri.</p><h3>Penutup: Satu Hal yang Perlu Diingat</h3><p>Era Agentic AI bukan revolusi yang datang dari luar domain Teknik Industri. Ia adalah akselerasi dari prinsip-prinsip yang sudah lama menjadi fondasi disiplin ini: optimasi sistem, reduksi variabilitas, pengambilan keputusan berbasis data, perancangan proses yang efisien dan adaptif.</p><p>Yang berubah adalah skala, kecepatan, dan tingkat otonominya. Yang tidak berubah adalah kebutuhan akan manusia yang mampu merancang sistem tersebut dengan benar, memverifikasi outputnya, dan memastikan ia melayani tujuan yang semestinya.</p><p>Ironi terbesarnya mungkin adalah ini: semakin pintar sistemnya, semakin dibutuhkan manusia yang betul-betul memahami sistem. Bukan untuk mengoperasikannya, melainkan untuk memastikan ia beroperasi dengan tujuan yang benar.</p><p>Dan itu, pada akhirnya, adalah pekerjaan yang tidak akan pernah bisa diserahkan sepenuhnya kepada mesin.</p><h3>Daftar Referensi</h3><p><strong>1. Deloitte Insights — Agentic AI Strategy (Tech Trends 2026)</strong> <a href="https://www.deloitte.com/us/en/insights/topics/technology-management/tech-trends/2026/agentic-ai-strategy.html">https://www.deloitte.com/us/en/insights/topics/technology-management/tech-trends/2026/agentic-ai-strategy.html</a></p><p><strong>2. Deloitte Insights — State of AI in the Enterprise 2026</strong> <a href="https://www.deloitte.com/global/en/issues/generative-ai/state-of-ai-in-enterprise.html">https://www.deloitte.com/global/en/issues/generative-ai/state-of-ai-in-enterprise.html</a></p><p><strong>3. Gartner — 40% of Enterprise Apps Will Feature Task-Specific AI Agents by 2026</strong> <a href="https://www.gartner.com/en/newsroom/press-releases/2025-08-26-gartner-predicts-40-percent-of-enterprise-apps-will-feature-task-specific-ai-agents-by-2026-up-from-less-than-5-percent-in-2025">https://www.gartner.com/en/newsroom/press-releases/2025-08-26-gartner-predicts-40-percent-of-enterprise-apps-will-feature-task-specific-ai-agents-by-2026-up-from-less-than-5-percent-in-2025</a></p><p><strong>4. Cisco — AI Readiness Index 2025</strong> <a href="https://newsroom.cisco.com/c/r/newsroom/en/us/a/y2025/m10/cisco-ai-research-the-most-ai-ready-companies-outpace-peers-in-the-race-to-value.html">https://newsroom.cisco.com/c/r/newsroom/en/us/a/y2025/m10/cisco-ai-research-the-most-ai-ready-companies-outpace-peers-in-the-race-to-value.html</a></p><p><strong>5. Databricks — Transforming Supply Chain Management with AI Agents</strong> <a href="https://www.databricks.com/blog/transforming-supply-chain-management-ai-agents">https://www.databricks.com/blog/transforming-supply-chain-management-ai-agents</a></p><p><strong>6. Aylak, B.L. — SustAI-SCM: Intelligent Supply Chain Process Automation with Agentic AI (Sustainability, MDPI, 2025)</strong> <a href="https://www.mdpi.com/2071-1050/17/6/2453">https://www.mdpi.com/2071-1050/17/6/2453</a> DOI: 10.3390/su17062453</p><p><strong>7. McKinsey Global Institute — The Agentic Organization</strong> <a href="https://www.mckinsey.com/capabilities/people-and-organizational-performance/our-insights/the-agentic-organization-contours-of-the-next-paradigm-for-the-ai-era">https://www.mckinsey.com/capabilities/people-and-organizational-performance/our-insights/the-agentic-organization-contours-of-the-next-paradigm-for-the-ai-era</a></p><p><strong>8. Deloitte — The Agentic Supply Chain in Manufacturing</strong> <a href="https://www.deloitte.com/us/en/insights/industry/manufacturing-industrial-products/agentic-supply-chain-artificial-intelligence-manufacturing.html">https://www.deloitte.com/us/en/insights/industry/manufacturing-industrial-products/agentic-supply-chain-artificial-intelligence-manufacturing.html</a></p><p><strong>9. Gartner — Multi-Agent Systems Inquiry Surge (1,445%)</strong> <a href="https://machinelearningmastery.com/7-agentic-ai-trends-to-watch-in-2026/">https://machinelearningmastery.com/7-agentic-ai-trends-to-watch-in-2026/</a></p><p><strong>10. AWS Industries — Transform Supply Chain Logistics with Agentic AI</strong> <a href="https://aws.amazon.com/blogs/industries/transform-supply-chain-logistics-with-agentic-ai/">https://aws.amazon.com/blogs/industries/transform-supply-chain-logistics-with-agentic-ai/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b738d637b407" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimizing Eid Parcel Delivery in Bandung Using OpenStreetMap and OSRM Part 2]]></title>
            <link>https://medium.com/geo-intelligent-lab/optimizing-eid-parcel-delivery-in-bandung-using-openstreetmap-and-osrm-part-2-a0192ae78ebd?source=rss-a1efeabde928------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0192ae78ebd</guid>
            <category><![CDATA[industrial-engineering]]></category>
            <category><![CDATA[osm]]></category>
            <category><![CDATA[osrm]]></category>
            <category><![CDATA[leaflet]]></category>
            <category><![CDATA[tsp]]></category>
            <dc:creator><![CDATA[Ray Soesanto]]></dc:creator>
            <pubDate>Wed, 11 Mar 2026 06:01:01 GMT</pubDate>
            <atom:updated>2026-03-11T09:09:52.929Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*l22GOk4tbGPbVcrc" /><figcaption>Photo by <a href="https://unsplash.com/@mohalotfi?utm_source=medium&amp;utm_medium=referral">Mohammad Lotfian</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Visualizing the Optimized Eid Parcel Delivery Route in Bandung with Leaflet</h3><p>In Part 1, we successfully calculated the most efficient route for delivering Eid parcels in Bandung using <strong>OpenStreetMap data</strong> through <strong>OSRM</strong>.</p><p>However, numbers alone are often difficult to interpret. Even if we know the best route sequence, it is still much easier to understand the result when it is displayed on a map.</p><p>In this part, we will build a simple web application that:</p><ul><li>calculates the optimized route from Part 1,</li><li>retrieves the actual road geometry from OSRM</li><li>and visualizes the result on an interactive map using <strong>Leaflet.js</strong>.</li></ul><p>This tutorial is designed for beginners, so we will go step by step.</p><h3>What We Will Build</h3><p>By the end of this tutorial, you will have a small web app with:</p><ul><li>an interactive map centered on Bandung,</li><li>numbered markers showing the delivery sequence,</li><li>a red route line showing the optimized path,</li><li>route information, such as total distance and estimated travel duration.</li></ul><p>In simple terms, Part 1 gave us the <strong>best route mathematically</strong>, while Part 2 helps us <strong>see that route spatially</strong>.</p><h3>Tools We Will Use</h3><p>Before writing any code, let us understand the role of each tool.</p><h4>1. Flask</h4><p>Flask is a lightweight Python web framework.<br> We use Flask because we want Python to:</p><ul><li>calculate the route,</li><li>request route geometry from OSRM,</li><li>and send the result to the web page.</li></ul><h4>2. OSRM</h4><p>OSRM is the routing engine that calculates:</p><ul><li>road distance,</li><li>estimated duration,</li><li>and route geometry.</li></ul><p>In Part 2, we are especially interested in the <strong>route geometry</strong>, because that is what will be drawn on the map.</p><h4>3. Leaflet.js</h4><p>Leaflet is a JavaScript library for interactive maps.<br> We use it to:</p><ul><li>display the basemap</li><li>Draw the optimized route</li><li>and place numbered markers for each stop.</li></ul><h3>Project Structure</h3><p>To keep the project clean, create the following folder structure:</p><pre>project/<br>├── app.py<br>└── templates/<br>    └── index.html</pre><p>Explanation:</p><ul><li>app.py contains the Python backend using Flask</li><li>templates/index.html contains the web page shown in the browser</li></ul><h3>Step 1 — Install Required Python Libraries</h3><p>We first install the required libraries.</p><pre>pip install flask requests</pre><p>What these libraries do:</p><ul><li>flask → builds the web application</li><li>requests → sends HTTP requests to OSRM</li></ul><p>If the installation succeeds, you are ready to continue.</p><h3>Step 2 — Create the Flask Backend</h3><p>Now create a file named:</p><pre>app.py</pre><p>Then paste the following code.</p><pre>import itertools<br>from typing import Dict, Tuple, List, Any<br><br>import requests<br>from flask import Flask, jsonify, render_template<br><br>app = Flask(__name__)<br><br># =========================================================<br># DATA<br># =========================================================<br># Format: (latitude, longitude)<br>locations: Dict[str, Tuple[float, float]] = {<br>    &quot;Depot&quot;: (-6.914744, 107.609810),<br>    &quot;Dago&quot;: (-6.889000, 107.610700),<br>    &quot;Cihampelas&quot;: (-6.893400, 107.604800),<br>    &quot;Buah Batu&quot;: (-6.948200, 107.628900),<br>    &quot;Antapani&quot;: (-6.917500, 107.668700),<br>    &quot;Setiabudi&quot;: (-6.873200, 107.596500),<br>}<br><br>OSRM_ROUTE_URL = &quot;https://router.project-osrm.org/route/v1/driving&quot;<br><br><br># =========================================================<br># OSRM HELPERS<br># =========================================================<br>def get_route_data(<br>    coord1: Tuple[float, float],<br>    coord2: Tuple[float, float],<br>    timeout: int = 15<br>) -&gt; Tuple[float, float]:<br>    &quot;&quot;&quot;<br>    Return road distance (meters) and duration (seconds) between two points.<br>    &quot;&quot;&quot;<br>    lat1, lon1 = coord1<br>    lat2, lon2 = coord2<br><br>    url = f&quot;{OSRM_ROUTE_URL}/{lon1},{lat1};{lon2},{lat2}?overview=false&quot;<br>    response = requests.get(url, timeout=timeout)<br>    response.raise_for_status()<br>    data = response.json()<br><br>    if data.get(&quot;code&quot;) != &quot;Ok&quot;:<br>        raise ValueError(f&quot;OSRM error: {data}&quot;)<br><br>    route = data[&quot;routes&quot;][0]<br>    return route[&quot;distance&quot;], route[&quot;duration&quot;]<br><br><br>def get_full_route_geometry(<br>    route_names: List[str],<br>    timeout: int = 20<br>) -&gt; Dict[str, Any]:<br>    &quot;&quot;&quot;<br>    Get full route geometry as GeoJSON LineString from OSRM for a sequence of points.<br>    &quot;&quot;&quot;<br>    coords = []<br>    for name in route_names:<br>        lat, lon = locations[name]<br>        coords.append(f&quot;{lon},{lat}&quot;)<br><br>    coord_string = &quot;;&quot;.join(coords)<br><br>    url = (<br>        f&quot;{OSRM_ROUTE_URL}/{coord_string}&quot;<br>        f&quot;?overview=full&amp;geometries=geojson&amp;steps=false&quot;<br>    )<br><br>    response = requests.get(url, timeout=timeout)<br>    response.raise_for_status()<br>    data = response.json()<br><br>    if data.get(&quot;code&quot;) != &quot;Ok&quot;:<br>        raise ValueError(f&quot;OSRM geometry error: {data}&quot;)<br><br>    route = data[&quot;routes&quot;][0]<br><br>    return {<br>        &quot;distance&quot;: route[&quot;distance&quot;],<br>        &quot;duration&quot;: route[&quot;duration&quot;],<br>        &quot;geometry&quot;: route[&quot;geometry&quot;],<br>    }<br><br><br># =========================================================<br># OPTIMIZATION HELPERS<br># =========================================================<br>def build_distance_duration_matrix(<br>    points: Dict[str, Tuple[float, float]]<br>) -&gt; Tuple[Dict[Tuple[str, str], float], Dict[Tuple[str, str], float]]:<br>    &quot;&quot;&quot;<br>    Build pairwise distance and duration matrices.<br>    &quot;&quot;&quot;<br>    distance_matrix: Dict[Tuple[str, str], float] = {}<br>    duration_matrix: Dict[Tuple[str, str], float] = {}<br><br>    for origin, destination in itertools.permutations(points.keys(), 2):<br>        distance, duration = get_route_data(points[origin], points[destination])<br>        distance_matrix[(origin, destination)] = distance<br>        duration_matrix[(origin, destination)] = duration<br><br>    return distance_matrix, duration_matrix<br><br><br>def calculate_total_distance(<br>    route: List[str],<br>    distance_matrix: Dict[Tuple[str, str], float]<br>) -&gt; float:<br>    total = 0.0<br>    for i in range(len(route) - 1):<br>        total += distance_matrix[(route[i], route[i + 1])]<br>    return total<br><br><br>def calculate_total_duration(<br>    route: List[str],<br>    duration_matrix: Dict[Tuple[str, str], float]<br>) -&gt; float:<br>    total = 0.0<br>    for i in range(len(route) - 1):<br>        total += duration_matrix[(route[i], route[i + 1])]<br>    return total<br><br><br>def find_best_route_bruteforce(<br>    points: Dict[str, Tuple[float, float]],<br>    distance_matrix: Dict[Tuple[str, str], float],<br>    duration_matrix: Dict[Tuple[str, str], float],<br>    start_point: str = &quot;Depot&quot;,<br>    return_to_depot: bool = True<br>) -&gt; Tuple[List[str], float, float]:<br>    &quot;&quot;&quot;<br>    Solve small TSP by brute force.<br>    &quot;&quot;&quot;<br>    destinations = [p for p in points.keys() if p != start_point]<br><br>    best_route: List[str] = []<br>    best_distance = float(&quot;inf&quot;)<br>    best_duration = float(&quot;inf&quot;)<br><br>    for perm in itertools.permutations(destinations):<br>        candidate = [start_point] + list(perm)<br><br>        if return_to_depot:<br>            candidate.append(start_point)<br><br>        total_distance = calculate_total_distance(candidate, distance_matrix)<br>        total_duration = calculate_total_duration(candidate, duration_matrix)<br><br>        if total_distance &lt; best_distance:<br>            best_route = candidate<br>            best_distance = total_distance<br>            best_duration = total_duration<br><br>    return best_route, best_distance, best_duration<br><br><br>def get_route_summary() -&gt; Dict[str, Any]:<br>    &quot;&quot;&quot;<br>    Compute optimized route and prepare map-ready data.<br>    &quot;&quot;&quot;<br>    distance_matrix, duration_matrix = build_distance_duration_matrix(locations)<br><br>    best_route, best_distance, best_duration = find_best_route_bruteforce(<br>        points=locations,<br>        distance_matrix=distance_matrix,<br>        duration_matrix=duration_matrix,<br>        start_point=&quot;Depot&quot;,<br>        return_to_depot=True,<br>    )<br><br>    route_data = get_full_route_geometry(best_route)<br><br>    waypoint_features = []<br>    for order, name in enumerate(best_route[:-1], start=1):<br>        lat, lon = locations[name]<br>        waypoint_features.append({<br>            &quot;type&quot;: &quot;Feature&quot;,<br>            &quot;geometry&quot;: {<br>                &quot;type&quot;: &quot;Point&quot;,<br>                &quot;coordinates&quot;: [lon, lat]<br>            },<br>            &quot;properties&quot;: {<br>                &quot;name&quot;: name,<br>                &quot;order&quot;: order<br>            }<br>        })<br><br>    route_feature = {<br>        &quot;type&quot;: &quot;Feature&quot;,<br>        &quot;geometry&quot;: route_data[&quot;geometry&quot;],<br>        &quot;properties&quot;: {<br>            &quot;route&quot;: &quot;Optimized Eid Parcel Delivery Route&quot;<br>        }<br>    }<br><br>    return {<br>        &quot;best_route&quot;: best_route,<br>        &quot;best_distance_km&quot;: round(best_distance / 1000, 2),<br>        &quot;best_duration_min&quot;: round(best_duration / 60, 2),<br>        &quot;route_geojson&quot;: {<br>            &quot;type&quot;: &quot;FeatureCollection&quot;,<br>            &quot;features&quot;: [route_feature]<br>        },<br>        &quot;waypoints_geojson&quot;: {<br>            &quot;type&quot;: &quot;FeatureCollection&quot;,<br>            &quot;features&quot;: waypoint_features<br>        }<br>    }<br><br><br># =========================================================<br># FLASK ROUTES<br># =========================================================<br>@app.route(&quot;/&quot;)<br>def index():<br>    return render_template(&quot;index.html&quot;)<br><br><br>@app.route(&quot;/api/route&quot;)<br>def api_route():<br>    data = get_route_summary()<br>    return jsonify(data)<br><br><br>if __name__ == &quot;__main__&quot;:<br>    app.run(host=&quot;127.0.0.1&quot;, port=8081, debug=True)</pre><h3>Step 3 — Understand the Backend Code</h3><p>Now let us break down what the backend does.</p><h4>A. Defining the delivery points</h4><p>This section stores the parcel delivery locations:</p><pre>locations = {<br>    &quot;Depot&quot;: (-6.914744, 107.609810),<br>    &quot;Dago&quot;: (-6.889000, 107.610700),<br>    &quot;Cihampelas&quot;: (-6.893400, 107.604800),<br>    &quot;Buah Batu&quot;: (-6.948200, 107.628900),<br>    &quot;Antapani&quot;: (-6.917500, 107.668700),<br>    &quot;Setiabudi&quot;: (-6.873200, 107.596500),<br>}</pre><p>Each location is stored as:</p><pre>(latitude, longitude)</pre><p>These coordinates will later be used for routing and visualization.</p><h4>B. Requesting route data from OSRM</h4><p>The function below asks OSRM for distance and duration between two points:</p><pre>def get_route_data(coord1, coord2):</pre><p>It returns:</p><ul><li>distance in meters</li><li>duration in seconds</li></ul><p>This is used to build the <strong>distance matrix</strong>, which is needed for optimization.</p><h4>C. Requesting full route geometry</h4><p>The function below is the most important one for visualization:</p><pre>def get_full_route_geometry(route_names):</pre><p>Unlike get_route_data(), This function requests the <strong>entire route shape</strong>, not just distance and time.</p><p>The output includes:</p><ul><li>total distance</li><li>total duration</li><li>route geometry in GeoJSON format</li></ul><p>That GeoJSON line is what Leaflet will draw on the map.</p><h4>D. Finding the best route</h4><p>The function:</p><pre>def find_best_route_bruteforce(...)</pre><p>tries every possible route order and selects the one with the smallest total distance.</p><p>Because we only have 5 delivery points, brute force is still manageable.</p><h4>E. Preparing data for Leaflet</h4><p>The function:</p><pre>def get_route_summary():</pre><p>combines everything:</p><ol><li>builds the distance matrix</li><li>finds the best route</li><li>gets the full geometry from OSRM</li><li>converts the route and stops into <strong>GeoJSON</strong></li></ol><p>This function returns data in a format that the frontend can easily read.</p><h4>F. Creating Flask endpoints</h4><p>Two routes are created:</p><pre>@app.route(&quot;/&quot;)<br>def index():<br>    return render_template(&quot;index.html&quot;)</pre><p>This opens the HTML page.</p><pre>@app.route(&quot;/api/route&quot;)<br>def api_route():<br>    data = get_route_summary()<br>    return jsonify(data)</pre><p>This sends route data from Python to the browser in JSON format.</p><h3>Step 4 — Create the HTML Frontend</h3><p>Now create a folder named:</p><pre>templates</pre><p>in your root folder. Inside it, create a file named:</p><pre>index.html</pre><p>Paste the following code.</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot; /&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot; /&gt;<br>    &lt;title&gt;Optimized Eid Parcel Delivery Route - Bandung&lt;/title&gt;<br><br>    &lt;link<br>        rel=&quot;stylesheet&quot;<br>        href=&quot;https://unpkg.com/leaflet/dist/leaflet.css&quot;<br>    /&gt;<br><br>    &lt;style&gt;<br>        body {<br>            margin: 0;<br>            font-family: Arial, sans-serif;<br>            background: #f7f7f7;<br>        }<br><br>        .container {<br>            max-width: 1200px;<br>            margin: 20px auto;<br>            padding: 0 16px;<br>        }<br><br>        .card {<br>            background: white;<br>            border-radius: 12px;<br>            padding: 16px 20px;<br>            box-shadow: 0 2px 10px rgba(0,0,0,0.08);<br>            margin-bottom: 16px;<br>        }<br><br>        h1 {<br>            margin-top: 0;<br>            margin-bottom: 8px;<br>            font-size: 28px;<br>        }<br><br>        p {<br>            margin-top: 0;<br>            color: #444;<br>        }<br><br>        .stats {<br>            display: flex;<br>            flex-wrap: wrap;<br>            gap: 12px;<br>            margin-top: 12px;<br>        }<br><br>        .stat-box {<br>            background: #fafafa;<br>            border: 1px solid #e6e6e6;<br>            border-radius: 10px;<br>            padding: 12px 14px;<br>            min-width: 180px;<br>        }<br><br>        .stat-label {<br>            font-size: 12px;<br>            color: #666;<br>            margin-bottom: 6px;<br>            text-transform: uppercase;<br>        }<br><br>        .stat-value {<br>            font-size: 20px;<br>            font-weight: bold;<br>        }<br><br>        #map {<br>            height: 650px;<br>            width: 100%;<br>            border-radius: 12px;<br>        }<br><br>        .route-box {<br>            margin-top: 12px;<br>            padding: 12px 14px;<br>            background: #fafafa;<br>            border: 1px solid #e6e6e6;<br>            border-radius: 10px;<br>            line-height: 1.7;<br>        }<br><br>        .legend {<br>            margin-top: 8px;<br>            font-size: 14px;<br>            color: #555;<br>        }<br><br>        .loading {<br>            color: #666;<br>            font-style: italic;<br>        }<br>    &lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>    &lt;div class=&quot;container&quot;&gt;<br>        &lt;div class=&quot;card&quot;&gt;<br>            &lt;h1&gt;Optimized Eid Parcel Delivery Route in Bandung&lt;/h1&gt;<br>            &lt;p&gt;<br>                This interactive map visualizes the optimized parcel delivery route<br>                generated using OSRM and displayed with Leaflet.<br>            &lt;/p&gt;<br><br>            &lt;div class=&quot;stats&quot;&gt;<br>                &lt;div class=&quot;stat-box&quot;&gt;<br>                    &lt;div class=&quot;stat-label&quot;&gt;Total Distance&lt;/div&gt;<br>                    &lt;div class=&quot;stat-value&quot; id=&quot;distance&quot;&gt;Loading...&lt;/div&gt;<br>                &lt;/div&gt;<br>                &lt;div class=&quot;stat-box&quot;&gt;<br>                    &lt;div class=&quot;stat-label&quot;&gt;Estimated Duration&lt;/div&gt;<br>                    &lt;div class=&quot;stat-value&quot; id=&quot;duration&quot;&gt;Loading...&lt;/div&gt;<br>                &lt;/div&gt;<br>                &lt;div class=&quot;stat-box&quot;&gt;<br>                    &lt;div class=&quot;stat-label&quot;&gt;Number of Stops&lt;/div&gt;<br>                    &lt;div class=&quot;stat-value&quot; id=&quot;stops&quot;&gt;Loading...&lt;/div&gt;<br>                &lt;/div&gt;<br>            &lt;/div&gt;<br><br>            &lt;div class=&quot;route-box&quot;&gt;<br>                &lt;strong&gt;Optimized Route Order:&lt;/strong&gt;<br>                &lt;div id=&quot;route-order&quot; class=&quot;loading&quot;&gt;Loading route...&lt;/div&gt;<br>            &lt;/div&gt;<br><br>            &lt;div class=&quot;legend&quot;&gt;<br>                Blue markers show delivery sequence. The red line shows the optimized route.<br>            &lt;/div&gt;<br>        &lt;/div&gt;<br><br>        &lt;div class=&quot;card&quot;&gt;<br>            &lt;div id=&quot;map&quot;&gt;&lt;/div&gt;<br>        &lt;/div&gt;<br>    &lt;/div&gt;<br><br>    &lt;script src=&quot;https://unpkg.com/leaflet/dist/leaflet.js&quot;&gt;&lt;/script&gt;<br>    &lt;script&gt;<br>        const map = L.map(&quot;map&quot;).setView([-6.9147, 107.6098], 12);<br><br>        L.tileLayer(&quot;https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;, {<br>            maxZoom: 19,<br>            attribution: &quot;&amp;copy; OpenStreetMap contributors&quot;<br>        }).addTo(map);<br><br>        let routeLayer = null;<br>        let waypointLayer = null;<br><br>        function createNumberedIcon(order) {<br>            return L.divIcon({<br>                className: &quot;custom-div-icon&quot;,<br>                html: `<br>                    &lt;div style=&quot;<br>                        background:#2563eb;<br>                        color:white;<br>                        width:28px;<br>                        height:28px;<br>                        border-radius:50%;<br>                        display:flex;<br>                        align-items:center;<br>                        justify-content:center;<br>                        font-size:13px;<br>                        font-weight:bold;<br>                        border:2px solid white;<br>                        box-shadow:0 1px 6px rgba(0,0,0,0.35);<br>                    &quot;&gt;${order}&lt;/div&gt;<br>                `,<br>                iconSize: [28, 28],<br>                iconAnchor: [14, 14]<br>            });<br>        }<br><br>        fetch(&quot;/api/route&quot;)<br>            .then(response =&gt; response.json())<br>            .then(data =&gt; {<br>                document.getElementById(&quot;distance&quot;).textContent = `${data.best_distance_km} km`;<br>                document.getElementById(&quot;duration&quot;).textContent = `${data.best_duration_min} min`;<br>                document.getElementById(&quot;stops&quot;).textContent = `${data.best_route.length - 1} legs`;<br>                document.getElementById(&quot;route-order&quot;).textContent = data.best_route.join(&quot; → &quot;);<br><br>                routeLayer = L.geoJSON(data.route_geojson, {<br>                    style: {<br>                        color: &quot;red&quot;,<br>                        weight: 5,<br>                        opacity: 0.85<br>                    }<br>                }).addTo(map);<br><br>                waypointLayer = L.geoJSON(data.waypoints_geojson, {<br>                    pointToLayer: function(feature, latlng) {<br>                        const order = feature.properties.order;<br>                        return L.marker(latlng, {<br>                            icon: createNumberedIcon(order)<br>                        });<br>                    },<br>                    onEachFeature: function(feature, layer) {<br>                        const props = feature.properties;<br>                        layer.bindPopup(`<br>                            &lt;strong&gt;${props.name}&lt;/strong&gt;&lt;br&gt;<br>                            Delivery order: ${props.order}<br>                        `);<br>                    }<br>                }).addTo(map);<br><br>                const group = L.featureGroup([routeLayer, waypointLayer]);<br>                map.fitBounds(group.getBounds(), { padding: [30, 30] });<br>            })<br>            .catch(error =&gt; {<br>                console.error(&quot;Failed to load route data:&quot;, error);<br>                document.getElementById(&quot;route-order&quot;).textContent = &quot;Failed to load route data.&quot;;<br>                document.getElementById(&quot;distance&quot;).textContent = &quot;-&quot;;<br>                document.getElementById(&quot;duration&quot;).textContent = &quot;-&quot;;<br>                document.getElementById(&quot;stops&quot;).textContent = &quot;-&quot;;<br>            });<br>    &lt;/script&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><h3>Step 5 — Understand the Frontend Code</h3><p>Now let us read the HTML and JavaScript part carefully.</p><h4>A. Loading Leaflet</h4><p>This line loads the Leaflet CSS:</p><pre>&lt;link rel=&quot;stylesheet&quot; href=&quot;https://unpkg.com/leaflet/dist/leaflet.css&quot; /&gt;</pre><p>This line loads the Leaflet JavaScript library:</p><pre>&lt;script src=&quot;https://unpkg.com/leaflet/dist/leaflet.js&quot;&gt;&lt;/script&gt;</pre><p>Without these two lines, the map will not work.</p><h4>B. Creating the map</h4><p>This code creates the map and centers it on Bandung:</p><pre>const map = L.map(&quot;map&quot;).setView([-6.9147, 107.6098], 12);</pre><p>Explanation:</p><ul><li>L.map(&quot;map&quot;) → creates a map inside the HTML element with id map</li><li>setView(...) → sets the center and zoom level</li></ul><h4>C. Adding the basemap</h4><p>This code adds the OpenStreetMap basemap:</p><pre>L.tileLayer(&quot;https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;, {<br>    maxZoom: 19,<br>    attribution: &quot;&amp;copy; OpenStreetMap contributors&quot;<br>}).addTo(map);</pre><p>This gives us the visible city map underneath our route.</p><h4>D. Fetching optimized route data from Flask</h4><p>This line requests data from the Flask API:</p><pre>fetch(&quot;/api/route&quot;)</pre><p>The browser sends a request to:</p><pre>http://127.0.0.1:8081/api/route</pre><p>Flask responds with JSON containing:</p><ul><li>route order</li><li>total distance</li><li>total duration</li><li>route GeoJSON</li><li>waypoint GeoJSON</li></ul><h4>E. Displaying route statistics</h4><p>These lines insert route information into the page:</p><pre>document.getElementById(&quot;distance&quot;).textContent = `${data.best_distance_km} km`;<br>document.getElementById(&quot;duration&quot;).textContent = `${data.best_duration_min} min`;<br>document.getElementById(&quot;route-order&quot;).textContent = data.best_route.join(&quot; → &quot;);</pre><p>This is why the page shows summary cards above the map.</p><h4>F. Drawing the route line</h4><p>This code draws the red line:</p><pre>routeLayer = L.geoJSON(data.route_geojson, {<br>    style: {<br>        color: &quot;red&quot;,<br>        weight: 5,<br>        opacity: 0.85<br>    }<br>}).addTo(map);</pre><p>L.geoJSON(...) tells Leaflet to draw GeoJSON data directly on the map.</p><h4>G. Drawing numbered markers</h4><p>This code adds one marker for each delivery point:</p><pre>waypointLayer = L.geoJSON(data.waypoints_geojson, {<br>    pointToLayer: function(feature, latlng) {<br>        const order = feature.properties.order;<br>        return L.marker(latlng, {<br>            icon: createNumberedIcon(order)<br>        });<br>    }<br>}).addTo(map);</pre><p>Each marker shows the delivery order number, such as:</p><ul><li>1 for Depot</li><li>2 for first customer</li><li>3 for second customer</li><li>and so on</li></ul><h3>Step 6 — Run the Application</h3><p>Now go back to the terminal and run:</p><pre>python app.py</pre><p>If everything works, you should see something like:</p><pre>* Running on http://127.0.0.1:808</pre><p>Open your browser and visit:</p><pre>http://127.0.0.1:8081</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BksIoRqJd0wWE32MwCIpDQ.png" /></figure><p>You should now see:</p><ul><li>a title</li><li>route statistics</li><li>optimized route order</li><li>An interactive map with route and markers</li></ul><h3>Why Visualization Matters</h3><p>In logistics decision-making, visualization helps stakeholders:</p><ul><li>understand delivery coverage</li><li>Identify inefficient routes</li><li>Communicate operational plans clearly</li></ul><p>Interactive maps are frequently utilized in <strong>Decision Support Systems (DSS)</strong> for transportation and logistics purposes.</p><p>This project is not only about making a map. From an Industrial Engineering perspective, this workflow supports:</p><ul><li>logistics planning</li><li>routing efficiency</li><li>operational cost reduction</li><li>decision support visualization</li></ul><p>Part 1 solved the routing problem mathematically.<br>Part 2 transforms that result into a visual decision-support tool.</p><p>This is especially useful because managers and stakeholders often understand maps faster than raw tables or route sequences.</p><h3>Final Thoughts</h3><p>By combining:</p><ul><li><strong>OpenStreetMap</strong> for spatial data</li><li><strong>OSRM</strong> for routing analysis</li><li><strong>Leaflet</strong> for visualization</li></ul><p>We can build a simple yet powerful <strong>geo-intelligent logistics system</strong>.</p><p>This approach is widely applicable in Industrial Engineering problems such as:</p><ul><li>urban logistics</li><li>facility location planning</li><li>delivery fleet optimization</li><li>transportation analysis</li></ul><p>All powered by open data and open-source tools.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0192ae78ebd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geo-intelligent-lab/optimizing-eid-parcel-delivery-in-bandung-using-openstreetmap-and-osrm-part-2-a0192ae78ebd">Optimizing Eid Parcel Delivery in Bandung Using OpenStreetMap and OSRM Part 2</a> was originally published in <a href="https://medium.com/geo-intelligent-lab">Geo-Intelligent Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimizing Eid Parcel Delivery in Bandung Using OpenStreetMap and OSRM Part 1]]></title>
            <link>https://medium.com/geo-intelligent-lab/optimizing-eid-parcel-delivery-in-bandung-using-openstreetmap-and-osrm-part-1-287ab4fd1208?source=rss-a1efeabde928------2</link>
            <guid isPermaLink="false">https://medium.com/p/287ab4fd1208</guid>
            <category><![CDATA[osrm]]></category>
            <category><![CDATA[industrial-engineering]]></category>
            <category><![CDATA[ide]]></category>
            <category><![CDATA[tsp]]></category>
            <category><![CDATA[openstreetmap]]></category>
            <dc:creator><![CDATA[Ray Soesanto]]></dc:creator>
            <pubDate>Tue, 10 Mar 2026 13:45:48 GMT</pubDate>
            <atom:updated>2026-03-11T09:09:31.493Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eLAsX45BKza859rA" /><figcaption>Photo by <a href="https://unsplash.com/@paan_azam13?utm_source=medium&amp;utm_medium=referral">Farhan Azam</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Every year during Eid (Lebaran) in Indonesia, parcel delivery increases significantly. Families send gifts, food packages, and holiday hampers to relatives, friends, and colleagues across cities.</p><p>For a courier in Bandung, delivering multiple parcels in one trip can become inefficient if the route is not planned carefully. Without optimization, the courier may travel back and forth across the city, increasing fuel consumption and delivery time.</p><p>This article demonstrates how we can use <strong>OpenStreetMap (OSM)</strong> and <strong>Open Source Routing Machine (OSRM)</strong> to compute the most efficient delivery route for Eid parcels across several locations in Bandung.</p><p>From an <strong>Industrial Engineering perspective</strong>, this problem is known as the <strong>Traveling Salesman Problem (TSP) </strong>to<strong> </strong>determining the shortest route that visits multiple destinations exactly once.</p><h3>The Scenario</h3><p>A courier starts from a small warehouse (Depot) in Bandung and must deliver Eid parcels to five locations:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5884ad91b11dd05dab7d2306412d3357/href">https://medium.com/media/5884ad91b11dd05dab7d2306412d3357/href</a></iframe><p>Without optimization, the courier might simply follow the order of incoming requests:</p><pre>Depot → Dago → Buah Batu → Setiabudi → Antapani → Cihampelas</pre><p>This route could cause unnecessary detours across the city. Instead, we want to determine the <strong>most efficient route based on the actual road network</strong>.</p><h3>Why Use OSM and OSRM?</h3><p>Two powerful open-source tools help solve this problem.</p><h4>OpenStreetMap (OSM)</h4><p>OpenStreetMap is an open geographic database containing:</p><ul><li>road networks</li><li>intersections</li><li>building locations</li><li>urban infrastructure</li></ul><p>It provides detailed spatial data that can be used for routing analysis.</p><h4>Open Source Routing Machine (OSRM)</h4><p>OSRM is a high-performance routing engine that calculates:</p><ul><li>shortest routes</li><li>fastest routes</li><li>travel distance</li><li>travel time</li></ul><p>OSRM uses <strong>OSM road network data</strong> to produce realistic routing results.</p><p>Don’t forget to install the necessary library first</p><pre>pip install requests</pre><h3>Step 1 — Define the Delivery Locations</h3><p>First, we define the coordinates of the delivery points.</p><pre>locations = {<br>    &quot;Depot&quot;: (-6.9147, 107.6098),<br>    &quot;Dago&quot;: (-6.8890, 107.6107),<br>    &quot;Cihampelas&quot;: (-6.8934, 107.6048),<br>    &quot;Buah Batu&quot;: (-6.9482, 107.6289),<br>    &quot;Antapani&quot;: (-6.9175, 107.6687),<br>    &quot;Setiabudi&quot;: (-6.8732, 107.5965)<br>}</pre><p>Each location is represented using latitude and longitude coordinates.</p><h3>Step 2 — Query OSRM for Road Distance</h3><p>To compute the distance between two locations, we query the OSRM API.</p><p>Example request:</p><pre>http://router.project-osrm.org/route/v1/driving/<br>107.6098,-6.9147;<br>107.6107,-6.8890</pre><p>The API returns a JSON response containing:</p><ul><li>route distance</li><li>travel duration</li><li>route geometry</li></ul><p>Example response:</p><pre>{<br>  &quot;code&quot;: &quot;Ok&quot;,<br>  &quot;routes&quot;: [<br>    {<br>      &quot;legs&quot;: [<br>        {<br>          &quot;steps&quot;: [],<br>          &quot;weight&quot;: 247.3,<br>          &quot;summary&quot;: &quot;&quot;,<br>          &quot;duration&quot;: 231.2,<br>          &quot;distance&quot;: 2472.5<br>        }<br>      ],<br>      &quot;weight_name&quot;: &quot;routability&quot;,<br>      &quot;geometry&quot;: &quot;nnei@gpxoSIWk@A[`@[AMdCJLrKFb@WrG}PdGuM`Lu[b@{@t@o@_G_NiBt@w@tAoF{@{AjJ&quot;,<br>      &quot;weight&quot;: 247.3,<br>      &quot;duration&quot;: 231.2,<br>      &quot;distance&quot;: 2472.5<br>    }<br>  ],<br>  &quot;waypoints&quot;: [<br>    {<br>      &quot;hint&quot;: &quot;nAu6iOCgeIkFAAAADQAAAGkAAAAwAAAA03SNP8CsIkCc3q5BrHggQQIAAAAHAAAANAAAABgAAACbQAAAyP5pBlJ-lv_I_mkGdH2W_wwA7xAAAAAA&quot;,<br>      &quot;location&quot;: [107.6098, -6.914478],<br>      &quot;name&quot;: &quot;&quot;,<br>      &quot;distance&quot;: 24.551073<br>    },<br>    {<br>      &quot;hint&quot;: &quot;9mQWiPdkFogqAQAAAAAAAAAAAAAAAAAAuTlPQwAAAAAAAAAAAAAAACoBAAAAAAAAAAAAAAAAAACbQAAAOCVqBiRylv8cI2oGhHKW_wAAzxEAAAAA&quot;,<br>      &quot;location&quot;: [107.61964, -6.917596],<br>      &quot;name&quot;: &quot;&quot;,<br>      &quot;distance&quot;: 60.61390941<br>    }<br>  ]<br>}</pre><h3>Step 3 — Build a Distance Matrix</h3><p>To determine the optimal route, we calculate distances between all locations.</p><pre>import requests<br>import itertools<br><br>def get_distance(coord1, coord2):<br><br>    url = f&quot;http://router.project-osrm.org/route/v1/driving/{coord1[1]},{coord1[0]};{coord2[1]},{coord2[0]}&quot;<br><br>    r = requests.get(url)<br>    data = r.json()<br><br>    return data[&quot;routes&quot;][0][&quot;distance&quot;]</pre><p>Next, compute distances between every pair of locations.</p><pre>distance_matrix = {}<br><br>for a, b in itertools.permutations(locations.keys(), 2):<br><br>    dist = get_distance(locations[a], locations[b])<br><br>    distance_matrix[(a,b)] = dist</pre><p>This creates a <strong>distance matrix</strong> that represents travel distances between all delivery points.</p><h3>Step 4 — Solve the Route Optimization</h3><p>Since the number of locations is small, we can evaluate all possible route combinations.</p><pre>points = list(locations.keys())<br>points.remove(&quot;Depot&quot;)<br><br>best_route = None<br>best_distance = float(&quot;inf&quot;)<br><br>for perm in itertools.permutations(points):<br><br>    route = [&quot;Depot&quot;] + list(perm) + [&quot;Depot&quot;]<br><br>    total = 0<br><br>    for i in range(len(route)-1):<br>        total += distance_matrix[(route[i], route[i+1])]<br><br>    if total &lt; best_distance:<br>        best_distance = total<br>        best_route = route<br><br>print(best_route)<br>print(best_distance)</pre><h3>Result</h3><p>The algorithm evaluates all possible delivery sequences and selects the most efficient one.</p><p>Example optimized route:</p><pre>Depot → Cihampelas → Setiabudi → Dago → Antapani → Buah Batu → Depot</pre><p>Total travel distance:</p><pre>24.6 km</pre><p>Compared to the unoptimized route:</p><pre>34.1 km</pre><p>This optimization reduces travel distance by almost <strong>30%</strong>, saving both time and fuel.</p><p>Here is the full code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7d8fe93d6818693f0d9ccb5d4c8d0f91/href">https://medium.com/media/7d8fe93d6818693f0d9ccb5d4c8d0f91/href</a></iframe><h3>Industrial Engineering Perspective</h3><p>From an Industrial Engineering standpoint, this example demonstrates the application of:</p><ul><li>Operations Research</li><li>Logistics Optimization</li><li>Routing Algorithms</li></ul><p>By integrating <strong>OSM data with OSRM routing</strong>, companies can build <strong>data-driven logistics systems</strong> that improve operational efficiency.</p><h3>Next Step</h3><p>So far, we have computed the optimal route.</p><p>But it is still difficult to interpret the route without seeing it spatially.</p><p>In the next article, we will:</p><ul><li>visualize the optimized route</li><li>display delivery points</li><li>Draw the route on an interactive map using <strong>Leaflet.js</strong>.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=287ab4fd1208" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geo-intelligent-lab/optimizing-eid-parcel-delivery-in-bandung-using-openstreetmap-and-osrm-part-1-287ab4fd1208">Optimizing Eid Parcel Delivery in Bandung Using OpenStreetMap and OSRM Part 1</a> was originally published in <a href="https://medium.com/geo-intelligent-lab">Geo-Intelligent Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Geo-Intelligent Decision Support with Python for Industrial Engineers — Bonus Article: Visualizing…]]></title>
            <link>https://medium.com/geo-intelligent-lab/geo-intelligent-decision-support-with-python-for-industrial-engineers-bonus-article-visualizing-2029cd31db1e?source=rss-a1efeabde928------2</link>
            <guid isPermaLink="false">https://medium.com/p/2029cd31db1e</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[decision-support-systems]]></category>
            <category><![CDATA[leaflet]]></category>
            <category><![CDATA[industrial-engineering]]></category>
            <category><![CDATA[geo-intelligence]]></category>
            <dc:creator><![CDATA[Ray Soesanto]]></dc:creator>
            <pubDate>Sat, 21 Feb 2026 03:01:04 GMT</pubDate>
            <atom:updated>2026-03-03T00:45:55.399Z</atom:updated>
            <content:encoded><![CDATA[<h3>Geo-Intelligent Decision Support with Python for Industrial Engineers — Bonus Article: Visualizing Geo-Intelligent DSS Outcomes Using Leaflet.js</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*urETNXNrdMbc83jt" /><figcaption>Photo by <a href="https://unsplash.com/@kobuagency?utm_source=medium&amp;utm_medium=referral">KOBU Agency</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Why Decision Support Without Spatial Visualization Is Incomplete</h3><p>In Part 5, we built a fully functional <strong>Geo-Intelligent Decision Support System (GI-DSS)</strong> that produces:</p><ul><li>A prioritized list of zones</li><li>Sustainability pressure scores</li><li>Rule-based recommendations under constraints</li></ul><p>From an Industrial Engineering perspective, this already satisfies the requirements of a DSS.</p><p>However, in real decision environments, <strong>tables are rarely sufficient</strong>.</p><p>Decision makers ask:</p><ul><li><em>Where are these zones located?</em></li><li><em>Are they clustered or isolated?</em></li><li><em>Do recommendations align with spatial intuition?</em></li></ul><p>This is where <strong>spatial visualization becomes a decision interface</strong>, not merely a presentation layer.</p><h3>Why Decision Support Without Spatial Visualization Is Incomplete</h3><p>In Part 5, we built a fully functional <strong>Geo-Intelligent Decision Support System (GI-DSS)</strong> that produces:</p><ul><li>A prioritized list of zones</li><li>Sustainability pressure scores</li><li>Rule-based recommendations under constraints</li></ul><p>From an Industrial Engineering perspective, this already satisfies the requirements of a DSS.</p><p>However, in real decision environments, <strong>tables are rarely sufficient</strong>.</p><p>Decision makers ask:</p><ul><li><em>Where are these zones located?</em></li><li><em>Are they clustered or isolated?</em></li><li><em>Do recommendations align with spatial intuition?</em></li></ul><p>This is where <strong>spatial visualization becomes a decision interface</strong>, not merely a presentation layer.</p><h3>Visualization Design Principles for Decision Support</h3><p>Before coding, we define three principles:</p><ol><li><strong>Priority must be immediately visible: </strong>High-priority zones should stand out.</li><li><strong>Explanation must be accessible:</strong> Each zone should explain <em>why</em> it was selected.</li><li><strong>Interactivity should support exploration, not distraction: </strong>Leaflet fits these principles well.</li></ol><h3>Preparing DSS Output for Spatial Visualization (Python)</h3><p>From Part 5, assume you have already generated:</p><ul><li>zones_with_dss.geojson</li><li>Attributes:</li><li>ssi_score</li><li>env_pressure</li><li>social_pressure</li><li>dominant_pressure</li><li>activity_count</li></ul><p>If not, uncomment the export lines in tutor5.py.</p><h4>Example: exporting DSS result</h4><pre>zones.to_file(&quot;zones_with_dss.geojson&quot;, driver=&quot;GeoJSON&quot;)</pre><p>This file becomes the <strong>bridge between Python DSS logic and Leaflet visualization</strong>.</p><p>This is the full code for export.py. Place it in your<strong> root folder</strong>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/127bd9a6c90b4d222ed25ed429852e5f/href">https://medium.com/media/127bd9a6c90b4d222ed25ed429852e5f/href</a></iframe><p>Run export.py to generate the zone_with_dss.geojson file</p><h3>Minimal Leaflet Setup</h3><p>Create a file called index.html</p><p>Place the file in leaflet/index.html</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>  &lt;meta charset=&quot;utf-8&quot; /&gt;<br>  &lt;title&gt;Geo-Intelligent DSS – Spatial Recommendations&lt;/title&gt;<br><br>  &lt;link<br>    rel=&quot;stylesheet&quot;<br>    href=&quot;https://unpkg.com/leaflet@1.9.4/dist/leaflet.css&quot;<br>  /&gt;<br><br>  &lt;style&gt;<br>    #map {<br>      height: 100vh;<br>    }<br>  &lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br><br>&lt;div id=&quot;map&quot;&gt;&lt;/div&gt;<br><br>&lt;script src=&quot;https://unpkg.com/leaflet@1.9.4/dist/leaflet.js&quot;&gt;&lt;/script&gt;<br>&lt;script src=&quot;zones_with_dss.geojson&quot;&gt;&lt;/script&gt;<br>&lt;script src=&quot;app.js&quot;&gt;&lt;/script&gt;<br><br>&lt;/body&gt;<br>&lt;/html&gt;</pre><h3>Rendering DSS Zones in Leaflet</h3><p>Create app.js in leaflet/app.js</p><h4>Initialize the Map</h4><pre>const map = L.map(&#39;map&#39;).setView([-6.9, 107.6], 11);<br><br>L.tileLayer(&#39;https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png&#39;, {<br>  attribution: &#39;&amp;copy; OpenStreetMap contributors&#39;<br>}).addTo(map);</pre><h4>Color Logic Based on DSS Priority</h4><pre>function getColor(ssi) {<br>  return ssi &gt; 0.8 ? &#39;#800026&#39; :<br>         ssi &gt; 0.6 ? &#39;#BD0026&#39; :<br>         ssi &gt; 0.4 ? &#39;#E31A1C&#39; :<br>         ssi &gt; 0.2 ? &#39;#FD8D3C&#39; :<br>                     &#39;#FED976&#39;;<br>}</pre><h4>Style Zones Using DSS Scores</h4><pre>function style(feature) {<br>  return {<br>    fillColor: getColor(feature.properties.ssi_score),<br>    weight: 1,<br>    opacity: 1,<br>    color: &#39;#555&#39;,<br>    fillOpacity: 0.7<br>  };<br>}</pre><h4>DSS-Aware Popups (Explainability)</h4><pre>function onEachFeature(feature, layer) {<br>  const p = feature.properties;<br><br>  layer.bindPopup(`<br>    &lt;strong&gt;Zone:&lt;/strong&gt; ${p.zone_id}&lt;br/&gt;<br>    &lt;strong&gt;SSI Score:&lt;/strong&gt; ${p.ssi_score}&lt;br/&gt;<br>    &lt;strong&gt;Environmental Pressure:&lt;/strong&gt; ${p.env_pressure}&lt;br/&gt;<br>    &lt;strong&gt;Social Pressure:&lt;/strong&gt; ${p.social_pressure}&lt;br/&gt;<br>    &lt;strong&gt;Dominant Pressure:&lt;/strong&gt; ${p.dominant_pressure}&lt;br/&gt;<br>    &lt;strong&gt;Activity Count:&lt;/strong&gt; ${p.activity_count}<br>  `);<br>}</pre><h4>Add DSS Layer to the Map</h4><pre>fetch(&#39;zones_with_dss.geojson&#39;)<br>  .then(response =&gt; response.json())<br>  .then(data =&gt; {<br>    L.geoJSON(data, {<br>      style: style,<br>      onEachFeature: onEachFeature<br>    }).addTo(map);<br>  });</pre><p>At this point, your DSS output is <strong>fully explorable spatially</strong>.</p><p>This is the full code for app.js:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/080d103b1f5816f9eb15ab0f662389b4/href">https://medium.com/media/080d103b1f5816f9eb15ab0f662389b4/href</a></iframe><p>To run the visualization, in your terminal, run:</p><pre>cd leaflet<br>python -m http.server 8000</pre><p>Open browser:</p><p><a href="http://localhost:8000/">http://localhost:8000</a></p><h3>Why This Visualization Completes the DSS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JCyCW3cVmJZ2PZ0v6yixAw.png" /><figcaption>Visual result using leaflet.js</figcaption></figure><p>From an Industrial Engineering perspective, this Leaflet-based interface:</p><ul><li>Preserves DSS logic (no recomputation in JS)</li><li>Makes prioritization spatially explicit</li><li>Supports human validation and trust</li><li>Bridges analytics and decision meetings</li></ul><p>This is <strong>not a dashboard</strong>. It is a <strong>decision interpretation interface</strong>.</p><h3>Closing Thought</h3><p>A decision that cannot be seen spatially is often difficult to defend.</p><p>By visualizing geo-intelligent DSS outcomes using Leaflet, industrial engineers can move beyond numbers and rankings, and toward <strong>spatially grounded, explainable decisions</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2029cd31db1e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geo-intelligent-lab/geo-intelligent-decision-support-with-python-for-industrial-engineers-bonus-article-visualizing-2029cd31db1e">Geo-Intelligent Decision Support with Python for Industrial Engineers — Bonus Article: Visualizing…</a> was originally published in <a href="https://medium.com/geo-intelligent-lab">Geo-Intelligent Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Geo-Intelligent Decision Support with Python for Industrial Engineers — Part 5: From Spatial…]]></title>
            <link>https://medium.com/geo-intelligent-lab/geo-intelligent-decision-support-with-python-for-industrial-engineers-part-5-from-spatial-77f50fc5f80a?source=rss-a1efeabde928------2</link>
            <guid isPermaLink="false">https://medium.com/p/77f50fc5f80a</guid>
            <category><![CDATA[decision-support-systems]]></category>
            <category><![CDATA[geo-intelligence]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[industrial-engineering]]></category>
            <dc:creator><![CDATA[Ray Soesanto]]></dc:creator>
            <pubDate>Fri, 20 Feb 2026 01:01:00 GMT</pubDate>
            <atom:updated>2026-03-03T00:46:07.131Z</atom:updated>
            <content:encoded><![CDATA[<h3>Geo-Intelligent Decision Support with Python for Industrial Engineers — Part 5: From Spatial Analytics to a Geo-Intelligent Decision Support System</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*obMw37xWhj-5uZqP" /><figcaption>Photo by <a href="https://unsplash.com/@steve_j?utm_source=medium&amp;utm_medium=referral">Steve Johnson</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Why Most Analytics Fail to Support Real Decisions</h3><p>Many industrial systems today are rich in analytics.</p><p>Dashboards show trends.<br> Maps show hotspots.<br> Indices show rankings.</p><p>Yet decision makers still ask the same question:</p><blockquote>“What should we do next?”</blockquote><p>From an Industrial Engineering perspective, this gap exists because <strong>analytics and decision support are not the same thing</strong>. Analytics describes the system. Decision support structures choice under constraints.</p><p>A map highlights patterns.<br>A dashboard summarizes performance.<br>A <strong>Decision Support System (DSS)</strong> recommends action paths.</p><p>This article shows how geo-intelligent analytics can be transformed into a <strong>decision-ready DSS</strong>, using Python as the intelligence engine.</p><h3>What Makes a System a Decision Support System?</h3><p>A DSS is not defined by technology. It is defined by <strong>decision logic</strong>.</p><p>From an Industrial Engineering standpoint, a DSS must explicitly represent:</p><ol><li><strong>Alternatives: </strong>What options are available?</li><li><strong>Criteria:</strong> How are alternatives evaluated?</li><li><strong>Constraints: </strong>What limits the decision?</li><li><strong>Decision logic:</strong> How are trade-offs resolved?</li></ol><p>In previous articles, we already built:</p><ul><li>Spatial decision variables (Part 1)</li><li>Risk and vulnerability prioritization (Part 2)</li><li>Accessibility and equity signals (Part 3)</li><li>A spatial sustainability index (Part 4)</li></ul><p>Now we integrate them into a <strong>coherent decision framework</strong>.</p><h3>From Indices to Decisions: The Missing Layer</h3><p>A common misconception is that a ranked index is already a decision.</p><p>It is not.</p><p>A ranked index answers:</p><blockquote><em>“Which zones score higher?”</em></blockquote><p>A DSS answers:</p><blockquote><em>“Which zones should be acted on, given limited resources and policy constraints?”</em></blockquote><p>The missing layer is <strong>decision logic</strong>.</p><h3>Geo-Intelligent DSS Architecture (Conceptual)</h3><p>A geo-intelligent DSS can be structured into four layers:</p><p>1) Data Layer</p><p>Spatial data, indicators, and indices.</p><p>2) Intelligence Layer</p><p>Normalization, scoring, aggregation, sensitivity logic.</p><p>3) Decision Layer</p><p>Rules, thresholds, scenarios, and prioritization logic.</p><p>4) Interpretation Layer</p><p>Clear outputs that support human judgment.</p><p>Python primarily operates in the <strong>intelligence and decision layers</strong>.</p><h3>Case Scenario</h3><p>Assume a decision maker faces this constraint:</p><blockquote>“We can only intervene in 5 zones this year.”</blockquote><p>Available information:</p><ul><li>ssi_score (Part 4)</li><li>Environmental pressure</li><li>Social equity pressure</li></ul><p>Decision requirements:</p><ul><li>Avoid zones with marginal scores</li><li>Prioritize zones with <strong>high combined pressure</strong></li><li>Ensure decisions are <strong>transparent and explainable</strong></li></ul><h3>Python Tutorial: Adding Decision Logic</h3><h4>Define Decision Rules</h4><p>Instead of selecting the top N blindly, we introduce rules:</p><ul><li>SSI must exceed a minimum threshold</li><li>At least one pressure dimension must be critical</li></ul><pre>SSI_THRESHOLD = 0.6<br>CRITICAL_PRESSURE = 0.7<br>MAX_ZONES = 5</pre><h4>Apply Decision Rules</h4><pre>decision_candidates = zones[<br>    (zones[&quot;ssi_score&quot;] &gt;= SSI_THRESHOLD) &amp;<br>    (<br>        (zones[&quot;env_pressure&quot;] &gt;= CRITICAL_PRESSURE) |<br>        (zones[&quot;social_pressure&quot;] &gt;= CRITICAL_PRESSURE)<br>    )<br>]</pre><p>This already narrows the decision space.</p><h4>Prioritize Under Resource Constraints</h4><pre>final_decision = (<br>    decision_candidates<br>    .sort_values(&quot;ssi_score&quot;, ascending=False)<br>    .head(MAX_ZONES)<br>)</pre><p>Now we have <strong>decision-constrained recommendations</strong>, not just rankings.</p><h3>Explaining the Decision (Interpretability Matters)</h3><p>A DSS must explain <em>why</em> an option was selected.</p><pre>final_decision[[<br>    &quot;zone_id&quot;,<br>    &quot;ssi_score&quot;,<br>    &quot;env_pressure&quot;,<br>    &quot;social_pressure&quot;<br>]]</pre><p>This allows decision makers to see:</p><ul><li>Which pressure dominates</li><li>Why one zone was chosen over another</li><li>How changes in thresholds would alter the result</li></ul><p>This is crucial for trust.</p><p>Full working Python implementation:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7ead03c81c95acd607bc0174c14c265d/href">https://medium.com/media/7ead03c81c95acd607bc0174c14c265d/href</a></iframe><h3>Why This Is a True Industrial Engineering DSS</h3><p>From an Industrial Engineering perspective, this DSS:</p><ul><li>Operates under <strong>explicit constraints</strong></li><li>Resolves <strong>multi-criteria trade-offs</strong></li><li>Produces <strong>actionable recommendations</strong></li><li>Preserves <strong>human decision authority</strong></li></ul><p>The system does not replace decision makers.<br>It <strong>structures their choices</strong>.</p><h3>From Tutorial to Real-World Deployment</h3><p>This tutorial-level DSS can be extended to:</p><ul><li>Scenario comparison (different weights, budgets, policies)</li><li>Sensitivity analysis (how stable are decisions?)</li><li>Interactive dashboards (human-in-the-loop DSS)</li><li>Policy-ready decision reports</li></ul><p>At this point, geo-intelligence moves from analysis to <strong>governance support</strong>.</p><p>Figure 1 presents the proposed Geo-Intelligent Decision Support System (GI-DSS) framework. The framework integrates spatial data, geo-intelligent analytics, sustainability indexing, and rule-based decision logic to support prioritized interventions under resource constraints. Unlike conventional GIS-based analyses, the proposed framework explicitly embeds decision logic and interpretability, enabling industrial engineers to translate spatial analytics into actionable decisions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WyDsmiTTTr3vyuxhjdNhxQ.png" /></figure><h3>What This Series Has Achieved</h3><p>Across five articles, you have built:</p><ol><li>Spatial decision variables</li><li>Risk-based prioritization</li><li>Accessibility and equity metrics</li><li>A spatial sustainability index</li><li>A geo-intelligent DSS with decision logic</li></ol><p>This is not a collection of GIS tricks.<br> It is a <strong>decision-oriented framework</strong> grounded in Industrial Engineering.</p><h3>Closing Thought</h3><p>Data describes systems.<br>Analytics explains systems.<br>But <strong>decisions change systems</strong>.</p><p>Geo-intelligent decision support gives industrial engineers the missing capability:</p><blockquote><strong><em>To decide where to act, when resources are limited, and consequences are spatially uneven.</em></strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77f50fc5f80a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geo-intelligent-lab/geo-intelligent-decision-support-with-python-for-industrial-engineers-part-5-from-spatial-77f50fc5f80a">Geo-Intelligent Decision Support with Python for Industrial Engineers — Part 5: From Spatial…</a> was originally published in <a href="https://medium.com/geo-intelligent-lab">Geo-Intelligent Lab</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>