python调用SCIP求解p-center和p-median选址问题

文章介绍了p-中心选址问题和p-中位选址问题的定义,这两个经典的离散优化问题在物流、通讯等领域有广泛应用。文章提供了Python代码示例,利用SCIP库来解决这两种问题,优化目标分别是最大化最小覆盖距离和最小化加权距离总和。

1. p-中心选址问题

1.1 问题定义

p-中心问题(p-Center Problem) 是一类经典的离散选址问题,已被证明是NP-难问题。p-中心问题是研究其他选址问题的基础,在物流设施规划、通讯系统设计、军队、医院、紧急情况和有服务标准承诺的服务行业等诸多领域具有十分广阔的应用背景。

  • p-中心问题是指选定 p 个位置建造服务设施,使得所有客户到最近设施距离中的最大值最小,也就是说,使得最坏情况最优、最大损失最小。

In such problems, we require coverage of all demands, but we seek to locate a given number of facilities in such a way that minimizes coverage distance

  • 顶点p-中心问题(vertex center problem)是指待建服务设施的位置都位于网络图的顶点上。

If facility locations are restricted to the nodes of the network, the problem is a vertex center problem.

1.2 数学模型

数学模型见参考文献[1]
在这里插入图片描述

  • 决策变量
    在这里插入图片描述

  • 参数

    • i i i: 需求点的索引
    • j j j: 设施点的索引
    • d i j d_{ij} dij : 需求点 i i i 到设施点 j j j 的距离
    • P P P : 设施的总数量

2. p-中位选址问题

2.1 问题定义

p-中位问题(p-Median Problem) 是指在备选集里选定 p p p个点建造设施,使得需求点到离它最近设施的加权距离总和最小。p-中位问题对模拟现实世界比如公共场所、仓库等的选址非常有用,目标是寻求最小费用。也属于NP-难问题。

The P-median problem uses this measure of effectiveness, and is stated as follows: Find the location of P facilities so as to minimize the total demand-weighted travel distance between demands and facilities.

2.2 数学模型

数学模型见参考文献[1]
在这里插入图片描述

  • 决策变量
    在这里插入图片描述

  • 参数

    • i i i: 需求点的索引
    • j j j: 设施点的索引
    • d i j d_{ij} dij : 需求点 i i i 到设施点 j j j 的距离
    • P P P : 设施的总数量
    • h i h_i
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值