Minimum of a set

Hi

I am trying to find minimum values of a 4 dimensional set. Namely,

I have Cost(I,J,K,V) and it is the cost parameter of arcs.

I: Origin node set
J: Destination node set
K: set of commodities
V: set of transportation modes (land, water, air)

Trying to find the mininum cost values among existing transportation modes for each arc.

The problem is that the value is always returning zero as some of the cost values do not exist.

How can I manage this? Any help is much appreciated…

I tried the below statement but it didn’t work.

r(I,J,K) = smin(V,Cost(I,J,K,V) $(Cost(I,J,K,V) gt 0));

\

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/d/optout.

You are almost there:



r(I,J,K) = smin(V$Cost(I,J,K,V),Cost(I,J,K,V);



Cheers

Renger



From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Caglar Utku Guler
Sent: Sonntag, 7. Juni 2015 22:02
To: gamsworld@googlegroups.com
Subject: Minimum of a set



Hi

I am trying to find minimum values of a 4 dimensional set. Namely,

I have Cost(I,J,K,V) and it is the cost parameter of arcs.

I: Origin node set
J: Destination node set
K: set of commodities
V: set of transportation modes (land, water, air)

Trying to find the mininum cost values among existing transportation modes for each arc.

The problem is that the value is always returning zero as some of the cost values do not exist.

How can I manage this? Any help is much appreciated…

I tried the below statement but it didn’t work.

r(I,J,K) = smin(V,Cost(I,J,K,V) $(Cost(I,J,K,V) gt 0));


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/d/optout.


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/d/optout.

Thank you for your existence. It worked!!!

On Tuesday, June 9, 2015 at 10:24:57 AM UTC+3, Renger van Nieuwkoop wrote:

You are almost there:



r(I,J,K) = smin(V$Cost(I,J,K,V),Cost(I,J,K,V);



Cheers

Renger



From: gams...@googlegroups.com [mailto:gams...@googlegroups.com] On Behalf Of Caglar Utku Guler
Sent: Sonntag, 7. Juni 2015 22:02
To: gams...@googlegroups.com
Subject: Minimum of a set



Hi

I am trying to find minimum values of a 4 dimensional set. Namely,

I have Cost(I,J,K,V) and it is the cost parameter of arcs.

I: Origin node set
J: Destination node set
K: set of commodities
V: set of transportation modes (land, water, air)

Trying to find the mininum cost values among existing transportation modes for each arc.

The problem is that the value is always returning zero as some of the cost values do not exist.

How can I manage this? Any help is much appreciated…

I tried the below statement but it didn’t work.

r(I,J,K) = smin(V,Cost(I,J,K,V) $(Cost(I,J,K,V) gt 0));


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.


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/d/optout.