چکیده:
بسیاری از بنگاههای موجود در اقتصاد، دولتی هستند و قیمت محصولات یا خدماتشان برای مصرفکنندگان یکسان است. در این شرایط، مسئله مصرفکنندگان این خواهد بود که چگونه از کوتاهترین مسیر (کمترین هزینه) خود را به بنگاه برسانند. از سوی دیگر، این مسئله میتواند برای یک بنگاه دولتی یا انحصاری که تسهیلاتی شامل صنعت نفت و گاز، برق، آب، مخابرات و غیره فراهم میکند، به این صورت مطرح شود که در کجای شهر قرار گیرد تا حداقل فاصلة ممکن از همة مصرفکنندگان را داشته باشد. در این مقاله، سؤال اول با الگوریتم دایکسترا و سؤال دوم به روش حداقل مربعات فاصله پاسخ داده شده است. نتایج نشان میدهد که مصرفکننده میتواند به روش الگوریتم دایکسترا کوتاهترین مسیر تا رسیدن به بنگاه موردنظر و همچنین کوتاهترین فاصلة ممکن از همه بنگاههای موجود را پیدا کند. علاوه بر این، مکان بهینة بنگاهها به تعداد مصرفکنندگان و نحوة توزیع آنها بستگی دارد.
Many firms in the economy are government-owned and the prices of products or services are the same for consumers.In this situation, consumers’ problem will be that how to get to the firm via the shortest path (minimum cost). On the other hand, the problem for a government-owned firm or a monopoly firm that is providesfacilities include the oil and gas, electricity, water, telecommunications, and etc, can be raised where it would be located in the city in order to have the least possible distance for the all consumers.In this paper, the first question with Dijkstra's algorithm and the second question byusing least square of the distancehave been answered. The results show that consumer can find theshortest path to achieve thedesiredfirm and the shortest possible distance from all available agencies by Dijkstra's algorithm. Furthermore, optimal locations of firms dependon the number of consumers and how they are distributed.