You have to consider some scenarios. If it is patented, then it can be leased out and some optimal level can be envisioned. If it is not patented and is presented to a developer, then it can be easily stolen, and optimum become vague. If you cannot find a developer, then optimum is not in question. I refer you to the book: "Industrial Organization: Theory and Practice," by Done E Waldmand and Elizabeth J. Jensen, Pearson/Addison Wesley publisher that has a chapter on the subject. Good luck in your research.