$A$ is an adjacency matrix and $W$ is the weight matrix. So the problem is to find the maximum matching, such that for those nodes are connected, the weight between them is limited by $d$, which $W_{ij}\le d$.
So I start with the objective $$\max \sum_{i}^n \sum_{i<j} A_{ij}$$ and one more constraint $\sum_{j} A_{ij} = 1, \, \forall i=1 \cdots n$, which basically require there is no shared node in two links.
My question is how to formulate the constraint such that the weight is limited if $A_{ij} = 1$?
For some graph(actually many), it does not have a maximum matching which cover all vertices(nodes). So, I think that you need to reduce your constraint: $\Sigma_j A_{ij}\leq1,\; \forall i$.