mira_GetRegVarName
Returns the name of a regression variable provided by the regressor.
const char* mira_GetRegVarName(mrkernel* pmr, 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:
- const int regressionVariableCount = mira_GetRegVarCount(pmr);
- printf("%d regression variables:\n", regressionVariableCount);
- for (int i = 0; i < regressionVariableCount; i++) {
- printf(" %d : %s", i, mira_GetRegVarName(pmr, i));
- }
Output:
1 regression variables:
0 : brix