How to RESET a variable to zero?

Hello,

I’m new in this, so I have one doubt. Is it possible to reset a variable to zero? I want to model a constraint that is always summing the number of hours but when it reaches a value (suppose 100h) it stops counting and the total number of hours until that moment is set again to zero and the clock starts counting again.

I hope you can help me.


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/groups/opt_out.

Var.l=0


On 20 Sep, 2013, at 22:14, DT wrote:

Hello,

I’m new in this, so I have one doubt. Is it possible to reset a variable to zero? I want to model a constraint that is always summing the number of hours but when it reaches a value (suppose 100h) it stops counting and the total number of hours until that moment is set again to zero and the clock starts counting again.

I hope you can help me.


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/groups/opt_out.


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/groups/opt_out.