Set and get global and local parameters.
More...
Set and get global and local parameters.
bool getGlobalParameterByIndex |
( |
RRHandle |
handle, |
|
|
const int |
index, |
|
|
double * |
value |
|
) |
| |
Retrieve the global parameter value.
- Parameters
-
[in] | handle | Handle to a RoadRunner instance |
| index | The index to the global parameter (corresponds to position in getGlobalParametersIds(RRHandle handle)) |
| value | The value returned by the method |
- Returns
- Returns true if successful, false otherwise
Obtain the list of global parameter Ids.
- Parameters
-
[in] | handle | Handle to a RoadRunner instance |
- Returns
- Returns null if it fails, if succesful it returns a pointer to a RRStringArrayPtr struct
Retrieve the values for all the lgobal parameter values in a vector.
Example:
- Parameters
-
[in] | handle | Handle to a RoadRunner instance |
- Returns
- Returns the vector of global parameter values or null if an error occured
int getNumberOfGlobalParameters |
( |
RRHandle |
handle | ) |
|
Returns the number of global parameters in the model.
- Parameters
-
[in] | handle | Handle to a RoadRunner instance |
bool setGlobalParameterByIndex |
( |
RRHandle |
handle, |
|
|
const int |
index, |
|
|
const double |
value |
|
) |
| |
Set the value for a particular global parameter.
- Parameters
-
- Returns
- Returns true if successful