TransWikia.com

How to generate a large number of constraints for all indices ($forall i$)

Mathematica Asked on September 3, 2021

Is it possible to generate a set of constraints in the form "$forall$".
For example:

begin{align}
min & fleft(sum x_iright)
s.t. &
& x_igeq 17 && forall i=1,…,n.
end{align}

What would be the best way to create this set of constraints in the code? Possibly when using FindMin or NMinimize.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP