Exemple #1
0
 public void TSSNetWork()
 {
     //rtboc.Text += "系统正在自行建立时空状态网络,请稍候..." + "\r\n";
     Ds = net.ConnDataBase();
     //net.LoadData(Ds,2);
     //net.LoadData_csv(1);
     net.CreateT_S_NetWork();
     //net.CreateT_S_S_NetWork();
     //return net;
     // rtboc.Text += "时空状态网络已经建成,开始计算..." + "\r\n";
     lag.IterationGap(ref net, 0.0005);
 }
        private void Form1_Load(object sender, EventArgs e)
        {
            Ds = cnw.ConnDataBase();
            //cnw.LoadData(Ds, 2);
            //cnw.LoadData_csv(1);
            cnw.CreateT_S_NetWork();
            //cnw.CreateT_S_S_NetWork();
            //cnw.CreateT_S_S_NetWork(int mindrivetime,int maxdrivetime,int maxconntime,int mintranslation,int minrelaxtime,int maxrelaxtime,int minoutrelaxtime,int maxoutrelaxtime,int mindaycrewtime,int maxdaycrewtime);
            cnw.CreateT_S_S_NetWork(70, 300, 40, 15, 3312, 3330, 3400, 3900, 150, 300);
            //(int maxdrivetime,int mindrivetime,int maxconntime,int mintranslation,int minrelaxtime,int maxrelaxtime,int minoutrelaxtime,int maxoutrelaxtime,int maxdaycrewtime,int mindaycrewtime)
            int k = cnw.T_S_S_NodeList.Count;

            Dt = cnw.ShowResult1();
            dataGridView1.DataSource = Dt;
        }