help-glpk
[Top][All Lists]
Advanced

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

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


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

Got it.

s.t. Restriction : H['A', 'F'] = 1;

2011/11/17 Nilo Cesar Teixeira <address@hidden>
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




--
Nilo Cesar Teixeira
address@hidden


reply via email to

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