Click or drag to resize

XPRBprobsetDictionarySize Method

Set the size of a dictionary. This method sets the size of the names or indices dictionaries. It can only be called immediately after the creation of a problem. Once the names dictionary has been disabled it cannot be enabled any more. All methods relative to the names cannot be used if this dictionary has been disabled. The indices dictionary cannot be disabled.

Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
public int setDictionarySize(
	int dict,
	int size
)

Parameters

dict  Int32
The name of the index set. Possible values:
  • BCLconstant.XPRB_DICT_NAMES – Names dictionary.
  • BCLconstant.XPRB_DICT_IDX – Index set dictionary.
size  Int32
The integer size of the dictionary. 0 disables the dictionary.

Return Value

Int32
0 on success, 1 on failure.
Example
C#
XPRBprob prob = new XPRBprob("NewProb");
...
prob.setDictionarySize(BCLconstant.XPRB_DICT_NAMES, 100);
See Also