Added positive constraints for weights