help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] Setting a single cell in a multidimensional subscripted var


From: Nilo Cesar Teixeira
Subject: [Help-glpk] Setting a single cell in a multidimensional subscripted var
Date: Thu, 17 Nov 2011 00:15:13 -0200

Hi guys,

Suppose this model:

--------------------------------
set S1;
set S2;

var H{S1, S2}, binary;

data;

set S1 := A B C;
set S2 := D E F;
--------------------------------

How can I set a single cell, say H[A, F] := 1 ?

The idea is to force specific cells to 1, and then let the solver maximize the rest of them.

Thank you.


--
Nilo Cesar Teixeira
address@hidden


reply via email to

[Prev in Thread] Current Thread [Next in Thread]