Skip to content

Options issues in CPLEX MP #261

@4er4er4er

Description

@4er4er4er

I get various complaints that some CPLEX option does not work, when a user of the ASL version has switched to MP. Here's a summary; the first 3 are the most serious.

network simplex
ASL: netopt requires an argument (0, 1, 2, or 3) which determines whether and how the network simplex method is applied; there are also related options
netdisplay, netfeasibility, netfind, netiterations, netoptimality, and netpricing.
MP: netopt does not accept an argument. netiterations is recognized, but the other 5 related options are not.

logs
ASL: mipdisplay and mipinterval control the contents of the MIP log; display or lpdisplay controls the simplex log, and bardisplay controls the barrier log.
MP: All of the above are accepted but do not produce any log output. outlev does produce logs, but with less control over the settings, and with a - in front of almost every line. outlev=1 would be better if it used mipdisplay=2 rather than mipdisplay=3 (which is usually more verbose than needed).

primal versus dual
ASL: primal and dual force CPLEX to solve the primal or the dual, respectively, of the problem received from AMPL. predual is similar, but chooses between the primal and the dual form of the problem that results after presolve. primalopt and dualopt select the primal or dual simplex method.
MP: primal is not recognized, and dual is treated as a synonym for dualopt (alg:dual). (predual, primalopt, and dualopt are still available.)

sensitivity
ASL: sensitivity does not have an argument. It creates suffixes .up, .down, and .current which only apply properly to objective coefficients and single right-hand sides. (There is an example of their use in the subsection Solver-defined suffixes: sensitivity analysis in the AMPL book.)
MP: sensitivity (alg:sens) requires an argument. It doesn't recognize ASL's suffixes, but defines others that are more general.

error handling
ASL: Scans the entire cplex_options string and reports every option that is in error.
MP: Stops scanning the cplex_options string after the first error is found.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions