<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.simulace.info/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kadt02</id>
	<title>Simulace.info - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://www.simulace.info/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kadt02"/>
	<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php/Special:Contributions/Kadt02"/>
	<updated>2026-07-27T16:36:31Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>http://www.simulace.info/index.php?title=Finding_strategies_comparison&amp;diff=23442</id>
		<title>Finding strategies comparison</title>
		<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php?title=Finding_strategies_comparison&amp;diff=23442"/>
		<updated>2023-01-23T18:49:29Z</updated>

		<summary type="html">&lt;p&gt;Kadt02: /* Second method - bouncing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page presents the multi-agent simulation of comparison of strategies for finding a lost person in the forest made by Tomas Kadane. &lt;br /&gt;
&lt;br /&gt;
=Problem definition=&lt;br /&gt;
This problem came to my mind because I have once lost my dog in a forest. I was thinking what would be the best strategy to find the dog. However it is pretty complex problem to simulate forest and all types of strategies, so this work is simplified by multiple factors (against the reality and work assignment). I'm comparing two strategies with variable number of searchers in square pane with fixed boundaries.&lt;br /&gt;
&lt;br /&gt;
=Method=&lt;br /&gt;
For the simulation I have used NetLogo 6.3.0. I'm implementing two basic searching strategies. First one is based on random walk and the second is based on the walking to the edge of the forest and then bouncing in the opposite direction. &lt;br /&gt;
&lt;br /&gt;
Searched person is represented by single red colored patch (representing area where the searched person can be seen). And the searchers are so called turtles beginning at random position. When any of the turtle enters the red area, the simulation stops and number of ticks is recorded. Both methods have been done 30 times for 1, 2 and 3 searchers.&lt;br /&gt;
&lt;br /&gt;
==First method - random walk==&lt;br /&gt;
In the fist method I implemented random walk. Each step (represented by one tick) one step ahead is made and then the heading is changed by random angle using this formula:&lt;br /&gt;
 set heading (heading + (angle / 2) - (random angle))&lt;br /&gt;
&lt;br /&gt;
If the searchers hits the border of the forest, he will turn &amp;quot;backwards&amp;quot; as described in this code:&lt;br /&gt;
 to check-borders&lt;br /&gt;
   if (xcor &amp;lt; min-pxcor) [set heading (heading + 180)]&lt;br /&gt;
   if (xcor &amp;gt; max-pxcor) [set heading (heading + 180)]&lt;br /&gt;
   if (ycor &amp;lt; min-pycor) [set heading (heading + 180)]&lt;br /&gt;
   if (ycor &amp;gt; max-pycor) [set heading (heading + 180)]&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
[[File:randomwalk_UI.png]]&lt;br /&gt;
&lt;br /&gt;
After measuring 30 times for each angle and 1, 2 and 3 searchers I created table of average steps (ticks) needed to find the searched person. Not agregated data can be found in [[File:Results random walk.xlsx]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;top&amp;quot; | '''Averages for random walk depending on the angle'''&lt;br /&gt;
!| Searchers    ||   45 angle   ||   90 angle   ||   180 angle   || 360 angle&lt;br /&gt;
|-&lt;br /&gt;
|	1 	||	1033	||	583	||	633      ||    1301 	&lt;br /&gt;
|-&lt;br /&gt;
|	2 	||	398	||	304	||	403      ||    658&lt;br /&gt;
|-&lt;br /&gt;
|	3 	||	290	||	219	||	130	 ||    371&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
To see how steps needed vary I used standart deviation.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;top&amp;quot; | '''Standart deviations for random walk depending on the angle'''&lt;br /&gt;
!| Searchers    ||   45 angle   ||   90 angle   ||   180 angle   || 360 angle&lt;br /&gt;
|-&lt;br /&gt;
|	1 	||	885	||	543	||	662      ||    1793 	&lt;br /&gt;
|-&lt;br /&gt;
|	2 	||	377	||	236	||	356      ||    869&lt;br /&gt;
|-&lt;br /&gt;
|	3 	||	366	||	237	||	128	 ||    472&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Second method - bouncing==&lt;br /&gt;
In the second method searchers and searchers are spawned on the random position. Setup is same as in the first method. However the moving method differs. Searchers are moving in direct way and when they hit border they bounce in oposite direction as described in this code:&lt;br /&gt;
 to check-bounce&lt;br /&gt;
   ;; bounce off left and right walls&lt;br /&gt;
   if abs pxcor = max-pxcor [&lt;br /&gt;
     set heading (- heading)&lt;br /&gt;
   ]&lt;br /&gt;
   ;; bounce off top and bottom walls&lt;br /&gt;
   if abs pycor = max-pycor [&lt;br /&gt;
     set heading (180 - heading)&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
[[File:bounce_UI.png]]&lt;br /&gt;
&lt;br /&gt;
The method of recording steps needed to find the lost person was same as in the first method, however the angle is not variable now. To see how the data vary I have used standart deviation again. Non agregated data can be seen here [[File:Results bounce.xlsx]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;top&amp;quot; | '''Averages and standart deviations for bouncing method'''&lt;br /&gt;
!| Searchers    ||   Average   ||   St. dev. &lt;br /&gt;
|-&lt;br /&gt;
|	1 	||	566	||	624	&lt;br /&gt;
|-&lt;br /&gt;
|	2 	||	192	||	161&lt;br /&gt;
|-&lt;br /&gt;
|	3 	||	180	||	141&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Results=&lt;br /&gt;
To evaluate random walk method. We can see that if we are searching alone, the 90 angle seems the most efective, however 180 angle seems not bad at all too. If we are searching as two people - 90 angle is the most suitable. When there are three searchers the 180 angle seems the best.&lt;br /&gt;
&lt;br /&gt;
When we want to compare our two methods, For one searcher bounce method is better even then the most effective angle in random walk method. For two searchers it is the same, bounce method is more effective again, even then the 90 angle method. For three searchers is the random walk with the 180 angle most effective.&lt;br /&gt;
&lt;br /&gt;
However if we want to evaluate the standart deviation, basicly it is always better with the bounce method. So it seems like safer choice if we don't want to risk really long journey to find the dog.&lt;br /&gt;
&lt;br /&gt;
=Conclussion=&lt;br /&gt;
Although we can see in the tables, that there are differences in both strategies we mustn't forget, that we are using only 30 observation for all the variants. The number should be more significant to say that certainly. However we can see significant difference in standart deviation and thus we can see that using random element in our searching strategy can pay off but also can be pretty bad.&lt;br /&gt;
&lt;br /&gt;
=Code=&lt;br /&gt;
==Random walk method==&lt;br /&gt;
 globals [&lt;br /&gt;
   found&lt;br /&gt;
 ]&lt;br /&gt;
 &lt;br /&gt;
 to setup&lt;br /&gt;
   clear-all&lt;br /&gt;
   reset-ticks&lt;br /&gt;
   set found false &lt;br /&gt;
 &lt;br /&gt;
   setup-searchers&lt;br /&gt;
   setup-lost-area&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to setup-searchers&lt;br /&gt;
   create-turtles searchers [&lt;br /&gt;
     pen-up&lt;br /&gt;
   ]&lt;br /&gt;
   ask turtles [&lt;br /&gt;
     setxy random-xcor random-ycor&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to setup-lost-area&lt;br /&gt;
   ask patch random-xcor random-ycor [&lt;br /&gt;
     set pcolor red&lt;br /&gt;
   ]&lt;br /&gt;
 &lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to check-borders&lt;br /&gt;
   if (xcor &amp;lt; min-pxcor) [set heading (heading + 180)]&lt;br /&gt;
   if (xcor &amp;gt; max-pxcor) [set heading (heading + 180)]&lt;br /&gt;
   if (ycor &amp;lt; min-pycor) [set heading (heading + 180)]&lt;br /&gt;
   if (ycor &amp;gt; max-pycor) [set heading (heading + 180)]&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to go-random&lt;br /&gt;
   if found = true [&lt;br /&gt;
     stop&lt;br /&gt;
   ]&lt;br /&gt;
   tick&lt;br /&gt;
   ask turtles [&lt;br /&gt;
     if pcolor = red [&lt;br /&gt;
       set found true&lt;br /&gt;
     ]&lt;br /&gt;
     check-borders&lt;br /&gt;
     set heading (heading + (angle / 2) - (random angle))&lt;br /&gt;
     forward 1&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
[[File:Sp random walk.nlogo]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Bounce method==&lt;br /&gt;
 globals [&lt;br /&gt;
   found&lt;br /&gt;
 ]&lt;br /&gt;
 &lt;br /&gt;
 to setup&lt;br /&gt;
   clear-all&lt;br /&gt;
   reset-ticks&lt;br /&gt;
   set found false&lt;br /&gt;
 &lt;br /&gt;
   setup-searchers&lt;br /&gt;
   setup-lost-area&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to setup-searchers&lt;br /&gt;
   create-turtles searchers [&lt;br /&gt;
     pen-up&lt;br /&gt;
   ]&lt;br /&gt;
   ask turtles [&lt;br /&gt;
     setxy random-xcor random-ycor&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to setup-lost-area&lt;br /&gt;
   ask patch random-xcor random-ycor [&lt;br /&gt;
     set pcolor red&lt;br /&gt;
   ]&lt;br /&gt;
 &lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to check-bounce&lt;br /&gt;
   ;; bounce off left and right walls&lt;br /&gt;
   if abs pxcor = max-pxcor [&lt;br /&gt;
     set heading (- heading)&lt;br /&gt;
   ]&lt;br /&gt;
   ;; bounce off top and bottom walls&lt;br /&gt;
   if abs pycor = max-pycor [&lt;br /&gt;
     set heading (180 - heading)&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to go&lt;br /&gt;
   if found = true [&lt;br /&gt;
     stop&lt;br /&gt;
   ]&lt;br /&gt;
   tick&lt;br /&gt;
   ask turtles [&lt;br /&gt;
     if pcolor = red [&lt;br /&gt;
       set found true&lt;br /&gt;
     ]&lt;br /&gt;
     check-bounce&lt;br /&gt;
     forward 1&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Sp bounce.nlogo]]&lt;/div&gt;</summary>
		<author><name>Kadt02</name></author>
		
	</entry>
	<entry>
		<id>http://www.simulace.info/index.php?title=Finding_strategies_comparison&amp;diff=23441</id>
		<title>Finding strategies comparison</title>
		<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php?title=Finding_strategies_comparison&amp;diff=23441"/>
		<updated>2023-01-23T18:48:54Z</updated>

		<summary type="html">&lt;p&gt;Kadt02: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page presents the multi-agent simulation of comparison of strategies for finding a lost person in the forest made by Tomas Kadane. &lt;br /&gt;
&lt;br /&gt;
=Problem definition=&lt;br /&gt;
This problem came to my mind because I have once lost my dog in a forest. I was thinking what would be the best strategy to find the dog. However it is pretty complex problem to simulate forest and all types of strategies, so this work is simplified by multiple factors (against the reality and work assignment). I'm comparing two strategies with variable number of searchers in square pane with fixed boundaries.&lt;br /&gt;
&lt;br /&gt;
=Method=&lt;br /&gt;
For the simulation I have used NetLogo 6.3.0. I'm implementing two basic searching strategies. First one is based on random walk and the second is based on the walking to the edge of the forest and then bouncing in the opposite direction. &lt;br /&gt;
&lt;br /&gt;
Searched person is represented by single red colored patch (representing area where the searched person can be seen). And the searchers are so called turtles beginning at random position. When any of the turtle enters the red area, the simulation stops and number of ticks is recorded. Both methods have been done 30 times for 1, 2 and 3 searchers.&lt;br /&gt;
&lt;br /&gt;
==First method - random walk==&lt;br /&gt;
In the fist method I implemented random walk. Each step (represented by one tick) one step ahead is made and then the heading is changed by random angle using this formula:&lt;br /&gt;
 set heading (heading + (angle / 2) - (random angle))&lt;br /&gt;
&lt;br /&gt;
If the searchers hits the border of the forest, he will turn &amp;quot;backwards&amp;quot; as described in this code:&lt;br /&gt;
 to check-borders&lt;br /&gt;
   if (xcor &amp;lt; min-pxcor) [set heading (heading + 180)]&lt;br /&gt;
   if (xcor &amp;gt; max-pxcor) [set heading (heading + 180)]&lt;br /&gt;
   if (ycor &amp;lt; min-pycor) [set heading (heading + 180)]&lt;br /&gt;
   if (ycor &amp;gt; max-pycor) [set heading (heading + 180)]&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
[[File:randomwalk_UI.png]]&lt;br /&gt;
&lt;br /&gt;
After measuring 30 times for each angle and 1, 2 and 3 searchers I created table of average steps (ticks) needed to find the searched person. Not agregated data can be found in [[File:Results random walk.xlsx]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;top&amp;quot; | '''Averages for random walk depending on the angle'''&lt;br /&gt;
!| Searchers    ||   45 angle   ||   90 angle   ||   180 angle   || 360 angle&lt;br /&gt;
|-&lt;br /&gt;
|	1 	||	1033	||	583	||	633      ||    1301 	&lt;br /&gt;
|-&lt;br /&gt;
|	2 	||	398	||	304	||	403      ||    658&lt;br /&gt;
|-&lt;br /&gt;
|	3 	||	290	||	219	||	130	 ||    371&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
To see how steps needed vary I used standart deviation.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;top&amp;quot; | '''Standart deviations for random walk depending on the angle'''&lt;br /&gt;
!| Searchers    ||   45 angle   ||   90 angle   ||   180 angle   || 360 angle&lt;br /&gt;
|-&lt;br /&gt;
|	1 	||	885	||	543	||	662      ||    1793 	&lt;br /&gt;
|-&lt;br /&gt;
|	2 	||	377	||	236	||	356      ||    869&lt;br /&gt;
|-&lt;br /&gt;
|	3 	||	366	||	237	||	128	 ||    472&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Second method - bouncing==&lt;br /&gt;
In the second method searchers and searchers are spawned on the random position. Setup is same as in the first method. However the moving method differs. Searchers are moving in direct way and when they hit border they bounce in oposite direction as described in this code:&lt;br /&gt;
 to check-bounce&lt;br /&gt;
   ;; bounce off left and right walls&lt;br /&gt;
   if abs pxcor = max-pxcor [&lt;br /&gt;
     set heading (- heading)&lt;br /&gt;
   ]&lt;br /&gt;
   ;; bounce off top and bottom walls&lt;br /&gt;
   if abs pycor = max-pycor [&lt;br /&gt;
     set heading (180 - heading)&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
[[File:bounce_UI.png]]&lt;br /&gt;
&lt;br /&gt;
The method of recording steps needed to find the lost person was same as in the first method, however the angle is not variable now. To see how the data vary I have used standart deviation again. Non agregated data can be seen here [[File:	Results bounce.xlsx]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;top&amp;quot; | '''Averages and standart deviations for bouncing method'''&lt;br /&gt;
!| Searchers    ||   Average   ||   St. dev. &lt;br /&gt;
|-&lt;br /&gt;
|	1 	||	566	||	624	&lt;br /&gt;
|-&lt;br /&gt;
|	2 	||	192	||	161&lt;br /&gt;
|-&lt;br /&gt;
|	3 	||	180	||	141&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Results=&lt;br /&gt;
To evaluate random walk method. We can see that if we are searching alone, the 90 angle seems the most efective, however 180 angle seems not bad at all too. If we are searching as two people - 90 angle is the most suitable. When there are three searchers the 180 angle seems the best.&lt;br /&gt;
&lt;br /&gt;
When we want to compare our two methods, For one searcher bounce method is better even then the most effective angle in random walk method. For two searchers it is the same, bounce method is more effective again, even then the 90 angle method. For three searchers is the random walk with the 180 angle most effective.&lt;br /&gt;
&lt;br /&gt;
However if we want to evaluate the standart deviation, basicly it is always better with the bounce method. So it seems like safer choice if we don't want to risk really long journey to find the dog.&lt;br /&gt;
&lt;br /&gt;
=Conclussion=&lt;br /&gt;
Although we can see in the tables, that there are differences in both strategies we mustn't forget, that we are using only 30 observation for all the variants. The number should be more significant to say that certainly. However we can see significant difference in standart deviation and thus we can see that using random element in our searching strategy can pay off but also can be pretty bad.&lt;br /&gt;
&lt;br /&gt;
=Code=&lt;br /&gt;
==Random walk method==&lt;br /&gt;
 globals [&lt;br /&gt;
   found&lt;br /&gt;
 ]&lt;br /&gt;
 &lt;br /&gt;
 to setup&lt;br /&gt;
   clear-all&lt;br /&gt;
   reset-ticks&lt;br /&gt;
   set found false &lt;br /&gt;
 &lt;br /&gt;
   setup-searchers&lt;br /&gt;
   setup-lost-area&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to setup-searchers&lt;br /&gt;
   create-turtles searchers [&lt;br /&gt;
     pen-up&lt;br /&gt;
   ]&lt;br /&gt;
   ask turtles [&lt;br /&gt;
     setxy random-xcor random-ycor&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to setup-lost-area&lt;br /&gt;
   ask patch random-xcor random-ycor [&lt;br /&gt;
     set pcolor red&lt;br /&gt;
   ]&lt;br /&gt;
 &lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to check-borders&lt;br /&gt;
   if (xcor &amp;lt; min-pxcor) [set heading (heading + 180)]&lt;br /&gt;
   if (xcor &amp;gt; max-pxcor) [set heading (heading + 180)]&lt;br /&gt;
   if (ycor &amp;lt; min-pycor) [set heading (heading + 180)]&lt;br /&gt;
   if (ycor &amp;gt; max-pycor) [set heading (heading + 180)]&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to go-random&lt;br /&gt;
   if found = true [&lt;br /&gt;
     stop&lt;br /&gt;
   ]&lt;br /&gt;
   tick&lt;br /&gt;
   ask turtles [&lt;br /&gt;
     if pcolor = red [&lt;br /&gt;
       set found true&lt;br /&gt;
     ]&lt;br /&gt;
     check-borders&lt;br /&gt;
     set heading (heading + (angle / 2) - (random angle))&lt;br /&gt;
     forward 1&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
[[File:Sp random walk.nlogo]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Bounce method==&lt;br /&gt;
 globals [&lt;br /&gt;
   found&lt;br /&gt;
 ]&lt;br /&gt;
 &lt;br /&gt;
 to setup&lt;br /&gt;
   clear-all&lt;br /&gt;
   reset-ticks&lt;br /&gt;
   set found false&lt;br /&gt;
 &lt;br /&gt;
   setup-searchers&lt;br /&gt;
   setup-lost-area&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to setup-searchers&lt;br /&gt;
   create-turtles searchers [&lt;br /&gt;
     pen-up&lt;br /&gt;
   ]&lt;br /&gt;
   ask turtles [&lt;br /&gt;
     setxy random-xcor random-ycor&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to setup-lost-area&lt;br /&gt;
   ask patch random-xcor random-ycor [&lt;br /&gt;
     set pcolor red&lt;br /&gt;
   ]&lt;br /&gt;
 &lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to check-bounce&lt;br /&gt;
   ;; bounce off left and right walls&lt;br /&gt;
   if abs pxcor = max-pxcor [&lt;br /&gt;
     set heading (- heading)&lt;br /&gt;
   ]&lt;br /&gt;
   ;; bounce off top and bottom walls&lt;br /&gt;
   if abs pycor = max-pycor [&lt;br /&gt;
     set heading (180 - heading)&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to go&lt;br /&gt;
   if found = true [&lt;br /&gt;
     stop&lt;br /&gt;
   ]&lt;br /&gt;
   tick&lt;br /&gt;
   ask turtles [&lt;br /&gt;
     if pcolor = red [&lt;br /&gt;
       set found true&lt;br /&gt;
     ]&lt;br /&gt;
     check-bounce&lt;br /&gt;
     forward 1&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Sp bounce.nlogo]]&lt;/div&gt;</summary>
		<author><name>Kadt02</name></author>
		
	</entry>
	<entry>
		<id>http://www.simulace.info/index.php?title=Finding_strategies_comparison&amp;diff=23439</id>
		<title>Finding strategies comparison</title>
		<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php?title=Finding_strategies_comparison&amp;diff=23439"/>
		<updated>2023-01-23T18:46:35Z</updated>

		<summary type="html">&lt;p&gt;Kadt02: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page presents the multi-agent simulation of comparison of strategies for finding a lost person in the forest made by Tomas Kadane. &lt;br /&gt;
&lt;br /&gt;
=Problem definition=&lt;br /&gt;
This problem came to my mind because I have once lost my dog in a forest. I was thinking what would be the best strategy to find the dog. However it is pretty complex problem to simulate forest and all types of strategies, so this work is simplified by multiple factors (against the reality and work assignment). I'm comparing two strategies with variable number of searchers in square pane with fixed boundaries.&lt;br /&gt;
&lt;br /&gt;
=Method=&lt;br /&gt;
For the simulation I have used NetLogo 6.3.0. I'm implementing two basic searching strategies. First one is based on random walk and the second is based on the walking to the edge of the forest and then bouncing in the opposite direction. &lt;br /&gt;
&lt;br /&gt;
Searched person is represented by single red colored patch (representing area where the searched person can be seen). And the searchers are so called turtles beginning at random position. When any of the turtle enters the red area, the simulation stops and number of ticks is recorded. Both methods have been done 30 times for 1, 2 and 3 searchers.&lt;br /&gt;
&lt;br /&gt;
==First method - random walk==&lt;br /&gt;
In the fist method I implemented random walk. Each step (represented by one tick) one step ahead is made and then the heading is changed by random angle using this formula:&lt;br /&gt;
 set heading (heading + (angle / 2) - (random angle))&lt;br /&gt;
&lt;br /&gt;
If the searchers hits the border of the forest, he will turn &amp;quot;backwards&amp;quot; as described in this code:&lt;br /&gt;
 to check-borders&lt;br /&gt;
   if (xcor &amp;lt; min-pxcor) [set heading (heading + 180)]&lt;br /&gt;
   if (xcor &amp;gt; max-pxcor) [set heading (heading + 180)]&lt;br /&gt;
   if (ycor &amp;lt; min-pycor) [set heading (heading + 180)]&lt;br /&gt;
   if (ycor &amp;gt; max-pycor) [set heading (heading + 180)]&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
[[File:randomwalk_UI.png]]&lt;br /&gt;
&lt;br /&gt;
After measuring 30 times for each angle and 1, 2 and 3 searchers I created table of average steps (ticks) needed to find the searched person. Not agregated data can be found in [[File:Results random walk.xlsx]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;top&amp;quot; | '''Averages for random walk depending on the angle'''&lt;br /&gt;
!| Searchers    ||   45 angle   ||   90 angle   ||   180 angle   || 360 angle&lt;br /&gt;
|-&lt;br /&gt;
|	1 	||	1033	||	583	||	633      ||    1301 	&lt;br /&gt;
|-&lt;br /&gt;
|	2 	||	398	||	304	||	403      ||    658&lt;br /&gt;
|-&lt;br /&gt;
|	3 	||	290	||	219	||	130	 ||    371&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
To see how steps needed vary I used standart deviation.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;top&amp;quot; | '''Standart deviations for random walk depending on the angle'''&lt;br /&gt;
!| Searchers    ||   45 angle   ||   90 angle   ||   180 angle   || 360 angle&lt;br /&gt;
|-&lt;br /&gt;
|	1 	||	885	||	543	||	662      ||    1793 	&lt;br /&gt;
|-&lt;br /&gt;
|	2 	||	377	||	236	||	356      ||    869&lt;br /&gt;
|-&lt;br /&gt;
|	3 	||	366	||	237	||	128	 ||    472&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Second method - bouncing==&lt;br /&gt;
In the second method searchers and searchers are spawned on the random position. Setup is same as in the first method. However the moving method differs. Searchers are moving in direct way and when they hit border they bounce in oposite direction as described in this code:&lt;br /&gt;
 to check-bounce&lt;br /&gt;
   ;; bounce off left and right walls&lt;br /&gt;
   if abs pxcor = max-pxcor [&lt;br /&gt;
     set heading (- heading)&lt;br /&gt;
   ]&lt;br /&gt;
   ;; bounce off top and bottom walls&lt;br /&gt;
   if abs pycor = max-pycor [&lt;br /&gt;
     set heading (180 - heading)&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
[[File:bounce_UI.png]]&lt;br /&gt;
&lt;br /&gt;
The method of recording steps needed to find the lost person was same as in the first method, however the angle is not variable now. To see how the data vary I have used standart deviation again.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;top&amp;quot; | '''Averages and standart deviations for bouncing method'''&lt;br /&gt;
!| Searchers    ||   Average   ||   St. dev. &lt;br /&gt;
|-&lt;br /&gt;
|	1 	||	566	||	624	&lt;br /&gt;
|-&lt;br /&gt;
|	2 	||	192	||	161&lt;br /&gt;
|-&lt;br /&gt;
|	3 	||	180	||	141&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Results=&lt;br /&gt;
To evaluate random walk method. We can see that if we are searching alone, the 90 angle seems the most efective, however 180 angle seems not bad at all too. If we are searching as two people - 90 angle is the most suitable. When there are three searchers the 180 angle seems the best.&lt;br /&gt;
&lt;br /&gt;
When we want to compare our two methods, For one searcher bounce method is better even then the most effective angle in random walk method. For two searchers it is the same, bounce method is more effective again, even then the 90 angle method. For three searchers is the random walk with the 180 angle most effective.&lt;br /&gt;
&lt;br /&gt;
However if we want to evaluate the standart deviation, basicly it is always better with the bounce method. So it seems like safer choice if we don't want to risk really long journey to find the dog.&lt;br /&gt;
&lt;br /&gt;
=Conclussion=&lt;br /&gt;
Although we can see in the tables, that there are differences in both strategies we mustn't forget, that we are using only 30 observation for all the variants. The number should be more significant to say that certainly. However we can see significant difference in standart deviation and thus we can see that using random element in our searching strategy can pay off but also can be pretty bad.&lt;br /&gt;
&lt;br /&gt;
=Code=&lt;br /&gt;
==Random walk method==&lt;br /&gt;
 globals [&lt;br /&gt;
   found&lt;br /&gt;
 ]&lt;br /&gt;
 &lt;br /&gt;
 to setup&lt;br /&gt;
   clear-all&lt;br /&gt;
   reset-ticks&lt;br /&gt;
   set found false &lt;br /&gt;
 &lt;br /&gt;
   setup-searchers&lt;br /&gt;
   setup-lost-area&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to setup-searchers&lt;br /&gt;
   create-turtles searchers [&lt;br /&gt;
     pen-up&lt;br /&gt;
   ]&lt;br /&gt;
   ask turtles [&lt;br /&gt;
     setxy random-xcor random-ycor&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to setup-lost-area&lt;br /&gt;
   ask patch random-xcor random-ycor [&lt;br /&gt;
     set pcolor red&lt;br /&gt;
   ]&lt;br /&gt;
 &lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to check-borders&lt;br /&gt;
   if (xcor &amp;lt; min-pxcor) [set heading (heading + 180)]&lt;br /&gt;
   if (xcor &amp;gt; max-pxcor) [set heading (heading + 180)]&lt;br /&gt;
   if (ycor &amp;lt; min-pycor) [set heading (heading + 180)]&lt;br /&gt;
   if (ycor &amp;gt; max-pycor) [set heading (heading + 180)]&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to go-random&lt;br /&gt;
   if found = true [&lt;br /&gt;
     stop&lt;br /&gt;
   ]&lt;br /&gt;
   tick&lt;br /&gt;
   ask turtles [&lt;br /&gt;
     if pcolor = red [&lt;br /&gt;
       set found true&lt;br /&gt;
     ]&lt;br /&gt;
     check-borders&lt;br /&gt;
     set heading (heading + (angle / 2) - (random angle))&lt;br /&gt;
     forward 1&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
[[File:Sp random walk.nlogo]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Bounce method==&lt;br /&gt;
 globals [&lt;br /&gt;
   found&lt;br /&gt;
 ]&lt;br /&gt;
 &lt;br /&gt;
 to setup&lt;br /&gt;
   clear-all&lt;br /&gt;
   reset-ticks&lt;br /&gt;
   set found false&lt;br /&gt;
 &lt;br /&gt;
   setup-searchers&lt;br /&gt;
   setup-lost-area&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to setup-searchers&lt;br /&gt;
   create-turtles searchers [&lt;br /&gt;
     pen-up&lt;br /&gt;
   ]&lt;br /&gt;
   ask turtles [&lt;br /&gt;
     setxy random-xcor random-ycor&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to setup-lost-area&lt;br /&gt;
   ask patch random-xcor random-ycor [&lt;br /&gt;
     set pcolor red&lt;br /&gt;
   ]&lt;br /&gt;
 &lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to check-bounce&lt;br /&gt;
   ;; bounce off left and right walls&lt;br /&gt;
   if abs pxcor = max-pxcor [&lt;br /&gt;
     set heading (- heading)&lt;br /&gt;
   ]&lt;br /&gt;
   ;; bounce off top and bottom walls&lt;br /&gt;
   if abs pycor = max-pycor [&lt;br /&gt;
     set heading (180 - heading)&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to go&lt;br /&gt;
   if found = true [&lt;br /&gt;
     stop&lt;br /&gt;
   ]&lt;br /&gt;
   tick&lt;br /&gt;
   ask turtles [&lt;br /&gt;
     if pcolor = red [&lt;br /&gt;
       set found true&lt;br /&gt;
     ]&lt;br /&gt;
     check-bounce&lt;br /&gt;
     forward 1&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Sp bounce.nlogo]]&lt;/div&gt;</summary>
		<author><name>Kadt02</name></author>
		
	</entry>
	<entry>
		<id>http://www.simulace.info/index.php?title=WS_2022/2023&amp;diff=23438</id>
		<title>WS 2022/2023</title>
		<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php?title=WS_2022/2023&amp;diff=23438"/>
		<updated>2023-01-23T18:44:26Z</updated>

		<summary type="html">&lt;p&gt;Kadt02: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Semestral papers from winter term 2022/2023. Please, put here links to the pages with your paper. First you need to have your [[Assignments WS 2022/2023|assignment approved]]&lt;br /&gt;
&lt;br /&gt;
==Simulations==&lt;br /&gt;
--[[User:Julian Bleyer|Julian Bleyer]] ([[User talk:Xkrep33|talk]]) 0:44, 18 January 2023(CET) Aircraft Evacuation Simulation: [[Airplane_Evacuation]]&lt;br /&gt;
&lt;br /&gt;
--[[User:Baumareb|Baumareb]] ([[User talk:Baumareb|talk]]) 13:55, 18 January 2023 (CET) Cartel simulation with leniency program by Rebecca Baumann (baur00): [[cartel_simulation]]&lt;br /&gt;
&lt;br /&gt;
--[[User:Kock06|Kock06]] ([[User talk:Kock06|talk]]) 14:03, 22 January(GTM+8) Receivables prediction by Monte Carlo simulation: [[Receivables]]&lt;br /&gt;
&lt;br /&gt;
--[[User:Ruzv01|Ruzv01]] ([[User talk:Ruzv01|talk]]) 10:33, 22 January(CET) Household electricity consumption: [[Household electricity consumption]]&lt;br /&gt;
&lt;br /&gt;
--[[User:Haki00|Haki00]] ([[User talk:Haki00|talk]]) 21:38, 22 January(CET) Artsakh blockade: [[Artsakh blockade]]&lt;br /&gt;
&lt;br /&gt;
--[[User:Edema|Edema]] ([[User talk:Haki00|talk]]) 22:00, 22 January(CET) Mortgage Assessment: [[Mortgage Assessment]]&lt;br /&gt;
&lt;br /&gt;
--[[User:BortnikSvitlana|BortnikSvitlana]] ([[User talk:BortnikSvitlana|talk]]) 22:36, 22 January(CET) Traffic Simulation at an Intersection: [[Traffic Simulation at an Intersection]]&lt;br /&gt;
&lt;br /&gt;
--[[User:Ceta|Ceta]] ([[User talk:Ceta|talk]]) 22:48, 22 January 2023 (CET) Pumped hydroelectric energy storage (PHES)System Simulation [[Pump_storage]]&lt;br /&gt;
&lt;br /&gt;
--[[User:Botd00|Botd00]] ([[User talk:Botd00|talk]]) 22:46, 22 January(CET) Twitter Simulation: [[Twitter simulation]]&lt;br /&gt;
&lt;br /&gt;
-- [[User:Miln02|Miln02]] ([[User talk:Miln02|talk]]) 23:05, 22 January 2023 (CET) Saving for an apartment [[Savingforanapartment]]&lt;br /&gt;
&lt;br /&gt;
-- [[User:Abizah1|Abizah1]] ([[User talk:Abizah1|talk]]) 23:55, 22 January 2023 (CET) https://www.simulace.info/index.php/Boxing_athlete&lt;br /&gt;
&lt;br /&gt;
-- [[User:Pierreatekwana1|Pierreatekwana1]] ([[User talk:Pierreatekwana1|talk]]) 00:24, 23 January 2023 (CET) Crop yield simulation: [[Cropyield]]&lt;br /&gt;
&lt;br /&gt;
-- [[User:Kane02|Kane02]] ([[User talk:Kane02|talk]]) 18:52, 23 January 2023 (CET) Car Park Solution for a New Cinema  [[Car Park Solution for a New Cinema]]&lt;br /&gt;
&lt;br /&gt;
-- [[User:Kadt02|Kadt02]] ([[User talk:Kadt02|talk]]) 19:43, 23 January 2023 (CET) Comparing searching stategies  [[Finding strategies comparison]]&lt;/div&gt;</summary>
		<author><name>Kadt02</name></author>
		
	</entry>
	<entry>
		<id>http://www.simulace.info/index.php?title=Finding_strategies_comparison&amp;diff=23434</id>
		<title>Finding strategies comparison</title>
		<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php?title=Finding_strategies_comparison&amp;diff=23434"/>
		<updated>2023-01-23T18:41:34Z</updated>

		<summary type="html">&lt;p&gt;Kadt02: Created page with &amp;quot;This page presents the work of Comparison of strategies for finding a lost person in the forest made by Tomas Kadane  =Problem definition= This problem came to my mind because...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page presents the work of Comparison of strategies for finding a lost person in the forest made by Tomas Kadane&lt;br /&gt;
&lt;br /&gt;
=Problem definition=&lt;br /&gt;
This problem came to my mind because I have once lost my dog in a forest. I was thinking what would be the best strategy to find the dog. However it is pretty complex problem to simulate forest and all types of strategies, so this work is simplified by multiple factors (against the reality and work assignment). I'm comparing two strategies with variable number of searchers in square pane with fixed boundaries.&lt;br /&gt;
&lt;br /&gt;
=Method=&lt;br /&gt;
For the simulation I have used NetLogo 6.3.0. I'm implementing two basic searching strategies. First one is based on random walk and the second is based on the walking to the edge of the forest and then bouncing in the opposite direction. &lt;br /&gt;
&lt;br /&gt;
Searched person is represented by single red colored patch (representing area where the searched person can be seen). And the searchers are so called turtles beginning at random position. When any of the turtle enters the red area, the simulation stops and number of ticks is recorded. Both methods have been done 30 times for 1, 2 and 3 searchers.&lt;br /&gt;
&lt;br /&gt;
==First method - random walk==&lt;br /&gt;
In the fist method I implemented random walk. Each step (represented by one tick) one step ahead is made and then the heading is changed by random angle using this formula:&lt;br /&gt;
 set heading (heading + (angle / 2) - (random angle))&lt;br /&gt;
&lt;br /&gt;
If the searchers hits the border of the forest, he will turn &amp;quot;backwards&amp;quot; as described in this code:&lt;br /&gt;
 to check-borders&lt;br /&gt;
   if (xcor &amp;lt; min-pxcor) [set heading (heading + 180)]&lt;br /&gt;
   if (xcor &amp;gt; max-pxcor) [set heading (heading + 180)]&lt;br /&gt;
   if (ycor &amp;lt; min-pycor) [set heading (heading + 180)]&lt;br /&gt;
   if (ycor &amp;gt; max-pycor) [set heading (heading + 180)]&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
[[File:randomwalk_UI.png]]&lt;br /&gt;
&lt;br /&gt;
After measuring 30 times for each angle and 1, 2 and 3 searchers I created table of average steps (ticks) needed to find the searched person. Not agregated data can be found in [[File:Results random walk.xlsx]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;top&amp;quot; | '''Averages for random walk depending on the angle'''&lt;br /&gt;
!| Searchers    ||   45 angle   ||   90 angle   ||   180 angle   || 360 angle&lt;br /&gt;
|-&lt;br /&gt;
|	1 	||	1033	||	583	||	633      ||    1301 	&lt;br /&gt;
|-&lt;br /&gt;
|	2 	||	398	||	304	||	403      ||    658&lt;br /&gt;
|-&lt;br /&gt;
|	3 	||	290	||	219	||	130	 ||    371&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
To see how steps needed vary I used standart deviation.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;top&amp;quot; | '''Standart deviations for random walk depending on the angle'''&lt;br /&gt;
!| Searchers    ||   45 angle   ||   90 angle   ||   180 angle   || 360 angle&lt;br /&gt;
|-&lt;br /&gt;
|	1 	||	885	||	543	||	662      ||    1793 	&lt;br /&gt;
|-&lt;br /&gt;
|	2 	||	377	||	236	||	356      ||    869&lt;br /&gt;
|-&lt;br /&gt;
|	3 	||	366	||	237	||	128	 ||    472&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Second method - bouncing==&lt;br /&gt;
In the second method searchers and searchers are spawned on the random position. Setup is same as in the first method. However the moving method differs. Searchers are moving in direct way and when they hit border they bounce in oposite direction as described in this code:&lt;br /&gt;
 to check-bounce&lt;br /&gt;
   ;; bounce off left and right walls&lt;br /&gt;
   if abs pxcor = max-pxcor [&lt;br /&gt;
     set heading (- heading)&lt;br /&gt;
   ]&lt;br /&gt;
   ;; bounce off top and bottom walls&lt;br /&gt;
   if abs pycor = max-pycor [&lt;br /&gt;
     set heading (180 - heading)&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
[[File:bounce_UI.png]]&lt;br /&gt;
&lt;br /&gt;
The method of recording steps needed to find the lost person was same as in the first method, however the angle is not variable now. To see how the data vary I have used standart deviation again.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ align=&amp;quot;top&amp;quot; | '''Averages and standart deviations for bouncing method'''&lt;br /&gt;
!| Searchers    ||   Average   ||   St. dev. &lt;br /&gt;
|-&lt;br /&gt;
|	1 	||	566	||	624	&lt;br /&gt;
|-&lt;br /&gt;
|	2 	||	192	||	161&lt;br /&gt;
|-&lt;br /&gt;
|	3 	||	180	||	141&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=Results=&lt;br /&gt;
To evaluate random walk method. We can see that if we are searching alone, the 90 angle seems the most efective, however 180 angle seems not bad at all too. If we are searching as two people - 90 angle is the most suitable. When there are three searchers the 180 angle seems the best.&lt;br /&gt;
&lt;br /&gt;
When we want to compare our two methods, For one searcher bounce method is better even then the most effective angle in random walk method. For two searchers it is the same, bounce method is more effective again, even then the 90 angle method. For three searchers is the random walk with the 180 angle most effective.&lt;br /&gt;
&lt;br /&gt;
However if we want to evaluate the standart deviation, basicly it is always better with the bounce method. So it seems like safer choice if we don't want to risk really long journey to find the dog.&lt;br /&gt;
&lt;br /&gt;
=Conclussion=&lt;br /&gt;
Although we can see in the tables, that there are differences in both strategies we mustn't forget, that we are using only 30 observation for all the variants. The number should be more significant to say that certainly. However we can see significant difference in standart deviation and thus we can see that using random element in our searching strategy can pay off but also can be pretty bad.&lt;br /&gt;
&lt;br /&gt;
=Code=&lt;br /&gt;
==Random walk method==&lt;br /&gt;
 globals [&lt;br /&gt;
   found&lt;br /&gt;
 ]&lt;br /&gt;
 &lt;br /&gt;
 to setup&lt;br /&gt;
   clear-all&lt;br /&gt;
   reset-ticks&lt;br /&gt;
   set found false &lt;br /&gt;
 &lt;br /&gt;
   setup-searchers&lt;br /&gt;
   setup-lost-area&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to setup-searchers&lt;br /&gt;
   create-turtles searchers [&lt;br /&gt;
     pen-up&lt;br /&gt;
   ]&lt;br /&gt;
   ask turtles [&lt;br /&gt;
     setxy random-xcor random-ycor&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to setup-lost-area&lt;br /&gt;
   ask patch random-xcor random-ycor [&lt;br /&gt;
     set pcolor red&lt;br /&gt;
   ]&lt;br /&gt;
 &lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to check-borders&lt;br /&gt;
   if (xcor &amp;lt; min-pxcor) [set heading (heading + 180)]&lt;br /&gt;
   if (xcor &amp;gt; max-pxcor) [set heading (heading + 180)]&lt;br /&gt;
   if (ycor &amp;lt; min-pycor) [set heading (heading + 180)]&lt;br /&gt;
   if (ycor &amp;gt; max-pycor) [set heading (heading + 180)]&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to go-random&lt;br /&gt;
   if found = true [&lt;br /&gt;
     stop&lt;br /&gt;
   ]&lt;br /&gt;
   tick&lt;br /&gt;
   ask turtles [&lt;br /&gt;
     if pcolor = red [&lt;br /&gt;
       set found true&lt;br /&gt;
     ]&lt;br /&gt;
     check-borders&lt;br /&gt;
     set heading (heading + (angle / 2) - (random angle))&lt;br /&gt;
     forward 1&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
[[File:Sp random walk.nlogo]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Bounce method==&lt;br /&gt;
 globals [&lt;br /&gt;
   found&lt;br /&gt;
 ]&lt;br /&gt;
 &lt;br /&gt;
 to setup&lt;br /&gt;
   clear-all&lt;br /&gt;
   reset-ticks&lt;br /&gt;
   set found false&lt;br /&gt;
 &lt;br /&gt;
   setup-searchers&lt;br /&gt;
   setup-lost-area&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to setup-searchers&lt;br /&gt;
   create-turtles searchers [&lt;br /&gt;
     pen-up&lt;br /&gt;
   ]&lt;br /&gt;
   ask turtles [&lt;br /&gt;
     setxy random-xcor random-ycor&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to setup-lost-area&lt;br /&gt;
   ask patch random-xcor random-ycor [&lt;br /&gt;
     set pcolor red&lt;br /&gt;
   ]&lt;br /&gt;
 &lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to check-bounce&lt;br /&gt;
   ;; bounce off left and right walls&lt;br /&gt;
   if abs pxcor = max-pxcor [&lt;br /&gt;
     set heading (- heading)&lt;br /&gt;
   ]&lt;br /&gt;
   ;; bounce off top and bottom walls&lt;br /&gt;
   if abs pycor = max-pycor [&lt;br /&gt;
     set heading (180 - heading)&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 to go&lt;br /&gt;
   if found = true [&lt;br /&gt;
     stop&lt;br /&gt;
   ]&lt;br /&gt;
   tick&lt;br /&gt;
   ask turtles [&lt;br /&gt;
     if pcolor = red [&lt;br /&gt;
       set found true&lt;br /&gt;
     ]&lt;br /&gt;
     check-bounce&lt;br /&gt;
     forward 1&lt;br /&gt;
   ]&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Sp bounce.nlogo]]&lt;/div&gt;</summary>
		<author><name>Kadt02</name></author>
		
	</entry>
	<entry>
		<id>http://www.simulace.info/index.php?title=File:Bounce_UI.png&amp;diff=23421</id>
		<title>File:Bounce UI.png</title>
		<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php?title=File:Bounce_UI.png&amp;diff=23421"/>
		<updated>2023-01-23T18:25:42Z</updated>

		<summary type="html">&lt;p&gt;Kadt02: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kadt02</name></author>
		
	</entry>
	<entry>
		<id>http://www.simulace.info/index.php?title=File:Sp_random_walk.nlogo&amp;diff=23414</id>
		<title>File:Sp random walk.nlogo</title>
		<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php?title=File:Sp_random_walk.nlogo&amp;diff=23414"/>
		<updated>2023-01-23T18:10:03Z</updated>

		<summary type="html">&lt;p&gt;Kadt02: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kadt02</name></author>
		
	</entry>
	<entry>
		<id>http://www.simulace.info/index.php?title=File:Sp_bounce.nlogo&amp;diff=23413</id>
		<title>File:Sp bounce.nlogo</title>
		<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php?title=File:Sp_bounce.nlogo&amp;diff=23413"/>
		<updated>2023-01-23T18:09:57Z</updated>

		<summary type="html">&lt;p&gt;Kadt02: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kadt02</name></author>
		
	</entry>
	<entry>
		<id>http://www.simulace.info/index.php?title=File:Results_random_walk.xlsx&amp;diff=23412</id>
		<title>File:Results random walk.xlsx</title>
		<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php?title=File:Results_random_walk.xlsx&amp;diff=23412"/>
		<updated>2023-01-23T18:09:24Z</updated>

		<summary type="html">&lt;p&gt;Kadt02: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kadt02</name></author>
		
	</entry>
	<entry>
		<id>http://www.simulace.info/index.php?title=File:Results_bounce.xlsx&amp;diff=23411</id>
		<title>File:Results bounce.xlsx</title>
		<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php?title=File:Results_bounce.xlsx&amp;diff=23411"/>
		<updated>2023-01-23T18:08:52Z</updated>

		<summary type="html">&lt;p&gt;Kadt02: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kadt02</name></author>
		
	</entry>
	<entry>
		<id>http://www.simulace.info/index.php?title=File:Randomwalk_UI.png&amp;diff=23410</id>
		<title>File:Randomwalk UI.png</title>
		<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php?title=File:Randomwalk_UI.png&amp;diff=23410"/>
		<updated>2023-01-23T18:02:07Z</updated>

		<summary type="html">&lt;p&gt;Kadt02: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kadt02</name></author>
		
	</entry>
	<entry>
		<id>http://www.simulace.info/index.php?title=Assignments_WS_2022/2023&amp;diff=23039</id>
		<title>Assignments WS 2022/2023</title>
		<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php?title=Assignments_WS_2022/2023&amp;diff=23039"/>
		<updated>2022-12-17T15:01:35Z</updated>

		<summary type="html">&lt;p&gt;Kadt02: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ambox&lt;br /&gt;
| text  = &amp;lt;div&amp;gt;&lt;br /&gt;
Please, put here your assignments. Do not forget to sign them. You can use &amp;lt;nowiki&amp;gt;~~~~&amp;lt;/nowiki&amp;gt; (four tildas) for an automatic signature. Use Show preview in order to check the result before your final sumbition.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Ambox&lt;br /&gt;
| text  = &amp;lt;div&amp;gt;&lt;br /&gt;
Please, strive to formulate your assignment carefully. We expect an adequate effort to formulate the assignment as it is your semestral paper. Do not forget that your main goal is a research paper. It means your simulation model must generate the results that are specific, measurable and verifiable. Think twice how you will develop your model, which entities you will use, draw a model diagram, consider what you will measure. No sooner than when you have a good idea about the model, submit your assignment. And of course, read [[How to deal with the simulation assignment|How to deal with the simulation assignment]].&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Ambox&lt;br /&gt;
| text  = &amp;lt;div&amp;gt;&lt;br /&gt;
Topics on gambling, cards, etc. are not welcome.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Ambox&lt;br /&gt;
| type  = content&lt;br /&gt;
| text  = &amp;lt;div&amp;gt;&lt;br /&gt;
In order to avoid possible confusion, please, check if you have added '''approved''' in bold somewhere in our comment under your submission. If there is no '''approved''', it means the assignment was not approved yet.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Effect of leniency programs on cartel rates by [[User:Baumareb|Baumareb]] ([[User talk:Baumareb|talk]]) 11:18, 7 December 2022 (CET) ==&lt;br /&gt;
&lt;br /&gt;
''' Simulation '''&lt;br /&gt;
&lt;br /&gt;
The leniency program of the European Commission offers the companies involved in a cartel either complete or partial immunity from fines if they self-report and hand over evidence. It was introduced in 1996, following the surge in amnesty applications in the wake of the 1993 revision of the Corporate Leniency Program of the US Department of Justice’s Antitrust Division. Reports from various implemented leniency programs showed that such programs led to numerous applications. However, despite the clear increase in leniency applications, the question poses itself as to whether the programs were also successful in a sense that the actual cartel rate in those countries declined.&lt;br /&gt;
The simulation will be based on a study of Harrington and Chang from 2015, in which they concluded the following:&lt;br /&gt;
&lt;br /&gt;
•	The actual cartel rate decreases in case that the leniency program does not affect the non-leniency enforcement&lt;br /&gt;
&lt;br /&gt;
•	But: if the non-leniency enforcement is affected because resources are shifted to the prosecution of leniency application cases, there might be two possibilities, the cartel rate might increase. &lt;br /&gt;
&lt;br /&gt;
This simulation focuses on the latter case. Assuming endogenized non-leniency enforcement, the introduction of a leniency program might have a differential impact on different industries. If a leniency program is introduced, the cartels that are about to collapse will seek to self-report. This in turn shifts resources from exposing active cartels to prosecuting cartels that are already collapsing. This creates more work for the authorities, who, instead of focusing on active cartels may now focus on dying cartels. This crowding-out effect coming about with the introduction of a leniency program shall be simulated in this project. &lt;br /&gt;
&lt;br /&gt;
''' Goal '''&lt;br /&gt;
&lt;br /&gt;
The simulation will have the following objectives:&lt;br /&gt;
&lt;br /&gt;
* Illustrate the change in cartel rates and the change in the average life expectancy of a cartel triggered by the introduction of a leniency program in case of endogenized non-leniency enforcement for industries with unstable cartels (e.g. industries with a high number of competitors, or demand with more price elasticity) and for industries with stable cartels (e.g. industries with less competitors and demand with less price elasticity). &lt;br /&gt;
* Illustrate how many resources may be shifted from non-leniency enforcement to prosecuting leniency application cases without it having an undesired effect on the actual cartel rate. &lt;br /&gt;
&lt;br /&gt;
''' Practical relevance '''&lt;br /&gt;
&lt;br /&gt;
The simulation may be used by law enforcement officials to evaluate whether a leniency program leads to the desired effect (i.e. the decrease in the cartel rate) or not. Also, it can help for deciding whether the non-leniency enforcement needs to be strengthened to prevent the crowding-out effect. &lt;br /&gt;
&lt;br /&gt;
''' Method '''&lt;br /&gt;
&lt;br /&gt;
The described scenario is a multi-agent simulation in which the agents are pursuing a utility-based approach. Thus, the simulation will be done with NetLogo. &lt;br /&gt;
The following features will be included into the simulation:&lt;br /&gt;
&lt;br /&gt;
- For both industries with stable and industries with unstable cartels:&lt;br /&gt;
&lt;br /&gt;
* Number of active cartels (dying after reaching avg. life expectancy)&lt;br /&gt;
* Number of competitors&lt;br /&gt;
* Average life expectancy of a cartel&lt;br /&gt;
* “Birth” of new cartels&lt;br /&gt;
&lt;br /&gt;
- For leniency/non-leniency enforcement:&lt;br /&gt;
* Resources and their assignment to either leniency or non-leniency enforcement &lt;br /&gt;
* Capacity of taking down an active cartel&lt;br /&gt;
* Capacity of taking down a cartel based on leniency applications&lt;br /&gt;
&lt;br /&gt;
The simulation will be based on the 2015 research from Harrington and Chang as well as on publicly accessible data from the European Commission regarding antitrust cases from 1964 until today.&lt;br /&gt;
&lt;br /&gt;
''' Sources '''&lt;br /&gt;
* Harrington Jr, J. E., &amp;amp; Chang, M. H. (2015). When can we expect a corporate leniency program to result in fewer cartels?. The Journal of Law and Economics, 58(2), 417-449.&lt;br /&gt;
* Ordóñez‐De‐Haro, J. M., Borrell, J. R., &amp;amp; Jiménez, J. L. (2018). The European commission's fight against cartels (1962–2014): A retrospective and forensic analysis. JCMS: Journal of Common Market Studies, 56(5), 1087-1107.&lt;br /&gt;
&lt;br /&gt;
[[User:Baumareb|Baumareb]] ([[User talk:Baumareb|talk]]) 11:18, 7 December 2022 (CET) Rebecca Baumann (baur00)&lt;br /&gt;
&lt;br /&gt;
: This isn't an easy topic. Be careful about available data. '''Approved''' [[User:Tomáš|Tomáš]] ([[User talk:Tomáš|talk]]) 01:46, 15 December 2022 (CET)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The prediction of divorce rate in Czech Republic for the following 50 years == &lt;br /&gt;
&lt;br /&gt;
'''  The goal of the simulation '''&lt;br /&gt;
&lt;br /&gt;
Divorce in the Czech republic must always contain at least one hearing in front of the court. Legally, there are many more parties involved, such as a notary, who must verify the signatures on all the important documents and many times, divorce lawyers are also necessary. To be able to satisfy the needs of the public, all the involved parties must have an idea about how many married couples are likely to get divorced in the years to come. This simulation will help prepare the courts, notaries and lawyers by making a prediction on the amount of divorces in the next 50 years. This will also help law students choose the field of law that they will specialize in by answering the question whether divorce lawyers will be necessary in the future or not. &lt;br /&gt;
&lt;br /&gt;
'''  Method '''&lt;br /&gt;
&lt;br /&gt;
Vensim will be used for this simulation. The used data will come from the Czech Statistical Office and possibly other sources (Refer to [1] and [2]), such as published studies on the most common reasons for divorce. When possible, the data about each reason of divorce will be also found and the simulation model will contain this data. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
== Edit: additional details ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''  What all parameters will the simulation work with and how?'''&lt;br /&gt;
&lt;br /&gt;
1. Number of marriages – the more marriages, the more divorces&lt;br /&gt;
&lt;br /&gt;
a/ Number of people in the age 25 to 34 (i.e., the most common age to get married) – the more there is of these people, the more marriages there will be&lt;br /&gt;
&lt;br /&gt;
b/ Number of divorced people in the age 40 to 49 (i.e., the most common age to get re-married after a divorce) – the more there is of these people, the more marriages there will be, however not as much as the number above&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Micro causes of divorces = Top 10 causes of divorce as researched by the Czech Statistical Office, published yearly – the more common are these causes (alcoholism, infidelity etc), the more divorces there will be&lt;br /&gt;
&lt;br /&gt;
a/ Ill-considered marriage&lt;br /&gt;
&lt;br /&gt;
b/ Alcoholism&lt;br /&gt;
&lt;br /&gt;
c/ Infidelity&lt;br /&gt;
&lt;br /&gt;
d/ Lack of interest in the family (incl. abandon. of living together)&lt;br /&gt;
&lt;br /&gt;
e/ Ill-treatment, criminal conviction&lt;br /&gt;
&lt;br /&gt;
f/ Different characters, views and interests&lt;br /&gt;
&lt;br /&gt;
g/ Health reasons&lt;br /&gt;
&lt;br /&gt;
h/ Sexual discord&lt;br /&gt;
&lt;br /&gt;
i/ Other causes&lt;br /&gt;
&lt;br /&gt;
j/ Cause not given&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Number of people in the age 40 to 49 – the more there is of these people, the more divorces there will be (it is the most common age to get divorced)&lt;br /&gt;
&lt;br /&gt;
4. Macro causes of divorces&lt;br /&gt;
&lt;br /&gt;
a/ Economic independence of women = the more economically independent women are, the more likely they are to divorce in case of an unhappy marriage – this will be evaluated through a comparison of data of average income of men vs. women &lt;br /&gt;
&lt;br /&gt;
b/ Being religious – divorce is far less common for religious people. &lt;br /&gt;
&lt;br /&gt;
'''  What data source will be used for deriving the equations?'''&lt;br /&gt;
&lt;br /&gt;
Based on my current research of data sources, the Czech Statistical Office has the all the data necessary for this paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[1] Scott, S. B., Rhoades, G. K., Stanley, S. M., Allen, E. S., &amp;amp; Markman, H. J. (2013). Reasons for Divorce and Recollections of Premarital Intervention: Implications for Improving Relationship Education. Couple &amp;amp; family psychology, 2(2), 131–145. https://doi.org/10.1037/a0032025&lt;br /&gt;
&lt;br /&gt;
[2] Hawkins, Alan &amp;amp; Willoughby, Brian &amp;amp; Doherty, William. (2012). Reasons for Divorce and Openness to Marital Reconciliation. Journal of Divorce &amp;amp; Remarriage. 53. 453-463. 10.1080/10502556.2012.682898.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: Sounds interesting, but I miss more detail about the simulation. What all parameters will the simulation work with and how? What data source will be used for deriving the equations? [[User:Oleg.Svatos|Oleg.Svatos]] ([[User talk:Oleg.Svatos|talk]]) 11:03, 15 December 2022 (CET)&lt;br /&gt;
:: ''' Approved'''. Just make sure that the equtions, reasons for divorce and their impact on divorce rate are properly quantified.[[User:Oleg.Svatos|Oleg.Svatos]] ([[User talk:Oleg.Svatos|talk]]) 07:23, 17 December 2022 (CET)&lt;br /&gt;
&lt;br /&gt;
==Crop Yield Forecasting==&lt;br /&gt;
&lt;br /&gt;
''' Simulation '''&lt;br /&gt;
&lt;br /&gt;
Crop growth and development simulations and yield forecasting will be performed using variables such as crop type, planting date, soil type, soil texture, and climate data (temperature, rainfall, etc.).&lt;br /&gt;
&lt;br /&gt;
'''Problem definition'''&lt;br /&gt;
 &lt;br /&gt;
Arable land is increasingly limited, while the world's population has steadily been increasing over the years. In order to meet rapidly rising demand, production must be increased while natural resources must be protected. New agricultural research is needed to provide information on how to achieve sustainable agriculture in the face of global climate variability. Predicting crop yield under different conditions, such as different irrigation regimes, planting dates, and crop management practices, has become critical for farmers and other stakeholders who use these predictions to make more informed decisions about how to allocate resources, such as labor, equipment, and inputs, to maximize yield and productivity.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
 &lt;br /&gt;
Crop yield simulation tools include AquaCrop, DSSAT, and CropSyst. These tools use mathematical models to simulate crop growth and development based on input data like weather, soil type, and management practices. These tools use this data to estimate the crop's potential yield, as well as other important factors like water use and crop evapotranspiration. For this assignment I will be using AquaCrop which is a crop water productivity model developed by the United Nations Food and Agriculture Organization (FAO). It is used to simulate crop growth and yield under various environmental and management conditions. AquaCrop simulates crop growth and development, and estimates yield based on soil conditions, climate, irrigation, and management practices. The application gives access to various FAO databases with all the necessary data needed to perform a comprehensive simulation of the crop yield.&lt;br /&gt;
&lt;br /&gt;
'''Citations'''&lt;br /&gt;
&lt;br /&gt;
* Y. Lu, C. Wei, M. F. McCabe, and J. Sheffield, “Multi-variable assimilation into a modified AquaCrop model for improved maize simulation without management or crop phenology information,” Agricultural Water Management, vol. 266, p. 107576, May 2022, doi: 10.1016/j.agwat.2022.107576.&lt;br /&gt;
* P. N. Kephe, K. K. Ayisi, and B. M. Petja, “Challenges and opportunities in crop simulation modelling under seasonal and projected climate change scenarios for crop production in South Africa,” Agriculture &amp;amp; Food Security, vol. 10, no. 1, p. 10, Apr. 2021, doi: 10.1186/s40066-020-00283-5.&lt;br /&gt;
* N. T. Olivera, O. B. Manrique, Y. G. Masjuan, and A. M. G. Alega, “Evaluation of AquaCrop model in crop dry bean growth simulation,” Revista Ciencias Técnicas Agropecuarias, vol. 25, no. 3, pp. 23–30, Accessed: Dec. 10, 2022. [Online]. Available: https://www.redalyc.org/journal/932/93246970003/html/&lt;br /&gt;
* N. Pirmoradian, Z. Saadati, M. Rezaei, and M. R. Khaledian, “Simulating water productivity of paddy rice under irrigation regimes using AquaCrop model in humid and semiarid regions of Iran,” Appl Water Sci, vol. 10, no. 7, p. 161, Jun. 2020, doi: 10.1007/s13201-020-01249-5.&lt;br /&gt;
&lt;br /&gt;
[[User:Pierreatekwana|Pierreatekwana]] ([[User talk:Pierreatekwana|talk]]) 15:06, 15 December 2022 (CET)&lt;br /&gt;
&lt;br /&gt;
: Topic souds interesting, but the proposed simulation tool has to be one of the ones we have  used in our class ( as specified in How to deal with the simulation assignment:&lt;br /&gt;
One of your key course requirements is a submission of simulation. You choose your topic yourself, the same as a method and a tool that you will use. It could be any of the development environments we have used (Excel, Simprocess, Netlogo, or Vensim).) [[User:Oleg.Svatos|Oleg.Svatos]] ([[User talk:Oleg.Svatos|talk]]) 07:05, 17 December 2022 (CET)&lt;br /&gt;
&lt;br /&gt;
== Electricity Spot Market Simulation by [[User:Ceta|Ceta]] ([[User talk:Ceta|talk]]) 01:13, 16 December 2022 (CET) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Simulation'''&lt;br /&gt;
&lt;br /&gt;
I’ve been working as a professional in the Turkish Electricity Market (EXIST) for more than 10 years. I had the chance to practice in business some fundamental methods such as Stochastic Dual Dynamic Programming (SDDP) for Hydro-Thermal dispatch optimization. The spot exchange of power or the power market itself has many examples of simulation. And the simulation of the uncertainties both in the short term and the long term are very critical in terms of new investments, portfolio management, and resource optimization. &lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
&lt;br /&gt;
Both Excel and Netlogo simulations can be derived&lt;br /&gt;
&lt;br /&gt;
'''•	Inputs&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
-	Portfolios &lt;br /&gt;
&lt;br /&gt;
(Thermals: Coal-Fired, Natural Gas-Fired, Other Thermals; Renewables: Hydro, Wind, Solar PV, Other Renewables)&lt;br /&gt;
&lt;br /&gt;
-	Resource Prices (Eur/mwh)&lt;br /&gt;
&lt;br /&gt;
-	Installed Capacity (in MW)&lt;br /&gt;
&lt;br /&gt;
'''•	Variables'''&lt;br /&gt;
&lt;br /&gt;
-	Power Demand (MWh)&lt;br /&gt;
&lt;br /&gt;
-	Calendar Day&lt;br /&gt;
&lt;br /&gt;
'''•	Uncertain Events&lt;br /&gt;
'''&lt;br /&gt;
-	Maintenance (availability)&lt;br /&gt;
&lt;br /&gt;
-	Climate Factors (Wind, Hydro Sources, Temperature effect on Load-Demand)&lt;br /&gt;
&lt;br /&gt;
-	Natural Gas Shortage (Due to Climate Factors and/or Supply) &lt;br /&gt;
&lt;br /&gt;
'''•	Outputs&lt;br /&gt;
'''&lt;br /&gt;
-	Marginal Cost&lt;br /&gt;
&lt;br /&gt;
-	Market Clearing Prices (MCP)&lt;br /&gt;
&lt;br /&gt;
•'''	Goals&lt;br /&gt;
'''&lt;br /&gt;
-	Objective Function Y= Min (MCP)&lt;br /&gt;
&lt;br /&gt;
-	Effects of Natural Gas Shortages&lt;br /&gt;
&lt;br /&gt;
-	Effects of Climate Factors&lt;br /&gt;
&lt;br /&gt;
-	Effects of Maintenance&lt;br /&gt;
&lt;br /&gt;
-	Effects of Calendar&lt;br /&gt;
&lt;br /&gt;
-	Sensitivity Analysis of commissioning a Nuclear Power Plant in the market &lt;br /&gt;
&lt;br /&gt;
'''Citations'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Sensfuß, Frank; Ragwitz, Mario; Genoese, Massimo; Möst, Dominik (2007) : Agent-based simulation of electricity markets: a literature review, Working Paper Sustainability and Innovation, No. S5/2007, Fraunhofer-Institut für System- und Innovationsforschung ISI, Karlsruhe,&lt;br /&gt;
&lt;br /&gt;
- https://nbn-resolving.de/urn:nbn:de:0011-n-661574&lt;br /&gt;
&lt;br /&gt;
- https://www.econstor.eu/bitstream/10419/28520/1/570113083.pdf&lt;br /&gt;
&lt;br /&gt;
- https://www.tudelft.nl/evenementen/2021/powerweb/electricity-market-simulation-game ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Data '''&lt;br /&gt;
&lt;br /&gt;
- EXIST Transparency Portal https://seffaflik.epias.com.tr/transparency/&lt;br /&gt;
&lt;br /&gt;
- Electricity Transmission Operator https://www.teias.gov.tr/en-US&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Profit in store vs e-shop == &lt;br /&gt;
&lt;br /&gt;
''' Method:''' System Dynamics&lt;br /&gt;
&lt;br /&gt;
'''Software:''' Vensim&lt;br /&gt;
&lt;br /&gt;
'''Simulation'''&lt;br /&gt;
&lt;br /&gt;
An unnamed company that sells carpets has its own store in Prague. During COVID-19 the company reopened an e-shop, so it currently has two mutually supporting sales channels. Both types of stores have their advantages and disadvantages. At the same time, there are various factors that affect the profit. Examples of these factors are the following: customer satisfaction and needs (carpet quality, order processing speed, price, etc.), expenses (advertising, rent, employees, etc.), the possibility of expansion, etc.&lt;br /&gt;
&lt;br /&gt;
'''Model parameters'''&lt;br /&gt;
&lt;br /&gt;
*Expenses&lt;br /&gt;
**fixed&lt;br /&gt;
**variable&lt;br /&gt;
*Revenues&lt;br /&gt;
**customer satisfaction&lt;br /&gt;
**price&lt;br /&gt;
**a number of sales, etc.&lt;br /&gt;
&lt;br /&gt;
'''  The goal of the simulation '''&lt;br /&gt;
&lt;br /&gt;
The goal of this simulation is to find out how the company's profits will develop in the next 5 years, individually in the store and e-shop. Find out what parameters can increase profits the most, individually for each type of store, and compare these parameters.&lt;br /&gt;
&lt;br /&gt;
'''Data'''&lt;br /&gt;
&lt;br /&gt;
Real data provided by the owners of the store&lt;br /&gt;
&lt;br /&gt;
[[User:Ploo00|Ploo00]] ([[User talk:Ploo00|talk]]) 01:41, 16 December 2022 (CET)&lt;br /&gt;
:Please elaborate in more detail as we have discussed in class [[User:Oleg.Svatos|Oleg.Svatos]] ([[User talk:Oleg.Svatos|talk]]) 07:17, 17 December 2022 (CET)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;~~~~&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Comparison of strategies for finding a lost person in the forest==&lt;br /&gt;
&lt;br /&gt;
''' Author:''' Tomáš Kadaně (kadt02)&lt;br /&gt;
&lt;br /&gt;
'''Type:''' Multi-agent&lt;br /&gt;
&lt;br /&gt;
'''Software:''' NetLogo&lt;br /&gt;
&lt;br /&gt;
'''Description:''' &lt;br /&gt;
&lt;br /&gt;
The simulation will focus on comparing the times needed to find a lost person in a forest (area with trees).&lt;br /&gt;
The metric to compare the strategies will be the number of ticks needed to find the wanted person. Both the person being searched for and the searcher will be in a random location at the beginning of the simulation.&lt;br /&gt;
Within the simulation, I will take several measurements for each strategy and number of searchers (1 to 5), so that the number is statistically significant and use, for example, the means to compare which strategy is the most appropriate.&lt;br /&gt;
&lt;br /&gt;
The model will be able to simulate several search strategies &lt;br /&gt;
&lt;br /&gt;
*one step forward and then turn of random degree (-45 to 45 degrees), so random walk&lt;br /&gt;
*walk straight until it hits the edge of the forest or tree, then turn and continue walking straight&lt;br /&gt;
*first walk to the nearest corner of the forest and then a some kind of serpentine search&lt;br /&gt;
*possibly other strategies&lt;br /&gt;
&lt;br /&gt;
'''Goals:'''&lt;br /&gt;
&lt;br /&gt;
Finding the most appropriate strategy for finding a person in the forest depending on the number of people searching.&lt;br /&gt;
&lt;br /&gt;
'''Agents:'''&lt;br /&gt;
&lt;br /&gt;
*Searchers (e.g. police officers)&lt;br /&gt;
*Lost person&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
&lt;br /&gt;
*Number of searchers&lt;br /&gt;
*Type of strategy&lt;br /&gt;
*Ticks needed to find person&lt;br /&gt;
&lt;br /&gt;
'''Possible extensions:'''&lt;br /&gt;
&lt;br /&gt;
*Searchers with certain pace of walking&lt;br /&gt;
*Finding the person won’t mean be at same location but seeing it for some distance (again certain ability of the searcher to see for certain distance)&lt;br /&gt;
*Cooperation of finders (formations, place distribution)&lt;br /&gt;
*Lost person will be moving when being looked for&lt;br /&gt;
&lt;br /&gt;
[[User:Kadt02|Kadt02]] ([[User talk:Kadt02|talk]]) 16:01, 17 December 2022 (CET)&lt;/div&gt;</summary>
		<author><name>Kadt02</name></author>
		
	</entry>
	<entry>
		<id>http://www.simulace.info/index.php?title=Assignments_WS_2022/2023&amp;diff=23038</id>
		<title>Assignments WS 2022/2023</title>
		<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php?title=Assignments_WS_2022/2023&amp;diff=23038"/>
		<updated>2022-12-17T15:00:28Z</updated>

		<summary type="html">&lt;p&gt;Kadt02: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ambox&lt;br /&gt;
| text  = &amp;lt;div&amp;gt;&lt;br /&gt;
Please, put here your assignments. Do not forget to sign them. You can use &amp;lt;nowiki&amp;gt;~~~~&amp;lt;/nowiki&amp;gt; (four tildas) for an automatic signature. Use Show preview in order to check the result before your final sumbition.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Ambox&lt;br /&gt;
| text  = &amp;lt;div&amp;gt;&lt;br /&gt;
Please, strive to formulate your assignment carefully. We expect an adequate effort to formulate the assignment as it is your semestral paper. Do not forget that your main goal is a research paper. It means your simulation model must generate the results that are specific, measurable and verifiable. Think twice how you will develop your model, which entities you will use, draw a model diagram, consider what you will measure. No sooner than when you have a good idea about the model, submit your assignment. And of course, read [[How to deal with the simulation assignment|How to deal with the simulation assignment]].&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Ambox&lt;br /&gt;
| text  = &amp;lt;div&amp;gt;&lt;br /&gt;
Topics on gambling, cards, etc. are not welcome.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Ambox&lt;br /&gt;
| type  = content&lt;br /&gt;
| text  = &amp;lt;div&amp;gt;&lt;br /&gt;
In order to avoid possible confusion, please, check if you have added '''approved''' in bold somewhere in our comment under your submission. If there is no '''approved''', it means the assignment was not approved yet.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Effect of leniency programs on cartel rates by [[User:Baumareb|Baumareb]] ([[User talk:Baumareb|talk]]) 11:18, 7 December 2022 (CET) ==&lt;br /&gt;
&lt;br /&gt;
''' Simulation '''&lt;br /&gt;
&lt;br /&gt;
The leniency program of the European Commission offers the companies involved in a cartel either complete or partial immunity from fines if they self-report and hand over evidence. It was introduced in 1996, following the surge in amnesty applications in the wake of the 1993 revision of the Corporate Leniency Program of the US Department of Justice’s Antitrust Division. Reports from various implemented leniency programs showed that such programs led to numerous applications. However, despite the clear increase in leniency applications, the question poses itself as to whether the programs were also successful in a sense that the actual cartel rate in those countries declined.&lt;br /&gt;
The simulation will be based on a study of Harrington and Chang from 2015, in which they concluded the following:&lt;br /&gt;
&lt;br /&gt;
•	The actual cartel rate decreases in case that the leniency program does not affect the non-leniency enforcement&lt;br /&gt;
&lt;br /&gt;
•	But: if the non-leniency enforcement is affected because resources are shifted to the prosecution of leniency application cases, there might be two possibilities, the cartel rate might increase. &lt;br /&gt;
&lt;br /&gt;
This simulation focuses on the latter case. Assuming endogenized non-leniency enforcement, the introduction of a leniency program might have a differential impact on different industries. If a leniency program is introduced, the cartels that are about to collapse will seek to self-report. This in turn shifts resources from exposing active cartels to prosecuting cartels that are already collapsing. This creates more work for the authorities, who, instead of focusing on active cartels may now focus on dying cartels. This crowding-out effect coming about with the introduction of a leniency program shall be simulated in this project. &lt;br /&gt;
&lt;br /&gt;
''' Goal '''&lt;br /&gt;
&lt;br /&gt;
The simulation will have the following objectives:&lt;br /&gt;
&lt;br /&gt;
* Illustrate the change in cartel rates and the change in the average life expectancy of a cartel triggered by the introduction of a leniency program in case of endogenized non-leniency enforcement for industries with unstable cartels (e.g. industries with a high number of competitors, or demand with more price elasticity) and for industries with stable cartels (e.g. industries with less competitors and demand with less price elasticity). &lt;br /&gt;
* Illustrate how many resources may be shifted from non-leniency enforcement to prosecuting leniency application cases without it having an undesired effect on the actual cartel rate. &lt;br /&gt;
&lt;br /&gt;
''' Practical relevance '''&lt;br /&gt;
&lt;br /&gt;
The simulation may be used by law enforcement officials to evaluate whether a leniency program leads to the desired effect (i.e. the decrease in the cartel rate) or not. Also, it can help for deciding whether the non-leniency enforcement needs to be strengthened to prevent the crowding-out effect. &lt;br /&gt;
&lt;br /&gt;
''' Method '''&lt;br /&gt;
&lt;br /&gt;
The described scenario is a multi-agent simulation in which the agents are pursuing a utility-based approach. Thus, the simulation will be done with NetLogo. &lt;br /&gt;
The following features will be included into the simulation:&lt;br /&gt;
&lt;br /&gt;
- For both industries with stable and industries with unstable cartels:&lt;br /&gt;
&lt;br /&gt;
* Number of active cartels (dying after reaching avg. life expectancy)&lt;br /&gt;
* Number of competitors&lt;br /&gt;
* Average life expectancy of a cartel&lt;br /&gt;
* “Birth” of new cartels&lt;br /&gt;
&lt;br /&gt;
- For leniency/non-leniency enforcement:&lt;br /&gt;
* Resources and their assignment to either leniency or non-leniency enforcement &lt;br /&gt;
* Capacity of taking down an active cartel&lt;br /&gt;
* Capacity of taking down a cartel based on leniency applications&lt;br /&gt;
&lt;br /&gt;
The simulation will be based on the 2015 research from Harrington and Chang as well as on publicly accessible data from the European Commission regarding antitrust cases from 1964 until today.&lt;br /&gt;
&lt;br /&gt;
''' Sources '''&lt;br /&gt;
* Harrington Jr, J. E., &amp;amp; Chang, M. H. (2015). When can we expect a corporate leniency program to result in fewer cartels?. The Journal of Law and Economics, 58(2), 417-449.&lt;br /&gt;
* Ordóñez‐De‐Haro, J. M., Borrell, J. R., &amp;amp; Jiménez, J. L. (2018). The European commission's fight against cartels (1962–2014): A retrospective and forensic analysis. JCMS: Journal of Common Market Studies, 56(5), 1087-1107.&lt;br /&gt;
&lt;br /&gt;
[[User:Baumareb|Baumareb]] ([[User talk:Baumareb|talk]]) 11:18, 7 December 2022 (CET) Rebecca Baumann (baur00)&lt;br /&gt;
&lt;br /&gt;
: This isn't an easy topic. Be careful about available data. '''Approved''' [[User:Tomáš|Tomáš]] ([[User talk:Tomáš|talk]]) 01:46, 15 December 2022 (CET)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The prediction of divorce rate in Czech Republic for the following 50 years == &lt;br /&gt;
&lt;br /&gt;
'''  The goal of the simulation '''&lt;br /&gt;
&lt;br /&gt;
Divorce in the Czech republic must always contain at least one hearing in front of the court. Legally, there are many more parties involved, such as a notary, who must verify the signatures on all the important documents and many times, divorce lawyers are also necessary. To be able to satisfy the needs of the public, all the involved parties must have an idea about how many married couples are likely to get divorced in the years to come. This simulation will help prepare the courts, notaries and lawyers by making a prediction on the amount of divorces in the next 50 years. This will also help law students choose the field of law that they will specialize in by answering the question whether divorce lawyers will be necessary in the future or not. &lt;br /&gt;
&lt;br /&gt;
'''  Method '''&lt;br /&gt;
&lt;br /&gt;
Vensim will be used for this simulation. The used data will come from the Czech Statistical Office and possibly other sources (Refer to [1] and [2]), such as published studies on the most common reasons for divorce. When possible, the data about each reason of divorce will be also found and the simulation model will contain this data. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
== Edit: additional details ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''  What all parameters will the simulation work with and how?'''&lt;br /&gt;
&lt;br /&gt;
1. Number of marriages – the more marriages, the more divorces&lt;br /&gt;
&lt;br /&gt;
a/ Number of people in the age 25 to 34 (i.e., the most common age to get married) – the more there is of these people, the more marriages there will be&lt;br /&gt;
&lt;br /&gt;
b/ Number of divorced people in the age 40 to 49 (i.e., the most common age to get re-married after a divorce) – the more there is of these people, the more marriages there will be, however not as much as the number above&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Micro causes of divorces = Top 10 causes of divorce as researched by the Czech Statistical Office, published yearly – the more common are these causes (alcoholism, infidelity etc), the more divorces there will be&lt;br /&gt;
&lt;br /&gt;
a/ Ill-considered marriage&lt;br /&gt;
&lt;br /&gt;
b/ Alcoholism&lt;br /&gt;
&lt;br /&gt;
c/ Infidelity&lt;br /&gt;
&lt;br /&gt;
d/ Lack of interest in the family (incl. abandon. of living together)&lt;br /&gt;
&lt;br /&gt;
e/ Ill-treatment, criminal conviction&lt;br /&gt;
&lt;br /&gt;
f/ Different characters, views and interests&lt;br /&gt;
&lt;br /&gt;
g/ Health reasons&lt;br /&gt;
&lt;br /&gt;
h/ Sexual discord&lt;br /&gt;
&lt;br /&gt;
i/ Other causes&lt;br /&gt;
&lt;br /&gt;
j/ Cause not given&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Number of people in the age 40 to 49 – the more there is of these people, the more divorces there will be (it is the most common age to get divorced)&lt;br /&gt;
&lt;br /&gt;
4. Macro causes of divorces&lt;br /&gt;
&lt;br /&gt;
a/ Economic independence of women = the more economically independent women are, the more likely they are to divorce in case of an unhappy marriage – this will be evaluated through a comparison of data of average income of men vs. women &lt;br /&gt;
&lt;br /&gt;
b/ Being religious – divorce is far less common for religious people. &lt;br /&gt;
&lt;br /&gt;
'''  What data source will be used for deriving the equations?'''&lt;br /&gt;
&lt;br /&gt;
Based on my current research of data sources, the Czech Statistical Office has the all the data necessary for this paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[1] Scott, S. B., Rhoades, G. K., Stanley, S. M., Allen, E. S., &amp;amp; Markman, H. J. (2013). Reasons for Divorce and Recollections of Premarital Intervention: Implications for Improving Relationship Education. Couple &amp;amp; family psychology, 2(2), 131–145. https://doi.org/10.1037/a0032025&lt;br /&gt;
&lt;br /&gt;
[2] Hawkins, Alan &amp;amp; Willoughby, Brian &amp;amp; Doherty, William. (2012). Reasons for Divorce and Openness to Marital Reconciliation. Journal of Divorce &amp;amp; Remarriage. 53. 453-463. 10.1080/10502556.2012.682898.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: Sounds interesting, but I miss more detail about the simulation. What all parameters will the simulation work with and how? What data source will be used for deriving the equations? [[User:Oleg.Svatos|Oleg.Svatos]] ([[User talk:Oleg.Svatos|talk]]) 11:03, 15 December 2022 (CET)&lt;br /&gt;
:: ''' Approved'''. Just make sure that the equtions, reasons for divorce and their impact on divorce rate are properly quantified.[[User:Oleg.Svatos|Oleg.Svatos]] ([[User talk:Oleg.Svatos|talk]]) 07:23, 17 December 2022 (CET)&lt;br /&gt;
&lt;br /&gt;
==Crop Yield Forecasting==&lt;br /&gt;
&lt;br /&gt;
''' Simulation '''&lt;br /&gt;
&lt;br /&gt;
Crop growth and development simulations and yield forecasting will be performed using variables such as crop type, planting date, soil type, soil texture, and climate data (temperature, rainfall, etc.).&lt;br /&gt;
&lt;br /&gt;
'''Problem definition'''&lt;br /&gt;
 &lt;br /&gt;
Arable land is increasingly limited, while the world's population has steadily been increasing over the years. In order to meet rapidly rising demand, production must be increased while natural resources must be protected. New agricultural research is needed to provide information on how to achieve sustainable agriculture in the face of global climate variability. Predicting crop yield under different conditions, such as different irrigation regimes, planting dates, and crop management practices, has become critical for farmers and other stakeholders who use these predictions to make more informed decisions about how to allocate resources, such as labor, equipment, and inputs, to maximize yield and productivity.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
 &lt;br /&gt;
Crop yield simulation tools include AquaCrop, DSSAT, and CropSyst. These tools use mathematical models to simulate crop growth and development based on input data like weather, soil type, and management practices. These tools use this data to estimate the crop's potential yield, as well as other important factors like water use and crop evapotranspiration. For this assignment I will be using AquaCrop which is a crop water productivity model developed by the United Nations Food and Agriculture Organization (FAO). It is used to simulate crop growth and yield under various environmental and management conditions. AquaCrop simulates crop growth and development, and estimates yield based on soil conditions, climate, irrigation, and management practices. The application gives access to various FAO databases with all the necessary data needed to perform a comprehensive simulation of the crop yield.&lt;br /&gt;
&lt;br /&gt;
'''Citations'''&lt;br /&gt;
&lt;br /&gt;
* Y. Lu, C. Wei, M. F. McCabe, and J. Sheffield, “Multi-variable assimilation into a modified AquaCrop model for improved maize simulation without management or crop phenology information,” Agricultural Water Management, vol. 266, p. 107576, May 2022, doi: 10.1016/j.agwat.2022.107576.&lt;br /&gt;
* P. N. Kephe, K. K. Ayisi, and B. M. Petja, “Challenges and opportunities in crop simulation modelling under seasonal and projected climate change scenarios for crop production in South Africa,” Agriculture &amp;amp; Food Security, vol. 10, no. 1, p. 10, Apr. 2021, doi: 10.1186/s40066-020-00283-5.&lt;br /&gt;
* N. T. Olivera, O. B. Manrique, Y. G. Masjuan, and A. M. G. Alega, “Evaluation of AquaCrop model in crop dry bean growth simulation,” Revista Ciencias Técnicas Agropecuarias, vol. 25, no. 3, pp. 23–30, Accessed: Dec. 10, 2022. [Online]. Available: https://www.redalyc.org/journal/932/93246970003/html/&lt;br /&gt;
* N. Pirmoradian, Z. Saadati, M. Rezaei, and M. R. Khaledian, “Simulating water productivity of paddy rice under irrigation regimes using AquaCrop model in humid and semiarid regions of Iran,” Appl Water Sci, vol. 10, no. 7, p. 161, Jun. 2020, doi: 10.1007/s13201-020-01249-5.&lt;br /&gt;
&lt;br /&gt;
[[User:Pierreatekwana|Pierreatekwana]] ([[User talk:Pierreatekwana|talk]]) 15:06, 15 December 2022 (CET)&lt;br /&gt;
&lt;br /&gt;
: Topic souds interesting, but the proposed simulation tool has to be one of the ones we have  used in our class ( as specified in How to deal with the simulation assignment:&lt;br /&gt;
One of your key course requirements is a submission of simulation. You choose your topic yourself, the same as a method and a tool that you will use. It could be any of the development environments we have used (Excel, Simprocess, Netlogo, or Vensim).) [[User:Oleg.Svatos|Oleg.Svatos]] ([[User talk:Oleg.Svatos|talk]]) 07:05, 17 December 2022 (CET)&lt;br /&gt;
&lt;br /&gt;
== Electricity Spot Market Simulation by [[User:Ceta|Ceta]] ([[User talk:Ceta|talk]]) 01:13, 16 December 2022 (CET) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Simulation'''&lt;br /&gt;
&lt;br /&gt;
I’ve been working as a professional in the Turkish Electricity Market (EXIST) for more than 10 years. I had the chance to practice in business some fundamental methods such as Stochastic Dual Dynamic Programming (SDDP) for Hydro-Thermal dispatch optimization. The spot exchange of power or the power market itself has many examples of simulation. And the simulation of the uncertainties both in the short term and the long term are very critical in terms of new investments, portfolio management, and resource optimization. &lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
&lt;br /&gt;
Both Excel and Netlogo simulations can be derived&lt;br /&gt;
&lt;br /&gt;
'''•	Inputs&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
-	Portfolios &lt;br /&gt;
&lt;br /&gt;
(Thermals: Coal-Fired, Natural Gas-Fired, Other Thermals; Renewables: Hydro, Wind, Solar PV, Other Renewables)&lt;br /&gt;
&lt;br /&gt;
-	Resource Prices (Eur/mwh)&lt;br /&gt;
&lt;br /&gt;
-	Installed Capacity (in MW)&lt;br /&gt;
&lt;br /&gt;
'''•	Variables'''&lt;br /&gt;
&lt;br /&gt;
-	Power Demand (MWh)&lt;br /&gt;
&lt;br /&gt;
-	Calendar Day&lt;br /&gt;
&lt;br /&gt;
'''•	Uncertain Events&lt;br /&gt;
'''&lt;br /&gt;
-	Maintenance (availability)&lt;br /&gt;
&lt;br /&gt;
-	Climate Factors (Wind, Hydro Sources, Temperature effect on Load-Demand)&lt;br /&gt;
&lt;br /&gt;
-	Natural Gas Shortage (Due to Climate Factors and/or Supply) &lt;br /&gt;
&lt;br /&gt;
'''•	Outputs&lt;br /&gt;
'''&lt;br /&gt;
-	Marginal Cost&lt;br /&gt;
&lt;br /&gt;
-	Market Clearing Prices (MCP)&lt;br /&gt;
&lt;br /&gt;
•'''	Goals&lt;br /&gt;
'''&lt;br /&gt;
-	Objective Function Y= Min (MCP)&lt;br /&gt;
&lt;br /&gt;
-	Effects of Natural Gas Shortages&lt;br /&gt;
&lt;br /&gt;
-	Effects of Climate Factors&lt;br /&gt;
&lt;br /&gt;
-	Effects of Maintenance&lt;br /&gt;
&lt;br /&gt;
-	Effects of Calendar&lt;br /&gt;
&lt;br /&gt;
-	Sensitivity Analysis of commissioning a Nuclear Power Plant in the market &lt;br /&gt;
&lt;br /&gt;
'''Citations'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Sensfuß, Frank; Ragwitz, Mario; Genoese, Massimo; Möst, Dominik (2007) : Agent-based simulation of electricity markets: a literature review, Working Paper Sustainability and Innovation, No. S5/2007, Fraunhofer-Institut für System- und Innovationsforschung ISI, Karlsruhe,&lt;br /&gt;
&lt;br /&gt;
- https://nbn-resolving.de/urn:nbn:de:0011-n-661574&lt;br /&gt;
&lt;br /&gt;
- https://www.econstor.eu/bitstream/10419/28520/1/570113083.pdf&lt;br /&gt;
&lt;br /&gt;
- https://www.tudelft.nl/evenementen/2021/powerweb/electricity-market-simulation-game ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Data '''&lt;br /&gt;
&lt;br /&gt;
- EXIST Transparency Portal https://seffaflik.epias.com.tr/transparency/&lt;br /&gt;
&lt;br /&gt;
- Electricity Transmission Operator https://www.teias.gov.tr/en-US&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Profit in store vs e-shop == &lt;br /&gt;
&lt;br /&gt;
''' Method:''' System Dynamics&lt;br /&gt;
&lt;br /&gt;
'''Software:''' Vensim&lt;br /&gt;
&lt;br /&gt;
'''Simulation'''&lt;br /&gt;
&lt;br /&gt;
An unnamed company that sells carpets has its own store in Prague. During COVID-19 the company reopened an e-shop, so it currently has two mutually supporting sales channels. Both types of stores have their advantages and disadvantages. At the same time, there are various factors that affect the profit. Examples of these factors are the following: customer satisfaction and needs (carpet quality, order processing speed, price, etc.), expenses (advertising, rent, employees, etc.), the possibility of expansion, etc.&lt;br /&gt;
&lt;br /&gt;
'''Model parameters'''&lt;br /&gt;
&lt;br /&gt;
*Expenses&lt;br /&gt;
**fixed&lt;br /&gt;
**variable&lt;br /&gt;
*Revenues&lt;br /&gt;
**customer satisfaction&lt;br /&gt;
**price&lt;br /&gt;
**a number of sales, etc.&lt;br /&gt;
&lt;br /&gt;
'''  The goal of the simulation '''&lt;br /&gt;
&lt;br /&gt;
The goal of this simulation is to find out how the company's profits will develop in the next 5 years, individually in the store and e-shop. Find out what parameters can increase profits the most, individually for each type of store, and compare these parameters.&lt;br /&gt;
&lt;br /&gt;
'''Data'''&lt;br /&gt;
&lt;br /&gt;
Real data provided by the owners of the store&lt;br /&gt;
&lt;br /&gt;
[[User:Ploo00|Ploo00]] ([[User talk:Ploo00|talk]]) 01:41, 16 December 2022 (CET)&lt;br /&gt;
:Please elaborate in more detail as we have discussed in class [[User:Oleg.Svatos|Oleg.Svatos]] ([[User talk:Oleg.Svatos|talk]]) 07:17, 17 December 2022 (CET)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;~~~~&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Comparison of strategies for finding a lost person in the forest==&lt;br /&gt;
&lt;br /&gt;
''' Author:''' Tomáš Kadaně (kadt02)&lt;br /&gt;
&lt;br /&gt;
'''Type:''' Multi-agent&lt;br /&gt;
&lt;br /&gt;
'''Software:''' NetLogo&lt;br /&gt;
&lt;br /&gt;
'''Description:''' &lt;br /&gt;
&lt;br /&gt;
The simulation will focus on comparing the times needed to find a lost person in a forest (area with trees).&lt;br /&gt;
The metric to compare the strategies will be the number of ticks needed to find the wanted person. Both the person being searched for and the searcher will be in a random location at the beginning of the simulation.&lt;br /&gt;
Within the simulation, I will take several measurements for each strategy and number of searchers (1 to 5), so that the number is statistically significant and use, for example, the means to compare which strategy is the most appropriate.&lt;br /&gt;
&lt;br /&gt;
The model will be able to simulate several search strategies &lt;br /&gt;
&lt;br /&gt;
*one step forward and then turn of random degree (-45 to 45 degrees), so random walk&lt;br /&gt;
*walk straight until it hits the edge of the forest or tree, then turn and continue walking straight&lt;br /&gt;
*first walk to the nearest corner of the forest and then a some kind of serpentine search&lt;br /&gt;
*possibly other strategies&lt;br /&gt;
&lt;br /&gt;
'''Goals:'''&lt;br /&gt;
&lt;br /&gt;
Finding the most appropriate strategy for finding a person in the forest depending on the number of people searching.&lt;br /&gt;
&lt;br /&gt;
'''Agents:'''&lt;br /&gt;
&lt;br /&gt;
*Searchers (e.g. police officers)&lt;br /&gt;
*Lost person&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
&lt;br /&gt;
*Number of searchers&lt;br /&gt;
*Type of strategy&lt;br /&gt;
*Ticks needed to find person&lt;br /&gt;
&lt;br /&gt;
'''Possible extensions:'''&lt;br /&gt;
&lt;br /&gt;
*Searchers with certain pace of walking&lt;br /&gt;
*Finding the person won’t mean be at same location but seeing it for some distance (again certain ability of the searcher to see for certain distance)&lt;br /&gt;
*Cooperation of finders (formations, place distribution)&lt;br /&gt;
*Lost person will be moving when being looked for&lt;/div&gt;</summary>
		<author><name>Kadt02</name></author>
		
	</entry>
	<entry>
		<id>http://www.simulace.info/index.php?title=Assignments_WS_2022/2023&amp;diff=23037</id>
		<title>Assignments WS 2022/2023</title>
		<link rel="alternate" type="text/html" href="http://www.simulace.info/index.php?title=Assignments_WS_2022/2023&amp;diff=23037"/>
		<updated>2022-12-17T14:59:45Z</updated>

		<summary type="html">&lt;p&gt;Kadt02: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Ambox&lt;br /&gt;
| text  = &amp;lt;div&amp;gt;&lt;br /&gt;
Please, put here your assignments. Do not forget to sign them. You can use &amp;lt;nowiki&amp;gt;~~~~&amp;lt;/nowiki&amp;gt; (four tildas) for an automatic signature. Use Show preview in order to check the result before your final sumbition.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Ambox&lt;br /&gt;
| text  = &amp;lt;div&amp;gt;&lt;br /&gt;
Please, strive to formulate your assignment carefully. We expect an adequate effort to formulate the assignment as it is your semestral paper. Do not forget that your main goal is a research paper. It means your simulation model must generate the results that are specific, measurable and verifiable. Think twice how you will develop your model, which entities you will use, draw a model diagram, consider what you will measure. No sooner than when you have a good idea about the model, submit your assignment. And of course, read [[How to deal with the simulation assignment|How to deal with the simulation assignment]].&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Ambox&lt;br /&gt;
| text  = &amp;lt;div&amp;gt;&lt;br /&gt;
Topics on gambling, cards, etc. are not welcome.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Ambox&lt;br /&gt;
| type  = content&lt;br /&gt;
| text  = &amp;lt;div&amp;gt;&lt;br /&gt;
In order to avoid possible confusion, please, check if you have added '''approved''' in bold somewhere in our comment under your submission. If there is no '''approved''', it means the assignment was not approved yet.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Effect of leniency programs on cartel rates by [[User:Baumareb|Baumareb]] ([[User talk:Baumareb|talk]]) 11:18, 7 December 2022 (CET) ==&lt;br /&gt;
&lt;br /&gt;
''' Simulation '''&lt;br /&gt;
&lt;br /&gt;
The leniency program of the European Commission offers the companies involved in a cartel either complete or partial immunity from fines if they self-report and hand over evidence. It was introduced in 1996, following the surge in amnesty applications in the wake of the 1993 revision of the Corporate Leniency Program of the US Department of Justice’s Antitrust Division. Reports from various implemented leniency programs showed that such programs led to numerous applications. However, despite the clear increase in leniency applications, the question poses itself as to whether the programs were also successful in a sense that the actual cartel rate in those countries declined.&lt;br /&gt;
The simulation will be based on a study of Harrington and Chang from 2015, in which they concluded the following:&lt;br /&gt;
&lt;br /&gt;
•	The actual cartel rate decreases in case that the leniency program does not affect the non-leniency enforcement&lt;br /&gt;
&lt;br /&gt;
•	But: if the non-leniency enforcement is affected because resources are shifted to the prosecution of leniency application cases, there might be two possibilities, the cartel rate might increase. &lt;br /&gt;
&lt;br /&gt;
This simulation focuses on the latter case. Assuming endogenized non-leniency enforcement, the introduction of a leniency program might have a differential impact on different industries. If a leniency program is introduced, the cartels that are about to collapse will seek to self-report. This in turn shifts resources from exposing active cartels to prosecuting cartels that are already collapsing. This creates more work for the authorities, who, instead of focusing on active cartels may now focus on dying cartels. This crowding-out effect coming about with the introduction of a leniency program shall be simulated in this project. &lt;br /&gt;
&lt;br /&gt;
''' Goal '''&lt;br /&gt;
&lt;br /&gt;
The simulation will have the following objectives:&lt;br /&gt;
&lt;br /&gt;
* Illustrate the change in cartel rates and the change in the average life expectancy of a cartel triggered by the introduction of a leniency program in case of endogenized non-leniency enforcement for industries with unstable cartels (e.g. industries with a high number of competitors, or demand with more price elasticity) and for industries with stable cartels (e.g. industries with less competitors and demand with less price elasticity). &lt;br /&gt;
* Illustrate how many resources may be shifted from non-leniency enforcement to prosecuting leniency application cases without it having an undesired effect on the actual cartel rate. &lt;br /&gt;
&lt;br /&gt;
''' Practical relevance '''&lt;br /&gt;
&lt;br /&gt;
The simulation may be used by law enforcement officials to evaluate whether a leniency program leads to the desired effect (i.e. the decrease in the cartel rate) or not. Also, it can help for deciding whether the non-leniency enforcement needs to be strengthened to prevent the crowding-out effect. &lt;br /&gt;
&lt;br /&gt;
''' Method '''&lt;br /&gt;
&lt;br /&gt;
The described scenario is a multi-agent simulation in which the agents are pursuing a utility-based approach. Thus, the simulation will be done with NetLogo. &lt;br /&gt;
The following features will be included into the simulation:&lt;br /&gt;
&lt;br /&gt;
- For both industries with stable and industries with unstable cartels:&lt;br /&gt;
&lt;br /&gt;
* Number of active cartels (dying after reaching avg. life expectancy)&lt;br /&gt;
* Number of competitors&lt;br /&gt;
* Average life expectancy of a cartel&lt;br /&gt;
* “Birth” of new cartels&lt;br /&gt;
&lt;br /&gt;
- For leniency/non-leniency enforcement:&lt;br /&gt;
* Resources and their assignment to either leniency or non-leniency enforcement &lt;br /&gt;
* Capacity of taking down an active cartel&lt;br /&gt;
* Capacity of taking down a cartel based on leniency applications&lt;br /&gt;
&lt;br /&gt;
The simulation will be based on the 2015 research from Harrington and Chang as well as on publicly accessible data from the European Commission regarding antitrust cases from 1964 until today.&lt;br /&gt;
&lt;br /&gt;
''' Sources '''&lt;br /&gt;
* Harrington Jr, J. E., &amp;amp; Chang, M. H. (2015). When can we expect a corporate leniency program to result in fewer cartels?. The Journal of Law and Economics, 58(2), 417-449.&lt;br /&gt;
* Ordóñez‐De‐Haro, J. M., Borrell, J. R., &amp;amp; Jiménez, J. L. (2018). The European commission's fight against cartels (1962–2014): A retrospective and forensic analysis. JCMS: Journal of Common Market Studies, 56(5), 1087-1107.&lt;br /&gt;
&lt;br /&gt;
[[User:Baumareb|Baumareb]] ([[User talk:Baumareb|talk]]) 11:18, 7 December 2022 (CET) Rebecca Baumann (baur00)&lt;br /&gt;
&lt;br /&gt;
: This isn't an easy topic. Be careful about available data. '''Approved''' [[User:Tomáš|Tomáš]] ([[User talk:Tomáš|talk]]) 01:46, 15 December 2022 (CET)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The prediction of divorce rate in Czech Republic for the following 50 years == &lt;br /&gt;
&lt;br /&gt;
'''  The goal of the simulation '''&lt;br /&gt;
&lt;br /&gt;
Divorce in the Czech republic must always contain at least one hearing in front of the court. Legally, there are many more parties involved, such as a notary, who must verify the signatures on all the important documents and many times, divorce lawyers are also necessary. To be able to satisfy the needs of the public, all the involved parties must have an idea about how many married couples are likely to get divorced in the years to come. This simulation will help prepare the courts, notaries and lawyers by making a prediction on the amount of divorces in the next 50 years. This will also help law students choose the field of law that they will specialize in by answering the question whether divorce lawyers will be necessary in the future or not. &lt;br /&gt;
&lt;br /&gt;
'''  Method '''&lt;br /&gt;
&lt;br /&gt;
Vensim will be used for this simulation. The used data will come from the Czech Statistical Office and possibly other sources (Refer to [1] and [2]), such as published studies on the most common reasons for divorce. When possible, the data about each reason of divorce will be also found and the simulation model will contain this data. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
== Edit: additional details ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''  What all parameters will the simulation work with and how?'''&lt;br /&gt;
&lt;br /&gt;
1. Number of marriages – the more marriages, the more divorces&lt;br /&gt;
&lt;br /&gt;
a/ Number of people in the age 25 to 34 (i.e., the most common age to get married) – the more there is of these people, the more marriages there will be&lt;br /&gt;
&lt;br /&gt;
b/ Number of divorced people in the age 40 to 49 (i.e., the most common age to get re-married after a divorce) – the more there is of these people, the more marriages there will be, however not as much as the number above&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Micro causes of divorces = Top 10 causes of divorce as researched by the Czech Statistical Office, published yearly – the more common are these causes (alcoholism, infidelity etc), the more divorces there will be&lt;br /&gt;
&lt;br /&gt;
a/ Ill-considered marriage&lt;br /&gt;
&lt;br /&gt;
b/ Alcoholism&lt;br /&gt;
&lt;br /&gt;
c/ Infidelity&lt;br /&gt;
&lt;br /&gt;
d/ Lack of interest in the family (incl. abandon. of living together)&lt;br /&gt;
&lt;br /&gt;
e/ Ill-treatment, criminal conviction&lt;br /&gt;
&lt;br /&gt;
f/ Different characters, views and interests&lt;br /&gt;
&lt;br /&gt;
g/ Health reasons&lt;br /&gt;
&lt;br /&gt;
h/ Sexual discord&lt;br /&gt;
&lt;br /&gt;
i/ Other causes&lt;br /&gt;
&lt;br /&gt;
j/ Cause not given&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Number of people in the age 40 to 49 – the more there is of these people, the more divorces there will be (it is the most common age to get divorced)&lt;br /&gt;
&lt;br /&gt;
4. Macro causes of divorces&lt;br /&gt;
&lt;br /&gt;
a/ Economic independence of women = the more economically independent women are, the more likely they are to divorce in case of an unhappy marriage – this will be evaluated through a comparison of data of average income of men vs. women &lt;br /&gt;
&lt;br /&gt;
b/ Being religious – divorce is far less common for religious people. &lt;br /&gt;
&lt;br /&gt;
'''  What data source will be used for deriving the equations?'''&lt;br /&gt;
&lt;br /&gt;
Based on my current research of data sources, the Czech Statistical Office has the all the data necessary for this paper.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[1] Scott, S. B., Rhoades, G. K., Stanley, S. M., Allen, E. S., &amp;amp; Markman, H. J. (2013). Reasons for Divorce and Recollections of Premarital Intervention: Implications for Improving Relationship Education. Couple &amp;amp; family psychology, 2(2), 131–145. https://doi.org/10.1037/a0032025&lt;br /&gt;
&lt;br /&gt;
[2] Hawkins, Alan &amp;amp; Willoughby, Brian &amp;amp; Doherty, William. (2012). Reasons for Divorce and Openness to Marital Reconciliation. Journal of Divorce &amp;amp; Remarriage. 53. 453-463. 10.1080/10502556.2012.682898.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: Sounds interesting, but I miss more detail about the simulation. What all parameters will the simulation work with and how? What data source will be used for deriving the equations? [[User:Oleg.Svatos|Oleg.Svatos]] ([[User talk:Oleg.Svatos|talk]]) 11:03, 15 December 2022 (CET)&lt;br /&gt;
:: ''' Approved'''. Just make sure that the equtions, reasons for divorce and their impact on divorce rate are properly quantified.[[User:Oleg.Svatos|Oleg.Svatos]] ([[User talk:Oleg.Svatos|talk]]) 07:23, 17 December 2022 (CET)&lt;br /&gt;
&lt;br /&gt;
==Crop Yield Forecasting==&lt;br /&gt;
&lt;br /&gt;
''' Simulation '''&lt;br /&gt;
&lt;br /&gt;
Crop growth and development simulations and yield forecasting will be performed using variables such as crop type, planting date, soil type, soil texture, and climate data (temperature, rainfall, etc.).&lt;br /&gt;
&lt;br /&gt;
'''Problem definition'''&lt;br /&gt;
 &lt;br /&gt;
Arable land is increasingly limited, while the world's population has steadily been increasing over the years. In order to meet rapidly rising demand, production must be increased while natural resources must be protected. New agricultural research is needed to provide information on how to achieve sustainable agriculture in the face of global climate variability. Predicting crop yield under different conditions, such as different irrigation regimes, planting dates, and crop management practices, has become critical for farmers and other stakeholders who use these predictions to make more informed decisions about how to allocate resources, such as labor, equipment, and inputs, to maximize yield and productivity.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
 &lt;br /&gt;
Crop yield simulation tools include AquaCrop, DSSAT, and CropSyst. These tools use mathematical models to simulate crop growth and development based on input data like weather, soil type, and management practices. These tools use this data to estimate the crop's potential yield, as well as other important factors like water use and crop evapotranspiration. For this assignment I will be using AquaCrop which is a crop water productivity model developed by the United Nations Food and Agriculture Organization (FAO). It is used to simulate crop growth and yield under various environmental and management conditions. AquaCrop simulates crop growth and development, and estimates yield based on soil conditions, climate, irrigation, and management practices. The application gives access to various FAO databases with all the necessary data needed to perform a comprehensive simulation of the crop yield.&lt;br /&gt;
&lt;br /&gt;
'''Citations'''&lt;br /&gt;
&lt;br /&gt;
* Y. Lu, C. Wei, M. F. McCabe, and J. Sheffield, “Multi-variable assimilation into a modified AquaCrop model for improved maize simulation without management or crop phenology information,” Agricultural Water Management, vol. 266, p. 107576, May 2022, doi: 10.1016/j.agwat.2022.107576.&lt;br /&gt;
* P. N. Kephe, K. K. Ayisi, and B. M. Petja, “Challenges and opportunities in crop simulation modelling under seasonal and projected climate change scenarios for crop production in South Africa,” Agriculture &amp;amp; Food Security, vol. 10, no. 1, p. 10, Apr. 2021, doi: 10.1186/s40066-020-00283-5.&lt;br /&gt;
* N. T. Olivera, O. B. Manrique, Y. G. Masjuan, and A. M. G. Alega, “Evaluation of AquaCrop model in crop dry bean growth simulation,” Revista Ciencias Técnicas Agropecuarias, vol. 25, no. 3, pp. 23–30, Accessed: Dec. 10, 2022. [Online]. Available: https://www.redalyc.org/journal/932/93246970003/html/&lt;br /&gt;
* N. Pirmoradian, Z. Saadati, M. Rezaei, and M. R. Khaledian, “Simulating water productivity of paddy rice under irrigation regimes using AquaCrop model in humid and semiarid regions of Iran,” Appl Water Sci, vol. 10, no. 7, p. 161, Jun. 2020, doi: 10.1007/s13201-020-01249-5.&lt;br /&gt;
&lt;br /&gt;
[[User:Pierreatekwana|Pierreatekwana]] ([[User talk:Pierreatekwana|talk]]) 15:06, 15 December 2022 (CET)&lt;br /&gt;
&lt;br /&gt;
: Topic souds interesting, but the proposed simulation tool has to be one of the ones we have  used in our class ( as specified in How to deal with the simulation assignment:&lt;br /&gt;
One of your key course requirements is a submission of simulation. You choose your topic yourself, the same as a method and a tool that you will use. It could be any of the development environments we have used (Excel, Simprocess, Netlogo, or Vensim).) [[User:Oleg.Svatos|Oleg.Svatos]] ([[User talk:Oleg.Svatos|talk]]) 07:05, 17 December 2022 (CET)&lt;br /&gt;
&lt;br /&gt;
== Electricity Spot Market Simulation by [[User:Ceta|Ceta]] ([[User talk:Ceta|talk]]) 01:13, 16 December 2022 (CET) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Simulation'''&lt;br /&gt;
&lt;br /&gt;
I’ve been working as a professional in the Turkish Electricity Market (EXIST) for more than 10 years. I had the chance to practice in business some fundamental methods such as Stochastic Dual Dynamic Programming (SDDP) for Hydro-Thermal dispatch optimization. The spot exchange of power or the power market itself has many examples of simulation. And the simulation of the uncertainties both in the short term and the long term are very critical in terms of new investments, portfolio management, and resource optimization. &lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
&lt;br /&gt;
Both Excel and Netlogo simulations can be derived&lt;br /&gt;
&lt;br /&gt;
'''•	Inputs&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
-	Portfolios &lt;br /&gt;
&lt;br /&gt;
(Thermals: Coal-Fired, Natural Gas-Fired, Other Thermals; Renewables: Hydro, Wind, Solar PV, Other Renewables)&lt;br /&gt;
&lt;br /&gt;
-	Resource Prices (Eur/mwh)&lt;br /&gt;
&lt;br /&gt;
-	Installed Capacity (in MW)&lt;br /&gt;
&lt;br /&gt;
'''•	Variables'''&lt;br /&gt;
&lt;br /&gt;
-	Power Demand (MWh)&lt;br /&gt;
&lt;br /&gt;
-	Calendar Day&lt;br /&gt;
&lt;br /&gt;
'''•	Uncertain Events&lt;br /&gt;
'''&lt;br /&gt;
-	Maintenance (availability)&lt;br /&gt;
&lt;br /&gt;
-	Climate Factors (Wind, Hydro Sources, Temperature effect on Load-Demand)&lt;br /&gt;
&lt;br /&gt;
-	Natural Gas Shortage (Due to Climate Factors and/or Supply) &lt;br /&gt;
&lt;br /&gt;
'''•	Outputs&lt;br /&gt;
'''&lt;br /&gt;
-	Marginal Cost&lt;br /&gt;
&lt;br /&gt;
-	Market Clearing Prices (MCP)&lt;br /&gt;
&lt;br /&gt;
•'''	Goals&lt;br /&gt;
'''&lt;br /&gt;
-	Objective Function Y= Min (MCP)&lt;br /&gt;
&lt;br /&gt;
-	Effects of Natural Gas Shortages&lt;br /&gt;
&lt;br /&gt;
-	Effects of Climate Factors&lt;br /&gt;
&lt;br /&gt;
-	Effects of Maintenance&lt;br /&gt;
&lt;br /&gt;
-	Effects of Calendar&lt;br /&gt;
&lt;br /&gt;
-	Sensitivity Analysis of commissioning a Nuclear Power Plant in the market &lt;br /&gt;
&lt;br /&gt;
'''Citations'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Sensfuß, Frank; Ragwitz, Mario; Genoese, Massimo; Möst, Dominik (2007) : Agent-based simulation of electricity markets: a literature review, Working Paper Sustainability and Innovation, No. S5/2007, Fraunhofer-Institut für System- und Innovationsforschung ISI, Karlsruhe,&lt;br /&gt;
&lt;br /&gt;
- https://nbn-resolving.de/urn:nbn:de:0011-n-661574&lt;br /&gt;
&lt;br /&gt;
- https://www.econstor.eu/bitstream/10419/28520/1/570113083.pdf&lt;br /&gt;
&lt;br /&gt;
- https://www.tudelft.nl/evenementen/2021/powerweb/electricity-market-simulation-game ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''' Data '''&lt;br /&gt;
&lt;br /&gt;
- EXIST Transparency Portal https://seffaflik.epias.com.tr/transparency/&lt;br /&gt;
&lt;br /&gt;
- Electricity Transmission Operator https://www.teias.gov.tr/en-US&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Profit in store vs e-shop == &lt;br /&gt;
&lt;br /&gt;
''' Method:''' System Dynamics&lt;br /&gt;
&lt;br /&gt;
'''Software:''' Vensim&lt;br /&gt;
&lt;br /&gt;
'''Simulation'''&lt;br /&gt;
&lt;br /&gt;
An unnamed company that sells carpets has its own store in Prague. During COVID-19 the company reopened an e-shop, so it currently has two mutually supporting sales channels. Both types of stores have their advantages and disadvantages. At the same time, there are various factors that affect the profit. Examples of these factors are the following: customer satisfaction and needs (carpet quality, order processing speed, price, etc.), expenses (advertising, rent, employees, etc.), the possibility of expansion, etc.&lt;br /&gt;
&lt;br /&gt;
'''Model parameters'''&lt;br /&gt;
&lt;br /&gt;
*Expenses&lt;br /&gt;
**fixed&lt;br /&gt;
**variable&lt;br /&gt;
*Revenues&lt;br /&gt;
**customer satisfaction&lt;br /&gt;
**price&lt;br /&gt;
**a number of sales, etc.&lt;br /&gt;
&lt;br /&gt;
'''  The goal of the simulation '''&lt;br /&gt;
&lt;br /&gt;
The goal of this simulation is to find out how the company's profits will develop in the next 5 years, individually in the store and e-shop. Find out what parameters can increase profits the most, individually for each type of store, and compare these parameters.&lt;br /&gt;
&lt;br /&gt;
'''Data'''&lt;br /&gt;
&lt;br /&gt;
Real data provided by the owners of the store&lt;br /&gt;
&lt;br /&gt;
[[User:Ploo00|Ploo00]] ([[User talk:Ploo00|talk]]) 01:41, 16 December 2022 (CET)&lt;br /&gt;
:Please elaborate in more detail as we have discussed in class [[User:Oleg.Svatos|Oleg.Svatos]] ([[User talk:Oleg.Svatos|talk]]) 07:17, 17 December 2022 (CET)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;~~~~&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Comparison of strategies for finding a lost person in the forest==&lt;br /&gt;
&lt;br /&gt;
''' Author:''' Tomáš Kadaně (kadt02)&lt;br /&gt;
&lt;br /&gt;
'''Type:''' Multi-agent&lt;br /&gt;
&lt;br /&gt;
'''Software:''' Netlogo&lt;br /&gt;
&lt;br /&gt;
'''Description:''' &lt;br /&gt;
&lt;br /&gt;
The simulation will focus on comparing the times needed to find a lost person in a forest (area with trees).&lt;br /&gt;
The metric to compare the strategies will be the number of ticks needed to find the wanted person. Both the person being searched for and the searcher will be in a random location at the beginning of the simulation.&lt;br /&gt;
Within the simulation, I will take several measurements for each strategy and number of searchers (1 to 5), so that the number is statistically significant and use, for example, the means to compare which strategy is the most appropriate.&lt;br /&gt;
&lt;br /&gt;
The model will be able to simulate several search strategies &lt;br /&gt;
&lt;br /&gt;
*one step forward and then turn of random degree (-45 to 45 degrees), so random walk&lt;br /&gt;
*walk straight until it hits the edge of the forest or tree, then turn and continue walking straight&lt;br /&gt;
*first walk to the nearest corner of the forest and then a some kind of serpentine search&lt;br /&gt;
*possibly other strategies&lt;br /&gt;
&lt;br /&gt;
'''Goals:'''&lt;br /&gt;
&lt;br /&gt;
Finding the most appropriate strategy for finding a person in the forest depending on the number of people searching.&lt;br /&gt;
&lt;br /&gt;
'''Agents:'''&lt;br /&gt;
&lt;br /&gt;
*Searchers (e.g. police officers)&lt;br /&gt;
*Lost person&lt;br /&gt;
&lt;br /&gt;
'''Parameters:'''&lt;br /&gt;
&lt;br /&gt;
*Number of searchers&lt;br /&gt;
*Type of strategy&lt;br /&gt;
*Ticks needed to find person&lt;br /&gt;
&lt;br /&gt;
'''Possible extensions:'''&lt;br /&gt;
&lt;br /&gt;
*Searchers with certain pace of walking&lt;br /&gt;
*Finding the person won’t mean be at same location but seeing it for some distance (again certain ability of the searcher to see for certain distance)&lt;br /&gt;
*Cooperation of finders (formations, place distribution)&lt;br /&gt;
*Lost person will be moving when being looked for&lt;/div&gt;</summary>
		<author><name>Kadt02</name></author>
		
	</entry>
</feed>