Difference between revisions of "RetrieverBreeder"

From Simulace.info
Jump to: navigation, search
 
(17 intermediate revisions by the same user not shown)
Line 7: Line 7:
  
 
----
 
----
 
Recommended work outline:
 
 
Problem definition - a description of the situation you solve (i.e. the task)
 
Method - the discussion of possible solutions, the selection of method and tools for the solution, reasons for such choice (why the selected methods and tools are the best for the problem)
 
Detailed description of the method, including parameters, ranges, schemes, model limitations, etc. The description must be detailed enough that anybody could replicate the experiment event without your model source codes.
 
Results - list of results, their analysis, interpretation and evaluation.
 
Conclusion - how the problem was solved
 
Citations
 
Model source code (xls, spm, nlogo, mdl, etc. file)
 
  
 
=Problem definition=
 
=Problem definition=
Line 25: Line 15:
 
in that order.
 
in that order.
 
</div>
 
</div>
<br>
 
  
 
=Detailed problem definition=
 
=Detailed problem definition=
Line 31: Line 20:
 
he goal of the simulation is to simulate the whole simplified process to find the optimal amount of female golden retriever dogs owned and/or kept regarding all given variables and facts.  
 
he goal of the simulation is to simulate the whole simplified process to find the optimal amount of female golden retriever dogs owned and/or kept regarding all given variables and facts.  
 
Goal is to only have the ideal number of breeding dogs capable to fulfill the given birth giving plan, attempt to sell as many born puppies as possible and at the same time indirectly let the owner of a kennel satisfy the demand for puppies originating from the kennel.
 
Goal is to only have the ideal number of breeding dogs capable to fulfill the given birth giving plan, attempt to sell as many born puppies as possible and at the same time indirectly let the owner of a kennel satisfy the demand for puppies originating from the kennel.
All puppies born in a kennel are pedigreed and their genealogical tree is thoroughly recorded.  
+
All puppies born in a kennel are pedigreed and their genealogical tree is thoroughly recorded.
 +
The kennel contains 5 breeding female dogs at current state.  
 
</div>   
 
</div>   
<br>
 
  
 
=Method=
 
=Method=
Line 43: Line 32:
 
Model has been adapted for currency of american dollar (exchange rate set to 25 CZK / USD).
 
Model has been adapted for currency of american dollar (exchange rate set to 25 CZK / USD).
 
</div>
 
</div>
<br>
 
  
 
=Model=
 
=Model=
Line 76: Line 64:
  
 
<div>
 
<div>
The  model is based on real data gathered in the stated sources.
+
The  model is based on real data gathered from personal experiences, partly provided by a real kennel owner.
 
</div>
 
</div>
  
Line 162: Line 150:
  
 
=Results=
 
=Results=
 +
 +
<h2>CASE N. 1 - Keeping current situation (5)</h2>
  
 
The model has been set to have 5 breeding female dogs at the beginning, in other words in once cycle (year and a half) the kennel can offer puppies from 5 golden retrievers litters in total.
 
The model has been set to have 5 breeding female dogs at the beginning, in other words in once cycle (year and a half) the kennel can offer puppies from 5 golden retrievers litters in total.
In the simulation, there was 51 puppies generated - 18 male and 30 female.
+
In the simulation, there was 51 puppies generated - 18 male and 30 female. <br>
17 male puppies would be bought.
+
17 male puppies would be bought.<br>
25 female puppies would be bought.
+
25 female puppies would be bought.<br>
6 puppies would be left with no arranged owner, grew and had to be advertised individually.
+
6 puppies would be left with no arranged owner, grew and had to be advertised individually.<br>
2 puppies would die right after birth.
+
2 puppies would die right after birth.<br>
 
1 puppy would be kept in the kennel as an exceptional one and grow up with its mother.
 
1 puppy would be kept in the kennel as an exceptional one and grow up with its mother.
  
 
[[File:Xpokl18_result1.png]]
 
[[File:Xpokl18_result1.png]]
  
'''Financial view''' <br><br>
+
'''Financial view''' <br>
 
42 puppies would be bought in total each for 600 USD = + 25,200 USD <br>
 
