摘要: TimeSpants1=newTimeSpan(DateTime.Now.Ticks);//获取当前时间的刻度数//执行某操作TimeSpants2=newTimeSpan(DateTime.Now.Ticks);TimeSpants=ts2.Subtract(ts1).Duration();//时间差的绝对值 stringspanTotalSeconds=ts.TotalSeconds.ToS... 阅读全文
posted @ 2011-07-17 11:25 Elitez 阅读(133) 评论(0) 推荐(0) 编辑
摘要: using ILOG.Concert;using ILOG.CPLEX;using System;public class Rand { public int[] iResult = new int[1000]; public void random_int(int iDown, int iUp , int number) { Random ro = new Random(); for (int ... 阅读全文
posted @ 2011-05-17 08:57 Elitez 阅读(1267) 评论(0) 推荐(0) 编辑
摘要: /// <summary>/// 计算程序的运行时间/// </summary>class StopWatch{ private int mintStart; public void start() { mintStart = Environment.TickCount; } public long elapsed() { return Environment.TickCount - mintS... 阅读全文
posted @ 2011-05-11 14:53 Elitez 阅读(1277) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication15{ class Lag { void Lagg(double ub, double step, params double[] B) { } } #region 动态规划 pu... 阅读全文
posted @ 2011-04-24 23:04 Elitez 阅读(251) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication15{ class Lag { void Lagg(double ub, double step, params double[] B) { } } #region 动态规划 pu... 阅读全文
posted @ 2011-04-22 16:07 Elitez 阅读(136) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication17{ class DP { double dynamic(int n,double k,double c,double h, params int[] demand ) { in... 阅读全文
posted @ 2011-04-22 10:56 Elitez 阅读(188) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication15{ class Program { static void Main(string[] args) { double ub=10; double step = 0.01; do... 阅读全文
posted @ 2011-04-21 20:49 Elitez 阅读(828) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication17{ class Program { static void Main(string[] args) { int n = 5; int k = 250; int c = 2; i... 阅读全文
posted @ 2011-04-21 20:48 Elitez 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2011-04-21 20:04 Elitez 阅读(155) 评论(0) 推荐(0) 编辑