The *SWIM* package provides weights on simulated scenarios from a
stochastic model, such that stressed model components (random variables)
fulfil given probabilistic constraints (e.g. specified values for risk
measures), under the new scenario weights. Scenario weights are selected by
constrained minimisation of the relative entropy to the baseline model.
Implemented constraints are stresses on the Vaule-at-Risk,
Expected-Shortfall, moments and probability intervals. Visual tools such as
plotting of the stressed empirical distribution function, histograms and
sensitivity measures are provided.