Using templates

Default templates are provided in CPLEX® Studio for model, data, and settings files.

In IBM® ILOG® CPLEX Studio, templates are regular .mod, .dat, and .ops files with a default content to help you start your own new files more quickly.

Using the default templates

When you use File > New to create a new OPL model (.mod), data (.dat), or settings (.ops) file, predefined templates are inserted at the top of each file as a header.

Typically, a template contains placeholder strings that are automatically replaced by predefined values. For instance, the predefined default.mod template contains the following header:


/*********************************************
 * CPLEX Studio %v Model
 * Author: %a
 * Creation Date: %d at %t
 *********************************************/

in which

This... is replaced by...
%v the version of CPLEX Studio
%a the Windows user name
%d the date
%t the time