﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	revision
347	Computing the total flow cost in DIMACS solver	Peter Kovacs	Peter Kovacs	"The DIMACS solver tool is usually tested by users who would like to get initial information about the performance of LEMON. ""Bad results"" were reported sometimes for min. cost flow problems. These were  overflow problems (using `int`, the default value type) but just when the total flow cost is calculated, not in the algorithm itself. Of course, the used number type can be changed with command line arguments, but it is not clear for the users that this might be the problem. On the other hand, using e.g. `long long` instead of `int` makes the algorihtm slower although it would not be necessary.

However, the min cost flow solvers provide a template variant of `totalCost()`. The attached patch calls this template function with `long long` if the values type is `int`. This avoids such overflow problems and so helps making the initial impressions of some users better.

"	enhancement	closed	major	LEMON 1.2 release	core	hg main	done			
