admin管理员组文章数量:1431468
By mistake, while defining a CP-SAT model, I've created two variables with the same name:
variable1 = model.NewIntVar(0, cp_model.INT32_MAX, "cool_name")
variable2 = model.NewIntVar(0, cp_model.INT32_MAX, "cool_name")
No error or warning is generated. Does it have any consequence at all?
By mistake, while defining a CP-SAT model, I've created two variables with the same name:
variable1 = model.NewIntVar(0, cp_model.INT32_MAX, "cool_name")
variable2 = model.NewIntVar(0, cp_model.INT32_MAX, "cool_name")
No error or warning is generated. Does it have any consequence at all?
Share Improve this question edited Nov 20, 2024 at 7:04 MarcoM asked Nov 19, 2024 at 10:46 MarcoMMarcoM 1,2042 gold badges10 silver badges26 bronze badges1 Answer
Reset to default 1nothing. We do not use names at all in the solver.
本文标签: or toolsWhat Happens if two variables have the same nameStack Overflow
版权声明:本文标题:or tools - What Happens if two variables have the same name? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745567632a2663857.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论