tfn "%s: %f" (A.var().Name) (sol.Variables.[A.var().Name])
    printfn "%s: %f" (B.var().Name) (sol.Variables.[B.var().Name])
    printfn "%s: %f" (C.var().Name) (sol.Variables.[C.var().Name])
    printfn "%s: %f" (D.var().Name) (sol.Variables.[D.var().Name])

| Error e -&gt;
    printfn "%A" e</code></pre>
</div>
</div>
<div class="paragraph">
<p>Note that there is also a cost associated with each product and that is set as the objective. We want to stay healthy as cheaply as possible.</p>
</div>
</div>
</