ContentsIndexHome
PreviousUpNext
IAimmsMathProgramCallback::GetMaximumCutElements Method

Returns the maximum number of elements in a user cut.

virtual _LONG_T GetMaximumCutElements() = 0;

The maximum number of elements among all cuts added during the last call to the RunCallback method.

The GetMaximumCutElements method returns the maximum number of elements (coefficients) in a user cut added during a cuts callback. It should only be called just after the RunCallback method returns from a cuts callback.

The main purpose of the GetMaximumCutElements method is to obtain the maximum number of elements among all cuts and use this number to allocate buffers for the GetNextCuts method.

Copyright © 1993–2016 by AIMMS B.V. All rights reserved.