Traffic-toolbox Function AddDemands - Add demands to a net list
Calling Sequence
- AddDemands(td,hd,demand)
Parameters
- %net
: global variable Netlist databasis
- td
: row vector, tail nodes numbers of the added demands
- hd
: row vector, head nodes numbers of the added demands
- demand
: row vector, the values of the added demands
Description
AddDemands adds demands to a net list.
EXAMPLES
%net=TrafficExample('Diamond');
ShowNet()
// Add a new demand from node 3 to node 2 with value 10 in the same net
AddDemands(3,2,10);
// We can see the modifications with
ShowNet()
See Also