4.2.1.11. Stuctured Output

These functions provide structured output for common structures modelled in the MiniZinc language.

In this section: show_array2d_bool, show_gantt.

show_array2d_bool

function string: show_array2d_bool(array [int,int] of var bool: x)
Create string to visualise a 2D boolean array x as a checkered board.

show_gantt

1.  function string: show_gantt(array [$$T] of var int: start,
                                array [$$T] of var int: dur,
                                array [$$T] of string: name)

2.  function string: show_gantt(array [$$T] of var int: start,
                                array [$$T] of var int: dur)
  1. Create string Gantt chart from task start times, duration dur, and their names name.

  2. Create string Gantt chart from task start times and duration dur, using the index set as name for the tasks.