added calculation for weight = lift constraint