def init_individual(ind_cls, model, value_func):
    """ Initialises a JspSolution

    :ind_cls: class to init (has to be drawn from JspSolution
    :model: the JspModel to use
    :value_func: a function to create the value array
    """
    values = value_func()
    return ind_cls(model, values)