def func_right_linear_relaxation(k_idx, closed_ZG_right, k_right, s_right):
    """Returns the expected value for the o.f. of the linear programming relaxation of right subproblem.

    Args:
        k_idx: Int. Knapsack capacity.
        closed_ZG_right: float. The expected value of Z^G (o.f. value of greedy algorithm)  for the right subproblem.
        k_right:  float. The expected value of the slack for the right subproblem.
        s_right: Int.  Expected value of the splitting item for the right subproblem.

    Returns:
        lp_right: float. The linear relaxation solution for the right subproblem.

    """
    kp = k_idx  # Knapsack Capacity
    mu = kp + 1  # Quantity of Items
    lp_right = closed_ZG_right + k_right * (mu - s_right + 1) / 2

    return lp_right