insightdispatch
procedure insightdispatch
  procedure loaddata
  writeln('Loading initial input data')
 end-procedure
 procedure solvemodel
  writeln('Constructing and solving model')
 end-procedure
!@insight.execmodes.LOAD
public procedure myproc1
 ! Scenario is being 'loaded' through Xpress Insight
 ! Call user function to initialize input data and then terminate
 loaddata
end-procedure
!@insight.execmodes.RUN
public procedure myproc2
 ! Scenario is being 'run' through Xpress Insight
 ! Populate with Insight scenario data then call user function to
 ! solve model
 insightpopulate
 solvemodel
end-procedure
!@insight.execmodes.MY_CUSTOM_EXECUTION_MODE
public procedure myproc3
  ! This would be an execution mode defined with an @insight.execmodes
  ! annotation, to indicate some custom behavior
  insightpopulate
  ! Now take whatever custom action is appropriate...
end-procedure
!@insight.execmodes.NONE
public procedure myproc4
 ! Model is being run outside of Xpress Insight
 ! Call user function to initialize input data and call
 ! user function to solve model
 loaddata
 solvemodel
end-procedure
insightdispatch
© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.
 
