Hello Noli,

param B{I in I} := max{j inJ} A[i, j];

Best regards

Heinrich Schuchardt

http://www.xypron.de

Am 17.05.16 um 04:16 schrieb Noli Sicad

> 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 mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/help-glpk

_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to