Maximize One Variable While Minimizing Another?

Solver related questions
Post Reply
VikR
User
User
Posts: 2
Joined: 7 years ago

Maximize One Variable While Minimizing Another?

Post by VikR »

The Solver that comes with Excel can only minimize or maximize a single variable. I have a data set where I need to maximize revenue while minimizing cost and distance. Is it possible to do this in GAMS?

Thanks in advance any info.
VikR
User
User
Posts: 2
Joined: 7 years ago

Re: Maximize One Variable While Minimizing Another?

Post by VikR »

I was able to get Excel to solve for multiple variables by:

-- Standardizing all the data
-- Setting the single variable the Excel solver can explicitly maximize, to a cell containing the formula "=Earnings-((Cost+Distance+Time)/3)"

That worked.

I imagine this is as easy (or more likely even easier or better) in GAMS. Is that correct?
Post Reply