[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-glpk] GLPK 4.44: examples/csv/transp_csv.mod
From: |
Noli Sicad |
Subject: |
Re: [Bug-glpk] GLPK 4.44: examples/csv/transp_csv.mod |
Date: |
Mon, 7 Jun 2010 12:37:42 +1000 |
Andrew, Thanks.
Corrected now. Now, .val for .value.
Running perfectly in glpk4.44.
Interested? See the example below copy and paste to the
transp_csv.mod. This model from Xypron.
Noli
~~~~~~~~~~~~~~~~
solve;
table tab_result{(i,j) in K} OUT "CSV" "result.csv" :
i ~ plant, j ~ market, x[i,j] ~ shipment;
table ts {i in I} OUT 'CSV' 'supply.csv' :
i ~ PLANT,
supply[i].val ~ SUPPLY_VAL,
supply[i].lb ~ SUPPLY_LB,
supply[i].ub ~ SUPPLY_UB,
supply[i].dual ~ SUPPLY_DUAL;
table td {j in J} OUT 'CSV' 'demand.csv' :
j ~ MARKET,
demand[j].val ~ DEMAND_VAL,
demand[j].lb ~ DEMAND_LB,
demand[j].ub ~ DEMAND_UB,
demand[j].dual ~ DEMAND_DUAL;
On 6/7/10, Andrew Makhorin <address@hidden> wrote:
>> Is .value not supported in glpk4.44? What is the correct equivalent
>> suffix for ".value"?
>
> .lb lower bound or -Infinity
> .ub upper bound or +Infinity
> .status status:
> 0 - undefined
> 1 - basic
> 2 - non-basic on lower bound
> 3 - non-basic on upper bound
> 4 - non-basic free
> 5 - non-basic fixed
> .val primal value
> .dual dual value (combined Lagrange multiplier, reduced cost)
>
>> BTW, is there any reason why the GLPK Lab doesn't have all the
>> examples present in the glpk official release?
>
> No reason. When I tested scite, I copied only .mod files and forgot to copy
> others.
>
>