8.1.1. Environment management

Functions

MdoResult Mdo_createEnv(MdoEnvPtr *env);

This function creates a MindOpt environment.

Parameters
  • env – Pointer to the memory address of the environment pointer.

Return

A response code that specifies the status of the function.

See

Mdo_freeEnv()

void Mdo_freeEnv(MdoEnvPtr *env)

This function destroys an environemnt and all its associated data.

Parameters
  • env – Constant pointer to the memory address of the environment pointer.

See

Mdo_createEnv()

MdoResult Mdo_createMdlWithEnv(MdoMdlPtr *mdl, MdoEnvPtr env)

This function creates an empty MindOpt model with a given environment.

Parameters
  • mdl – Pointer to the memory address of the environment pointer.

  • env – Pointer to the global environemnt; this is optional.

Return

A response code that specifies the status of the function.

See

Mdo_freeMdl()