model

Hi,

I have model where i want of force that the solution variable x (j) is more than 2. How can I do this without having to specify an equation forcing the variable to be more than 2 for each j ? Currently I only have 4 j indexes but in case I increase my model I do not want to write an equation for each.


Currently I have the following modeled:

table d(j,k) “annual demand for j, intermediate k”
0 1 2
1 4645 5014 8397
2 13631 19734 18219
3 10163 19667 5818
4 22168 6229 1182 ;

positive variable x(j) “number of campaign of j”;

risk1…
d(‘1’,‘2’)/ x(‘1’)
=g=2 ;
risk2…
d(‘2’,‘2’)/x(‘2’)
=g=2 ;
risk3…
d(‘3’,‘2’)/ x(‘3’)
=g=2;
risk4…
d(‘4’,‘2’)/ x(‘4’)
=g=2;

Thank you, Cheers,
Hugo


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/VUzyFRyU6QgJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

You must set the lowerbound of the variable to the desired value
x.lo(j) = 2;

2012/5/31 Hugo Caçote

Hi,

I have model where i want of force that the solution variable x (j) is more than 2. How can I do this without having to specify an equation forcing the variable to be more than 2 for each j ? Currently I only have 4 j indexes but in case I increase my model I do not want to write an equation for each.


Currently I have the following modeled:

table d(j,k) “annual demand for j, intermediate k”
0 1 2
1 4645 5014 8397
2 13631 19734 18219
3 10163 19667 5818
4 22168 6229 1182 ;

positive variable x(j) “number of campaign of j”;

risk1…
d(‘1’,‘2’)/ x(‘1’)
=g=2 ;
risk2…
d(‘2’,‘2’)/x(‘2’)
=g=2 ;
risk3…
d(‘3’,‘2’)/ x(‘3’)
=g=2;
risk4…
d(‘4’,‘2’)/ x(‘4’)
=g=2;

Thank you, Cheers,
Hugo


To view this discussion on the web visit https://groups.google.com/d/msg/gamsworld/-/VUzyFRyU6QgJ.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.



\

Edson Valle
edsoncv@gmail.com


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.