Opened 12 years ago

Closed 20 months ago

#61 closed enhancement (migrated)

writeLp

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

Description

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: https://github.com/coin-or/Osi/issues/61

Note: See TracTickets for help on using tickets.