I'm having a hard time formulating a model that will later be implemented with (Octave, glpk function) linear programming.
The problem appears to be quite simple but I fail to translate it into the mathematical notation.
I have warehouses, each of them accumulates certain amounts of material. This material needs to be transported to other locations called processing facilities. The processing facility can ether exist at the same location the warehouse is or not at all. The model would have to tell me which warehouses should have a processing facility with regards to cost.
I have a distance matrix between all warehouses and transportation cost per mile per tone of material.
Placing a processing facility has a price as well.
The problem I'm having is how to incorporate facility placement and transportation price to the model in such a way that the model would tell me where the processing should be done.
I've followed this example.
But I'm getting a feeling that my problem is a multivariate and should be solved differently.