Friday, June 6, 2008

Maximization problems

I have committed some changes, they allows handling of maximization problems

objFunc -> max
(subjected to some constraints)

via p.goal = 'max'
(or 'maximum')

Currently LP, MILP, QP classes have no the possibility, it's only valid for NLP, NSP, GLP

of course, the parameter goal could be used in prob assignment or solve function as well:
p = NLP(..., goal='max')
or
r = p.solve(solverName, ... (other parameters), goal='max')
here's graphical output from modified nlp3.py (using -f instead of f, already in subversion).

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.