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