(参考文献:Quantum Bridge Analytics I: a tutorial on formulating and using QUBO models)

一般形式

The Quadratic Unconstrained Binary Optimization model (QUBO)
在这里插入图片描述

根据二元的特性,可以将线性部分转化为二次部分

The linear part can be transformed into the quadratic part by this equation

在这里插入图片描述

对于有约束的优化问题,可以引入激活函数

As for constrained models, can introduce quadratic penalties
在这里插入图片描述
在这里插入图片描述

对于penalty value的取值

For the selection of penalty value, a penalty value that is too large can impede the solution process as the penalty terms overwhelm the original objective function information, making it difficult to distinguish the quality of one solution from another. On the other hand, a penalty value that is too small jeopardizes the search for feasible solutions. Taking P to be some percentage (75–150%) of this estimate is often a good place to start. For problems with a linear objective function, the scalar P (with respect to transformation#2) can be chosen as small as the largest objective function coefficient.

等式约束

A general purpose approach

在这里插入图片描述
在这里插入图片描述

不等式约束——引入松弛变量

As for problems with inequality constraints, we can always be put in this form by including slack variables and then representing the slack variables by a binary expansion.

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