def matrix2string(matrix):
	"""
		From a 2d matrix; a string is returned in the form of a print
		
		This is to agree with the CPLEX array notation
		
		>>> matrix[rows][columns]
		
		Becomes
		
		[\n
		[ columns ],\n
		[ columns ],
		[ columns ],
		... rows ...\n
		]
		
		:param matrix: a 2d matrix
		:type matrix: int or float or String
		
	"""
	ret = "[\n"
	for r in matrix:
		ret = ret + str(r).replace("L","") + " ,\n"
		#Python prints an L at the end of long integers, but CPLEX does not get them. So they are removed
	ret = ret + "]"
	return ret