Procedure
Use the constrained optimization to obtain a solution that satisfies the BCs approximately.
The obtained solution ?m(x) = N(x,p) may be corrected via the RBF approach to exactly satisfy the BCs.
The correction will be small and local, centered around the boundary points.