help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] MIP Solvers (i.e CBC, CPLEX, GLPK, GUROBI, LPSOLVE, SCIP


From: Andrew Makhorin
Subject: Re: [Help-glpk] MIP Solvers (i.e CBC, CPLEX, GLPK, GUROBI, LPSOLVE, SCIPC, SCIPL, SCIPS and XPRESS) Benchmark
Date: Tue, 20 Nov 2012 10:24:22 +0400

> >> maximize Discounted_Net_Value:
> >>     sum {s in STAND, p in PERIOD} Stand_Cut_Candidates[s,p] *
> >>     NPV_Calc[s,p] * FStand[s,p];
> >
> > When you pass mps to glpsol, the optimization direction
> > is minimization by default, so you need to specify the
> > --max option to tell glpsol to maximize rather than
> > minimize.
> 
> That looks confusing?  The "maximize" in the model
> statement should be picked up, surely??  In which case
> the "--max" should be unnecessary (except to override
> a "minimize" in the code, from the command line).

The mps format does not allow specifying the objective sense.

> 
> Or am I missing something?
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]