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