Research Article

Mathematical Analysis and Optimal Control of Giving up the Smoking Model

Algorithm 1

Step 1 (initial conditions):
, , , , , , .
.
Step 2 (numerical solving):
for, do:
,
,
,
,
,
,
,
,
,
,
,
,
end for
Step 3 (the solution and optimal controls):
for, write
,
.
end for