# Optimizing the model

Filter Content By
Version
Languages

## Optimizing the model

Now that the model has been built, the next step is to optimize it:

      // Optimize model
model.optimize();


This routine performs the optimization and populates several internal model attributes (including the status of the optimization, the solution, etc.).