added optimize_weights.R
added optimize_weights.R