42 puppies would be bought in total each for 600 USD = + 25,200 USD <br>
 
50 puppies would survive and = 50 * 220 = - 11,000 USD <br>
 
50 puppies would survive and = 50 * 220 = - 11,000 USD <br>
Line 179: Line 169:
 
Profit: 13,690 USD<br>
 
Profit: 13,690 USD<br>
  
<div>'''If the kennel owner decided to add one breeding female dog (to have 6 in total):'''</div>
+
<h2>CASE N. 2 - One more breeding female dog (6)</h2>
  
In the simulation, there was 54 puppies generated - 15 male and 36 female.
+
In the simulation, there was 54 puppies generated - 15 male and 36 female.<br>
14 male puppies would be bought.
+
14 male puppies would be bought.<br>
28 female puppies would be bought.
+
28 female puppies would be bought.<br>
9 puppies would be left with no arranged owner, grew and had to be advertised individually.
+
9 puppies would be left with no arranged owner, grew and had to be advertised individually.<br>
No puppy would die right after birth.
+
No puppy would die right after birth.<br>
3 puppies would be kept in the kennel as an exceptional one and grow up with its mother.
+
3 puppies would be kept in the kennel as an exceptional one and grow up with its mother. <br>
  
[[File:Xpokl18_result2.png]]
+
'''Financial view'''<br>
 
 
'''Financial view'''<br><br>
 
 
42 puppies would be bought in total each for 600 USD = + 25,200 USD<br>
 
42 puppies would be bought in total each for 600 USD = + 25,200 USD<br>
 
54 puppies would survive and = 54 * 220 = - 11,880 USD<br>
 
54 puppies would survive and = 54 * 220 = - 11,880 USD<br>
Line 196: Line 184:
 
Profit: 12,555 USD<br>
 
Profit: 12,555 USD<br>
  
 +
- Lower earnings were achieved and more puppies have been left to grow up to the stage that demand for them dropped drastically. <br>
 +
- Their well being is not guaranteed and a lot of additional effort would have to be given to find a new owners.<br>
 +
- In this case none of desired benefits would be obtained.<br>
  
<div></div>
+
<h2>CASE N. 3 - One less breeding female dog (4)</h2>
  
 +
In the simulation, there was 38 puppies generated - 14 male and 20 female.<br>
 +
14 male puppies would be bought.<br>
 +
20 female puppies would be bought.<br>
 +
No puppy would be left with no arranged owner, grew and had to be advertised individually.<br>
 +
2 puppies would die right after birth.<br>
 +
2 puppies would be kept in the kennel as an exceptional one and grow up with its mother.<br>
 +
 +
'''Financial view'''<br>
 +
34 puppies would be bought in total each for 600 USD = + 20,400 USD<br>
 +
54 puppies would survive and = 36 * 220 = - 7,920 USD<br>
 +
0 puppies would require additional expenses = 6 * 85 USD = 0 USD<br>
 +
Profit: 12,480 USD<br>
 +
 +
- Even though earnings are lower, all puppies were passed off and no potential was wasted.<br>
 +
- This option fits the requirements if the priority of the kennel owner is to take care of new born puppies with the inevitable risk that demand may be left unsatisfied and a lot of costumers may be lost in the process.<br>
  
 
=Conclusion=
 
=Conclusion=
<div>
+
<div>As expected the proportion between earnings and puppy well-being at the end seems to be functioning almost every time in opposition,
</div>
+
but in one case conducted simulation has showed that both aspects can get worse at the same time.
 +
 
 +
Changes made in the second simulation (increasing the amount of dogs by one) have not shown to be improving neither of desired benefits.
 +
The idea of having more breeding female dogs in order to either make earn more or has proven to be not working as expected - too many puppies did not get sold and less money was earned.
 +
 
 +
The third simulation turned out to be very merciful to all puppies leaving none with no arranged customer, yet the earning were the lowest of all cases.
 +
It seems that the current female breeding dogs amount is sufficient to have the highest possible profit when considering all dogs covered in the breeding process.
 +
In case that the dog owner finds it really problematic to find home for too grown puppies, one if his breeding dogs should retire. </div>
 +
