Jump to content
• Advertisement

# Corporation AI

This topic is 1922 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

## Recommended Posts

Given a set of owned buildings, each with their own production chain(s) that turn a given set of inputs into a given set of outputs, how should I determine how much to produce (and thus how much input to buy at the lowest possible prices) and what price to set to sell the most for each output?

#### Share this post

##### Share on other sites
Advertisement
There is a whole field devoted to answering that kind of problem. I hope you have a few years to spare...

#### Share this post

##### Share on other sites
If your model is sufficiently simple, this can be boiled down to a linear programming problem. Still not trivial, but much easier than the full problem space might suggest.

#### Share this post

##### Share on other sites

I need an algorithm that uses past prices, sales and production to adjust future prices and production. It must be subject to changing conditions.

#### Share this post

##### Share on other sites

I need an algorithm that uses past prices, sales and production to adjust future prices and production. It must be subject to changing conditions.

No, you don't need an algorithm. You need to understand what data you have, what it is that you want to maximize, subject to what restrictions and using what models for things you need to estimate from incomplete data (e.g. the demand at each price point). Then, and only then, you will need an algorithm to perform the optimization. But the hard work is in the modeling of the problem.

#### Share this post

##### Share on other sites

Modeling Random Processes for Engineers and Managers by James Solberg. (I'm assuming probability distributions somewhere in the model.) Easy to understand and lots of problems that are similar to OPs question.

#### Share this post

##### Share on other sites
So you want me to try to graph the supply-demand curves and find where they intersect? I'm afraid my simulation might not conform to the laws of supply and demand.

What if I used neural networks? I can train it to try to maximize profit on a minute-to-minute basis. How would I do that? What data would be relevant?

- number of competitor buildings of same type
- number of labourers
- input prices

How would I build it to deal with a variable number of input resources for different production chains? I.e., you might need only stone to produce cement, but for metal you'd need electricity and ore. Would I need to train a neural net for each building type and production chain, if a building type has more than one?

#### Share this post

##### Share on other sites

Modeling Random Processes for Engineers and Managers by James Solberg. (I'm assuming probability distributions somewhere in the model.) Easy to understand and lots of problems that are similar to OPs question.

Thanks, I'm getting it.

#### Share this post

##### Share on other sites

• Advertisement
• Advertisement

• ### Popular Contributors

1. 1
2. 2
3. 3
4. 4
Rutin
13
5. 5
• Advertisement

• 26
• 10
• 9
• 9
• 11
• ### Forum Statistics

• Total Topics
633695
• Total Posts
3013376
×

## Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!