[Symphony] cannot use OSI

Papis Wongchaisuwat papis_31 at hotmail.com
Sat Sep 21 17:50:56 EDT 2013


Dear All,      I tried to use OSI interface in bicriteria.c file (in SYMPHONY/Examples) but I have some problems to set this up.This is the bicriteria.c file.#ifdef USE_OSI_INTERFACE
#include "OsiSymSolverInterface.hpp"
int main(int argc, char **argv){  OsiSymSolverInterface si;  si.parseCommandLine(argc, argv);  si.loadProblem();
  si.setObj2Coeff(1, 1);
  si.multiCriteriaBranchAndBound();
  return(0);
}
#else
#include "symphony.h"
int main(int argc, char **argv){   sym_environment *env = sym_open_environment();   sym_parse_command_line(env, argc, argv);   sym_load_problem(env);
   sym_set_obj2_coeff(env, 1, -1);
   sym_mc_solve(env);
   sym_close_environment(env);
   return(0);
}
#endif

This is the comment in config file
# If you wish to compile and use SYMPHONY or one of the application through# the SYMPHONY OSI interface, set USE_OSI_INTERFACE to TRUE below. This will# only have the main function to call the OSI SYMPHONY interface. See the# corresponding main function for the implementation. Note that# you must have COIN and OSI SYMPHONY interface installed to use this# capability. See above to set the path to the COIN root directory.
I already set USE_OSI_INTERFACE = TRUE and make, make install again.  Are the COIN and OSI SYMPHONY interface installed with the SYMPHONY-5.4.8?Does anybody have an idea what should I do to fix use OSI interface?  I am sorry for a long email.
Thank you
Best,Papis
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/symphony/attachments/20130922/31ed70d6/attachment.html>


More information about the Symphony mailing list