Given the number of consecutive voyages #v, the number of subjects #s and for each s of them the alternative next options so and the corresponding next Time Charter Equivalent (TCE) in order to find optimal decision and the assigned speed for each voyage to maximize the total profit.