I would suggest to start with Euler capital allocation as a first step to dive into the subject, here is an example of introductory paper (Capital Allocation to Business Units and Sub-Portfolios: the Euler Principle, Dirk Tasche).
In general, I don't think that you will find any satisfactory theory on the subject for practical uses beyond the case of an aggregated normal distribution in your risk model (e.g. delta-normal).
For simulation based models, I generally do it by fixing a large number of simulations and then turning it into a numerical optmization problem with your specific constraints and fixed simulations. Note however that convergence of the VaR estimator can take some simulations and becomes difficult to look at theoretically, already with sums of lognormals it is a very challenging problem (see Tail behavior of sums and differences of log-normal random variables, ARCHIL GULISASHVILI and PETER TANKOV). So you need to put great care to be sure about the convergence of your estimator and to fix a high enough number of simulations in the first step, this can usually be done empirically.
However I give a warning here: it is not a good idea to directly optimize for VaR. The reason being that this risk measure is not a coherent risk measure. In particular, the sub-additivity axiom is not respected. For a risk measure $\rho : \mathcal{G} \mapsto \mathbb{R}$, the sub-additivity axiom writes:
$$\forall X_1, X_2 \in \mathcal{G}, \rho(X_1 + X_2) \leq \rho(X_1) + \rho(X_2),$$
and what it means is that putting all your eggs in one basket is riskier than diversifying. This has led to criticism from the academic community of the measure and of its use in risk-based financial regulations, because it can give institutions the wrong incentives for steering capital.
Here is the original paper abour coherent risk measures (COHERENT MEASURES OF RISK, Atzner, Delbean et al.). The expected shortfall is an example of a coherent risk measure.
I guess this does not exactly answer you question but I hope it gives some hints.