Envr.Envr()

Constructor of COPT Envr object.

Synopsis

Envr()

Envr.Envr()

Constructor of COPT Envr object, given a license folder.

Synopsis

Envr(string licDir)

Arguments

licDir: directory having local license or client config file.

Envr.Envr()

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

Synopsis

Envr(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 environment. To release the environment, call Dispose() for that.

Synopsis

void Close()

Envr.CreateModel()

Create a model object.

Synopsis

Model CreateModel(string name)

Arguments

name: customized model name.

Return

a model object.

Envr.Dispose()

Release this environment reference on the calling thread. Prefer disposing explicitly (via a using statmement) on the same thread, instead of relying on the GC finalizer thread. Note the underlying native environment is reference-counted and is destroyed when the last referring to it is released.

Synopsis

void Dispose()

Envr.GetCpuAffinity()

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

Synopsis

int[] GetCpuAffinity()

Return

an integer array of CPU IDs.

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(string hexMask)

Arguments

hexMask: CPU mask string of hexadecimal characters.