Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Restricting the domain of a constraint
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nazanin  
View profile  
 More options Feb 7, 2:49 pm
From: Nazanin <nazanin.shaeb...@gmail.com>
Date: Tue, 7 Feb 2012 11:49:18 -0800 (PST)
Local: Tues, Feb 7 2012 2:49 pm
Subject: Restricting the domain of a constraint
Hi,
I'm totally new to GAMS. How can I restrict the domain of a
constraint? For example I have:
set t timeperiod / jan, feb, mar, apr, may, jun, jul, aug, sep, oct,
nov, dec /;
then I want to have constraint, say cons1 that has to be valid for
only t='jan' and I have const2 for rest of the months.

Your help is really appreciated.

Nazanin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alireza Bahari  
View profile  
 More options Feb 7, 11:34 pm
From: Alireza Bahari <alireza.b.1...@gmail.com>
Date: Wed, 8 Feb 2012 08:04:13 +0330
Local: Tues, Feb 7 2012 11:34 pm
Subject: Re: Restricting the domain of a constraint

Hi
Cons1('jan')..
Cons2(t)$(Ord(t)<>1)..


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Destin Zed  
View profile  
 More options Feb 8, 3:29 am
From: Destin Zed <destin...@gmail.com>
Date: Wed, 8 Feb 2012 09:29:51 +0100
Local: Wed, Feb 8 2012 3:29 am
Subject: Re: Restricting the domain of a constraint

I agree with Alireza. That should normally do the job for you.

On Wed, Feb 8, 2012 at 5:34 AM, Alireza Bahari <alireza.b.1...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nazanin S  
View profile  
 More options Feb 8, 3:34 am
From: Nazanin S <nazanin.shaeb...@gmail.com>
Date: Wed, 8 Feb 2012 00:34:11 -0800
Local: Wed, Feb 8 2012 3:34 am
Subject: Re: Restricting the domain of a constraint
Thank you everyone. I will try it. I really appreciate your help and
consideration.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »