Initializing help system before first use

XPRSgetversionnumbers

Purpose
Returns the Optimizer version numbers split into major, minor, and build number.
Topic area
Synopsis
int XPRS_CC XPRSgetversionnumbers(int *p_major, int *p_minor, int *p_build);
Arguments
p_major 
Pointer to integer to receive the major version number. Can be NULL.
p_minor 
Pointer to integer to receive the minor version number. This is a number from 0 to 99. Can be NULL.
p_build 
Pointer to integer to receive the build number. This is a number from 0 to 99. Can be NULL.
Related controls
Integer
The Optimizer version number

Example
The following calls XPRSgetversionnumbers to return version information at the start of the program:
int major, minor, build;
XPRSgetversionnumbers(&amp:major, &minor, &build);
printf("Xpress Optimizer version %d.%02d.%02d\n", major, minor, build);
Further information
1. This function always returns 0.
2. This function supersedes the VERSION control, which only returns the first two parts of the version number. Release 2004 versions of the Optimizer have a three-part version number.
3. This function can be called without calling XPRSinit() first.
Related topics

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.