Glioblastoma, the most aggressive type of brain cancer, has median survival time of 1 year after diagnosis. It is characterized by alternating modes of rapid proliferation and aggressive invasion in response to metabolic stress in the microenvironment. A particular microRNA, miR-451, and its downstream signalling molecules, AMPK complex, are known to be key determinants in switching cell fate. These components form a core control system determining a balance between cell growth and migration which is regulated by fluctuating glucose levels in the microenvironment. An important factor from the treatment point of view is that low levels of glucose affect metabolism and activate cell migration through the miR-451-AMPK control system, creating 'invisible' migratory cells and making them inaccessible by conventional surgery. In this work, we apply optimal control theory to deal with the problem of maintaining upregulated miR-451 levels that prevent cell infiltration to surrounding brain tissue and thus induce localization of these cancer cells at the surgical site. The model also considers the effect of a drug that blocks inhibitive pathways of miR-451 from AMPK complex. Glucose infusion control and drug infusion control are chosen to represent dose rates of glucose and drug intravenous administrations, respectively. The characteristics of optimal control lead us to investigate the structure of optimal intravenous infusion regimen under various circumstances and predict best clinical outcomes with minimum expense possible.