2 CREATE USER glpk@localhost IDENTIFIED BY 'gnu';
3 GRANT ALL PRIVILEGES ON glpk.* TO glpk@localhost;
6 DROP TABLE transp_capa;
7 CREATE TABLE transp_capa (
10 PRIMARY KEY ( PLANT(127) )
12 INSERT INTO transp_capa ( PLANT, CAPA ) VALUES ( 'Seattle', 350 );
13 INSERT INTO transp_capa ( PLANT, CAPA ) VALUES ( 'San Diego', 600 );
15 DROP TABLE transp_demand;
16 CREATE TABLE transp_demand (
19 PRIMARY KEY ( MARKET(127) )
21 INSERT INTO transp_demand ( MARKET, DEMAND ) VALUES ( 'New York', 325 );
22 INSERT INTO transp_demand ( MARKET, DEMAND ) VALUES ( 'Chicago', 300 );
23 INSERT INTO transp_demand ( MARKET, DEMAND ) VALUES ( 'Topeka', 275 );
25 DROP TABLE transp_dist;
26 CREATE TABLE transp_dist (
30 PRIMARY KEY ( LOC1(127), LOC2(127) )
32 INSERT INTO transp_dist ( LOC1, LOC2, DIST ) VALUES ( 'Seattle', 'New York', 2.5 );
33 INSERT INTO transp_dist ( LOC1, LOC2, DIST ) VALUES ( 'Seattle', 'Chicago', 1.7 );
34 INSERT INTO transp_dist ( LOC1, LOC2, DIST ) VALUES ( 'Seattle', 'Topeka', 1.8 );
35 INSERT INTO transp_dist ( LOC1, LOC2, DIST ) VALUES ( 'San Diego', 'New York', 2.5 );
36 INSERT INTO transp_dist ( LOC1, LOC2, DIST ) VALUES ( 'San Diego', 'Chicago', 1.8 );
37 INSERT INTO transp_dist ( LOC1, LOC2, DIST ) VALUES ( 'San Diego', 'Topeka', 1.4 );
39 DROP TABLE transp_result;
40 CREATE TABLE transp_result (
44 PRIMARY KEY ( LOC1(127), LOC2(127) )