make weight vectors
search for finite time optimum