7.1.4. Parameter management

All the functions for parameter management are listed in this section, including

  • accessing or modifying an integer parameter or a real parameter;

  • reading the parameter settings from a file or writing the current parameter settings to a file (future release).

For detailed definitions of the parameters, see

Functions

MdoResult Mdo_setStrParam(MdoMdlPtr mdl, const char *par, const char *val)

This function changes the value of a string-valued parameter.

Parameters
  • mdl – Pointer to the model.

  • par – A string-valued parameter.

  • val – A new value for the string-valued parameter.

Return

A response code that specifies the status of the function.

See

Mdo_getStrParam()

MdoResult Mdo_getStrParam(const MdoMdlPtr mdl, const char *par, int size, char *val)

This function retrieves the value of a string-valued parameter.

Parameters
  • mdl – Pointer to the model.

  • par – A string-valued parameter.

  • size – Length of val.

  • val – The current value of the string-valued parameter.

Return

A response code that specifies the status of the function.

See

Mdo_setStrParam()

MdoResult Mdo_setIntParam(MdoMdlPtr mdl, const char *par, MdoI32 val)

This function changes the value of a 32-bit integer-valued parameter.

Parameters
  • mdl – Pointer to the model.

  • par – An integer-valued parameter.

  • val – A new value for the 32-bit integer-valued parameter.

Return

A response code that specifies the status of the function.

See

Mdo_getIntParam()

MdoResult Mdo_getIntParam(const MdoMdlPtr mdl, const char *par, MdoI32 *val)

This function retrieves the value of a 32-bit integer-valued parameter.

Parameters
  • mdl – Pointer to the model.

  • par – An integer-valued parameter.

  • val – The current value of the 32-bit integer-valued parameter.

Return

A response code that specifies the status of the function.

See

Mdo_setIntParam()

MdoResult Mdo_setRealParam(MdoMdlPtr mdl, const char *par, MdoReal val)

This function changes the value of a real-valued parameter.

Parameters
  • mdl – Pointer to the model.

  • par – A real-valued parameter.

  • val – A new value for the real-valued parameter.

Return

A response code that specifies the status of the function.

See

Mdo_getRealParam()

MdoResult Mdo_getRealParam(const MdoMdlPtr mdl, const char *par, MdoReal *val)

This function retrieves the value of a real-valued parameter.

Parameters
  • mdl – Pointer to the model.

  • par – A real-valued parameter.

  • val – The current value of the real-valued parameter.

Return

A response code that specifies the status of the function.

See

Mdo_setIntParam()