I'm trying to make a scheme that will allocate resources between the warehouse and the factory.
The basic idea is that:
1. If more resources are produced than consumed, the surplus is sent to the warehouse.
2. if resources are consumed more than produced, the warehouse supplies the factory
I can not understand how to configure a logical network to realize this, I ask for help.
explanation screen