:param num_periods_in_sample_period: Number of periods being grouped together to be represented by 1 sub problem EHub. Example: One week representing a whole month would be ~four periods in a sample period.
:param sample_period_position: Which period in the grouped sample to use as the representative EHub. Example the second week of every month would be two.
:param solver: Which MILP solver to use.
:return: The status of pylp's solving, the list of hubs (each with their solution), and the absolute cost (cost of all the subproblems added together with the correct factor)