# Another problem with my program

 0 Hello,I have another problem with my program too. I have two problems in writing that in gams: i don’t know how to write the" x t1t2s "(that is a binary variable,it give me an error if i write like this because i dont have any t1 or t2 in my set and they are only the elements of a set)??? i don’t know how to write its conditional statement for being 0 or 1 in my gams? Please help me my friends…. xt1t2s=1 if train1 leaves s before train2  and xt1t2s=0 if train2 leaves s before train1  (departurture time of t2 is lowerr than t1 or d(t2)
Be the first one to answer this question!
 toggle preview community wiki

### Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• link:[text](http://url.com/ "Title")
• image?![alt text](/path/img.jpg "Title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported

Tags:

×51

Asked: 10 Jul '14, 02:22

Seen: 1,420 times

Last updated: 10 Jul '14, 04:43

### Related questions

OR-Exchange! Your site for questions, answers, and announcements about operations research.