0

Xpress has some built in logging, including computation time, total memory available and threads used. However, there's quite a bit extraneous information in these logging statements. Is there a method to get this sort of information?

What I'm looking for

xpress_problem.solve(get_time=True, get_memory=True) 

These aren't real arguments that I've found from solve to be expecting, I just illustrate what I'd like.

Daniel Junglas
  • 5,830
  • 1
  • 5
  • 22
jbuddy_13
  • 902
  • 2
  • 12
  • 34

1 Answers1

1

This information is not queried by passing information to solve() but by querying solver attributes after solve() returns.

For example: print(xpress_problem.attributes.time)

There are plenty of attributes, you can find all of then in the online documentation in section Xpress Solver Help > Optimizer Reference Manual > Problem Attributes. Note that there attributes are listed as all-uppercase while in Python their names are all-lowercase.

These may be the attributes you are looking for:

  • time - time spent solving the problem
  • peakmemory - peak memory usage
Daniel Junglas
  • 5,830
  • 1
  • 5
  • 22