PuLP LpVariable of binary type giving value 2

后端 未结 0 947
囚心锁ツ
囚心锁ツ 2021-01-02 20:10

So I wrote few conditions

keys=[\'a\',\'b\',\'c\']
var=LpVariable.dicts(\'var\',(keys,[1,2,3]),cat=\'Binary\')

for key in keys:
   prob+=lpSum([var[key][j] f         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题