This section presents examples that illustrate the use of the OPTMODEL procedure to solve quadratic programming problems. Example 10.1 illustrates how to model a linear least squares problem and solve it by using PROC OPTMODEL. Example 10.2 and Example 10.3 show in detail how to model the portfolio optimization and selection problems.