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: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntaxpublic int setDictionarySize(
int dict,
int size
)
Public Function setDictionarySize (
dict As Integer,
size As Integer
) As Integer
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
Int320 on success, 1 on failure.
ExampleXPRBprob prob = new XPRBprob("NewProb");
...
prob.setDictionarySize(BCLconstant.XPRB_DICT_NAMES, 100);
See Also