[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-glpk] Subsetting param (e.g. param A{i in I, j in J} to param B{i
From: |
Noli Sicad |
Subject: |
[Help-glpk] Subsetting param (e.g. param A{i in I, j in J} to param B{i in I} i.e. dropping j index |
Date: |
Tue, 17 May 2016 12:16:23 +1000 |
Hi,
(GLPK/MathProg / GMPL question)
I would like to subset param (e.g. param A{i in I,j in J} to param B{i
in I} i.e. dropping j index.
param A{i in I,j in J} >= 0, default 0;
param B{i in I} >= 0, default 0;
###########
The data
The input,
param A:=
1 3 40.1
2 5 50.2
3 6 35.3
.
Result would be like this:
param B:=
1 40.1
2 50.2
3 35.3
.
##########
What would be param B{i in I}:=?
Any other suggestion how get create param B{i in I} from param A{i in
I,j in J}.
#param B{i in I} >= 0, default 0;
param B{i in I}:= ?
Thanks.
Noli
- [Help-glpk] Subsetting param (e.g. param A{i in I, j in J} to param B{i in I} i.e. dropping j index,
Noli Sicad <=