Returns the name of a regression variable provided by the regressor.


const char* mira_GetRegVarName(mrkernelpmr, int regVarInd);


Parameters:

  • pmr: A pointer to the runtime kernel returned by mira_Init.
  • regVarInd: Decision index to get the name from, must be less than mira_GetRegVarCount.


Return value:

The name of the regression variable as string or NULL if there was an error.


Description:

mira_GetRegVarName will return the name of a regression variable, it requires that a model has been loaded using mira_LoadModel.


Example:

  1. const int regressionVariableCount = mira_GetRegVarCount(pmr);
  2. printf("%d regression variables:\n", regressionVariableCount);
  3. for (int i = 0; i < regressionVariableCount; i++) {
  4.     printf(" %d : %s", imira_GetRegVarName(pmr, i));
  5. }


Output:

1 regression variables:

 0 : brix