hi, thank you for response. the variable was declared as Binary variable.
when i ask to the model that display MM.L without multiplying the Binary Matrix, all values are 0.125
Search found 4 matches
- 5 years ago
- Forum: Syntax
- Topic: Binary Matrix
- Replies: 2
- Views: 2708
- 5 years ago
- Forum: Syntax
- Topic: Binary Matrix
- Replies: 2
- Views: 2708
Binary Matrix
Hello, i need help, i want to include a Binary Variable MM(i,k) into a MINLP, but values of the matrix are not 1 and 0. even when i constrain the model to: eq(k) .. sum(i, MM(i,k)) =e= 1; the results for MM when is multiplying by the equation that i need to restring are: k1 k2 k3 i1 0.925 i2 0.011 0...
- 5 years ago
- Forum: Syntax
- Topic: Sum with limited domain
- Replies: 2
- Views: 2650
Re: Sum with limited domain
thank you very much, your reply was what i needed
- 5 years ago
- Forum: Syntax
- Topic: Sum with limited domain
- Replies: 2
- Views: 2650
Sum with limited domain
Hello, i'm new in GAMS, i want to know how to do a Sum defined just in a part of the set
example:
Set i /1, 2, 3, 4, 5, 6, 7/
Variable X(i);
Ecuations
pro;
orp;
pro.. sum (i from 1 to 4 , X(i)) =e= 1;
orp.. sum (i from 5 to 7, X(i)) =e= 1;
i hope you can help me
Regards
example:
Set i /1, 2, 3, 4, 5, 6, 7/
Variable X(i);
Ecuations
pro;
orp;
pro.. sum (i from 1 to 4 , X(i)) =e= 1;
orp.. sum (i from 5 to 7, X(i)) =e= 1;
i hope you can help me
Regards