3.1.2 Change the Project Load

 
class dev1(Resource):
    pass

def Acso():
    resource = dev1
    start = "2005-1-16"
    load = WeeklyMax("35H")

    def Database():
        effort = "1d"

    def Gui():
        effort = "3d"

acso = BalancedProject(Acso)
 \includegraphics[width=\pwidth]{pload}
This example changes the load for all tasks below the root task Acso. WeeklyMax("35H") means that the resources only work maximal 35 hours in the week. It is equivalent to load=0.875. The calculation of WeeklyMax depends on the attributes of the project calendar (see also 7.1.4). The formular is

\begin{displaymath}
\frac{\tt WeeklyMax}{{\tt working\underline{\hspace{1ex}}{}d...
...e{\hspace{1ex}}{}day}(8)}
= \frac{35 Hours}{40 Hours} = 0.875
\end{displaymath}

The load attribute affects the calculation of the task length:

\begin{displaymath}
{\tt length} = \frac{\tt effort}{\tt load}
\end{displaymath}

In the example all tasks become 114% longer, than with default load of $1.0$.