change_activity_constraint_weight

Set the weight for an activity constraint when the constraint hardness is set to the soft mode. 

In the soft constraint mode, activity constraints are satisfied as good as possible. In order to determine a priority in activities when violating the constraints, a priority weight can be given to each activity constraint. The soft constraint mode can be set in the P2Schedule:change_constraint_hardness function.

Parameters: 
I/O Type Name Description
input integer ID activity ID
input integer weight constraint weight
Learn More: 

Step inside PMKC.

Example: 
function ()
        io.write('\n')
end
Class: 
P2Schedule