max price of turtles

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

max price of turtles

Bing Zhnag
Dear all:

In my model, one of turtle x has links with another n turtles. I want to
find out the turtles with max “price”, who has links to x. How should I
write the code?

thanks

 

 

Best regards.

-------------------------------------------------------------------------

Zhang Bing  

Ph.D. candidate

Center of Environmental Management and Policy

School of Environment, Nanjing University

22 Hankou Road, Nanjing 210093, P.R.China

江苏省南京市汉口路22号南京大学环境学院

Tel/Fax: 86-25-83595207

Cellphone: 13951722047(China); 848-482-0692(US)  

 <mailto:E-mail:[hidden email]> E-mail:[hidden email];
<mailto:[hidden email]> [hidden email]

---------------------------------------------------------------------------

 

Reply | Threaded
Open this post in threaded view
|

Re: max price of turtles

Jim Lyons-2
On May 13, 2008, at 2:02 AM, Bing Zhnag wrote:

> In my model, one of turtle x has links with another n turtles. I want
> to find out the turtles with max “price”, who has links to x. How
> should I write the code?
>
> thanks

([link-neighbors] of x) with-max [price]

Jim Lyons
Reply | Threaded
Open this post in threaded view
|

RE: max price of turtles

Bing Zhnag
Can it be :

 

([link-neighbors] of myself) with-max [price]



 

 

Best regards.

-------------------------------------------------------------------------

Zhang Bing  

Ph.D. candidate

Center of Environmental Management and Policy

School of Environment, Nanjing University

22 Hankou Road, Nanjing 210093, P.R.China

江苏省南京市汉口路22号南京大学环境学院

Tel/Fax: 86-25-83595207

Cellphone: 13951722047(China); 848-482-0692(US)  

 <mailto:E-mail:[hidden email]> E-mail:[hidden email];
<mailto:[hidden email]> [hidden email]

---------------------------------------------------------------------------

 

From: [hidden email] [mailto:[hidden email]]
On Behalf Of Jim Lyons
Sent: Tuesday, May 13, 2008 2:38 PM
To: [hidden email]
Subject: Re: [netlogo-users] max price of turtles

 

On May 13, 2008, at 2:02 AM, Bing Zhnag wrote:

In my model, one of turtle x has links with another n turtles. I want to
find out the turtles with max “price”, who has links to x. How should I
write the code?

thanks


([link-neighbors] of x) with-max [price]

Jim Lyons