/usr/share/doc/coinor-libsymphony-doc/examples/bicriteria.c is in coinor-libsymphony-doc 5.2.4-1.2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | /*===========================================================================*/
/* */
/* This file is part of the SYMPHONY MILP Solver Framework. */
/* */
/* SYMPHONY was jointly developed by Ted Ralphs (ted@lehigh.edu) and */
/* Laci Ladanyi (ladanyi@us.ibm.com). */
/* */
/* The author of this file is Menal Guzelsoy */
/* */
/* (c) Copyright 2005-2008 Lehigh University. All Rights Reserved. */
/* */
/* This software is licensed under the Common Public License. Please see */
/* accompanying file for terms. */
/* */
/*===========================================================================*/
#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
|