离散优化(discrete-optimization)-笔记

2019-02-24  本文已影响0人  烟流

工具

空间搜索

constraint programming 约束规划

局部搜索(local search)

start_temp //起始温度
end_temp //终止温度
curr_temp //当前温度
iter_n  //内循环次数
dec // 温度下降因子
curr_status //当前可行解
while curr_temp > end_temp:
  curr_temp *= dec
  for i in range(iter_n):
    neighbor = find_neighbor(curr_status)
    d = score(neighbor ) > score(curr_status)
    if d <0 or exp(-d/curr_temp) < random(0,1)
      curr_status = neightbor

线性规划(凸优化)

MIP

上一篇下一篇

猜你喜欢

热点阅读