/src/main/java/net/finmath/montecarlo/assetderivativevaluation/products/BasketOption.java
} nameOfUnderliyngs = null;this.weights  = weights;
this.weights  = weights; nameOfUnderliyngs = null; }
private final double[] weights; private final String[] nameOfUnderliyngs; public BasketOption(final double maturity, final double strike, final double[] weights) { super(); this.maturity = maturity; this.strike = strike; <extra_id_0> @Override public RandomVariable getValue(final double evaluationTime, final AssetModelMonteCarloSimulationModel model) throws CalculationException { RandomVariable values = model.getRandomVariableForConstant(0.0); for(int underlyingIndex = 0; underlyingIndex<weights.length; underlyingIndex++) { final RandomVariable underlyingAtMaturity = model.getAssetValue(maturity, underlyingIndex); values = values.addProduct(underlyingAtMaturity, weights[underlyingIndex]);