WICHTIG: Der Betrieb von goMatlab.de wird privat finanziert fortgesetzt. - Mehr Infos...

Mein MATLAB Forum - goMatlab.de

Mein MATLAB Forum

 
Gast > Registrieren       Autologin?   

Partner:




Forum
      Option
[Erweitert]
  • Diese Seite per Mail weiterempfehlen
     


Gehe zu:  
Neues Thema eröffnen Neue Antwort erstellen

optimal stationing with k-means Algorithm

 

XxneedhelpxX
Forum-Newbie

Forum-Newbie


Beiträge: 4
Anmeldedatum: 28.12.21
Wohnort: ---
Version: ---
     Beitrag Verfasst am: 28.12.2021, 15:18     Titel: optimal stationing with k-means Algorithm
  Antworten mit Zitat      
Hello,
I have to find out the optimal stationing of rescue helicopters for my project work. I have to solve the task with the help of the k-means algorithm.
There are 3 helicopters available and there are 109 ski resorts.
The question is where these helicopters should be stationed.
The locations of the ski areas are given in x and y coordinates and the accident frequency of the ski areas is given as a number.
There are several possible solutions, however, I am to realize the weighted averaging as a solution approach.

This task is to be solved with the help of the k-means algorithm. The pseudo code is as follows:

1. choose number of desired clusters (here K rescue helicopters).
2. choose K random ski resorts as possible rescue helicopter locations
3. calculate distance of all ski areas to the selected helicopter locations
4. ski resorts are assigned to the helicopter location with the least distance
5. determine the weighted average (also called centroid) of each cluster.
6. choose as new cluster points or helicopter locations the ski resorts with the smallest distance to each centroid
7. if the clusters differ, repeat (3)-(6). If nothing has changed since the last run, abort.
8. END

I would really appreciate some help with the k-means algorithm, of course the solution would be perfect, but just an idea or an illustration of what the algorithm must look like will do just fine.
Of course the algorithm must work in Matlab.

Thank you
Private Nachricht senden Benutzer-Profile anzeigen


Harald
Forum-Meister

Forum-Meister


Beiträge: 24.448
Anmeldedatum: 26.03.09
Wohnort: Nähe München
Version: ab 2017b
     Beitrag Verfasst am: 28.12.2021, 17:35     Titel:
  Antworten mit Zitat      
Bitte keine Doppelposts, siehe
https://www.gomatlab.de/viewtopic,p,202038.html
_________________

1.) Ask MATLAB Documentation
2.) Search gomatlab.de, google.de or MATLAB Answers
3.) Ask Technical Support of MathWorks
4.) Go mad, your problem is unsolvable ;)
Private Nachricht senden Benutzer-Profile anzeigen
 
Neues Thema eröffnen Neue Antwort erstellen



Einstellungen und Berechtigungen
Beiträge der letzten Zeit anzeigen:

Du kannst Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.
Du kannst Dateien in diesem Forum posten
Du kannst Dateien in diesem Forum herunterladen
.





 Impressum  | Nutzungsbedingungen  | Datenschutz | FAQ | goMatlab RSS Button RSS

Hosted by:


Copyright © 2007 - 2024 goMatlab.de | Dies ist keine offizielle Website der Firma The Mathworks

MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.