1 Introduction

It is well known that one of the most dangerous diseases all over the world is cancer ([14]). Modeling and simulations are important tools to discover tumor cells ([57]). Well-known treatment modalities are surgery, radiotherapy and chemotherapy. Sadly, every of those varieties of treatment has its own disadvantages, for more details see [520]. However, progress within the fight against cancer continues to be made with novel modes; for more details see [1219].

In [21] an interesting mathematical model for cancer treatment is presented. This model is governed by a system of eighteen differential equations. The first aim of this paper is to develop this model in order to control the cancer cells. In [22], optimal control of a fractional-order delay model for cancer treatment is presented. Here the fractional-order derivative is defined in the Caputo sense.

Applications of fractional calculus have increased in the last few decades, after centuries of small advancements. Examples can be found in a variety of scientific areas: engineering, biology, epidemiology, amongst others ([2337]). In most cases, the fractional-order differential equations (FODEs) models seem more consistent with the real phenomena than the integer order models. This is due to the fact that fractional derivatives and integrals enable the description of the memory and hereditary properties inherent in various materials and processes that exist in most biological systems.

In [1416, 38], some fractional optimal control problems (FOCPs) have been introduced. Sweilam and AL-Mekhlafi, studied optimal control of some biology models in [22, 30, 3942]. In [2], Torres et al. introduced and analyzed a multiobjective formulation of an optimal control problem, where the two conflicting objectives are minimization of the number of HIV-infected individuals with AIDS clinical symptoms and co-infected with AIDS and active TB and costs related to prevention and treatment of HIV and/or TB measures. More recently, in the Atangana–Baleanu Caputo sense (ABC) one defined a modified Caputo fractional derivative by introducing a generalized Mittag-Leffler function as the nonlocal and non-singular kernel ([43]). These new types of derivatives have been used in modeling of real life applications in different fields ([44, 45]). In [4649] necessary optimality conditions for FOCPs are obtained in the Riemann–Liouville sense and numerically studied by a finite difference method. In [50], the spectral method is developed for a distributed-order fractional optimal control problem. In [51] Baleanu et al., used a central difference scheme for solving FOCPs.

In this paper, we introduced the fractional mathematical model without singular kernel for a cancer treatment model with modified parameters ([52]). Minimizating of tumor cells of FOCPs for the proposed model is the aim of this article. Two numerical techniques are introduced to study the nonlinear FOCPs. The techniques are: the iterative optimal control method (IOCM) ([22, 30, 42]) and the nonstandard two-step Lagrange interpolation method (N2LIM), which is presented here as an adaptation for the two-step Lagrange interpolation method. Numerical simulations are given. To the best of our knowledge the fractional optimal control without singular kernel for cancer treatment based on synergy between anti-angiogenic model was never explored before.

This paper organized as follows: The fractional-order model with two controls is given in Sect. 2. In Sect. 3, the optimality conditions are derived. In Sect. 4, numerical methods for FOCPs are presented. In Sect. 5, numerical experiments and simulations are presented. Finally the conclusions are given in Sect. 6.

2 The model problem

In the following, the cancer treatment fractional model based on synergy between immune cell therapies and an anti-angiogenic method with modified parameters is presented. It is important to notice that all the parameters here depend on the fractional order α as an extension of the model of integer order which is given in [21]. The model consists of eighteen variables dependent on the time. Two control variables \(u_{M} ( t )\), \(u_{A} ( t )\) are given for measuring the immunotherapy and the anti-angiogenic therapy, respectively. The variables can be identified as follows:

  • \(T ( t )\): Number of cancer cells.

  • \(U ( t )\): Number of mature unlicensed dendritic cells.

  • \(D ( t )\): Number of mature licensed dendritic cells.

  • \(A_{E} ( t )\): Number of activating/proliferating effector memory \(CD 8^{+} T\) cells.

  • \(E ( t )\): Number of activated effector memory \(CD 8^{+} T\) cells.

  • \(A_{H} ( t )\): Number of activating/proliferating memory helper \(CD 4^{+} T\) cells.

  • H: Number of activated memory helper \(CD 4^{+} T\) cells.

  • \(A_{R} ( t )\): Number of activating/proliferating regulatory T cells.

  • \(R ( t )\): T cells number of activated regulatory.

  • \(Y ( t )\): Endothelial cells number.

  • \(C ( t )\): Concentration of \(IL- 2\).

  • \(S ( t )\): Concentration of \(TGF-\beta\).

  • \(I ( t )\): Concentration of \(IL- 10\).

  • \(A_{1} ( t )\): Concentration of angiopoietin-1.

  • \(A_{2} ( t )\): Concentration of angiopoietin-2.

  • \(V ( t )\): Concentration of free \(VEGF\).

  • \(V_{a} ( t )\): Concentration of anti-\(VEGF\).

  • \(B ( t )\): Length of tumor vasculature.

The parameters of the model are described in [21, 53, 54]. The new system can be described by fractional-order differential equations as follows:

$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} T = \gamma_{1}^{\alpha} T \biggl(1 - \frac{T}{ B^{\alpha} \lambda_{B}^{\alpha}} \biggr) - \biggl( \frac{r_{0}^{\alpha} T}{(1 + k_{2}^{\alpha} \frac{T}{E} )(1 + k_{3}^{\alpha} \frac{R}{E} )(1 + \frac{S}{s_{1}^{\alpha}} )(1 + \frac{V}{v_{1}^{\alpha}} )} \biggr), \end{aligned}$$
(1)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} U = \frac{a^{\alpha} T}{(1 + \frac{V}{v_{3}^{\alpha}} )(1 + \frac{I}{I_{1}^{\alpha}} )(1 + \frac{R}{R_{1}^{\alpha}} )} - \frac{\lambda^{\alpha} U}{1 + \frac{U}{M_{H}^{\alpha}}} - \delta_{u}^{\alpha} U, \end{aligned}$$
(2)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} D = \frac{\lambda^{\alpha} U}{1 + \frac{U}{M_{H}^{\alpha}}} - \delta_{D}^{\alpha} D, \end{aligned}$$
(3)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} A_{E} = \frac{\alpha_{1} M_{E}^{\alpha}}{1 + k_{4}^{\alpha} \frac{M}{D}} - \delta_{A}^{\alpha} A_{E}, \end{aligned}$$
(4)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} E = \frac{\alpha_{2}^{\alpha} A_{E} C}{(1 + \frac{V}{v_{1}^{\alpha}} )(1 + \frac{S}{s_{2}^{\alpha}} )( c_{1}^{\alpha} +C )} - \delta_{E}^{\alpha} E+ \omega_{1}^{\alpha} u_{M}, \end{aligned}$$
(5)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} A_{H} = \frac{\alpha_{3}^{\alpha} M_{H}^{\alpha}}{ 1 + k_{4}^{\alpha} \frac{M}{( U+D )}} - \delta_{A} A_{H}, \end{aligned}$$
(6)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} H = \frac{\alpha_{4}^{\alpha} A_{H} C}{(1 + \frac{V}{v_{1}^{\alpha}} )(1 + \frac{S}{s_{2}^{\alpha}} )( c_{1}^{\alpha} +C )} - \frac{\alpha_{7} HS}{s_{3}^{\alpha} +S} - \delta_{H}^{\alpha} H, \end{aligned}$$
(7)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} A_{R} = \frac{\alpha_{5} M_{R}^{\alpha}}{1 + k_{4}^{\alpha} \frac{M}{D}} - \delta_{A}^{\alpha} A_{R}, \end{aligned}$$
(8)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} R = \frac{\alpha_{6}^{\alpha} A_{R} C}{ c_{1}^{\alpha} +C} + \frac{\alpha_{7}^{\alpha} HS}{s_{3}^{\alpha} +S} - \delta_{R}^{\alpha} R, \end{aligned}$$
(9)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} C = \frac{p_{c}^{\alpha} A_{H}}{(1 + \frac{S}{s_{4}^{\alpha}} )(1 + \frac{I}{I_{1}^{\alpha}} )} - \frac{C}{ \tau^{\alpha}}, \end{aligned}$$
(10)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} S = p_{1}^{\alpha} R+ p_{2}^{\alpha} T- \frac{S}{ \tau_{s}^{\alpha}}, \end{aligned}$$
(11)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} I = p_{3}^{\alpha} R+ p_{4}^{\alpha} T- \frac{I}{ \tau_{I}^{\alpha}}, \end{aligned}$$
(12)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} A_{1} = \alpha_{A_{1}}^{\alpha} B- \delta_{A_{1}}^{\alpha} A_{1}, \end{aligned}$$
(13)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} A_{2} = \alpha_{A_{1}}^{\alpha} B \biggl( \frac{T}{ \theta_{A_{2}}^{\alpha} +T} \biggr) - \delta_{A_{2}}^{\alpha} A_{2}, \end{aligned}$$
(14)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} V = \alpha_{v}^{\alpha} T+ \alpha_{v_{2}}^{\alpha} T \biggl( \frac{T}{\theta_{v}^{\alpha} B+T} \biggr) - \delta_{v}^{\alpha} V- \tau^{\alpha} V_{a} V, \end{aligned}$$
(15)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} Y = \alpha_{y}^{\alpha} Y \biggl( \frac{V}{ \theta_{v_{a}}^{\alpha} Y+V} \biggr) - \omega^{\alpha} Y \biggl( \frac{A_{1}}{ \theta_{B}^{\alpha} A_{2} + A_{1}} \biggr) \biggl( \frac{V}{\rho^{\alpha} Y+V} \biggr) \\& \phantom{_{a}^{\mathrm{ABC}} D_{t}^{\alpha} Y =}{}- \delta_{y}^{\alpha} Y \biggl(1 + \frac{V}{\theta_{y}^{\alpha} Y+V} \biggr) + \omega_{2}^{\alpha} u_{A}, \end{aligned}$$
(16)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} B = \frac{1}{s^{\alpha}} \omega^{\alpha} Y \biggl( \frac{A_{1}}{\theta_{B}^{\alpha} A_{2} + A_{1}} \biggr) \biggl( \frac{V}{\rho^{\alpha} Y+V} \biggr) \\& \phantom{_{a}^{\mathrm{ABC}} D_{t}^{\alpha} B =}{} - \gamma_{B}^{\alpha} B \biggl( \frac{A_{2}^{4}}{( \theta_{EC}^{\alpha} A_{1} )^{4} + A_{2}^{4}} \biggr) \biggl(1 - \frac{V}{\rho^{\alpha} Y+V} \biggr), \end{aligned}$$
(17)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} V_{a} = - \tau^{\alpha} V_{a} V- \rho_{v_{a}}^{\alpha} V_{a}. \end{aligned}$$
(18)

