Set belongings in AMPL -


I intend to do an optimization in which I will get a minimum path between some supply nodes and demand nodes. I have a group of companies for this. These have some supply nodes and demand nodes, such as "control", for example stock locations and factories. However, other companies are allowed to cut products from other companies' shares, and they are returned to their demand nodes.

For this, I would like to define some supply nodes which are the company C (c) control, and some kind of demand nodes I am thinking that subsets etc. Must not be valid (unless I do not feel wrong), because it includes elements in both C and these nodes. As an example, I want company C in the supply nodes I and company C2 to control supply nodes in C. Can it be achieved in AMPL?

Regards, Kandez

You set multi-dimensional for:

< Pre> set c; Set supply nodes; Company base within set {S, SupplyNodes};

The second index of company friendly is controlled in the company c , i.e. setof {(c, n) company Based on: C == c2} == g .

Alternatively, you can use an indexed set:

  Set up CompanySupplies {C} within SupplyNodes;  

Where Company Analogy [C] Controlled by the company supply c

<>

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -