e04rxc adds an additional means of communication to functions within the NAG optimization modelling suite. It allows you to either read or write a piece of information in the handle in the form of a real array. The item is identified by
cmdstr and the direction of the communication is set by
ioflag.
The functionality is supported only by a selection of the solvers in the NAG Library, such as,
e04mtc and
e04ptc for the retrieval of the approximate solutions within the monitoring step or their final solutions. See the documentation of the individual solvers. See
Section 4.1 in the
E04 Chapter Introduction for more details about the NAG optimization modelling suite.
None.
Not applicable.
None.
This example demonstrates how to use
e04rxc to extract the current approximation of the solution when the monitoring function
monit is called during the solve by
e04mtc.
We solve the following linear programming problem:
subject to the bounds
and the general constraints
During the monitoring step of
e04mtc, if the three convergence measures are below an acceptable threshold, the approximate solution is extracted with
e04rxc and printed on the standard output.