'''Given the ordered goals in Problem definition section, optimal number of breeding dog is one less than the number that is allocated in the current state, which means only 4 active breeding female dogs.'''
  
 +
=Sources=
 +
Dog Time, Golden Retriever - http://dogtime.com/dog-breeds/golden-retriever <br>
 +
All about goldens, Dog Breeding - http://www.all-about-goldens.com/dog-breeding.html <br>
 +
American Kennel Club, Golen Retriever - http://www.akc.org/dog-breeds/golden-retriever <br>
 +
GoldStockFund, The (very) Basics About Breeding Your Golden Retriever - http://www.goldstockfund.org/edu/breeding_basics.html<br>
 +
Genuine Goldens, Golden Retriever Breed Information - http://www.genuinegoldens.com/breedinfo.html<br>
 
=Code=
 
=Code=
[[File:filefile]]
+
[[File:RetrieverBreeder.spm]]

Latest revision as of 15:39, 17 January 2016

  • Project name: RetrieverBreeder
  • Class: 4IT496 (WS 2015/2016)
  • Author: Bc. Lucie Pokorná
  • Model type: Discrete-event simulation
  • Software used: SimProcess, trial version

Problem definition

Simulation should answer the question how many female dogs is optimal to keep for:
1. making sure that all dogs get their owner
2. satisfying the demand for golden retriever puppies
in that order.

Detailed problem definition

he goal of the simulation is to simulate the whole simplified process to find the optimal amount of female golden retriever dogs owned and/or kept regarding all given variables and facts. Goal is to only have the ideal number of breeding dogs capable to fulfill the given birth giving plan, attempt to sell as many born puppies as possible and at the same time indirectly let the owner of a kennel satisfy the demand for puppies originating from the kennel. All puppies born in a kennel are pedigreed and their genealogical tree is thoroughly recorded. The kennel contains 5 breeding female dogs at current state.

Method

When first seeing the SIMPROCESS possibilities and observing the way to show the simulation running, an idea of pet breeding simulation almost immediately came to mind. Such a simulation compound of the generating (literally generating in this case) an entity - puppy delivery, delay - puppy growth and then disposing the entity - either finding a match with a corresponding demand (a waiting customer), offering and older puppy for lower price, or just keeping the particular one in a kennel - is exactly the discrete-event type of simulation that could be shown quite transparently, comprehensible yet clearly enough using this simulation tool.

While the simulation has been conducted, no significant restrictions were found using just a trial version of the program. Few not that necessary activities had to be cut and the rest of the simulation optimized to make sure that the limit for a number of activities is not depriving the simulation of possibly interesting results. Model has been adapted for currency of american dollar (exchange rate set to 25 CZK / USD).

Model

The simulation consists of 4 processes:

  • "Birth giving" - puppy generating
  • "Growing Up" - delay activity
  • "Staying" - the kennel owner decides to keep a puppy
  • "Leaving" - ideally a customer picks up a puppy, non ideally puppy is left "unwanted" for a longer period of time and has to be later sold for a lowered price or given entirely

Xpokl18 model.png

Just one of the processes - the "Leaving" process - contains most of the activities used starting from the probability based division of puppy gender, customer decision making situation and handling an occasional exception - the case when there is no demand for a particular puppy and not even the kennel owner desires to keep it.


The simulation is set to be run in numerous iterations (replications). The more breeding female dogs the kennel owns, the more birth giving occasions there are. For the purposes of this simulation there is no need to simulate breeding dogs in any way, the only thing that is important is the recurrences of such events such is birth givings. It has been decided that each replication will simulate just a one litter had by one female breeding dog. In average, female golden retriever female is capable to give birth once a year and a half when the dog's health and well being is considered a number one priority. Simulation is set to show just a one such cycle. The lasting of a whole simulation including several replications is set to be an exact year and a half. That means that the number of replications equals to number of female breeding dogs within 18 months and actual breeding dogs as en entity or a resource may now be omitted in the simulation.

