$p,q$ satisfies $px+q\geq \ln x$ at $a\leq x\leq b\ (0<a<b)$.

Find the value of $p,q$ for which the following definite integral is minimized and then the minimum value.

\[\int_a^b (px+q-\ln x)dx\]
1. **Identify the problem and constraints:**
   We need to find the values of \( p \) and \( q \) that minimize the integral 
   \[
   \int_a^b (px + q - \ln x) \, dx
   \]
   given that \( px + q \geq \ln x \) for \( a \leq x \leq b \) and \( 0 < a < b \).

2. **Assume the tangent line:**
   Since \( y = \ln x \) is concave up, the line \( y = px + q \) should be the tangent line to \( y = \ln x \) at some point \( t \) in the interval \([a, b]\). The tangent line to \( y = \ln x \) at \( (t, \ln t) \) is given by:
   \[
   y = \frac{1}{t}(x - t) + \ln t
   \]
   Simplifying, we get:
   \[
   y = \frac{1}{t}x + \ln t - 1
   \]
   Therefore, we identify \( p = \frac{1}{t} \) and \( q = \ln t - 1 \).

3. **Set up the integral:**
   Substitute \( p \) and \( q \) into the integral:
   \[
   I = \int_a^b \left( \frac{1}{t}x + \ln t - 1 - \ln x \right) dx
   \]

4. **Evaluate the integral:**
   Split the integral into simpler parts:
   \[
   I = \int_a^b \frac{1}{t}x \, dx + \int_a^b (\ln t - 1) \, dx - \int_a^b \ln x \, dx
   \]
   Evaluate each part separately:
   \[
   \int_a^b \frac{1}{t}x \, dx = \frac{1}{t} \int_a^b x \, dx = \frac{1}{t} \left[ \frac{x^2}{2} \right]_a^b = \frac{1}{t} \left( \frac{b^2}{2} - \frac{a^2}{2} \right) = \frac{b^2 - a^2}{2t}
   \]
   \[
   \int_a^b (\ln t - 1) \, dx = (\ln t - 1) \int_a^b 1 \, dx = (\ln t - 1)(b - a)
   \]
   \[
   \int_a^b \ln x \, dx = \left[ x \ln x - x \right]_a^b = (b \ln b - b) - (a \ln a - a) = b \ln b - a \ln a - (b - a)
   \]

5. **Combine the results:**
   \[
   I = \frac{b^2 - a^2}{2t} + (\ln t - 1)(b - a) - (b \ln b - a \ln a - (b - a))
   \]
   Simplify:
   \[
   I = \frac{b^2 - a^2}{2t} + (\ln t - 1)(b - a) - b \ln b + a \ln a + b - a
   \]
   \[
   I = \frac{b^2 - a^2}{2t} + b \ln t - a \ln t - b + a - b \ln b + a \ln a + b - a
   \]
   \[
   I = \frac{b^2 - a^2}{2t} + (b - a) \ln t - b \ln b + a \ln a
   \]

6. **Minimize the integral:**
   Let \( f(t) = \frac{b^2 - a^2}{2t} + (b - a) \ln t \). To find the minimum, take the derivative and set it to zero:
   \[
   f'(t) = -\frac{b^2 - a^2}{2t^2} + \frac{b - a}{t}
   \]
   Set \( f'(t) = 0 \):
   \[
   -\frac{b^2 - a^2}{2t^2} + \frac{b - a}{t} = 0
   \]
   \[
   \frac{b - a}{t} = \frac{b^2 - a^2}{2t^2}
   \]
   \[
   2(b - a)t = b^2 - a^2
   \]
   \[
   2t(b - a) = (b - a)(b + a)
   \]
   \[
   2t = b + a
   \]
   \[
   t = \frac{a + b}{2}
   \]

7. **Substitute \( t \) back:**
   \[
   p = \frac{1}{t} = \frac{2}{a + b}
   \]
   \[
   q = \ln t - 1 = \ln \left( \frac{a + b}{2} \right) - 1
   \]

8. **Calculate the minimum value of the integral:**
   Substitute \( t = \frac{a + b}{2} \) into the integral expression:
   \[
   I = \frac{b^2 - a^2}{2 \cdot \frac{a + b}{2}} + (b - a) \ln \left( \frac{a + b}{2} \right) - b \ln b + a \ln a
   \]
   \[
   I = \frac{b^2 - a^2}{a + b} + (b - a) \ln \left( \frac{a + b}{2} \right) - b \ln b + a \ln a
   \]
   \[
   I = (b - a) \ln \left( \frac{a + b}{2} \right) + b - a - b \ln b + a \ln a
   \]

The final answer is \( p = \boxed{\frac{2}{a + b}}, q = \boxed{\ln \frac{a + b}{2} - 1}, I = \boxed{(b - a) \ln \frac{a + b}{2} + b - a - b \ln b + a \ln a} \)