Envr::Envr()

Constructor of COPT Envr object.

Synopsis

Envr()

Envr::Envr()

Constructor of COPT Envr object, given a license folder.

Synopsis

Envr(const char *szLicDir)

Arguments

szLicDir: directory having local license or client config file.

Envr::Envr()

Constructor of COPT Envr object, given an Envr config object.

Synopsis

Envr(const EnvrConfig &config)

Arguments

config: Envr config object holding settings for remote connection.

Envr::BindNumaCpu()

Bind the CPUs for the current process to a NUMA node.

Synopsis

void BindNumaCpu(int numaNode)

Arguments

numaNode: ID of a NUMA node.

Envr::BindNumaMem()

Bind memory for the current process to a NUMA node (Linux only).

Synopsis

void BindNumaMem(int numaNode)

Arguments

numaNode: the ID of a NUMA node.

Envr::Close()

Close remote connection and token becomes invalid for all problems in current envr.

Synopsis

void Close()

Envr::CreateModel()

Create a COPT model object.

Synopsis

Model CreateModel(const char *szName)

Arguments

szName: customized model name.

Return

a COPT model object.

Envr::GetCpuAffinity()

Get CPU affinity for the current process, which is saved in an integer array.

Synopsis

int GetCpuAffinity(int *cpuList, int len)

Arguments

cpuList: a list of CPU IDs.

len: length of the CPU list.

Return

actual size of binding CPUs.

Envr::GetNumaNodeCount()

Get count of NUMA nodes.

Synopsis

int GetNumaNodeCount()

Return

count of NUMA nodes.

Envr::SetCpuAffinity()

Set CPU affinity with given mask string.

Synopsis

void SetCpuAffinity(const char *hexMask)

Arguments

hexMask: CPU mask string of hexadecimal characters.