Originally posted by: SystemAdmin
Daniel,
what you will typically have is a mixture of both.
Ti initialize extrenal data you will use (1), as this
e.g. the only way to read data from a database. And as
you told, data elements are kept together.
To optimize code performance you will copy the elements
of the tuple-set to an array as you described.
Memory is doubled at that moment but array access
is much faster than the "find" in the tuple set.
So far, in my applications memory requirements were
a minor topic than performance.
(Please note that it should be declared as
{tplObjectData } objectData[objects] = ...;
)
I hope these remarks are ofany help to you.
Regards
Norbert
Hope this will help
#DecisionOptimization#OPLusingCPLEXOptimizer