我在AMPL中有一个优化问题。我想知道如何在不同的步骤中使用自己的算法运行优化?我应该使用AMPL或Python或其他软件吗?
这是我想做的:
我想逐层搜索可行的统治。例如,如果我的问题在维度 3 中,我想在 3 个图层中搜索,例如:
first layer : x1+x2+x3=1
second layer: x1+x2+x3=2
third layer: x1+x2+x3=3
在每个层中,我都有一些新的约束,当搜索在该层中时,这些约束将处于活动状态。假设 、 分别是层 1、2 和 3 的约束。我希望问题按如下方式运行:C1C2C3
首先在第一层运行,并且必须处于活动状态:C1
`x1+x2+x3=1` and `C1` are active. (the constraints C2 ,C3 and 2 other layers are non-active)
然后在第二层中运行并且必须处于活动状态:C2
`x1+x2+x3=2` and `C2` are active. (the constraints C1 ,C3 and 2 other layers are non-active)
第三层在第三层运行,必须处于活动状态:C3
`x1+x2+x3=3` and `C3` are active. (the constraints C1 ,C2 and 2 other layers are non-active)
慕容森
元芳怎么了
随时随地看视频慕课网APP
相关分类