The probability distribution for the demand is set to be invariable in a several runs of a simulation set period of time for a slight simplification. From a personal experience, demand for pedigreed puppies from a particular kennel changes quite a lot, yet the average remains at a very similar level, no matter how many puppies were sold in the past. It is possible and recommendable to adjust the value higher (lower) in a consequent time period - when the time simulated in a simulation passes - when the average demand grows (decreases) based on the actual demand counts have been observed and noted. The actual values are dependent on set number of replication. Normal distribution was chosen to be calculated with.

  • When a number of replications is changed, demands has to be modified as well. The demand is set to be around 25 Nor(25,2) customers desiring a male puppy and 30 Nor(30,2) customers desiring a female puppy per 18 months. In case of having 5 breeding dogs (5 litters per 18 months), demand has to be divided by 5 to distribute evenly for each litter.

The model is based on real data gathered from personal experiences, partly provided by a real kennel owner.

Entities

Puppy
- puppy born at the beginning of the simulation
Staying Puppy
- Dog that the kennel owner decides to keep (and in case of a female dog potentially transform into a breeding dog, but that is not part of this simulation)
Male Puppy
- Puppy that turned out to be a male
Female Puppy
- Puppy that turned out to be a female
Grown Puppy
- Such puppy was not chosen by any customer during customer visitations and has to be treated in a different manner to make sure that it will find its new home

Resources

Expenses
- Every puppy costs 222 USD per average to take care and nourish in the kennel
- Puppy that survives the birth giving automatically consumes this resource
Additional Expenses
- A grown puppy costs additional 85 USD per average to take care and nourish in the later stages of its life
- Such puppy has to be taken care of while waiting in the kennel 

Demand has been implemented as a resource being used within the visitations activity. Normal distribution was used.

Demand for male dogs
Demand for female dogs

Processes

Birth Giving

Golden retrievers give birth to approximately 8-12 puppies per litter, but extremes may might occur as well. Probability distribution used is normal distribution (Nor(10,2)). When puppy is born, it can die in approximately 8% of cases. The rest of surviving puppies carry on to the upcoming process, which is growing up.

Xpokl18 birth.png


Growing Up

Variable expenses necessary per puppy are in average 220 USD (diet: special nourishment for puppies, vet care: vaccines, preventing of possible worm infestation). Expenses are used in this phase, because they do not vary significantly in the whole process of growth. Every puppy that makes into this process has to be taken care of and fed, taken care of and kept in a safe environment with its mother at least for two months since birth. Therefore a delay activity has been implemented with a fixed time span of two months.

Xpokl18 growing.png


Staying

When a kennel owner decides to keep the puppy because of its exceptional characteristics, it is pre-selected and marked as a not for sale puppy - simulation has different development process. The puppy can be kept for breeding or dog show purposes. Such an exception can rarely take place, yet there is a possibility of it happening. The possibility is set to be 0,045%.

Xpokl18 staying.png


Leaving

First thing that has to happen is a gender differentiation. The ratio is pretty even, there is on average slightly more female dogs then male dogs. The probability has been set to 0,47% for males and the rest for females.

After the gender recognition, puppies are let to be visited by costumers - already gender defined. Visitation time last about one month (exponential distribution Exp(30) in days) and can last up to 2 months. In these visitation activities the demand resource takes place. In simulation the demand is understood as the final number of customers decided and willing to buy a puppy of some particular gender. Hesitations and mind changing aspect were not taken into consideration, because customers are not handled as an entity and most importantly their mind is already set.

When the resources are consumed (there is no more customers to pick up a puppy) and approximately a month passes, puppies are not bought (disposed of the desired way) and they get older. Three months age in a puppy is an age than the majority of customers with a demand for a pedigreed puppy do not find optimal any more. Grown puppies stay in the kennel and are taken care of even further with an additional expenses (85 USD). Expenses at this point consist of a nourishment mostly, therefore it is lower than the initial cost.

The puppy is then advertised individually and given to a customer that does not mind the slightly older age of a puppy and still desires a pedigreed puppy. Pricing at this point is set to zero, because the price drops very quickly with age and the expenses start to exceed the possible gain, so these left-over puppies are might be eventually making a loss. Nevertheless, the most important goal is to find them a new home and increase their chances to have a fully-fledged lifetime.

