30.01.2013 Views

6.3 Suspended Ceiling Design Process - Bilkent University

6.3 Suspended Ceiling Design Process - Bilkent University

6.3 Suspended Ceiling Design Process - Bilkent University

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

End If<br />

Next j<br />

total_row(i) = k<br />

'assign values to the antecedent set of element i<br />

k = 0<br />

For j = 1 To n<br />

If reach(j, i) 0 Then<br />

k = k + 1<br />

column(i, k) = j<br />

End If<br />

Next j<br />

total_column(i) = k<br />

Next i<br />

End Sub<br />

' banding Macro<br />

' This macro creates bands in the matrix<br />

'<br />

Sub Banding() 'finds the most upstream set of activities<br />

that can be worked concurrently in the time step<br />

Dim in_band As Boolean<br />

For i = 1 To n<br />

WN(i) = False 'initialize all activities to do NO work during<br />

this time step<br />

Next i<br />

j = n + 1 'keeps from looking for full band when no<br />

activities left<br />

For i = 1 To n 'find first activity that can do work during the<br />

current time step<br />

If W(i) > 0 Then<br />

WN(i) = True<br />

j = i + 1 'sets j to the following activity<br />

Exit For 'leave loop once the first activity is found<br />

End If<br />

Next i<br />

' band_complete = False 'all activities for band have not been<br />

found<br />

Do While j

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!