A problem $ if

I am new to modeling and I have a problem.

I would greatly appreciate the help of staff one day certainly had
something similar.

Briefly, I have:

Variables:

EC (month, time), GE (month, time) and VE (month, time)

Parameter:

DE (month, time)

A (month, time), B (month, time) and C (month, time)

Equations

Objective function (EQ1)

EQ1 … Z = e = Sum ((month, time), EC (month, time) * A (month, time)

  • GE (month, time) * B (month, time) - VE (month, time) * C (months ,
    hours) $ (GE (month, time) gt DE (month, time)))

EQ2 … EC (month, time) + GE (month, time) = g = DE (month, time)


The problem lies in the objective function (EQ1), the last term VE * C
$ (GE gt DE), because VE and GE are variables of the problem.

Best Regards,

Diego Borges.

\

either month or time will come not both

On Wed, Nov 9, 2011 at 12:59 AM, Diego Borges wrote:

I am new to modeling and I have a problem.

I would greatly appreciate the help of staff one day certainly had
something similar.

Briefly, I have:

Variables:

EC (month, time), GE (month, time) and VE (month, time)

Parameter:

DE (month, time)

A (month, time), B (month, time) and C (month, time)

Equations

Objective function (EQ1)

EQ1 … Z = e = Sum ((month, time), EC (month, time) * A (month, time)

  • GE (month, time) * B (month, time) - VE (month, time) * C (months ,
    hours) $ (GE (month, time) gt DE (month, time)))

EQ2 … EC (month, time) + GE (month, time) = g = DE (month, time)

The problem lies in the objective function (EQ1), the last term VE * C
$ (GE gt DE), because VE and GE are variables of the problem.

Best Regards,

Diego Borges.


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 should define the EQ2 at the time of equation declaration.

On Wed, Nov 9, 2011 at 1:09 PM, puneet aggarwal wrote:

either month or time will come not both

On Wed, Nov 9, 2011 at 12:59 AM, Diego Borges wrote:

I am new to modeling and I have a problem.

I would greatly appreciate the help of staff one day certainly had
something similar.

Briefly, I have:

Variables:

EC (month, time), GE (month, time) and VE (month, time)

Parameter:

DE (month, time)

A (month, time), B (month, time) and C (month, time)

Equations

Objective function (EQ1)

EQ1 … Z = e = Sum ((month, time), EC (month, time) * A (month, time)

  • GE (month, time) * B (month, time) - VE (month, time) * C (months ,
    hours) $ (GE (month, time) gt DE (month, time)))

EQ2 … EC (month, time) + GE (month, time) = g = DE (month, time)

The problem lies in the objective function (EQ1), the last term VE * C
$ (GE gt DE), because VE and GE are variables of the problem.

Best Regards,

Diego Borges.


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.


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.



\

Thanks,

Best Regards
Sohom Mandal
M.tech
Center for Enviornmental Science and Engineering
IIT Bombay, Powai, Mumbai
Pin 400076
Mobile: 9930065368
sohomiitb@gmail.com
sohomiitb@iitb.ac.in


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.

Give “;” after finishing a line of code

and between the month and time no need of give “,”. Remove it.

On Wed, Nov 9, 2011 at 4:00 PM, SOHOM MANDAL wrote:

You should define the EQ2 at the time of equation declaration.


On Wed, Nov 9, 2011 at 1:09 PM, puneet aggarwal wrote:

either month or time will come not both

On Wed, Nov 9, 2011 at 12:59 AM, Diego Borges wrote:

I am new to modeling and I have a problem.

I would greatly appreciate the help of staff one day certainly had
something similar.

Briefly, I have:

Variables:

EC (month, time), GE (month, time) and VE (month, time)

Parameter:

DE (month, time)

A (month, time), B (month, time) and C (month, time)

Equations

Objective function (EQ1)

EQ1 … Z = e = Sum ((month, time), EC (month, time) * A (month, time)

  • GE (month, time) * B (month, time) - VE (month, time) * C (months ,
    hours) $ (GE (month, time) gt DE (month, time)))

EQ2 … EC (month, time) + GE (month, time) = g = DE (month, time)

The problem lies in the objective function (EQ1), the last term VE * C
$ (GE gt DE), because VE and GE are variables of the problem.

Best Regards,

Diego Borges.


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.


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.



\

Thanks,