The parameters \(\omega_{1}^{\alpha}\) and \(\omega_{2}^{\alpha}\) are the weight factors.

3 The FOCPs

Consider the state system (1)–(18), in \(R^{18}\), let

$$\varOmega=\bigl\{ \bigl( u_{A} (\cdot), u_{M} (\cdot)\bigr)\text{ are Lebsegue measurable},0 \leq u_{A} (\cdot), u_{M} (\cdot) \leq 1, \forall t\in [0, T_{f} ]\bigr\} , $$

be the admissible control set. The objective functional is defined as follows:

$$ J ( u_{A}, u_{M} )= \int_{0}^{T_{f}} \bigl( AT ( t ) + B_{1} u_{A}^{2} ( t ) +C u_{M}^{2} ( t )\bigr) \,dt, $$
(19)

where the weight constant of cancer cell numbers is A. Moreover, \(B_{1}\), is the weight constant of immunotherapy and C is the weight constant of anti-angiogenic therapy.

Now, the aim is to minimize the following objective functional:

$$\begin{aligned}[b] J ( u_{A}, u_{M} )&= \int_{0}^{T_{f}} \eta ( T, U, D, A_{E}, E, A_{H}, H, A_{R}, R, C, S, I, A_{1}, A_{2}, V, \\ &\quad Y, B, V_{a}, u_{A}, u_{M}, t ) \,dt,\end{aligned} $$
(20)

subject to the constraints

$$\begin{gathered} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} T = \xi_{1},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} U = \xi_{2},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} D = \xi_{3}, \\ _{a}^{\mathrm{ABC}} D_{t}^{\alpha} A_{E} = \xi_{4},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} E = \xi_{5},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} A_{H} = \xi_{6}, \\ _{a}^{\mathrm{ABC}} D_{t}^{\alpha} H = \xi_{7},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} A_{R} = \xi_{8},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} R = \xi_{9}, \\ _{a}^{\mathrm{ABC}} D_{t}^{\alpha} C = \xi_{10},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} S = \xi_{11}, \qquad{}_{a}^{\mathrm{ABC}} D_{t}^{\alpha} I = \xi_{12}, \\ _{a}^{\mathrm{ABC}} D_{t}^{\alpha} A_{1} = \xi_{13},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} A_{2} = \xi_{14},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} V = \xi_{15}, \\ _{a}^{\mathrm{ABC}} D_{t}^{\alpha} Y = \xi_{16},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} B = \xi_{17},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} V_{a} = \xi_{18},\end{gathered} $$

where

$$\xi_{i} = \xi ( T, U, D, A_{E}, E, A_{H}, H, A_{R}, R, C, S, I, A_{1}, A_{2}, V, Y, B, V_{a}, u_{A}, u_{M}, t ),\quad i =1, \ldots,18, $$

with the following initial conditions:

$$\begin{gathered} T (0)= T_{0},\qquad U (0)= u_{0},\qquad D (0)= d_{0},\qquad A_{E} (0)= a_{E_{0}},\qquad E (0)= e_{0},\\ A_{H} (0)= a_{h_{0}},\qquad H (0)= h_{0},\qquad A_{R} (0)= a_{R_{0}}, \qquad C (0)= c_{0},\qquad S (0)= s_{0},\\ I (0)= i_{0},\qquad A_{1} (0)= a_{1_{0}},\qquad A_{2} (0)= a_{2_{0}},\qquad V (0)= v_{0},\qquad Y (0)= y_{0},\\ B (0)= b_{0},\qquad V_{a} (0)= v_{a_{0}}.\end{gathered} $$

The modified objective functional is defined as follows ([30]):

$$\begin{aligned}[b] \tilde{J}& = \int_{0}^{T_{f}} \bigl[ H_{a} ( T, U, D, A_{E}, E, A_{H}, H, A_{R}, R, C, S, I, A_{1}, A_{2}, V, Y, B, V_{a}, u_{A}, u_{M}, t ) \\ &\quad- \sum_{i =1}^{18} \lambda_{i} \xi_{i} ( T, U, D, A_{E}, E, A_{H}, H, A_{R}, R, C, S, I, A_{1}, A_{2}, V, Y, B, V_{a}, u_{A}, u_{M}, t )\bigr] \,dt,\hspace{-12pt}\end{aligned} $$
(21)

where the Hamiltonian is given as follows:

$$\begin{gathered}[b] H_{a} ( T, U, D, A_{E}, E, A_{H}, H, A_{R}, R, C, S, I, A_{1}, A_{2}, V, Y, B, V_{a}, u_{A}, u_{M}, \lambda_{i}, t ) \\ \quad= \eta ( T, U, D, A_{E}, E, A_{H}, H, A_{R}, R, C, S, I, A_{1}, A_{2}, V, Y, B, V_{a}, u_{A}, u_{M}, t ) \\ \quad\quad{}+ \sum_{i =1}^{18} \lambda_{i} \xi_{i} ( T, U, D, A_{E}, E, A_{H}, H, A_{R}, R, C, S, I, A_{1}, A_{2}, V, Y, B, V_{a}, u_{A}, u_{M}, t ).\end{gathered} $$
(22)

From (21) and (22) the necessary conditions for FOPCs ([4649]) are

