I have the same problem in Matlab, do you have any idea?

On Monday, April 6, 2015 at 7:02:45 AM UTC-5, B.Saleckpay wrote:

Andres,

The only way that I can think right now is using extra binary variables ( you may search more to find a better way).

E.x:

Captext = 0 * b_1 + 50 * b_2 + 95 * b_3 + 120 * b_4

s.t. b_1 + b_2 + b_3 + b_4 = 1

b_i \in {0,1} \forall i in {1,2,3,4}

Captext \ge 0

For second part of your problem, you only need to define a few more constraint to link Cautext to the b_i variables. You can find some example in the internet.

Best,

On Fri, Apr 3, 2015 at 11:15 PM, AndrÃ©s GC wrote:

Hi,

i’m trying to define some variables that only can take one of some defined values, and depending of wich value results for this variable, other variabe take a value.

for example:

i have this variable: Capext, this must take one of this values : /0,50,95,120/

and if Capext = 0, then Cuext = 0 and Cauext = 0

Capext = 50, then Cuext = 0.6 and Cauext = 570

Capext = 95, then Cuext = 0.8 and Cauext = 900

Capext = 120, then Cuext = 1.1 and Cauext = 1030

i don’t know how to use or define as variables that three.

iÂ´ve tried to define a set ( i /1*4/) and the variables as parameters depending of “i”, but it didn’t work.

i’ve tried to define all that as a table but now i think it’s not possible, because i need that as variables, and i need to know which value is taken for the model.

i would be grateful if one you can help me.

## Babak Saleck Pay

Ph.D Student of Systems Modeling and Analysis

Department of Statistical Sciences and Operations Research

Virginia Commonwealth University

4156 Grace Harris Hall

1015 Floyd Ave.

Richmond, VA

\

To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.

To post to this group, send email to gamsworld@googlegroups.com.

Visit this group at http://groups.google.com/group/gamsworld.

For more options, visit https://groups.google.com/d/optout.