Initializing help system before first use

XPRSwriteprtrange (WRITEPRTRANGE)

XPRSwriteprtrange

WRITEPRTRANGE


Purpose
Writes the ranging information to a fixed format ASCII file, problem_name .rrt. The binary range file ( .rng) must already exist, created by XPRSrange ( RANGE).
Synopsis
int XPRS_CC XPRSwriteprtrange(XPRSprob prob);
WRITEPRTRANGE
Argument
prob 
The current problem.
Related controls
Integer
Number of lines between page breaks.

Double
Tolerance on print values.

Example 1 (Library)
The following example solves the LP problem and then calls XPRSrange ( RANGE) before outputting the result to file for printing:
XPRSreadprob(prob, "myprob", "");
XPRSlpoptimize(prob, "");
XPRSrange(prob);
XPRSwriteprttange(prob);
Example 2 (Console)
An equivalent set of commands for the Console user would be:
READPROB
LPOPTIMIZE
RANGE
WRITEPRTRANGE
Further information
1. ( Console) There is an equivalent command PRINTRANGE which outputs the same information to the screen. The format is the same as that output to file by XPRSwriteprtrange ( WRITEPRTRANGE), except that the user is permitted to enter a response after each screen if further output is required.
2. The fixed width ASCII format created by this command is not as readily useful as that produced by XPRSwriterange ( WRITERANGE). The main purpose of XPRSwriteprtrange ( WRITEPRTRANGE) is to create a file that can be printed. The format of this fixed format range file is described in Appendix Log and File Formats.
Related topics