Rev Q for optimization

Created rev Q for simplified version of P to begin optimization routine