Let $\mathfrak{g}$ be a nilpotent Lie algebra. It is possible to find the Lie algebra of derivations of $\mathfrak{g}$ denoted $Der\mathfrak{g}.$
Then we could consider the maximal abelian subalgebra of the Lie algebra $Der\mathfrak{g}$ consisting of semisimple elements. It turned out to be that such abelian Lie algebra is called the maximal torus of derivations. Besides the dimension of the maximal torus is known to be the rank of the nilpotent Lie algebra $\mathfrak{g}$.
Could you please tell me if I could use the rank of a particular nilpotent Lie algebra to figure out the maximal possible dimension of the corresponding solvable Lie algebra having the nilpotent Lie algebra as the nilradical?