Page 1 of 1

I'm having the following problem

Posted: Mon Mar 15, 2021 3:51 pm
by Mehd.Asali
In one part of my model I have this constraint maximization problem of a representative consumer. How could I formulate a component like: Max U(c) subject to ax+by=R; for example.

Re: I'm having the following problem

Posted: Mon Mar 15, 2021 6:14 pm
by tomfid
Generally such formulations are not a realistic model of behavior, though they are sometimes useful.

You can use the optimizer to solve the problem. https://www.vensim.com/documentation/21330.html

Re: I'm having the following problem

Posted: Mon Mar 15, 2021 6:20 pm
by tomfid
There's also an LP_solve link in an external function library: https://vensim.com/workbench/#lp-solve-link It would probably have to be recompiled for the latest version of Vensim.

Some problems can be solved by using FIND ZERO on the Lagrangian shadow price of the constraint.