In a Python matrix, how to select each row once and get the lowest sum, considering there is a cost for selecting a column?

后端 未结 0 613
傲寒
傲寒 2021-01-25 16:03

In my real situation, I have a 68*160 large matrix.

In this example let\'s use a smaller one. each number represents a cost.

matrix = [[8, 5,      4,    7,         


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