<!DOCTYPE article
PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.4 20190208//EN"
       "JATS-journalpublishing1.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" article-type="research-article" dtd-version="1.4" xml:lang="en">
 <front>
  <journal-meta>
   <journal-id journal-id-type="publisher-id">Terra Politica</journal-id>
   <journal-title-group>
    <journal-title xml:lang="en">Terra Politica</journal-title>
    <trans-title-group xml:lang="ru">
     <trans-title>Terra Politica</trans-title>
    </trans-title-group>
   </journal-title-group>
   <issn publication-format="print">3033-537X</issn>
   <issn publication-format="online">3033-7321</issn>
  </journal-meta>
  <article-meta>
   <article-id pub-id-type="publisher-id">112014</article-id>
   <article-id pub-id-type="doi">10.63115/5060.2025.33.88.011</article-id>
   <article-id pub-id-type="edn">WGGCTI</article-id>
   <article-categories>
    <subj-group subj-group-type="toc-heading" xml:lang="ru">
     <subject>AD HOC</subject>
    </subj-group>
    <subj-group subj-group-type="toc-heading" xml:lang="en">
     <subject>AD HOC</subject>
    </subj-group>
    <subj-group>
     <subject>AD HOC</subject>
    </subj-group>
   </article-categories>
   <title-group>
    <article-title xml:lang="en">EVALUATING CONTIGUOUS ALTERNATIVES IN DECISION-MAKING MODELS USING PYTHON PROGRAMMING LANGUAGE</article-title>
    <trans-title-group xml:lang="ru">
     <trans-title>ОЦЕНКА СОСЕДНИХ АЛЬТЕРНАТИВ В МОДЕЛЯХ ПРИНЯТИЯ РЕШЕНИЙ СРЕДСТВАМИ ЯЗЫКА ПРОГРАММИРОВАНИЯ PYTHON</trans-title>
    </trans-title-group>
   </title-group>
   <contrib-group content-type="authors">
    <contrib contrib-type="author">
     <contrib-id contrib-id-type="orcid">https://orcid.org/0000-0002-6253-2067</contrib-id>
     <name-alternatives>
      <name xml:lang="ru">
       <surname>Доманов</surname>
       <given-names>Алексей Олегович</given-names>
      </name>
      <name xml:lang="en">
       <surname>Domanov</surname>
       <given-names>Aleksey Olegovich</given-names>
      </name>
     </name-alternatives>
     <xref ref-type="aff" rid="aff-1"/>
    </contrib>
   </contrib-group>
   <aff-alternatives id="aff-1">
    <aff>
     <institution xml:lang="ru">Институт Европы РАН</institution>
     <country>Россия</country>
    </aff>
    <aff>
     <institution xml:lang="en">Institute of Europe RAS</institution>
     <country>Russian Federation</country>
    </aff>
   </aff-alternatives>
   <pub-date publication-format="print" date-type="pub" iso-8601-date="2025-07-01T00:00:00+03:00">
    <day>01</day>
    <month>07</month>
    <year>2025</year>
   </pub-date>
   <pub-date publication-format="electronic" date-type="pub" iso-8601-date="2025-07-01T00:00:00+03:00">
    <day>01</day>
    <month>07</month>
    <year>2025</year>
   </pub-date>
   <issue>1</issue>
   <fpage>157</fpage>
   <lpage>166</lpage>
   <history>
    <date date-type="received" iso-8601-date="2025-03-01T00:00:00+03:00">
     <day>01</day>
     <month>03</month>
     <year>2025</year>
    </date>
    <date date-type="accepted" iso-8601-date="2025-06-01T00:00:00+03:00">
     <day>01</day>
     <month>06</month>
     <year>2025</year>
    </date>
   </history>
   <self-uri xlink:href="https://terrapolitica.ru/en/nauka/article/112014/view">https://terrapolitica.ru/en/nauka/article/112014/view</self-uri>
   <abstract xml:lang="ru">
    <p>Функционал языка программирования Python позволяет хранить и обрабатывать сведения о соседних географических объектах, сопоставляемых политическими акторами. Наиболее подходящими библиотеками последних лет с открытым кодом для анализа и прогнозирования перемещений по координатной плоскости или графу смежности (например, в задачах рационального выбора, диффузии инноваций и формирования институтов, переезда в уже сформированную институциональную среду) можно считать Helipad и Mesa.;«Цифровые двойники» акторов обращаются к сведениям о соседстве (закодированным в явном виде или выведенным из координат территорий) при взаимодействии со средой: в ходе поэтапной симуляции перечень альтернатив для размещения в следующий момент времени ограничивается списком близлежащих мест.;Выбирая оптимальное местоположение, компьютерные модели сопоставляют релевантные характеристики соседних объектов, ориентируясь на закодированные предпочтения. Для этого проводится автоматический расчёт полезности, которую актор получил бы через некоторое время благодаря свойствам выбранной зоны, и определяется наиболее приемлемая близкая альтернатива.;Некоторые библиотеки содержат готовые процедуры, предназначенные для визуализации участков земли и образованного ими пространства (в виде тепловой карты - в зависимости от значения какого-либо параметра в различных местах);Переформулировав задачу исследования (перенеся акцент с характеристик территорий на свойства перемещений в различных направлениях), можно воспользоваться библиотеками на основе теории игр. Сравнение стратегий перехода на соседние участки земли, алгоритмизируется с помощью функций библиотек Axelrod, QuantEcon, StratPy, NashPy, OpenSpiel.</p>
   </abstract>
   <trans-abstract xml:lang="en">
    <p>Python programming language allows for storing and processing information about neighboring geographic objects compared by political actors. The most suitable open-source recent libraries for analyzing and predicting movements along a coordinate plane or adjacency graph (for example, in rational choice studies, diffusion of innovations and shaping institutions or relocation to an already reshaped institutional environment) are presumably Helipad and Mesa.;Actors’ «digital twins» access information about their neighborhoods (encoded explicitly or derived from a polygon’s coordinates) when interacting with the environment: by limiting the number of alternatives for displacement or allocation at the next moment (during a step-by-step simulation) to a list of nearby places.;When choosing the optimal location, computer models compare the relevant characteristics of neighboring objects, focusing on encoded preferences. To that end an actor automatically calculates the utility it would have received by the end of the period thanks to the envisaged zone’s properties, and the most acceptable nearby alternative is determined. Some libraries contain ready-made procedures visualizing the territories and the space they form (as a heat map - with areas’ colors depending on the value of any parameter). By reformulating the research task (by shifting the emphasis from the territories’ characteristics to the properties of moving in various directions), one could use libraries based on game theory. Algorithms to compare strategies (relocating to neighboring areas) are provided in libraries Axelrod, QuantEcon, StratPy, NashPy, OpenSpiel.</p>
   </trans-abstract>
   <kwd-group xml:lang="ru">
    <kwd>агентно-ориентированное моделирование</kwd>
    <kwd>матрица смежности</kwd>
    <kwd>теория игр</kwd>
    <kwd>методы оптимизации</kwd>
    <kwd>предпочтения</kwd>
   </kwd-group>
   <kwd-group xml:lang="en">
    <kwd>agent-based modeling</kwd>
    <kwd>contiguity matrix</kwd>
    <kwd>game theory</kwd>
    <kwd>optimization methods</kwd>
    <kwd>preferences</kwd>
   </kwd-group>
  </article-meta>
 </front>
 <body>
  <p></p>
 </body>
 <back>
  <ref-list>
   <ref id="B1">
    <label>1.</label>
    <citation-alternatives>
     <mixed-citation xml:lang="ru">Axelrod R. (1997), The complexity of cooperation: Agent-based models of competition and collaboration, Princeton: Princeton University Press, 248 p.</mixed-citation>
     <mixed-citation xml:lang="en">Axelrod R. (1997), The complexity of cooperation: Agent-based models of competition and collaboration, Princeton: Princeton University Press, 248 p.</mixed-citation>
    </citation-alternatives>
   </ref>
   <ref id="B2">
    <label>2.</label>
    <citation-alternatives>
     <mixed-citation xml:lang="ru">Zhang J. (2011), Tipping and residential segregation: A unified schelling model, Journal of Regional Science, vol. 51, no. 1, pp. 167-193.</mixed-citation>
     <mixed-citation xml:lang="en">Zhang J. (2011), Tipping and residential segregation: A unified schelling model, Journal of Regional Science, vol. 51, no. 1, pp. 167-193.</mixed-citation>
    </citation-alternatives>
   </ref>
  </ref-list>
 </back>
</article>