Xpokl18 leaving.png

Results

CASE N. 1 - Keeping current situation (5)

The model has been set to have 5 breeding female dogs at the beginning, in other words in once cycle (year and a half) the kennel can offer puppies from 5 golden retrievers litters in total. In the simulation, there was 51 puppies generated - 18 male and 30 female.
17 male puppies would be bought.
25 female puppies would be bought.
6 puppies would be left with no arranged owner, grew and had to be advertised individually.
2 puppies would die right after birth.
1 puppy would be kept in the kennel as an exceptional one and grow up with its mother.

Xpokl18 result1.png

Financial view
42 puppies would be bought in total each for 600 USD = + 25,200 USD
50 puppies would survive and = 50 * 220 = - 11,000 USD
6 puppies would require additional expenses = 6 * 85 USD = - 510 USD
Profit: 13,690 USD

CASE N. 2 - One more breeding female dog (6)

In the simulation, there was 54 puppies generated - 15 male and 36 female.
14 male puppies would be bought.
28 female puppies would be bought.
9 puppies would be left with no arranged owner, grew and had to be advertised individually.
No puppy would die right after birth.
3 puppies would be kept in the kennel as an exceptional one and grow up with its mother.

Financial view
42 puppies would be bought in total each for 600 USD = + 25,200 USD
54 puppies would survive and = 54 * 220 = - 11,880 USD
9 puppies would require additional expenses = 6 * 85 USD = - 765 USD
Profit: 12,555 USD

- Lower earnings were achieved and more puppies have been left to grow up to the stage that demand for them dropped drastically.
- Their well being is not guaranteed and a lot of additional effort would have to be given to find a new owners.
- In this case none of desired benefits would be obtained.

CASE N. 3 - One less breeding female dog (4)

In the simulation, there was 38 puppies generated - 14 male and 20 female.
14 male puppies would be bought.
20 female puppies would be bought.
No puppy would be left with no arranged owner, grew and had to be advertised individually.
2 puppies would die right after birth.
2 puppies would be kept in the kennel as an exceptional one and grow up with its mother.

Financial view
34 puppies would be bought in total each for 600 USD = + 20,400 USD
54 puppies would survive and = 36 * 220 = - 7,920 USD
0 puppies would require additional expenses = 6 * 85 USD = 0 USD
Profit: 12,480 USD

- Even though earnings are lower, all puppies were passed off and no potential was wasted.
- This option fits the requirements if the priority of the kennel owner is to take care of new born puppies with the inevitable risk that demand may be left unsatisfied and a lot of costumers may be lost in the process.

Conclusion

As expected the proportion between earnings and puppy well-being at the end seems to be functioning almost every time in opposition,

but in one case conducted simulation has showed that both aspects can get worse at the same time.

Changes made in the second simulation (increasing the amount of dogs by one) have not shown to be improving neither of desired benefits. The idea of having more breeding female dogs in order to either make earn more or has proven to be not working as expected - too many puppies did not get sold and less money was earned.

The third simulation turned out to be very merciful to all puppies leaving none with no arranged customer, yet the earning were the lowest of all cases. It seems that the current female breeding dogs amount is sufficient to have the highest possible profit when considering all dogs covered in the breeding process.

In case that the dog owner finds it really problematic to find home for too grown puppies, one if his breeding dogs should retire.

Given the ordered goals in Problem definition section, optimal number of breeding dog is one less than the number that is allocated in the current state, which means only 4 active breeding female dogs.

Sources

Dog Time, Golden Retriever - http://dogtime.com/dog-breeds/golden-retriever
All about goldens, Dog Breeding - http://www.all-about-goldens.com/dog-breeding.html
American Kennel Club, Golen Retriever - http://www.akc.org/dog-breeds/golden-retriever
GoldStockFund, The (very) Basics About Breeding Your Golden Retriever - http://www.goldstockfund.org/edu/breeding_basics.html
Genuine Goldens, Golden Retriever Breed Information - http://www.genuinegoldens.com/breedinfo.html

Code

File:RetrieverBreeder.spm