Abstract A dispute is being created in the countries between the use of land for photovoltaic generation purposes and agriculture to satisfy food demand. Therefore, the agrivoltaic concept is presented as a dual‐purpose land‐use solution. A technical–economic analysis is carried out to install photovoltaic systems elevated to a considerable height from the ground, and under them, industrial cassava is grown. A mixed‐integer linear optimization model is developed to store energy in a battery bank, reduce the energy absorbed from the electrical grid, and export it for sale in case of surplus. The results show that the producer will obtain a double benefit: the sale of energy and the profit generated by industrial cassava, preserving food security and meeting the growing electricity demand.