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 envr.
Synopsis
void close()
Envr.createModel()
Create a model object.
Synopsis
Model createModel(String name)Arguments
name: customized model name.Return
a model object.
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.