I'm having the following problem

Use this forum to post Vensim related questions.
Post Reply
Mehd.Asali
Junior Member
Posts: 4
Joined: Fri Mar 12, 2021 1:22 pm
Vensim version: DSS

I'm having the following problem

Post 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.
tomfid
Administrator
Posts: 3252
Joined: Wed May 24, 2006 4:54 am

Re: I'm having the following problem

Post 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
tomfid
Administrator
Posts: 3252
Joined: Wed May 24, 2006 4:54 am

Re: I'm having the following problem

Post 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.
Post Reply