$$\begin{aligned}& _{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{1} = \frac{\partial H_{a}}{\partial T},\qquad{} _{t}^{c} D_{t_{f}}^{\alpha} \lambda_{2} = \frac{\partial H_{a}}{ \partial U}, \\& _{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{3} = \frac{\partial H_{a}}{\partial D}, \qquad{}_{t}^{c} D_{t_{f}}^{\alpha} \lambda_{4} = \frac{\partial H_{a}}{ \partial A_{E}}, \\& _{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{5} = \frac{\partial H_{a}}{\partial E},\qquad{} _{t}^{c} D_{t_{f}}^{\alpha} \lambda_{6} = \frac{\partial H_{a}}{ \partial A_{H}}, \\& _{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{7} = \frac{\partial H_{a}}{\partial H},\qquad{} _{t}^{c} D_{t_{f}}^{\alpha} \lambda_{8} = \frac{\partial H_{a}}{ \partial A_{R}}, \end{aligned}$$
(23)
$$\begin{aligned}& _{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{9} = \frac{\partial H_{a}}{\partial R},\qquad{} _{t}^{c} D_{t_{f}}^{\alpha} \lambda_{10} = \frac{\partial H_{a}}{ \partial C}, \\& _{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{11} = \frac{\partial H_{a}}{ \partial S},\qquad{} _{t}^{c} D_{t_{f}}^{\alpha} \lambda_{12} = \frac{\partial H_{a}}{\partial I}, \\& _{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{13} = \frac{\partial H_{a}}{ \partial A_{1}},\qquad{} _{t}^{c} D_{t_{f}}^{\alpha} \lambda_{14} = \frac{\partial H_{a}}{\partial A_{2}}, \\& _{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{15} = \frac{\partial H_{a}}{ \partial V},\qquad{} _{t}^{c} D_{t_{f}}^{\alpha} \lambda_{16} = \frac{\partial H_{a}}{\partial Y}, \\& _{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{17} = \frac{\partial H_{a}}{ \partial B},\qquad{} _{t}^{c} D_{t_{f}}^{\alpha} \lambda_{18} = \frac{\partial H_{a}}{\partial V_{a}}, \\& 0= \frac{\partial H}{\partial u_{k}}, \end{aligned}$$
(24)
$$\begin{aligned}& _{0}^{\mathrm{ABC}} D_{t}^{\alpha} T = \frac{\partial H_{a}}{\partial \lambda_{1}},\qquad{} _{0}^{\mathrm{ABC}} D_{t}^{\alpha} U = \frac{\partial H_{a}}{\partial \lambda_{2}}, \\& _{0}^{\mathrm{ABC}} D_{t}^{\alpha} D = \frac{\partial H_{a}}{\partial \lambda_{3}},\qquad{} _{0}^{\mathrm{ABC}} D_{t}^{\alpha} A_{E} = \frac{\partial H_{a}}{\partial \lambda_{4}}, \\& _{0}^{\mathrm{ABC}} D_{t}^{\alpha} E = \frac{\partial H_{a}}{\partial \lambda_{5}},\qquad{} _{0}^{\mathrm{ABC}} D_{t}^{\alpha} A_{H} = \frac{\partial H_{a}}{\partial \lambda_{6}}, \\& _{0}^{\mathrm{ABC}} D_{t}^{\alpha} H = \frac{\partial H_{a}}{\partial \lambda_{7}},\qquad{} _{0}^{\mathrm{ABC}} D_{t}^{\alpha} A_{R} = \frac{\partial H_{a}}{\partial \lambda_{8}}, \\& _{0}^{\mathrm{ABC}} D_{t}^{\alpha} R = \frac{\partial H_{a}}{\partial \lambda_{9}},\qquad{} _{0}^{\mathrm{ABC}} D_{t}^{\alpha} C = \frac{\partial H_{a}}{\partial \lambda_{10}}, \\& _{0}^{\mathrm{ABC}} D_{t}^{\alpha} S = \frac{\partial H_{a}}{\partial \lambda_{11}},\qquad{} _{0}^{\mathrm{ABC}} D_{t}^{\alpha} I = \frac{\partial H_{a}}{ \partial \lambda_{12}}, \\& _{0}^{\mathrm{ABC}} D_{t}^{\alpha} A_{1} = \frac{\partial H_{a}}{\partial \lambda_{13}},\qquad{} _{0}^{\mathrm{ABC}} D_{t}^{\alpha} A_{2} = \frac{\partial H_{a}}{ \partial \lambda_{14}}, \\& _{0}^{\mathrm{ABC}} D_{t}^{\alpha} V = \frac{\partial H_{a}}{\partial \lambda_{15}},\qquad{} _{0}^{\mathrm{ABC}} D_{t}^{\alpha} Y = \frac{\partial H_{a}}{ \partial \lambda_{16}}, \\& _{0}^{\mathrm{ABC}} D_{t}^{\alpha} B = \frac{\partial H_{a}}{\partial \lambda_{17}},\qquad{} _{0}^{\mathrm{ABC}} D_{t}^{\alpha} V_{a} = \frac{\partial H_{a}}{ \partial \lambda_{18}}, \end{aligned}$$
(25)
$$\begin{aligned}& \lambda_{j} ( T_{f} )=0, \end{aligned}$$
(26)

where \(\lambda_{j}\), \(j =1,2,3,\ldots,18\), are the Lagrange multipliers.

Theorem 3.1

If\(u_{M}^{*}\), \(u_{A}^{*}\)be the optimal controls with corresponding states\(T^{*}\), \(U^{*}\), \(D^{*}\), \(A_{E}^{*}\), \(E^{*}\), \(A_{H}^{*}\), \(H^{*}\), \(A_{R}^{*}\), \(R^{*}\), \(C^{*}\), \(S^{*}\), \(I^{*}\), \(A_{1}^{*}\), \(A_{2}^{*}\), \(V^{*}\), \(Y^{*}\), \(B^{*}\), and\(V_{a}^{*}\), then there exist adjoint variables\(\lambda_{j}^{*}\), \(j =1,2,3,\ldots,18\), satisfying the following. (i) Adjoint equations:

$$\begin{aligned}& \begin{aligned}[b] _{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{1}^{*} &= A+ \lambda_{1}^{*} \biggl( \gamma_{1}^{\alpha} - \frac{2 \gamma_{1}^{\alpha} T^{*}}{ \lambda_{B}^{\alpha} B^{*}} \biggr) + \frac{r_{0}^{\alpha} (1 + k_{2}^{\alpha} \frac{T^{*}}{E^{*}} ) - ( \frac{k_{2}^{\alpha} r_{0}^{\alpha} T^{*}}{E^{*}} )}{(1 + k_{2}^{\alpha} \frac{T^{*}}{E^{*}} )^{2} (1 + k_{3}^{\alpha} \frac{R^{*}}{E^{*}} )(1 + \frac{S^{*}}{s_{1}^{\alpha}} )(1 + \frac{V^{*}}{v_{1}^{\alpha}} )} \\ &\quad+ \lambda_{2}^{*} \biggl( \frac{a^{\alpha}}{(1 + \frac{V^{*}}{v_{3}^{\alpha}} )(1 + \frac{I^{*}}{I_{1}^{\alpha}} )(1 + \frac{R^{*}}{R_{1}^{\alpha}} )} \biggr) + \lambda_{12}^{*} p_{4}^{\alpha} \\ &\quad+ \lambda_{15}^{*} \biggl( \frac{2 \alpha^{\alpha} v_{2} T^{*} ( \theta_{v}^{\alpha} B^{*} + T^{*} ) - \alpha_{v_{2}}^{\alpha} T^{2 *}}{( \theta_{v}^{\alpha} B^{*} + T^{*} )^{2}} + \alpha_{v}^{\alpha} \biggr) \\ &\quad+ \lambda_{14}^{*} \biggl( \frac{\alpha_{A_{2}} B^{*} ( \theta_{A_{2}} + T^{*} ) - \alpha_{A_{2}} B^{*} T^{*}}{( \theta_{A_{2}}^{\alpha} + T^{*} )^{2}} \biggr),\end{aligned} \end{aligned}$$
(27)
$$\begin{aligned}& _{t}^{c\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{2}^{*} = \lambda_{2}^{*} \biggl( - \delta_{u}^{\alpha} - \frac{\lambda^{\alpha} + \frac{2 \lambda^{\alpha} U^{*}}{M_{H}^{\alpha}}}{(1 + \frac{U^{*}}{M_{H}^{\alpha}} )^{2}} \biggr) + \lambda_{3}^{*} \frac{\lambda^{\alpha}}{(1 + \frac{U^{*}}{M_{H}^{\alpha}} )^{2}} - \lambda_{6}^{*} \frac{\frac{k_{4}^{\alpha} M^{\alpha} \alpha_{3}^{\alpha} M_{H}^{\alpha}}{( U^{*} + D^{*} )^{2}}}{(1 + \frac{k_{4}^{\alpha} M^{\alpha}}{U^{*} + D^{*}} )^{2}}, \end{aligned}$$
(28)
$$\begin{aligned}& _{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{3}^{*} = \lambda_{3}^{*} \bigl( - \delta_{D}^{\alpha} \bigr) - \lambda_{4}^{*} \biggl( \frac{\frac{k_{4}^{\alpha} M}{D^{2 *}}}{1 + \frac{k_{4}^{\alpha} M}{D^{*}}} \biggr) - \lambda_{6}^{*} \biggl( \frac{\frac{k_{4}^{\alpha} M}{( U^{*} + D^{*} )^{2}}}{(1 + \frac{k_{4}^{\alpha} M}{( U^{*} + D^{*} )^{2}} )} \biggr) + \lambda_{8}^{*} \frac{\alpha_{5}^{\alpha} M_{R} \frac{k_{4}^{\alpha} M}{D^{* 2}}}{(1 + k_{4}^{\alpha} \frac{M}{D^{*}} )^{2}}, \end{aligned}$$
(29)
$$\begin{aligned}& _{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{4}^{*} = \lambda_{4}^{*} \bigl( - \delta_{A}^{\alpha} \bigr) + \lambda_{5}^{*} \biggl( \frac{\alpha_{2} C^{*}}{(1 + \frac{V^{*}}{v_{2}^{\alpha}} )(1 + \frac{S^{*}}{s_{2}^{\alpha}} )( c_{1}^{\alpha} + C^{*} )} \biggr), \end{aligned}$$
(30)
$$\begin{aligned}& _{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{5}^{*} = \lambda_{1}^{*} \biggl( \frac{- \frac{k_{2}^{\alpha} T^{*}}{E^{2 *}} (1 + k_{3}^{\alpha} \frac{R^{*}}{E^{*}} ) + (1 + \frac{k_{2}^{\alpha} T^{*}}{E^{*}} ) \frac{k_{3}^{\alpha} R^{*}}{E^{2 *}}}{(1 + \frac{k_{2}^{\alpha} T^{*}}{E^{*}} )^{2} (1 + \frac{k_{3}^{\alpha} R^{*}}{E^{*}} )^{2} (1 + \frac{S^{*}}{s_{1}^{\alpha}} )(1 + \frac{V^{*}}{v_{1}^{\alpha}} )} \biggr) - \lambda_{5}^{*} \delta_{E}^{\alpha}, \end{aligned}$$
(31)
$$\begin{aligned}& _{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{6}^{*}= - \lambda_{6}^{*} \delta_{A}^{\alpha} + \lambda_{7}^{*} \frac{\alpha_{4}^{\alpha} C^{*}}{(1 + \frac{V^{*}}{v_{2}^{\alpha}} )(1 + \frac{S^{*}}{s_{2}^{\alpha}} )( c_{1} + C^{*} )} + \lambda_{10}^{*} \frac{p_{c}^{\alpha}}{(1 + \frac{S^{*}}{s_{4}^{\alpha}} )(1 + \frac{I^{*}}{I_{2}^{\alpha}} )}, \end{aligned}$$
(32)
$$\begin{aligned}& _{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{7}^{*} = - \lambda_{7}^{*} \biggl( \frac{\alpha_{7} S^{*}}{s_{3}^{\alpha} + S^{*}} - \delta_{H}^{\alpha} \biggr) + \lambda_{9}^{*} \biggl( \frac{\alpha_{7}^{\alpha} S^{*}}{( s_{3}^{\alpha} + S^{*} )} \biggr), \end{aligned}$$
(33)
$$\begin{aligned}& _{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{8}^{*} = - \lambda_{8}^{*} \delta_{A}^{\alpha} + \lambda_{9}^{*} \frac{\alpha_{6}^{\alpha} C^{*}}{( c_{1}^{\alpha} + C^{*} )}, \end{aligned}$$
(34)
$$\begin{aligned}& \begin{aligned}[b]_{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{9}^{*}& = \lambda_{1}^{*} \frac{- r_{0}^{\alpha} \frac{T k_{3}^{\alpha}}{E^{*}}}{(1 + k_{2}^{\alpha} \frac{T^{*}}{E^{*}} )(1 + k_{3}^{\alpha} \frac{R^{*}}{E^{*}} )^{2} (1 + \frac{S^{*}}{s_{1}^{\alpha}} )(1 + \frac{V^{*}}{v_{1}^{\alpha}} )} \\ &\quad- \lambda_{2}^{*} \frac{\frac{a^{\alpha} T^{*}}{R_{1}^{\alpha}}}{(1 + \frac{R^{*}}{R_{1}^{\alpha}} )^{2} (1 + \frac{V^{*}}{v_{3}^{\alpha}} )(1 + \frac{I^{*}}{I_{1}^{\alpha}} )} - \delta_{R^{*}}^{\alpha} \lambda_{9}^{*},\end{aligned} \end{aligned}$$
(35)
$$\begin{aligned}& \begin{aligned}[b]_{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{10}^{*}& = \lambda_{5}^{*} \frac{\alpha_{2} A_{E}^{*} ( c_{1}^{\alpha} + C^{*} ) - \alpha_{2}^{\alpha} A_{E}^{*} C^{*}}{( c_{1}^{\alpha} + C^{*} )^{2} (1 + \frac{V^{*}}{v_{2}^{\alpha}} )(1 + \frac{S^{*}}{s_{2}^{\alpha}} )} + \lambda_{7}^{*} \frac{\alpha_{4}^{\alpha} A_{H}^{*} ( c_{1}^{\alpha} + C^{*} ) - \alpha_{4}^{\alpha} A_{H}^{*} C^{*}}{( c_{1}^{\alpha} + C^{*} )^{2} (1 + \frac{V^{*}}{v_{2}^{\alpha}} )(1 + \frac{S^{*}}{s_{2}^{\alpha}} )} \\ &\quad+ \lambda_{9}^{*} \biggl( \frac{\alpha_{6}^{\alpha} A_{R}^{*} ( c_{1}^{\alpha} + C^{*} ) - \alpha_{6} A_{R}^{*} C^{*}}{( c_{1}^{\alpha} + C^{*} )^{2}} \biggr) - \lambda_{10}^{*} \frac{1}{\tau_{c}^{\alpha}},\end{aligned} \end{aligned}$$
(36)
$$\begin{aligned}& \begin{aligned}[b]_{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{11}^{*} &= \lambda_{1}^{*} \biggl( - r_{0}^{\alpha} \frac{\frac{T^{*}}{s_{1}^{\alpha}}}{(1 + \frac{S^{*}}{s_{1}^{\alpha}} )^{2} (1 + \frac{k_{2}^{\alpha} T^{*}}{E^{*}} )(1 + \frac{k_{3}^{\alpha} R^{*}}{E^{*}} )(1 + \frac{V^{*}}{v_{1}^{\alpha}} )} \biggr) \\ &\quad+ \lambda_{5}^{*} \biggl( \frac{\alpha_{2}^{\alpha} A_{E}^{*} (1 + \frac{S^{*}}{s_{2}^{\alpha}} - \frac{\alpha_{2}^{\alpha} A_{E}^{*} C^{*}}{s_{2}^{\alpha}} )}{(1 + \frac{S^{*}}{s_{2}^{\alpha}} )^{2} ( c_{1}^{\alpha} + C^{*} )(1 + \frac{V^{*}}{v_{2}^{\alpha}} )} \biggr) \\ &\quad+ \lambda_{9}^{*} \biggl( \frac{\alpha_{7}^{\alpha} H ( s_{3}^{\alpha} + S^{*} ) - \alpha_{7}^{\alpha} H^{*} S^{*}}{( s_{3}^{\alpha} + S^{*} )^{2}} \biggr) \\ &\quad+ \lambda_{10}^{*} \biggl( \frac{p_{c}^{\alpha} \frac{A_{H}^{*}}{s_{4}^{\alpha}}}{(1 + \frac{S^{*}}{s_{4}^{\alpha}} )(1 + \frac{I^{*}}{I_{2}^{\alpha}} )^{2}} \biggr) - \frac{\lambda_{11}^{*}}{ \tau_{s}^{\alpha}},\end{aligned} \end{aligned}$$
(37)
$$\begin{aligned}& \begin{aligned}[b]_{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{12}^{*} &= \lambda_{2}^{*} \biggl( \frac{\frac{- a^{\alpha} T^{*}}{I_{1}^{\alpha}}}{(1 + \frac{V^{*}}{v_{3}^{\alpha}} )(1 + \frac{R^{*}}{R_{1}^{\alpha}} )(1 + \frac{I^{*}}{I_{1}^{\alpha}} )^{2}} \biggr) \\ &\quad- \lambda_{10}^{*} \biggl( \frac{p_{c}^{\alpha} A_{H}^{*} \frac{1}{I_{2}^{\alpha}}}{(1 + \frac{S^{*}}{s_{4}^{\alpha}} )(1 + \frac{I^{*}}{I_{2}^{\alpha}} )^{2}} \biggr) - \frac{\lambda_{12}^{*}}{ \tau_{I}^{\alpha}},\end{aligned} \end{aligned}$$
(38)
$$\begin{aligned}& \begin{aligned}[b]_{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{13}^{*} &= \lambda_{16}^{*} \biggl( \frac{- \omega^{\alpha} Y^{*} V^{*} + \omega^{\alpha} Y^{*} A_{1}^{*}}{( \rho^{\alpha} Y^{*} + V^{*} )( \theta_{B}^{\alpha} A_{2}^{*} + A_{1}^{*} )^{2}} \biggr) \\ &\quad+ \lambda_{17}^{*} \biggl( \frac{\frac{1}{S^{*}} \omega^{\alpha} Y^{*} V^{*} - \frac{1}{S^{*}} \omega^{\alpha} Y^{*} A_{1}^{*}}{( \rho^{\alpha} Y^{*} + V^{*} )( \theta_{B}^{\alpha} A_{2}^{*} + A_{1}^{*} )^{2}} \biggr) - \delta_{A_{1}}^{\alpha} \lambda_{13}^{*},\end{aligned} \end{aligned}$$
(39)
$$\begin{aligned}& \begin{aligned}[b]_{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{14}^{*} &= \lambda_{16}^{*} \biggl( \frac{\omega A_{1}^{*} Y^{*} V^{*} \theta_{B}^{\alpha}}{( \rho^{\alpha} Y^{*} + V^{*} )( \theta_{B}^{\alpha} A_{2}^{*} + A_{1}^{*} )^{2}} \biggr) \\ &\quad+ \lambda_{17}^{*} \biggl( \frac{\frac{1}{S^{*}} \omega^{\alpha} Y^{*} V^{*} A_{1}^{*} \theta_{B}^{\alpha}}{( \rho^{\alpha} Y^{*} + V^{*} )( \theta_{B}^{\alpha} A_{2}^{*} + A_{1}^{*} )^{2}} \biggr) - \delta_{A_{2}}^{\alpha} \lambda_{14}^{*},\end{aligned} \end{aligned}$$
(40)
$$\begin{aligned}& \begin{aligned}[b]_{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{15}^{*} &= \lambda_{15}^{*} \bigl( - \delta_{v}^{\alpha} - \tau^{\alpha} V_{a}^{*} \bigr) + \lambda_{16}^{*} \biggl( \frac{\alpha_{y}^{\alpha} Y^{2 *} \theta_{v_{a}}^{\alpha}}{( \theta_{v_{a}}^{\alpha} Y^{*} + V^{*} )^{2}} \\ &\quad- \biggl( \frac{\omega^{\alpha} Y^{*} A_{1}^{*}}{\theta_{B}^{\alpha} A_{2}^{*} + A_{1}^{*}} \biggr) \biggl( \frac{\rho^{\alpha} Y^{*}}{( \rho^{\alpha} Y^{*} + V^{*} )^{2}} \biggr) + \biggl( \frac{\delta_{y}^{\alpha} \theta_{y}^{\alpha} Y^{2 *}}{( \theta_{y}^{\alpha} Y^{*} + V^{*} )^{2}} \biggr)\biggr) \\ &\quad+ \lambda_{17}^{*} \biggl( \frac{1}{S^{*}} \omega^{\alpha} Y \biggl( \frac{A_{1}^{*}}{ ( \theta_{B} A_{2}^{*} + A_{1}^{*} )} \biggr) \biggl( \frac{\rho^{\alpha} Y^{*}}{( \rho^{\alpha} Y^{*} + V^{*} )^{2}} \biggr) \\ &\quad+ \biggl( \frac{\gamma_{B}^{\alpha} B^{*} A_{2}^{4 *} \rho^{\alpha} Y^{*}}{(( \theta_{EC}^{\alpha} A_{1}^{*} )^{4} + A_{2}^{4 *} )( \rho^{\alpha} Y^{*} + V^{*} )^{2}} \biggr)\biggr) - \lambda_{18}^{*} \tau^{\alpha} V_{a}^{*} \\ &\quad+ \lambda_{2}^{*} \biggl( \frac{\frac{- a^{\alpha} T^{*}}{v_{3}^{\alpha}}}{(1 + \frac{V^{*}}{v 3^{\alpha}} )^{2} (1 + \frac{R^{*}}{R_{1}^{\alpha}} )(1 + \frac{I^{*}}{I_{1}^{\alpha}} )} \biggr),\end{aligned} \end{aligned}$$
(41)
$$\begin{aligned}& \begin{aligned}[b]_{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{16}^{*}& = \lambda_{16}^{*} \biggl( \frac{\alpha_{y}^{\alpha} V^{2 *}}{( \theta_{v_{a}}^{\alpha} Y^{*} + V^{*} )^{2}} - \frac{V^{2 *} \omega^{\alpha} A_{1}^{*}}{( \theta_{B}^{\alpha} A_{2}^{*} + A_{1}^{*} )( \rho^{\alpha} Y^{*} + V^{*} )^{2}} \biggr) \\ &\quad- \delta_{y}^{\alpha} + \frac{\delta_{y}^{\alpha} V^{2 *}}{( \theta_{y}^{\alpha} Y^{*} + V^{*} )^{2}} \\ &\quad+ \lambda_{17}^{*} \biggl( \frac{\gamma_{B}^{\alpha} B^{*} A_{2}^{4 *}}{(( \theta_{EC}^{\alpha} A_{1}^{*} )^{4} + A_{2}^{4 *} )} \biggl( \frac{\rho^{\alpha} V^{*}}{( \rho^{\alpha} Y^{*} + V^{*} )^{2}} \biggr)\biggr),\end{aligned} \end{aligned}$$
(42)
$$\begin{aligned}& \begin{aligned}[b]_{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{17}^{*}& = \lambda_{16}^{*} \biggl( \frac{- \gamma_{B}^{\alpha} A_{2}^{4 *}}{(( \theta_{EC}^{\alpha} A_{1}^{*} )^{4} + A_{2}^{4 *} )} \biggl(1 - \frac{V^{*}}{\rho^{\alpha} Y^{*} + V^{*}} \biggr)\biggr) \\ &\quad- \lambda_{15}^{*} \biggl( \frac{\alpha_{v_{2}}^{\alpha} T^{2} \theta_{v}^{\alpha}}{( \theta_{v}^{\alpha} B^{*} + T^{*} )^{2}} \biggr) + \lambda_{14}^{*} \frac{\alpha_{A_{2}}^{\alpha} T^{*}}{ \theta_{A_{2}}^{\alpha} + T^{*}} \\ &\quad+ \lambda_{13}^{*} \alpha_{A_{1}}^{\alpha} + \lambda_{1}^{*} \frac{\gamma_{1}^{\alpha} T^{2 *} \lambda_{B}^{\alpha}}{( \lambda_{B}^{\alpha} B^{*} )^{2}},\end{aligned} \end{aligned}$$
(43)
$$\begin{aligned}& _{t}^{\mathrm{ABC}} D_{t_{f}}^{\alpha} \lambda_{18}^{*} = \lambda_{18}^{*} \bigl( - \tau^{\alpha} V^{*} - \delta_{v_{a}}^{\alpha} \bigr) + \lambda_{15}^{*} \bigl( \tau^{\alpha} V^{*} \bigr). \end{aligned}$$
(44)

(ii) Transversality conditions

$$ \lambda_{j}^{*} ( T_{f} )=0,\quad j =1,2, \ldots,18. $$
(45)

(iii) Optimality conditions:

$$\begin{gathered}[b] H_{a} \bigl( T^{*}, U^{*}, D^{*}, A_{E}^{*}, E^{*}, A_{H}^{*}, H^{*}, A_{R}^{*}, R^{*}, C^{*}, S^{*}, I^{*}, A_{1}^{*}, A_{2}^{*}, V^{*}, Y^{*}, B^{*}, V_{a}^{*}, u_{A}^{*}, u_{M}^{*}, \lambda \bigr) \\ \quad=\min_{0 \leq u_{A}, u_{M} \leq 1} H \bigl( T^{*}, U^{*}, D^{*}, A_{E}^{*}, E^{*}, A_{H}^{*}, H^{*}, A_{R}^{*}, R^{*}, C^{*}, S^{*}, I^{*}, A_{1}^{*}, A_{2}^{*}, V^{*},\\\qquad Y^{*}, B^{*}, V_{a}^{*}, u_{A}, u_{M}, \lambda^{*} \bigr).\end{gathered} $$
(46)

Furthermore, the control functions\(u_{A}^{*}\), \(u_{M}^{*}\)are given by

$$\begin{aligned}& u_{A}^{*} =\min \biggl\{ 1,\max \biggl\{ 0, \frac{- \lambda_{5}^{*} W_{1}^{\alpha}}{2 B_{1}} \biggr\} \biggr\} , \end{aligned}$$
(47)
$$\begin{aligned}& u_{M}^{*} =\min \biggl\{ 1,\max \biggl\{ 0, \frac{- \lambda_{12}^{*} W_{2}^{\alpha}}{2 C} \biggr\} \biggr\} . \end{aligned}$$
(48)

Proof

We can claim (27)–(44) using the conditions (23) where the Hamiltonian \(H_{a}^{*}\) is given by

$$\begin{aligned}[b] H_{a}^{*} &= A+B u_{A}^{2 *} +C u_{M}^{2 *} + \lambda_{1}^{*}{}_{a}^{c} D_{t}^{\alpha} T^{*} + \lambda_{2}^{*}{}_{a}^{c} D_{t}^{\alpha} U^{*} \\ &\quad+ \lambda_{3}^{*}{}_{a}^{c} D_{t}^{\alpha} D^{*} + \lambda_{4}^{*}{}_{a}^{c} D_{t}^{\alpha} A_{E}^{*} + \lambda_{5}^{*}{}_{a}^{c} D_{t}^{\alpha} E^{*} + \lambda_{6}^{*}{}_{a}^{c} D_{t}^{\alpha} A_{H}^{*} \\ &\quad+ \lambda_{7}^{*}{}_{a}^{c} D_{t}^{\alpha} H^{*} + \lambda_{8}^{*}{}_{a}^{c} D_{t}^{\alpha} A_{R}^{*} + \lambda_{9}^{*}{}_{a}^{c} D_{t}^{\alpha} R^{*} + \lambda_{10}^{*}{}_{a}^{c} D_{t}^{\alpha} C^{*} \\ &\quad+ \lambda_{11}^{*}{}_{a}^{c} D_{t}^{\alpha} S^{*} + \lambda_{12}^{*}{}_{a}^{c} D_{t}^{\alpha} I^{*} + \lambda_{13}^{*}{}_{a}^{c} D_{t}^{\alpha} A_{1}^{*} + \lambda_{14}^{*}{}_{a}^{c} D_{t}^{\alpha} A_{2}^{*} \\ &\quad+ \lambda_{15}^{*}{}_{a}^{c} D_{t}^{\alpha} V^{*} + \lambda_{16}^{*}{}_{a}^{c} D_{t}^{\alpha} Y^{*} + \lambda_{17}^{*}{}_{a}^{c} D_{t}^{\alpha} B^{*} + \lambda_{18}^{*}{}_{a}^{c} D_{t}^{\alpha} V_{a}^{*}.\end{aligned} $$
(49)

Moreover, \(\lambda_{j}^{*} ( T_{f} )=0\), \(j =1,\ldots,18\), hold. The optimal controls (47)–(48) can be claimed from the minimization condition (46). Substituting \(u_{A}^{*}\), \(u_{M}^{*}\) in (1)–(18), we get the state system as follows:

$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} T^{*} = \gamma_{1}^{\alpha} T^{*} \biggl(1 - \frac{T^{*}}{B^{*} \lambda_{B}} \biggr) - \biggl( \frac{r_{0}^{\alpha} T^{*}}{(1 + k_{2}^{\alpha} \frac{T^{*}}{E^{*}} )(1 + k_{3}^{\alpha} \frac{R^{*}}{E^{*}} )(1 + \frac{S^{*}}{s_{1}^{\alpha}} )(1 + \frac{V^{*}}{v_{1}^{\alpha}} )} \biggr), \end{aligned}$$
(50)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} U^{*} = \frac{a^{\alpha} T^{*}}{(1 + \frac{V^{*}}{v_{3}^{\alpha}} )(1 + \frac{I^{*}}{I_{1}^{\alpha}} )(1 + \frac{R^{*}}{R_{1}^{\alpha}} )} - \frac{\lambda U^{*}}{1 + \frac{U^{*} V^{*}}{M_{H}^{\alpha}}} - \delta_{u}^{\alpha} U^{*}, \end{aligned}$$
(51)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} D^{*} = \frac{\lambda U^{*}}{1 + \frac{U^{*}}{M_{H}^{\alpha}}} - \delta_{D}^{\alpha} D^{*}, \end{aligned}$$
(52)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} A_{E}^{*} = \frac{\alpha_{1}^{\alpha} M_{E}^{\alpha}}{1 + k_{4}^{\alpha} \frac{M}{D^{*}}} - \delta_{A}^{\alpha} A_{E}^{*}, \end{aligned}$$
(53)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} E^{*} = \frac{\alpha_{2}^{\alpha} A_{E}^{*} C^{*}}{(1 + \frac{V^{*}}{v_{1}^{\alpha}} )(1 + \frac{S^{*}}{s_{2}^{\alpha}} )( c_{1}^{\alpha} + C^{*} )} - \delta_{E}^{\alpha} E^{*} + \omega_{1}^{\alpha} u_{M}^{*}, \end{aligned}$$
(54)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} A_{H}^{*} = \frac{\alpha_{3}^{\alpha} M_{H}^{\alpha}}{1 + k_{4}^{\alpha} \frac{M}{( U^{*} + D^{*} )}} - \delta_{A}^{\alpha} A_{H}^{*}, \end{aligned}$$
(55)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} H^{*} = \frac{\alpha_{4}^{\alpha} A_{H}^{*} C^{*}}{(1 + \frac{V^{*}}{v_{1}^{\alpha}} )(1 + \frac{S^{*}}{s_{2}^{\alpha}} )( c_{1}^{\alpha} + C^{*} )} - \frac{\alpha_{7} H^{*} S^{*}}{s_{3}^{\alpha} + S^{*}} - \delta_{H}^{\alpha} H^{*}, \end{aligned}$$
(56)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} A_{R}^{*} = \frac{\alpha_{5}^{\alpha} M_{R}^{\alpha}}{1 + k_{4}^{\alpha} \frac{M^{\alpha}}{D^{*}}} - \delta_{A}^{\alpha} A_{R}^{*}, \end{aligned}$$
(57)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} R^{*} = \frac{\alpha_{6}^{\alpha} A_{R}^{*} C^{*}}{c_{1}^{\alpha} + C^{*}} + \frac{\alpha_{7}^{\alpha} H^{*} S^{*}}{ s_{3}^{\alpha} + S^{*}} - \delta_{R}^{\alpha} R^{*}, \end{aligned}$$
(58)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} C^{*} = \frac{p_{c}^{\alpha} A_{H}^{*}}{(1 + \frac{S^{*}}{s_{4}^{\alpha}} )(1 + \frac{I^{*}}{I_{1}^{\alpha}} )} - \frac{C^{*}}{\tau^{\alpha}}, \end{aligned}$$
(59)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} S^{*} = p_{1}^{\alpha} R^{*} + p_{2}^{\alpha} T^{*} - \frac{S^{*}}{\tau_{s}^{\alpha}}, \end{aligned}$$
(60)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} I^{*} = p_{3}^{\alpha} R^{*} + p_{4}^{\alpha} T^{*} - \frac{I^{*}}{\tau_{I}^{\alpha}}, \end{aligned}$$
(61)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} A_{1}^{*} = \alpha_{A_{1}}^{\alpha} B^{*} - \delta_{A_{1}}^{\alpha} A_{1}^{*}, \end{aligned}$$
(62)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} A_{2}^{*} = \alpha_{A_{1}}^{\alpha} B^{*} \biggl( \frac{T^{*}}{\theta_{A_{2}}^{\alpha} + T^{*}} \biggr) - \delta_{A_{2}}^{\alpha} A_{2}^{*}, \end{aligned}$$
(63)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} V^{*} = \alpha_{v}^{\alpha} T^{*} + \alpha_{v_{2}}^{\alpha} T^{*} \biggl( \frac{T^{*}}{\theta_{v}^{\alpha} B^{*} + T^{*}} \biggr) - \delta_{v}^{\alpha} V^{*} - \tau^{\alpha} V_{a} V^{*}, \end{aligned}$$
(64)
$$\begin{aligned}& \begin{aligned}[b]_{a}^{\mathrm{ABC}} D_{t}^{\alpha} Y^{*} &= \alpha_{y}^{\alpha} Y^{*} \biggl( \frac{V^{*}}{ \theta_{v_{a}}^{\alpha} Y^{*} + V^{*}} \biggr) - \omega^{\alpha} Y^{*} \biggl( \frac{A_{1}^{*}}{\theta_{B} A_{2}^{*} + A_{1}^{*}} \biggr) \biggl( \frac{V^{*}}{\rho Y^{*} + V^{*}} \biggr) \\ &\quad- \delta_{y}^{\alpha} Y^{*} \biggl(1 + \frac{V^{*}}{\theta_{y}^{\alpha} Y^{*} + V^{*}} \biggr) + \omega_{2}^{\alpha} u_{A}^{*},\end{aligned} \end{aligned}$$
(65)
$$\begin{aligned}& \begin{aligned}[b]_{a}^{\mathrm{ABC}} D_{t}^{\alpha} B^{*} &= \frac{1}{s^{\alpha}} \omega^{\alpha} Y^{*} V^{*} \biggl( \frac{A_{1}^{*}}{\theta_{B}^{\alpha} A_{2}^{*} + A_{1}^{*}} \biggr) \biggl( \frac{V^{*}}{\rho^{\alpha} Y^{*} + V^{*}} \biggr) \\ &\quad- \gamma_{B}^{\alpha} B^{*} \biggl( \frac{A_{2}^{4 *}}{( \theta_{EC}^{\alpha} A_{1}^{*} )^{4} + A_{2}^{4 *}} \biggr) \biggl(1 - \frac{V^{*}}{\rho^{\alpha} Y^{*} + V^{*}} \biggr),\end{aligned} \end{aligned}$$
(66)
$$\begin{aligned}& _{a}^{\mathrm{ABC}} D_{t}^{\alpha} V_{a}^{*} = - \tau^{\alpha} V_{a}^{*} V^{*} - \rho_{v_{a}}^{\alpha} V_{a}^{*}. \end{aligned}$$
(67)

 □

3.1 Existence of an optimal control pair

The existence of the optimal control pair can be directly obtained using the results in Fleming and Rishel [55] and Lukes [56]; more precisely, we have the following theorem.

Theorem 3.2

There exists an optimal control pair \(( u_{M}^{*}, u_{A}^{*} ) \in \varOmega\) such that

$$J \bigl( u_{M}^{*}, u_{A}^{*} \bigr)= \min_{( u_{A}, u_{M} ) \in \varOmega} J ( u_{M}, u_{A} ). $$

Proof

To prove the existence of an optimal control, we use the result in [56]. Note that the control and the state variables are nonnegative values. In this minimizing problem, the necessary convexity of the objective functional in \(u_{A}\), \(u_{M}\) are satisfied. The set of all the control variables \(( u_{M}, u_{A} ) \in \varOmega\) is also convex and closed by definition. The optimal system is bounded, which determines the compactness needed for the existence of the optimal control. In addition, the integrand in functional (19), “\(AT+ u_{A}^{2} +C u_{M}^{2}\),” is convex on the control set Ω. Also we can claim that there exist a constant \(\mu >1\) and numbers \(c_{1}\), \(c_{2}\) such that

$$J ( u_{M}, u_{A} ) \geq c_{1} \bigl( u_{A}^{2} + u_{M}^{2} \bigr)^{\frac{\mu}{2}} - c_{2}, $$

because the state variables are bounded, it completes the existence of an optimal control. □

4 Numerical method for solving FOCP

4.1 Nonstandard two-step Lagrange interpolation method

For simplicty consider the FODEs in the following general form:

$$\begin{aligned}& _{0}^{\mathrm{ABC}} D_{t}^{\alpha} y ( t )= Q \bigl( t, y ( t )\bigr),\quad 0< t\leq T, 0< \alpha\leq 1, \\& y (0)= y_{o}. \end{aligned}$$
(68)

The Atangana–Baleanu fractional-order derivative in the Caputo sense is given as follows ([43]):

$$ _{a}^{\mathrm{ABC}} D_{t}^{\alpha} y ( t )= \frac{M ( \alpha )}{(1 -\alpha )} \int_{0}^{t} E_{\alpha} \biggl( -\alpha \frac{( t-q )^{\alpha}}{(1 -\alpha )} \biggr) \dot{y} ( q ) \,dq, $$
(69)

where \(M ( \alpha )=1 -\alpha+ \frac{\alpha}{\varGamma( \alpha )}\) is the normalization function, \(E_{\alpha}\) is the Mittag-Leffler function.

Thanks to the fundamental theorem of fractional calculus with (69), we have

$$\begin{aligned} y ( t )&= y (0) + \frac{1 -\alpha}{M ( \alpha )} Q \bigl( t, y ( t )\bigr)\\&\quad + \frac{\alpha}{\varGamma( \alpha ) M ( \alpha )} \int_{0}^{t} Q \bigl( \theta, y ( \theta ) \bigr) ( t-\theta )^{\alpha- 1}\, d\theta,\end{aligned} $$

at \(t_{n+ 1}\) we have

$$\begin{aligned}[b] y_{n+ 1}& = y_{0} + \frac{\varGamma( \alpha )(1 -\alpha )}{\varGamma( \alpha )(1 -\alpha ) +\alpha} Q \bigl( t_{n}, y ( t_{n} )\bigr) \\ &\quad+ \frac{\alpha}{\varGamma( \alpha ) +\alpha (1 - \varGamma( \alpha ))} \sum_{m =0}^{n} \int_{t_{m}}^{t_{m+ 1}} Q \bigl( \theta, y ( \theta ) \bigr) ( t-\theta )^{\alpha- 1} \,d\theta.\end{aligned} $$
(70)

The two-step Lagrange interpolation is given as follows:

$$ P_{k}:= \frac{Q ( t_{m}, y_{m} )}{h} ( \theta- t_{m- 1} ) - \frac{Q ( t_{m- 1}, y_{m- 1} )}{h} ( \theta- t_{m} ), $$
(71)

Equation (71) is replaced in (70) and performing the same steps as in [57], we obtain

$$\begin{aligned}[b] y_{n+ 1} &= y_{0} + \frac{\varGamma( \alpha )(1 -\alpha )}{\varGamma( \alpha )(1 -\alpha ) +\alpha} Q \bigl( t_{n}, y ( t_{n} )\bigr) \\ &\quad+ \frac{1}{(1 +\alpha )(1 -\alpha )\varGamma( \alpha ) +\alpha} \sum_{m =0}^{n} h^{\alpha} Q \bigl( t_{m}, y ( t_{m} )\bigr) (1 +n-m )^{\alpha} \\ &\quad\times(2 +n-m+\alpha ) - (2 +n-m+ 2 \alpha ) ( n-m )^{\alpha} \\ &\quad- h^{\alpha} Q ( t_{m- 1}, y ( t_{m- 1} ) (1 +n-m )^{\alpha+ 1}\\&\quad - ( n-m+ 1 +\alpha ) ( n-m )^{\alpha}.\end{aligned} $$
(72)

To obtain high stability [58], we used a simple modification in (72). This modification is to replace the step size h with \(\phi ( h )\) such that \(\phi ( h )= h+O ( h^{2} )\), \(0< \phi ( h ) \leq 1\). For more details on NSFDM see [40, 5962]. The nonstandard two-step Lagrange interpolation method (NS2LIM) is given as follows:

$$\begin{aligned}[b] y_{n+ 1} - y_{0}& = \frac{\varGamma( \alpha )(1 -\alpha )}{\varGamma( \alpha )(1 -\alpha ) +\alpha} Q \bigl( t_{n}, y ( t_{n} )\bigr) \\ &\quad+ \frac{1}{(1 +\alpha )(1 -\alpha )\varGamma( \alpha ) +\alpha} \sum_{m =0}^{n} \phi ( h )^{\alpha} Q \bigl( t_{m}, y ( t_{m} ) \bigr) (1 +n-m )^{\alpha} \\ &\quad\times ( n-m+ 2 +\alpha ) - (2 +n-m+ 2 \alpha ) ( n-m )^{\alpha} \\ &\quad-\phi ( h )^{\alpha} Q \bigl( t_{m- 1}, y ( t_{m- 1} )\bigr) (1 +n-m )^{\alpha+ 1} \\ &\quad- (1 +n-m+\alpha ) ( n-m )^{\alpha}.\end{aligned} $$
(73)

Then we use the new scheme to numerically solve the state system (50)–(67) and we use the nonstandard implicit finite difference method to solve the co-state system (27)–(44) with transversality conditions \(\lambda_{i} ( T_{f} )=0\), \(i =1,\ldots,18\).

4.2 Construction of the N2LIM for the fraction order cancer model

Using the nonstandard technique and Eq. (73) we obtain the following nonstandard scheme for system (50)–(67). Let in system (50)–(67)

$$\begin{gathered} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} T^{*} = Q_{1},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} U^{*} = Q_{2},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} D^{*} = Q_{3}, \\ _{a}^{\mathrm{ABC}} D_{t}^{\alpha} A_{E}^{*} = Q_{4},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} E^{*} = Q_{5},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} A_{H}^{*} = Q_{6}, \\ _{a}^{\mathrm{ABC}} D_{t}^{\alpha} H^{*} = Q_{7}, \qquad{}_{a}^{\mathrm{ABC}} D_{t}^{\alpha} A_{R}^{*} = Q_{8},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} R^{*} = Q_{9}, \\ _{a}^{\mathrm{ABC}} D_{t}^{\alpha} C^{*} = Q_{10},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} S^{*} = Q_{11},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} I^{*} = Q_{12}, \\ _{a}^{\mathrm{ABC}} D_{t}^{\alpha} A_{1}^{*} = Q_{13},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} A_{2}^{*} = Q_{14},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} V^{*} = Q_{15}, \\ _{a}^{\mathrm{ABC}} D_{t}^{\alpha} Y^{*} = Q_{16},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} B^{*} = Q_{17},\qquad{} _{a}^{\mathrm{ABC}} D_{t}^{\alpha} V_{a}^{*} = Q_{18},\end{gathered} $$

where

$$\begin{aligned}& \begin{aligned}Q_{i}& = Q \bigl( t, u_{A}^{*}, u_{M}^{*}, T^{*}, U^{*}, D^{*}, A_{E}^{*}, E^{*}, A_{H}^{*}, H^{*}, A_{R}^{*}, R^{*}, C^{*}, S^{*}, I^{*}, A_{1}^{*}, A_{2}^{*}, \\ &\quad V^{*}, Y^{*}, B^{*}, V_{a}^{*} \bigr), \quad i =1,\ldots,18,\end{aligned} \\& \begin{aligned}Q_{i}^{m}&:= Q \bigl( t^{m}, u_{A}^{m*}, u_{M}^{m*}, T^{m*}, U^{m*}, D^{m*}, A_{E}^{m*}, E^{m*}, A_{H}^{m*}, H^{m*}, A_{R}^{m*}, R^{m*}, \\ &\quad C^{m*}, S^{m*}, I^{m*}, A_{1}^{m*}, A_{2}^{m*}, V^{m*}, Y^{m*}, B^{m*}, V_{a}^{m*} \bigr),\quad i =1,\ldots,18,\end{aligned} \\& \begin{aligned}Q_{i}^{n}&:= Q \bigl( t^{n}, u_{A}^{n*}, u_{M}^{n*}, T^{n*}, U^{n*}, D^{n*}, A_{E}^{n*}, E^{n*}, A_{H}^{n*}, H^{n*}, A_{R}^{n*}, R^{n*}, C^{n*}, S^{n*}, I^{n*}, A_{1}^{n*},A_{2}^{n*}, \\ &\quad V^{n*}, Y^{n*}, B^{n*}, V_{a}^{n*} \bigr),\quad i =1,\ldots,18,\end{aligned} \\& \begin{aligned}T_{n+ 1}^{*} - T_{0}^{*} &= \frac{\varGamma( \alpha )(1 -\alpha )}{\varGamma( \alpha )(1 -\alpha ) +\alpha} Q_{1}^{n} \\ &\quad+ \frac{1}{(1 +\alpha )(1 -\alpha )\varGamma( \alpha ) +\alpha} \sum_{m =0}^{n} \phi ( h )^{\alpha} Q_{1}^{m} (1 +n-m )^{\alpha} \\ &\quad\times (2 +n-m+\alpha ) - (2 +n-m+ 2 \alpha ) ( n-m )^{\alpha} \\ &\quad-\phi ( h )^{\alpha} Q_{1}^{m- 1} ( n+ 1 -m )^{\alpha+ 1} - (1 +n-m+\alpha ) ( n-m )^{\alpha},\end{aligned} \\& \begin{aligned}U_{n+ 1}^{*} - U_{0}^{*} ={}& \frac{\varGamma( \alpha )(1 -\alpha )}{\varGamma( \alpha )(1 -\alpha ) +\alpha} Q_{2}^{n} \\ &+ \frac{1}{(1 +\alpha )(1 -\alpha )\varGamma( \alpha ) +\alpha} \sum_{m =0}^{n} \phi ( h )^{\alpha} Q_{2}^{m} (1 +n-m )^{\alpha} \\ &\times(2 +n-m+\alpha ) - (2 +n-m+ 2 \alpha ) ( n-m )^{\alpha} \\ &-\phi ( h )^{\alpha} Q_{2}^{m- 1} ( n+ 1 -m )^{\alpha+ 1} - (1 +n-m+\alpha ) ( n-m )^{\alpha},\end{aligned} \\& \begin{aligned}D_{n+ 1}^{*} - D_{0}^{*} ={}& \frac{\varGamma( \alpha )(1 -\alpha )}{\varGamma( \alpha )(1 -\alpha ) +\alpha} Q_{3}^{n} \\ &+ \frac{1}{(1 +\alpha )(1 -\alpha )\varGamma( \alpha ) +\alpha} \sum_{m =0}^{n} \phi ( h )^{\alpha} Q_{3}^{m} (1 +n-m )^{\alpha} \\ &\times(2 +n-m+\alpha ) - (2 +n-m+ 2 \alpha ) ( n-m )^{\alpha} \\ &-\phi ( h )^{\alpha} Q_{3}^{m- 1} ( n+ 1 -m )^{\alpha+ 1} - (1 +n-m+\alpha ) ( n-m )^{\alpha},\end{aligned} \\& \begin{aligned}A_{E_{n+ 1}}^{*} - A_{E_{0}}^{*} ={}& \frac{\varGamma( \alpha )(1 -\alpha )}{ \varGamma( \alpha )(1 -\alpha ) +\alpha} Q_{4}^{n} \\ &+ \frac{1}{(1 +\alpha )(1 -\alpha )\varGamma( \alpha ) +\alpha} \sum_{m =0}^{n} \phi ( h )^{\alpha} Q_{4}^{m} (1 +n-m )^{\alpha} \\ &\times(2 +n-m+\alpha ) - (2 +n-m+ 2 \alpha ) ( n-m )^{\alpha} \\ &-\phi ( h )^{\alpha} Q_{4}^{( m- 1)} ( n+ 1 -m )^{\alpha+ 1} - ( n-m+ 1 +\alpha ) ( n-m )^{\alpha},\end{aligned} \\& \begin{aligned}E_{n+ 1}^{*} - E_{0}^{*} ={}& \frac{\varGamma( \alpha )(1 -\alpha )}{\varGamma( \alpha )(1 -\alpha ) +\alpha} Q_{5}^{n} \\ &+ \frac{1}{(1 +\alpha )(1 -\alpha )\varGamma( \alpha ) +\alpha} \sum_{m =0}^{n} \phi ( h )^{\alpha} Q_{5}^{m} (1 +n-m )^{\alpha} \\ &\times(2 +n-m+\alpha ) - (2 +n-m+ 2 \alpha ) ( n-m )^{\alpha} \\ &-\phi ( h )^{\alpha} Q_{5}^{m- 1} ( n+ 1 -m )^{\alpha+ 1} - (1 +n-m+\alpha ) ( n-m )^{\alpha},\end{aligned} \\& \begin{aligned}A_{H_{n+ 1}}^{*} - A_{H_{0}}^{*} ={}& \frac{\varGamma( \alpha )(1 -\alpha )}{ \varGamma( \alpha )(1 -\alpha ) +\alpha} Q_{6}^{n} \\ &+ \frac{1}{(1 +\alpha )(1 -\alpha )\varGamma( \alpha ) +\alpha} \sum_{m =0}^{n} \phi ( h )^{\alpha} Q_{6}^{m} (1 +n-m )^{\alpha} \\ &\times(2 +n-m+\alpha ) - (2 +n-m+ 2 \alpha ) ( n-m )^{\alpha} \\ &-\phi ( h )^{\alpha} Q_{6}^{m- 1} ( n+ 1 -m )^{\alpha+ 1} - (1 +n-m+\alpha ) ( n-m )^{\alpha},\end{aligned} \\& \begin{aligned}H_{n+ 1}^{*} - H_{0}^{*} ={}& \frac{\varGamma( \alpha )(1 -\alpha )}{\varGamma( \alpha )(1 -\alpha ) +\alpha} Q_{7}^{n} \\ &+ \frac{1}{(1 +\alpha )(1 -\alpha )\varGamma( \alpha ) +\alpha} \sum_{m =0}^{n} \phi ( h )^{\alpha} Q_{7}^{m} (1 +n-m )^{\alpha} \\ &\times(2 +n-m+\alpha ) - (2 +n-m+ 2 \alpha ) ( n-m )^{\alpha} \\ &-\phi ( h )^{\alpha} Q_{7}^{m- 1} ( n+ 1 -m )^{\alpha+ 1} - (1 +n-m+\alpha ) ( n-m )^{\alpha},\end{aligned} \\& \begin{aligned}A_{R_{n+ 1}}^{*} - A_{R_{0}}^{*} ={}& \frac{\varGamma( \alpha )(1 -\alpha )}{ \varGamma( \alpha )(1 -\alpha ) +\alpha} Q_{8}^{n} \\ &+ \frac{1}{(1 +\alpha )(1 -\alpha )\varGamma( \alpha ) +\alpha} \sum_{m =0}^{n} \phi ( h )^{\alpha} Q_{8}^{m} ( n+ 1 -m )^{\alpha} \\ &\times( n-m+ 2 +\alpha ) - ( n-m )^{\alpha} ( n-m+ 2 + 2 \alpha ) \\ &-\phi ( h )^{\alpha} Q_{8}^{m- 1} (1 +n-m )^{\alpha+ 1} - (1 +n-m+\alpha ) ( n-m )^{\alpha},\end{aligned} \\& \begin{aligned}R_{n+ 1}^{*} - R_{0}^{*} ={}& \frac{\varGamma( \alpha )(1 -\alpha )}{\varGamma( \alpha )(1 -\alpha ) +\alpha} Q_{9}^{n} \\ &+ \frac{1}{(1 +\alpha )(1 -\alpha )\varGamma( \alpha ) +\alpha} \sum_{m =0}^{n} \phi ( h )^{\alpha} Q_{9}^{m} (1 +n-m )^{\alpha} \\ &\times(2 +n-m+\alpha ) - (2 +n-m+ 2 \alpha ) ( n-m )^{\alpha} \\ &-\phi ( h )^{\alpha} Q_{9}^{m- 1} ( n+ 1 -m )^{\alpha+ 1} - (1 +n-m+\alpha ) ( n-m )^{\alpha},\end{aligned} \\& \begin{aligned}C_{n+ 1}^{*} - C_{0}^{*} ={}& \frac{\varGamma( \alpha )(1 -\alpha )}{\varGamma( \alpha )(1 -\alpha ) +\alpha} Q_{10}^{n} \\ &+ \frac{1}{(1 +\alpha )(1 -\alpha )\varGamma( \alpha ) +\alpha} \sum_{m =0}^{n} \phi ( h )^{\alpha} Q_{10}^{m} (1 +n-m )^{\alpha} \\ &\times(2 +n-m+\alpha ) - (2 +n-m+ 2 \alpha ) ( n-m )^{\alpha} \\ &-\phi ( h )^{\alpha} Q_{10}^{m- 1} ( n+ 1 -m )^{\alpha+ 1} - (1 +n-m+\alpha ) ( n-m )^{\alpha},\end{aligned} \\& \begin{aligned}S_{n+ 1}^{*} - S_{0}^{*} ={}& \frac{\varGamma( \alpha )(1 -\alpha )}{\varGamma( \alpha )(1 -\alpha ) +\alpha} Q_{11}^{n} \\ &+ \frac{1}{(1 +\alpha )(1 -\alpha )\varGamma( \alpha ) +\alpha} \sum_{m =0}^{n} \phi ( h )^{\alpha} Q_{11}^{m} (1 +n-m )^{\alpha} \\ &\times(2 +n-m+\alpha ) - ( n-m+ 2 + 2 \alpha ) ( n-m )^{\alpha} \\ &-\phi ( h )^{\alpha} Q_{11}^{m- 1} ( n+ 1 -m )^{\alpha+ 1} - ( n-m )^{\alpha} ( n-m+ 1 +\alpha ),\end{aligned} \\& \begin{aligned}I_{n+ 1}^{*} - I_{0}^{*} ={}& \frac{\varGamma( \alpha )(1 -\alpha )}{\varGamma( \alpha )(1 -\alpha ) +\alpha} Q_{12}^{n} \\&+ \frac{1}{(1 +\alpha )(1 -\alpha )\varGamma( \alpha ) +\alpha} \sum_{m =0}^{n} \phi ( h )^{\alpha} Q_{12}^{m} (1 +n-m )^{\alpha} \\ &\times(2 +n-m+\alpha ) - (2 +n-m+ 2 \alpha ) ( n-m )^{\alpha} \\ &-\phi ( h )^{\alpha} Q_{12}^{m- 1} ( n+ 1 -m )^{\alpha+ 1} - (1 +n-m+\alpha ) ( n-m )^{\alpha},\end{aligned} \\& \begin{aligned}A_{1_{n+ 1}}^{*} - A_{1_{0}}^{*} ={}& \frac{\varGamma( \alpha )(1 -\alpha )}{ \varGamma( \alpha )(1 -\alpha ) +\alpha} Q_{13}^{n} \\ &+ \frac{1}{(1 +\alpha )(1 -\alpha )\varGamma( \alpha ) +\alpha} \sum_{m =0}^{n} \phi ( h )^{\alpha} Q_{13}^{m} (1 +n-m )^{\alpha} \\ &\times(2 +n-m+\alpha ) - (2 +n-m+ 2 \alpha ) ( n-m )^{\alpha} \\ &-\phi ( h )^{\alpha} Q_{13}^{m- 1} ( n+ 1 -m )^{\alpha+ 1} - (1 +n-m+\alpha ) ( n-m )^{\alpha},\end{aligned} \\& \begin{aligned}A_{2_{n+ 1}}^{*} - A_{2_{0}}^{*} ={}& \frac{\varGamma( \alpha )(1 -\alpha )}{ \varGamma( \alpha )(1 -\alpha ) +\alpha} Q_{14}^{n} \\ &+ \frac{1}{(1 +\alpha )(1 -\alpha )\varGamma( \alpha ) +\alpha} \sum_{m =0}^{n} \phi ( h )^{\alpha} Q_{14}^{m} (1 +n-m )^{\alpha} \\ &\times(2 +n-m+\alpha ) - (2 +n-m+ 2 \alpha ) ( n-m )^{\alpha} \\ &-\phi ( h )^{\alpha} Q_{14}^{m- 1} ( n+ 1 -m )^{\alpha+ 1} - ( n-m+ 1 +\alpha ) ( n-m )^{\alpha},\end{aligned} \\& \begin{aligned}V_{n+ 1}^{*} - V_{0}^{*} ={}& \frac{\varGamma( \alpha )(1 -\alpha )}{\varGamma( \alpha )(1 -\alpha ) +\alpha} Q_{15}^{n} \\ &+ \frac{1}{(1 +\alpha )(1 -\alpha )\varGamma( \alpha ) +\alpha} \sum_{m =0}^{n} \phi ( h )^{\alpha} Q_{15}^{m} (1 +n-m )^{\alpha} \\ &\times(2 +n-m+\alpha ) - (2 +n-m+ 2 \alpha ) ( n-m )^{\alpha} \\ &-\phi ( h )^{\alpha} Q_{15}^{m- 1} ( n+ 1 -m )^{\alpha+ 1} - (1 +n-m+\alpha ) ( n-m )^{\alpha},\end{aligned} \\& \begin{aligned}Y_{n+ 1}^{*} - Y_{0}^{*} ={}& \frac{\varGamma( \alpha )(1 -\alpha )}{\varGamma( \alpha )(1 -\alpha ) +\alpha} Q_{16}^{n} \\ &+ \frac{1}{(1 +\alpha )(1 -\alpha )\varGamma( \alpha ) +\alpha} \sum_{m =0}^{n} \phi ( h )^{\alpha} Q_{16}^{m} (1 +n-m )^{\alpha} \\&\times (2 +n-m+\alpha ) - (2 +n-m+ 2 \alpha ) ( n-m )^{\alpha} \\& -\phi ( h )^{\alpha} Q_{16}^{m- 1} ( n+ 1 -m )^{\alpha+ 1} - (1 +n-m+\alpha ) ( n-m )^{\alpha},\end{aligned} \\& \begin{aligned}B_{n+ 1}^{*} - B_{0}^{*} ={}& \frac{\varGamma( \alpha )(1 -\alpha )}{\varGamma( \alpha )(1 -\alpha ) +\alpha} Q_{17}^{n} \\& + \frac{1}{(1 +\alpha )(1 -\alpha )\varGamma( \alpha ) +\alpha} \sum_{m =0}^{n} \phi ( h )^{\alpha} Q_{17}^{m} (1 +n-m )^{\alpha} \\&\times (2 +n-m+\alpha ) - (2 +n-m+ 2 \alpha ) ( n-m )^{\alpha} \\& -\phi ( h )^{\alpha} Q_{17}^{m- 1} ( n+ 1 -m )^{\alpha+ 1} - (1 +n-m+\alpha ) ( n-m )^{\alpha},\end{aligned} \\& \begin{aligned}V_{a_{n+ 1}}^{*} - V_{a_{0}}^{*} ={}& \frac{\varGamma( \alpha )(1 -\alpha )}{ \varGamma( \alpha )(1 -\alpha ) +\alpha} Q_{18}^{n} \\ &+ \frac{1}{(1 +\alpha )(1 -\alpha )\varGamma( \alpha ) +\alpha} \sum_{m =0}^{n} \phi ( h )^{\alpha} Q_{18}^{m} (1 +n-m )^{\alpha} \\&\times (2 +n-m+\alpha ) - (2 +n-m+ 2 \alpha ) ( n-m )^{\alpha} \\& -\phi ( h )^{\alpha} Q_{18}^{m- 1} ( n+ 1 -m )^{\alpha+ 1} - (1 +n-m+\alpha ) ( n-m )^{\alpha}.\end{aligned} \end{aligned}$$

5 Numerical results

In the following, N2LIM is applied to solve the optimality system (50)–(67) and (27)–(44) with the transversality conditions \(\lambda_{j}^{*} ( T_{f} )=0\), \(j =1,\ldots,18\). The state Eqs. (50)–(67) have initial conditions \(T^{*} (0)=1\), \(U^{*} (0)=0\), \(D^{*} (0)=1\), \(A_{E}^{*} (0)=0\), \(E^{*} (0)=1\), \(A_{H}^{*} (0)=0\), \(H^{*} (0)=0\), \(A_{R}^{*} (0)=0\), \(R^{*} (0)=0\), \(Y^{*} (0)=10{,}000\), \(C^{*} (0)=1\), \(S^{*} (0)=0\), \(I^{*} (0)=1\), \(A_{1}^{*} (0)=10\), \(A_{2}^{*} (0)=1\), \(V^{*} (0)=0\), \(V_{a}^{*} (0)=0\), \(B^{*} (0)=1000\), \(\omega_{1} =1000\), \(\omega_{2} =1000\). The values of the parameters are taken from [21] with the power α, \(0< \alpha\leq 1\). These state equations are initially solved by the proposed methods. Then we will solve the co-state equations (27)–(44) by using a nonstandard finite difference method with back step in the time.

Figure 1 shows the approximate solutions at \(\alpha =0.96\) of the state variables without controls. Figure 2 shows the behavior of approximate solutions \(E ( t )\), \(I ( t )\) and \(T ( t )\) in two cases with and without controls using N2LIM. We noted that, in controlled case the increment of \(E ( t )\) and \(Y ( t )\) lead to decrease the number of cancer cells \(T ( t )\).

Figure 1
figure 1

State variables simulations without controls at \(\alpha =0.96\) using N2LIM

Figure 2
figure 2

Numerical simulations of the state variables with controls cases at \(\alpha =0.96\) using N2LIM

Figure 3 shows the approximate solutions of the state variables T, U, E, Y, S and R with control case and \(B_{1} =100\), \(C =1000\) at different α using N2LIM. It is clear that the best result is at \(\alpha =0.98\) because the number of cancer cells is minimal. Also, these results show the fractional model is more general than the integer model. Figure 4, shows the values of \(u_{A}^{*}\), \(u_{M}^{*}\) in a units of days with different values of α by using N2LIM. It is clear that the best result at \(\alpha =0.98\) in (a) and in (b) is at \(\alpha =0.7\). Table 1 shows the comparison between the values of the objective functional using N2LIM with and without controls at \(T_{f} =100\) and different values of α and \(\phi ( h )\). We note that the best result is at \(\phi ( h )=0.025(1 - e^{-h} )\). The values of objective functional (19) by the IOCM ([22, 30, 42]) and N2LIM at different values of α are shown in Table 2. We note that the N2LIM results are better than the IOCM results. We use Matlab on a computer with Windows 7 home premium, RAM 4 GB and system type 64-bit operating system.

Figure 3
figure 3

The state variable simulations by N2LIM at different α

Figure 4
figure 4

The control variable simulations by N2LIM at different α

Table 1 Comparisons between objective functional values using N2LIM with and without control cases and \(T_{f} =100\)
Table 2 Comparisons between IOCM, N2LIM and \(T_{f} =50\), \(B_{1} =100\), \(C =1000\)

6 Conclusions

In this paper, numerical solutions for optimal control of fractional order with generalized Mittag-Leffler function for cancer treatment based on synergy between anti-angiogenic and immune cell therapies are presented. The necessary optimality conditions are proved, where two controls \(u_{A} ( t )\), \(u_{M} ( t )\) are added to reduce the cancer cells number. N2LIM is developed to study the model problem. We present some simulations that support our theoretical findings and show the effectiveness of the model. Comparative studies with IOCM are implemented, it is found that the values of the objective functional which are obtained by N2LIM are better than the results obtained by IOCM. Moreover, N2LIM can be applied to solve the fractional optimal control problem simply and effectively.