Create ORcode.R

A basic illustration of how to solve an optimization problem in R, very small scale though and only applicable for study purpose.