% the main function
% finished
% created Sep 10 2009
% t, d: amount, and distance from the production base to delivery
% T, D: amount, and distance from the delivery to demand
% decision varaible:
% x(1): t11
% x(2): t12
% x(3): t21
% x(4): t22
% x(5): t31
% x(6): t32
% x(7): T11
% x(8): T12
% x(9): T13
% x(10): T21
% x(11): T22
% x(12): T23
% x(13): x1, for the first delivery centre, x coordinate
% x(14): y1, for the first delivery centre, y coordinate
% x(15): x2, for the second delivery certre, x coordinate
% x(16): y2, for the second delivery certre, y coordinate
function product_delivery
clc, clear
% A * x <= b
A = [1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 1