# 练习 1b 两个要求

注意：创建一个名为练习 1b 的新网络并设置运行网络之前的时间步长，如练习 1a 中所述。

### **创建拓扑** <a href="#creating-topology" id="creating-topology"></a>

导航到左侧面板，然后单击 **构建** 打开 “节点” 列表。

拖放到工作区地图：

· 1 个输入节点 ![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2F530325344-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOe4DHiaeqejzGopyV9BO%252Fuploads%252FCoS4XcwZOuFle3QT9Mpk%252Fimage.png%3Falt%3Dmedia%26token%3Dd6df9b97-17a7-47d9-ad78-9ef423225af8\&width=300\&dpr=4\&quality=100\&sign=75d0000c\&sv=2)

· 2 个输出节点 ![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2F530325344-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOe4DHiaeqejzGopyV9BO%252Fuploads%252FZLZ00umDcfJzcZq7WUkf%252Fimage.png%3Falt%3Dmedia%26token%3D400e55c9-b110-4188-ba3f-6722be5f09cb\&width=300\&dpr=4\&quality=100\&sign=78031169\&sv=2)

点击 **边缘** ![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2F530325344-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOe4DHiaeqejzGopyV9BO%252Fuploads%252FTXZyiFqD4gO5uM14q6hN%252F2.png%3Falt%3Dmedia\&width=300\&dpr=4\&quality=100\&sign=77a9541c\&sv=2) 激活 “链接模式”。然后连接节点，如下图所示：

![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2F530325344-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOe4DHiaeqejzGopyV9BO%252Fuploads%252Ft55lMBTlvMALRpg9oyMu%252F3.png%3Falt%3Dmedia\&width=768\&dpr=4\&quality=100\&sign=ce14fa7a\&sv=2)

再次点击 **边缘** ![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2F530325344-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOe4DHiaeqejzGopyV9BO%252Fuploads%252FgbpPleYgvI4pqFlGhBHP%252F4.png%3Falt%3Dmedia\&width=300\&dpr=4\&quality=100\&sign=2960901b\&sv=2) 停用 “链接模式”。

注意：要了解有关不同节点类型的更多信息，请参阅此处的文档。

### **配置节点的属性** <a href="#configure-nodes-attributes" id="configure-nodes-attributes"></a>

双击每个节点打开屏幕右侧的节点面板并设置节点，如下图所示

![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2F530325344-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOe4DHiaeqejzGopyV9BO%252Fuploads%252FHzpqqxmmj6ErhEtNjjNp%252F5.png%3Falt%3Dmedia\&width=768\&dpr=4\&quality=100\&sign=bb021d9d\&sv=2)

在左侧面板上单击 **运行模型** ![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2F530325344-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOe4DHiaeqejzGopyV9BO%252Fuploads%252FJ2Cpej7WSy7zZSAmJDhg%252F6.png%3Falt%3Dmedia\&width=300\&dpr=4\&quality=100\&sign=b1afc1b3\&sv=2)。

将弹出一个新窗口，点击 **提交**

![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2F530325344-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOe4DHiaeqejzGopyV9BO%252Fuploads%252FGAj0JyjPpsGsTAuMYcEJ%252F7.png%3Falt%3Dmedia\&width=768\&dpr=4\&quality=100\&sign=b31b85c1\&sv=2)

Water Strategy 允许您在同一张图表上可视化不同的结果。要执行此操作，请单击任意节点，然后 **点击该图标** ![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2F530325344-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOe4DHiaeqejzGopyV9BO%252Fuploads%252FwBIFizAlk9m3NF3wZkH9%252F8.png%3Falt%3Dmedia\&width=300\&dpr=4\&quality=100\&sign=b8f4a27c\&sv=2) 对于该属性 **模拟\_流。**

![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2F530325344-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOe4DHiaeqejzGopyV9BO%252Fuploads%252FuOKZzyrHl7vWSumAPHgJ%252Fimage.png%3Falt%3Dmedia%26token%3Da1931db4-c36d-465d-83d5-16d33c7baf1f\&width=768\&dpr=4\&quality=100\&sign=54b800b9\&sv=2)

从下拉列表中选择所需的属性，然后单击图标 ![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2F530325344-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOe4DHiaeqejzGopyV9BO%252Fuploads%252FPBYqLtDuzR5AW7TmA8Az%252F10.png%3Falt%3Dmedia\&width=300\&dpr=4\&quality=100\&sign=ed865c13\&sv=2)

![](https://water-strategy.gitbook.io/~gitbook/image?url=https%3A%2F%2F530325344-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOe4DHiaeqejzGopyV9BO%252Fuploads%252FVwuTvyXpluKlgAUil55m%252F11.png%3Falt%3Dmedia\&width=768\&dpr=4\&quality=100\&sign=45e02e50\&sv=2)

<figure><img src="https://2456626420-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FroBiEJ09sszXPUfSv5uk%2Fuploads%2Fgit-blob-fc8bacbb1ccf5a7091fc5e10580fe82f88bdc1e1%2Fimage%20(375).png?alt=media" alt=""><figcaption></figcaption></figure>

### **解释** <a href="#explanation" id="explanation"></a>

输入节点每天最多可以提供 10 mm³ /天，但两个输出节点的总需求均为 16 mm3/天。由于这两个需求都有负的分配罚款，因此该网络会根据这些罚款的幅度进行优先排序。分配惩罚越多的输出节点获得更高的优先级。

在这种情况下，左侧输出节点的分配惩罚为-10，与右侧输出节点的分配惩罚为 -5 相比，该优先级更高。因此，水将首先分配给左侧输出节点，所有剩余的水将分配给右侧的输出节点。
