这次用的例子是《运筹学 第四版》清华大学出版社 上的例子
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Text;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using ILOG.Concert;
using ILOG.CPLEX;
public class CTransportProblem//节点
{
public int m_nSupply;//行数
public int m_nDemand;//列数
public double[,] Cost=null;
public double[] x = null;
public double[] Supply;
public CTransportProblem()
{
}
public void SetParameters()
{
m_nSupply = 3;
m_nDemand = 3;
Supply = new double[m_nSupply];
Cost = Matrix.LoadData("TPCost.txt", '\t');
//Cost &