Initializing help system before first use

setDictionarySize 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: 37.1.1.0
Syntax
C#
VB
public int setDictionarySize(
	int dict,
	int size
)

Parameters

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

Return Value

Type:  Int32
0 on success, 1 on failure.
Examples
XPRBprob prob = new XPRBprob("NewProb"); ... prob.setDictionarySize(BCLconstant.XPRB_DICT_NAMES, 100);
See Also