I am creating a linear program to find the optimal solution that is a combination of $3$ variables but due the constraints I have the optimal solution is just a combination of a non-zero value of one variable and the other two are zeros. It is possible to add constraints, between the variables, in order for the problem to find the "optimal solution" that is a non-zero combination of the three variables?
Consider the following linear program.
$$ \begin{array}{ll} \underset {x_1, x_2, x_3} {\text{minimize}} & 0.705 x_1 + 1.95 x_2 + 0.191 x_3 \\ \text{subject to} & x_1 + x_2 + x_3 \geq 10000 \\ & x_1, x_2, x_3 \geq 0 \end{array} $$
The objective function is the price function and the variables are the amount of energy in KWh of three sources of renewable energy. The first constraint is the demand constrain basically how much I want the system to produce. But since the price per KWh is cheaper for the source 3 then it will go zero for every other source.
If you want to disallow $x_i = 0$, then decide a minimum constant threshold $\epsilon_i$ for what you consider to be "nonzero enough" and impose lower bounds $x_i \ge \epsilon_i$.