FICO
FICO Xpress Optimization Examples Repository
FICO Optimization Community FICO Xpress Optimization Home
Back to examples browserPrevious exampleNext example

Interrupting a running model using Ctrl-C

Description
Demonstrates how to interrupt a running model with Ctrl-C.

The C program requires the mos file to be pre-compiled.


Source Files
By clicking on a file name, a preview is opened at the bottom of this page.
mmexctc.c[download]

Data Files





toolong.mos

(!*******************************************************
  * Mosel Example Problems                              *
  * ======================                              *
  *                                                     *
  * file toolong.mos                                    *
  * ````````````````                                    *
  * Example for the use of the Mosel language           *
  * (Define a very large loop)                          *
  *                                                     *
  * (c) 2008 Fair Isaac Corporation                     *
  *     author: Y. Colombani, 2001                      *
  *******************************************************!)

model 'Too long loop'

 forall(i in 1..10000,j in 1..10000) t:=i+j

end-model

Back to examples browserPrevious exampleNext example