A Simple Pollution Algorithm
Releasethe Krakken
This is just for fun. So from a programming perspective how would you code the pollution algorithm.
Algorithm as in : a set of rules for solving a problem in a finite number of steps,
Variables
NumberofJobs
FactoryPollution
BaseProduction
[/b]FactoryProduction[/b]
Job
In programming, a variable is a value that can change, depending on conditions or on information passed to the program.
Ok as we remember Plato said it would be based on number of jobs performed the previous day. So our first variable is Number of Jobs.
But lets take the real life example of a chimney as found in most houses and factories.
Chimney : a hollow structure that allows the smoke from a fire inside a building to escape to the outside usually a pipe.
So what pollutants is the average factory making.
Air pollution as in smoke and as well chemicals that causes water pollution but is usually directed to a chemical dam.
So lets say Plato increases pollution depending on the factory you work in so we must add a variable FactoryPollution
Where Factory pollution would be a gradient according to production from 1 to 0.
if Plato just calculate it by jobs and disregards the production of a factory then its easy and everyone can just morph into the biggest factories such as Rubber Plantations for example. But to counter this and to come to fair pollution the production would quantify the pollution. Yes we can also go over the threshold of one and say for example Factory Pollution = 550/250 = 2.2 jobs
In normal life air pollution is measured as follow
Different techniques are used to measure the concentration of various pollutants in the air. Local Authorities measure nitrogen dioxide using both automatic monitoring and diffusion tubes.
So we add for clarity a further variable JobPollution
Where JobPollution = factorypollution x 1
and where he biggest factory would be 1
Ok at this stage we see that base production could be a way to calculate jobs. So lets add this as variable along with production therefore and a variable Job. Base production would be the value of the highest producing factory unaffected by bonuses
therefore Job = Factory production / Base Production
Lets say Rubber 250/250 = 1
Saltpeter - 175/250 = 0.70
Aluminium - 125/250 = 0.5
Oil rig - 70/250 = 0.28
Iron Mine - 35/250 = 0.14
For a factory lets say weapons how will we calculate
The base production of all factories is the same so this would make this problematic as it would eliminate Q1 factories totally if this job = a job in a Q7 factory. So we can add a further quantifier to this unless we want a job per a factory policy where pollution could be reduced by morphing to higher quality food for example.
Ok here after some thought I thought to myself that I would move to what is consumed
For example a Q7 factory at max value uses 4400 WRM
So Job = FactoryConsumption/ Base production
So for Q7 factory boosted would produce Jobs = 4400/250 = 17.6
So we now have only 1 thing to work out how will pollution then be calculated. So what percentage would it represent. For example 50% Will it play second fiddle to country bonuses and region bonuses. What would be max jobs = max pollution.
Lets look at Serbia and we can take that for their income of 300000 per day and work taxes being 1.5 about its about 200000 jobs we can conservatively say 70% of income must be from factories so 140000 jobs a day.
So lets make the threshold 100000 jobs and the pollution 50% then it would mean
if jobs > threshold
pollution = 50%
else
(Jobs / 100000 * 50)/ 100 = pollution percentage
Comments
Great job mate, I just wish that admins had as much brainstorming as you did.. but i kinda doubt that.
I expect something moronic its beyond imagination of a normal person.
yeah probably I dont expect much from them either.
voted
v
Nisam školovala
gestemd