Opened 12 years ago

Closed 20 months ago

#61 closed enhancement (migrated)


Reported by: mgalati Owned by: mjs
Priority: minor Milestone:
Component: OsiCpx Version: 0.96
Keywords: Cc: magh@…


use native cplex writeLp: - something like

void OsiCpxSolverInterface::writeLp(const char *filename,
                                    const char *extension,
                                    double epsilon,
                                    int numberAcross,
                                    int decimals,
                                    double objSense,
                                    bool useRowNames) const
  debugMessage("OsiCpxSolverInterface::writeLp(%s, %s, %g)\n", filename, extens\
ion, objSense);

  // *FIXME* : this will not output ctype information to the MPS file
  char filetype[4] = "LP";
  std::string f(filename);
  std::string e(extension);
  std::string fullname = f + "." + e;
  int err = CPXwriteprob( env_, getMutableLpPtr(), const_cast<char*>( fullname.\
c_str() ), filetype );
  checkCPXerror( err, "CPXwriteprob", "writeLp" );

Change History (2)

comment:1 Changed 11 years ago by mjs

  • Type changed from defect to enhancement

comment:2 Changed 20 months ago by stefan

  • Resolution set to migrated
  • Status changed from new to closed

This ticket has been migrated to GitHub and will be resolved there:

Note: See TracTickets for help on using tickets.