import sc3

Any statement can be used to reference a set defined in the GUI, but the statement must match the Python syntax. For example, the above will be a statement that makes a library reference specifically for the Schedule Nurse.
This statement is like a regular statement and is required to describe a constraint.
So, let’s write this statement first and click the Set button.



Using Language Constraints

Next, check “Use language constraints” on the Solve page.



Solving

Finally, press the Solve button. Again, looking at the entire source, we see that it contains the description of the set defined in the GUI. (At the end, there is a statement written by the user.)
Now the environment for writing constraints is ready.