OutputHandler

public interface OutputHandler

Implement this interface to handle the outputs from the calls to any function that causes the underlying %AMPL interpreter to display a message.

Note that errors and warnings are not passed through this interface, see ampl::ErrorHandler for more information.

Methods

output

public void output(Kind kind, String msg)

This method is called when %AMPL sends some output derived from executing a statement

Parameters
  • kind – kind of the output of the %AMPL interpreter

  • msg – text of the output by the %AMPL interpreter