'Add variable as value in schedule ANYLOGIC

In my model I use a schedule to define the capacity of a transporter fleet. Now I want the capacity to be a variable which can change based on the user input, but when I want to type the variable name (see red circle in inmage) in the value function of schedule block this will not work is there a method to do this?

enter image description here



Solution 1:[1]

The only way to so this is to use the load from database option and read in the values from the database.

Alternative is to create the schedules programmatically

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jaco-Ben Vosloo