Determines the solution using the LESS method. Relationships between activities can be given as a list of predecessors or start and end node numbers.
solve_lessAOA(input_data, ICconst, ICslope, predecessors = FALSE)A list made of a graph and a result set.
Data frame containing the graph structure and activity durations. For the LESS method and start/end nodes you need 7 columns (the order matters):
from The number of the node where the activity starts.
to The number of the node where the activity ends.
label Activity labels.
time Normal duration of activities.
crash_time Crash (the shortest possible) duration of activities.
norm_cost Normal costs.
crash_cost Crash costs.
For the LESS method and predecessors list you need 6 columns (the order matters):
label Activity labels.
pred List of predecessors.
time Normal duration of activities.
crash_time Crash (the shortest possible) duration of activities.
norm_cost Normal costs.
crash_cost Crash costs.
Intercept of the indirect cost function.
Slope of the indirect cost function.
TRUE if the user data contains a list of immediately preceding activities
If set to FALSE (default), start nad end nodes are used. If is set to TRUE, predecessors list is used.
z <- solve_lessAOA(lessexample1, 50, 15)
Run the code above in your browser using DataLab