{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

LS - if(j ~= s COSTcurrent= cost(j...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function slow = LS(s) slow= s; COSTcurrent= cost(s); COSTlow= COSTcurrent; lower= max(s-10,0); upper= min(s+10,500); for j = (lower:upper)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: if (j ~= s) COSTcurrent= cost(j); if (COSTcurrent<COSTlow) slow= j; COSTlow= COSTcurrent; end end end...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online