ILOG_OPL_基础.pptVIP

  • 64
  • 0
  • 约 70页
  • 2016-12-09 发布于湖北
  • 举报
第六章 ILOG OPL 基础 OPL 建模技巧 上述的模型看起来每什么问题,但Route 采用{ string p; string o; string d; }的模式,多个产品可能对应一个 string o; string d ,模型的表达和初始化仍然存在冗余,可以进一步改进成下面的结构: tuple Connection { string o; string d; } tuple Route { string p; Connection e; } {Route} Routes = ...; {Connection} Connections = { c | p,c in Routes }; tuple Supply { string p; string o; } {Supply} Supplies = { p,c.o | p,c in Routes }; float supply[Supplies] = ...; tuple Customer { string p; string d; } {Customer} Customers = { p,c.d | p,c in Routes }; float demand[Customers] = ...; 注意c.o的用法 Tuple嵌套定义 第六章 ILOG OPL 基础 OPL 建模技巧 {string}

文档评论(0)

1亿VIP精品文档

相关文档