lap icon indicating copy to clipboard operation
lap copied to clipboard

what does the parameter cost_limit in lapjv mean?

Open Bilibilee opened this issue 3 years ago • 2 comments

hello,I have no idea about parameter cost_limit in lapjv function. It is considered as an upper limit for a cost of a single assignment. Do you mean cost larger than the cost_limit will be clipped to the cost_limit edge.

cost, x, y = lap.lapjv(cost_matrix, extend_cost=True, cost_limit=thresh)

does it equal to

cost_matrix[cost_matrix > thresh] = thresh 
cost, x, y = lap.lapjv(cost_matrix, extend_cost=True)

Bilibilee avatar Nov 06 '21 12:11 Bilibilee

@Bilibilee I also am unclear about this. Were you able to understand?

prapti1998 avatar Jan 06 '22 14:01 prapti1998

Values larger than cost_limit are disregarded. Which means that there will be unmatched rows.

mikel-brostrom avatar Dec 29 '22 20:12 mikel-brostrom