Initializing help system before first use

XPRS_ge_getcomputeallowed

Purpose
Query whether the current application is allowed to use the Insight Compute interface.
Topic areas
Synopsis
int XPRS_CC XPRS_ge_getcomputeallowed(int* p_allow);
Argument
p_allow 
Memory location in which the value will be returned. Value will equal one of the following constants.
XPRS_ALLOW_COMPUTE_ALWAYS 
Always allow solves to be sent to Compute.
XPRS_ALLOW_COMPUTE_NEVER 
Never allow solves to be sent to Compute.
XPRS_ALLOW_COMPUTE_DEFAULT 
Allow solves to be sent to Compute only from non-OEM applications.
Example
The following shows how this function might be used:
int isComputeAllowed;
if (XPRS_ge_getcomputeallowed(&isComputeAllowed)!=0) {
  switch (isComputeAllowed) {
    case XPRS_ALLOW_COMPUTE_ALWAYS:
      printf("Compute integration is always allowed.\n");
      break;
    case XPRS_ALLOW_COMPUTE_NEVER:
      printf("Compute integration is never allowed.\n");
      break;
    case XPRS_ALLOW_COMPUTE_DEFAULT:
      printf("Compute integration is allowed if "
        "this is not an OEM application.\n");
      break;
  }
}
Further information
This value supplied by this function describes whether this process would be allowed to use Insight 5 Compute Interface - this is not affected by whether or not the user has tried to enable use of the Insight 5 Compute interface.
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.