Use LinearFunction instead of NumericLinearFunction in interface (fix #3)