Search found 1 match

by Green12
Thu Oct 15, 2009 5:38 am
Forum: Vensim
Topic: Optimising using constraint
Replies: 24
Views: 19440

If you have constraints on variables it must be added to the objective to be maximized. For instance with your problem you want sum(percentage[state!] to be equal to 1. You must create a variable penalty = if then else (sum(percenrage|state!] = 1,-100000,0) and add this variable to your objective to...