コード例 #1
0
 /// <summary>
 /// Transforms this result to a line that can be written to a file
 /// </summary>
 /// <returns>The result in a line</returns>
 public string GetResultLine()
 {
     return
         (SolutionTime.TotalSeconds.ToString(ExportationConstants.FORMATTER) + ExportationConstants.CSV_DELIMITER +
          ObjectiveValue.ToString(ExportationConstants.FORMATTER) + ExportationConstants.CSV_DELIMITER +
          BestBound.ToString(ExportationConstants.FORMATTER) + ExportationConstants.CSV_DELIMITER +
          Gap.ToString(ExportationConstants.FORMATTER));
 }
コード例 #2
0
        public IBestBound Create(
            decimal value)
        {
            IBestBound result = null;

            try
            {
                result = new BestBound(
                    value);
            }
            catch (Exception exception)
            {
                this.Log.Error("Exception message: " + exception.Message + " and stacktrace " + exception.StackTrace);
            }

            return(result);
        }
コード例 #3
0
        public IBestBound Create(
            decimal value)
        {
            IBestBound result = null;

            try
            {
                result = new BestBound(
                    value);
            }
            catch (Exception exception)
            {
                this.Log.Error(
                    exception.Message,
                    exception);
            }

            return(result);
        }