int is_sections_of_moving_obj_empty[1..n_moving_obj] = ...;
int n_fixed_op = ...;
int fixed_op[1..n_fixed_op] = ...;
{int} fixed_op_resources[1..n_fixed_op] = ...;
int fixed_op_start[1..n_fixed_op] = ...;
int fixed_op_end[1..n_fixed_op] = ...; // Включительно.
int fixed_op_intensity[1..n_fixed_op] = ...;
int is_fixed[0..n_operations, 0..n_intervals] = ...;
int is_obj_involved_in_fixed_op[0..n_moving_obj, 0..(n_intervals + 1)] = ...;
int min_positive_cargo_val[1..n_all_storage_sections, 1..n_locations] = ...; // Объём максимальной положительной операции, которая может быть произведена с этой секцией в этом хранилище. Если в локации таковой нет, то это значение объёма хранилища + 1.
int max_negative_cargo_val[1..n_all_storage_sections, 1..n_locations] = ...;
int can_obj_leave_loc_only_alone[1..n_moving_obj, 1..n_locations] = ...;
int is_fixed_op_planned_in_future[1..n_moving_obj, 1..n_locations, 1..n_intervals] = ...;
// За фиктивный нулевой интервал объект не успевает ничего сделать с начальным положением.
forall (obj in 1..n_moving_obj) (
m_obj_loc[obj, 1] == m_obj_loc[obj, 0]
);
// Направление движения/местоположение объекта может измениться только если перед этим началась операция перемещения, и он не вспомогательный при операции швартовки.
forall (obj in 1..n_moving_obj, t in 2..(n_intervals + 1)) (
((current_moving_operation[obj, t - 1] != current_moving_operation[obj, t - 2]) &&
(current_moving_operation[obj, t - 1] != 0) &&
((obj == main_obj_of_operation[current_moving_operation[obj, t - 1]])
||
(is_mooring_op[current_moving_operation[obj, t - 1]] == 0)
)
) => (m_obj_loc[obj, t] == operations_destination[current_moving_operation[obj, t - 1]])
);
forall (obj in 1..n_moving_obj, t in 2..(n_intervals + 1)) (
((current_moving_operation[obj, t - 1] == current_moving_operation[obj, t - 2]) ||
(current_moving_operation[obj, t - 1] == 0) ||
((obj != main_obj_of_operation[current_moving_operation[obj, t - 1]])
&&
( is_mooring_op[current_moving_operation[obj, t - 1]] == 1)
)
) => (m_obj_loc[obj, t] == m_obj_loc[obj, t - 1])
);
// Начальное состояние.
forall (i in 1..n_moving_obj) (m_obj_loc[i, 0] == initial_m_obj_loc[i]);