Best Regards
Sohom Mandal
M.tech
Center for Enviornmental Science and Engineering
IIT Bombay, Powai, Mumbai
Pin 400076
Mobile: 9930065368
sohomiitb@gmail.com
sohomiitb@iitb.ac.in



\

Thanks,

Best Regards
Sohom Mandal
M.tech
Center for Enviornmental Science and Engineering
IIT Bombay, Powai, Mumbai
Pin 400076
Mobile: 9930065368
sohomiitb@gmail.com
sohomiitb@iitb.ac.in


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.

Hi,

the problem is that you can´t put variables into a () statement. To modelate this kind of situation you have to use binary variables instead of ().

Best regards

Luis C.

On 8 nov, 16:29, Diego Borges wrote:

I am new to modeling and I have a problem.

I would greatly appreciate the help of staff one day certainly had
something similar.

Briefly, I have:

Variables:

EC (month, time), GE (month, time) and VE (month, time)

Parameter:

DE (month, time)

A (month, time), B (month, time) and C (month, time)

Equations

Objective function (EQ1)

EQ1 … Z = e = Sum ((month, time), EC (month, time) * A (month, time)

  • GE (month, time) * B (month, time) - VE (month, time) * C (months ,
    hours) $ (GE (month, time) gt DE (month, time)))

EQ2 … EC (month, time) + GE (month, time) = g = DE (month, time)

The problem lies in the objective function (EQ1), the last term VE * C
$ (GE gt DE), because VE and GE are variables of the problem.

Best Regards,

Diego Borges.

\

Ok, thanks.

But, you can tell me more about this?

How y can do this?



2011/11/9 Luis C

Hi,

the problem is that you can´t put variables into a () statement. To modelate this kind of situation you have to use binary variables instead of ().

Best regards

Luis C.

On 8 nov, 16:29, Diego Borges wrote:

I am new to modeling and I have a problem.

I would greatly appreciate the help of staff one day certainly had
something similar.

Briefly, I have:

Variables:

EC (month, time), GE (month, time) and VE (month, time)

Parameter:

DE (month, time)

A (month, time), B (month, time) and C (month, time)

Equations

Objective function (EQ1)

EQ1 … Z = e = Sum ((month, time), EC (month, time) * A (month, time)

  • GE (month, time) * B (month, time) - VE (month, time) * C (months ,
    hours) $ (GE (month, time) gt DE (month, time)))

EQ2 … EC (month, time) + GE (month, time) = g = DE (month, time)

The problem lies in the objective function (EQ1), the last term VE * C
$ (GE gt DE), because VE and GE are variables of the problem.

Best Regards,

Diego Borges.


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.



\

Atenciosamente,
Diego Fernando Borges
Acadêmico do 5º ano de Engenharia Elétrica
Universidade Estadual do Oeste do Paraná
Fone: +55 45 3025-3033
(+34) 633830861


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.

Take a look at the links:

http://home.ubalt.edu/ntsbarsh/opre640a/partIII.htm#roffoncont

http://www.nos.org/srsec311/opt-lp5.pdf

good luck


2011/11/9 Diego Borges

Ok, thanks.

But, you can tell me more about this?

How y can do this?



2011/11/9 Luis C

Hi,

the problem is that you can´t put variables into a () statement. To modelate this kind of situation you have to use binary variables instead of ().

Best regards

Luis C.

On 8 nov, 16:29, Diego Borges wrote:

I am new to modeling and I have a problem.

I would greatly appreciate the help of staff one day certainly had
something similar.

Briefly, I have:

Variables:

EC (month, time), GE (month, time) and VE (month, time)

Parameter:

DE (month, time)

A (month, time), B (month, time) and C (month, time)

Equations

Objective function (EQ1)

EQ1 … Z = e = Sum ((month, time), EC (month, time) * A (month, time)

  • GE (month, time) * B (month, time) - VE (month, time) * C (months ,
    hours) $ (GE (month, time) gt DE (month, time)))

EQ2 … EC (month, time) + GE (month, time) = g = DE (month, time)

The problem lies in the objective function (EQ1), the last term VE * C
$ (GE gt DE), because VE and GE are variables of the problem.

Best Regards,

Diego Borges.


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.



\

Atenciosamente,
Diego Fernando Borges
Acadêmico do 5º ano de Engenharia Elétrica
Universidade Estadual do Oeste do Paraná
Fone: +55 45 3025-3033
(+34) 633830861


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.