Exemple #1
0
        /// <summary>
        /// Aborts the current optimization process.
        /// </summary>
        public void Abort()
        {
            switch (Type)
            {
            case SolverType.CPLEX: _cplexStatusCallback.RequestStop(); break;

            case SolverType.Gurobi: GurobiModel.Terminate(); break;

            default: throw new ArgumentException("Unknown solver type: " + Type);
            }
        }