[AMPL 15314] How to Express a Constraint where 3 variables belongs to the same set but are not equal to each othe

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[AMPL 15314] How to Express a Constraint where 3 variables belongs to the same set but are not equal to each othe

yhcai
Hi everyone,

In this constraint, I am trying to express that this constraint is applicable to all i,n and m which belong to the same set but are different from each other. Since I still cannot get the ideal result, I wonder if my expression is right. Could anyone help me to check it out? Thanks a million.

Best,
Yuheng Cai

<img src="blob:https://groups.google.com/d6b77907-c927-48d5-a02e-640db45b52ed">

--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

[AMPL 15315] Re: How to Express a Constraint where 3 variables belongs to the same set but are not equal to each othe

yhcai
<img src="blob:https://groups.google.com/8cf0af0a-7cf5-42d4-aa90-af5422fcb730" style="">

On Thursday, December 7, 2017 at 4:47:24 PM UTC-5, [hidden email] wrote:
Hi everyone,

In this constraint, I am trying to express that this constraint is applicable to all i,n and m which belong to the same set but are different from each other. Since I still cannot get the ideal result, I wonder if my expression is right. Could anyone help me to check it out? Thanks a million.

Best,
Yuheng Cai


--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.

16491512683345_.pic copy.jpg (28K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

[AMPL 15316] Re: How to Express a Constraint where 3 variables belongs to the same set but are not equal to each othe

yhcai
In reply to this post by yhcai


This is my code, I tried m<>I<>n but fail to get an ideal result. I tried m<>I,m<>n,i<>n but report syntax error

--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: [AMPL 15326] Re: How to Express a Constraint where 3 variables belongs to the same set but are not equal to each othe

Robert Fourer-2
Instead of "m<>i,m<>n,i<>n" you should write "m<>i and m<>n and i<>n".

Bob Fourer
[hidden email]

=======

This is my code, I tried m<>I<>n but fail to get an ideal result. I tried m<>I,m<>n,i<>n but report syntax error


--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.