When it comes to statistical software, always check out UCLA's Academic Technology Services (ATS) for statistical computing. They have an impressive library of stuff online. For instance, 4.2 Constrained Linear Regression. I hope that helps. If not, search around their website for Stata stuff. I'm an R person, myself, so I can't answer specifics about Stata.