<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>&nbsp; &nbsp; &nbsp;I tried to run my problem with cplex solver so when I installed I used&nbsp;<div><blockquote type="cite" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px;"><div class="im" style="color: rgb(80, 0, 80);">./configure<br>--with-application<br>--with-cplex-lib="-L/share/<wbr>apps/cplex/lib/x86-64_sles10_<wbr>4.1/static_pic -lcplex -lpthread"<br>--with-cplex-incdir="/share/<wbr>apps/cplex/include/ilcplex"<br>--with-lp-solver=cplex<br>--enable-static -C<br>--disable-cplex-libcheck</div><div class="im" style="color: rgb(80, 0, 80);"><br></div><div class="im" style="color: rgb(80, 0, 80);">I got it installed successfully so I I guess I am using cplex now.</div><div class="im" style="color: rgb(80, 0, 80);">I use bicriteria.c to run a setcover problem but I got 2 solutions which are all 0. I tried taking out the binary constraints in my problem and tons of solution.</div><div class="im" style="color: rgb(80, 0, 80);">It seems like the constraints are too strict.&nbsp;</div><div class="im" style="color: rgb(80, 0, 80);">Does anyone have an idea how to run cplex with binary constraints for all variables and get reasonable results ? &nbsp;I guess I might need to adjust some parameters but I don't know how to do that.</div><div class="im" style="color: rgb(80, 0, 80);"><br></div><div class="im" style="color: rgb(80, 0, 80);">Thank you,</div><div class="im" style="color: rgb(80, 0, 80);">Papis</div></blockquote><br><div><hr id="stopSpelling">From: papis_31@hotmail.com<br>To: ted@lehigh.edu<br>Date: Wed, 18 Sep 2013 00:27:32 +0700<br>CC: symphony@list.coin-or.org<br>Subject: Re: [Symphony] biobjective problems<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr">I am able to get the correct answer now.&nbsp;<div>Thank you,</div><div>Papis<br><br><div><hr id="ecxstopSpelling">From: papis_31@hotmail.com<br>Date: Mon, 16 Sep 2013 11:12:35 -0500<br>To: ted@lehigh.edu<br>CC: symphony@list.coin-or.org<br>Subject: Re: [Symphony] biobjective problems<br><br><div>I do understand now why i got all negative value. However, I got different results from your presentation online. It seems like my results are incorrect.</div><div><br></div><div>Best,&nbsp;</div><div>Papis</div><div><br>On Sep 16, 2013, at 10:54 AM, "Ted Ralphs" &lt;<a href="mailto:ted@Lehigh.EDU">ted@Lehigh.EDU</a>&gt; wrote:<br><br></div><blockquote><div><div dir="ltr"><div>The bottom line is that there doesn't seem to be anything wrong with the output except that the objective value is reported as negative instead of positive because SYMPHONY converts your maximization problem into an equivalent minimization problem internally. Was there something besides that that seemed incorrect?<br>

<br></div>Cheers,<br><br>Ted<br><div><div><div class="ecxgmail_extra"><br><br><div class="ecxgmail_quote">On Sun, Sep 15, 2013 at 1:48 PM, Papis Wongchaisuwat <span dir="ltr">&lt;<a href="mailto:papis_31@hotmail.com" target="_blank">papis_31@hotmail.com</a>&gt;</span> wrote:<br>

<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr">I am sorry but I don't clearly understand what do you mean and how can I fix my problem.<div><br></div><div>Thank you</div><div>Papis<br><br><div><hr>From: <a href="mailto:ted@Lehigh.EDU">ted@Lehigh.EDU</a><br>Date: Sun, 15 Sep 2013 12:45:28 -0400<div>

<div class="h5"><br>Subject: Re: [Symphony] biobjective problems<br>To: <a href="mailto:papis_31@hotmail.com" target="_blank">papis_31@hotmail.com</a><br>CC: <a href="mailto:hennebry@web.cs.ndsu.nodak.edu" target="_blank">hennebry@web.cs.ndsu.nodak.edu</a>; <a href="mailto:symphony@list.coin-or.org" target="_blank">symphony@list.coin-or.org</a><br>

<br><div dir="ltr">It looks correct to me (without knowing what the second objective is). SYMPHONY converts all problems to minimization internally, so the negative objective values are just because we don't check whether the problem was maximization and negate the objective values if it is. This should be easy to change. You can file a ticket and I'll try to get to it.<br>



<br>Ted<br></div><div><br><br><div>On Sun, Sep 15, 2013 at 12:39 PM, Papis Wongchaisuwat <span dir="ltr">&lt;<a href="mailto:papis_31@hotmail.com" target="_blank">papis_31@hotmail.com</a>&gt;</span> wrote:<br>

<blockquote style="border-left:1px #ccc solid;padding-left:1ex;">


<div><div dir="ltr">Thank you for a reply.<div>I tried to start from simple problem that I found in presentation online.</div><div><div>vmax [8x1, x2]</div><div>s.t. 7x1 + x2 &lt;= 56</div><div>28x1 + 9x2 &lt;= 252</div>



<div>3x1 + 7x2 &lt;=105</div><div>x1, x2 &gt;=0</div><div><br></div><div>In bicriteria.c, I use</div><div><div><div>#include "symphony.h"</div><div><br></div><div>int main(int argc, char **argv)</div>

<div>{</div><div><br></div><div>&nbsp; &nbsp;sym_environment *env = sym_open_environment();</div><div>&nbsp; &nbsp;sym_parse_command_line(env, argc, argv);</div><div>&nbsp; &nbsp;sym_load_problem(env);</div><div><br></div></div><div>&nbsp; &nbsp;sym_set_obj2_coeff(env, 1, 1);</div>



<div><br></div><div>&nbsp; &nbsp;sym_mc_solve(env);</div><div><br></div><div>&nbsp; &nbsp;sym_close_environment(env);</div><div><br></div><div>&nbsp; &nbsp;return(0);</div><div><br></div><div>}</div></div><div><br></div><div>my lp file :</div><div>

Maximize <u></u><u></u><br>

<span style="font-family:&quot;Courier New&quot;;">obj: 8 var_1 + var_2<u></u><u></u></span><br>

<span style="font-family:&quot;Courier New&quot;;">&nbsp;</span><br>

<span style="font-family:&quot;Courier New&quot;;">Subject to <u></u><u></u></span><br>

<span style="font-size:10.5pt;line-height:107%;font-family:&quot;Courier New&quot;;">&nbsp;C1: 7 var_1 + var_2 &lt;=
56<u></u><u></u></span><br>

<span style="font-size:10.5pt;line-height:107%;font-family:&quot;Courier New&quot;;">C2: 28 var_1 + 9 var_2 &lt;= 252<u></u><u></u></span><br>

<span style="font-size:10.5pt;line-height:107%;font-family:&quot;Courier New&quot;;">C3: 3 var_1+ 7 var_2 &lt;= 105<u></u><u></u></span><br>

<span style="font-size:10.5pt;line-height:107%;font-family:&quot;Courier New&quot;;">Bound<u></u><u></u></span><br>

<span style="font-size:10.5pt;line-height:107%;font-family:&quot;Courier New&quot;;">var_1&gt;=0<u></u><u></u></span><br>

<span style="font-size:10.5pt;line-height:107%;font-family:&quot;Courier New&quot;;">var_2&gt;=0<u></u><u></u></span><br><span style="font-size:10.5pt;line-height:107%;font-family:&quot;Courier New&quot;;">Integer</span><br>



<span style="font-size:10.5pt;line-height:107%;font-family:&quot;Courier New&quot;;">var_1</span><br><span style="font-size:10.5pt;line-height:107%;font-family:&quot;Courier New&quot;;">var_2</span><br>



<span style="font-size:10.5pt;line-height:107%;font-family:&quot;Courier New&quot;;">End&nbsp;<u></u><u></u></span><br><span style="font-size:10.5pt;line-height:107%;font-family:&quot;Courier New&quot;;"><br>

</span><br><span style="font-size:10.5pt;line-height:107%;font-family:&quot;Courier New&quot;;">I got incorrect results.&nbsp;</span><br><span style="font-size:10.5pt;line-height:107%;font-family:&quot;Courier New&quot;;">This is what I got</span><br>



<span style="font-size:10.5pt;line-height:107%;font-family:&quot;Courier New&quot;;">First Objective: -64.000 Second Objective: 0.000 Range: 0.468750-1.000000</span><br></div><div><span style="font-family:'Courier New';font-size:14px;line-height:14px;">First Objective: -47.000 Second Objective: -15.000 Range: 0.000000-0.468750</span></div>



<div><span style="font-family:'Courier New';font-size:14px;line-height:14px;"><br></span></div><div><font face="Courier New"><span style="font-size:14px;line-height:14px;">What did I do wrong?</span></font></div><div>



<font face="Courier New"><span style="font-size:14px;line-height:14px;"><br></span></font></div><div><font face="Courier New"><span style="font-size:14px;line-height:14px;">Thank you,</span></font></div><div><font face="Courier New"><span style="font-size:14px;line-height:14px;">Papis</span></font></div>



<div><span style="font-family:'Courier New';font-size:14px;line-height:14px;"><br></span></div><div><span style="font-family:'Courier New';font-size:14px;line-height:14px;"><br></span></div><br><div><hr>From: <a href="mailto:ted@Lehigh.EDU">ted@Lehigh.EDU</a><br>



Date: Sun, 15 Sep 2013 12:27:26 -0400<div><br>Subject: Re: [Symphony] biobjective problems<br></div>To: <a href="mailto:papis_31@hotmail.com" target="_blank">papis_31@hotmail.com</a><br>CC: <a href="mailto:hennebry@web.cs.ndsu.nodak.edu" target="_blank">hennebry@web.cs.ndsu.nodak.edu</a>; <a href="mailto:symphony@list.coin-or.org" target="_blank">symphony@list.coin-or.org</a><div>



<div><br><br><div dir="ltr"><div><div><div>sym_set_obj2_coeff(env, i, j) sets the objective function coefficient of variable "i" to value "j" in the second objective, as documented here:<br>

<br><a href="http://www.coin-or.org/SYMPHONY/man-5.5/node176.html" target="_blank">http://www.coin-or.org/SYMPHONY/man-5.5/node176.html</a><br>

<br></div>At the moment, setting the objective coefficients one by one is the only way to specify a second objective through the API. Of course, you can also just directly set the objective function in SYMPHONY's internal representation of the instance.<br>





<br>I have plans to improve this and to add the ability to specify two objectives through a modeling language, such as GMPL, but I haven't gotten to it yet.<br><br></div>Cheers,<br><br></div>Ted<br></div><div>

<br><br><div>On Sat, Sep 14, 2013 at 10:58 PM, Papis Wongchaisuwat <span dir="ltr">&lt;<a href="mailto:papis_31@hotmail.com" target="_blank">papis_31@hotmail.com</a>&gt;</span> wrote:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex;">








<div><div dir="ltr"><div style="line-height:21px;color:rgb(68,68,68);font-size:15px;">I found &nbsp;bicriteria.c file in Examples. I tried running with the data set and I got several solutions as I am supposed to get.&nbsp;</div><div style="line-height:21px;color:rgb(68,68,68);font-size:15px;">





However, I am not sure whether I got a correct result.</div><div style="line-height:21px;color:rgb(68,68,68);font-size:15px;">These are some parts of bicriteria.c file</div><div style="line-height:21px;color:rgb(68,68,68);font-size:15px;">





<div>#include "symphony.h"</div><div><br></div><div>int main(int argc, char **argv)</div><div>{</div><div><br></div><div>&nbsp; &nbsp;sym_environment *env = sym_open_environment();</div><div>&nbsp; &nbsp;sym_parse_command_line(env, argc, argv);</div>





<div>&nbsp; &nbsp;sym_load_problem(env);</div><div><br></div><div>&nbsp; &nbsp;sym_set_obj2_coeff(env, 1, -1);</div><div><br></div><div>&nbsp; &nbsp;sym_mc_solve(env);</div><div><br></div><div>&nbsp; &nbsp;sym_close_environment(env);</div><div><br></div><div>&nbsp; &nbsp;return(0);</div>





<div><br></div><div>}</div><div><br></div><div>#endif</div></div><div style="line-height:21px;color:rgb(68,68,68);font-size:15px;"><br></div><div style="line-height:21px;color:rgb(68,68,68);font-size:15px;">Does anyone know what&nbsp;<span style="line-height:22px;font-size:12pt;">sym_set_obj2_coeff(env, 1, -1) means? &nbsp;When should I use 1 or -1?</span></div>





<div style="color:rgb(68,68,68);"><span style="line-height:22px;">My sample data is a minimization problem.</span></div><div style="color:rgb(68,68,68);"><span style="line-height:22px;"><br></span></div><div style="color:rgb(68,68,68);">





<span style="line-height:22px;">Thank you,</span></div><div style="color:rgb(68,68,68);"><span style="line-height:22px;">Papis</span></div><br><div>&gt; Date: Fri, 13 Sep 2013 23:29:29 -0500<div><br>&gt; From: <a href="mailto:hennebry@web.cs.ndsu.nodak.edu" target="_blank">hennebry@web.cs.ndsu.nodak.edu</a><br>





&gt; To: <a href="mailto:papis_31@hotmail.com" target="_blank">papis_31@hotmail.com</a><br>&gt; CC: <a href="mailto:symphony@list.coin-or.org" target="_blank">symphony@list.coin-or.org</a><br>&gt; Subject: RE: [Symphony] biobjective problems<br>





&gt; <br></div><div>&gt; On Sat, 14 Sep 2013, Papis Wongchaisuwat wrote:<br>&gt; <br>&gt; &gt; I would like to run bi-objective Set cover and Set pack problems. Attached files are some examples that I want to run. MCKP and these problems are quite different. I don't know how to apply MCKP or either use any other ways to run these problems.<br>





&gt; <br>&gt; From reading the manual,<br>&gt; I gather one can call sym_explicit_load_problem( ... )<br>&gt; and follow it by calling sym_mc_solve( ... ) .<br>&gt; Is there a reason that you cannot do that?<br>&gt; <br>




&gt; -- <br>
&gt; Michael   <a href="mailto:hennebry@web.cs.ndsu.NoDak.edu" target="_blank">hennebry@web.cs.ndsu.NoDak.edu</a><br>&gt; "On Monday, I'm gonna have to tell my kindergarten class,<br>&gt; whom I teach not to run with scissors,<br>





&gt; that my fiance ran me through with a broadsword."  --  Lily<br></div></div>                                               </div></div>
<br>_______________________________________________<br>
Symphony mailing list<br>
<a href="mailto:Symphony@list.coin-or.org" target="_blank">Symphony@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/symphony" target="_blank">http://list.coin-or.org/mailman/listinfo/symphony</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Dr. Ted Ralphs<br>Associate Professor, Lehigh University<br><a target="_blank">(610) 628-1280</a><br>ted 'at' lehigh 'dot' edu<br>

<a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><br>


</div></div></div></div></div>                                               </div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Dr. Ted Ralphs<br>Associate Professor, Lehigh University<br><a target="_blank">(610) 628-1280</a><br>ted 'at' lehigh 'dot' edu<br>

<a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><br>


</div></div></div></div></div>                                               </div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Dr. Ted Ralphs<br>Associate Professor, Lehigh University<br>(610) 628-1280<br>ted 'at' lehigh 'dot' edu<br><a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><br>


</div></div></div></div>
</div></blockquote><br>_______________________________________________
Symphony mailing list
Symphony@list.coin-or.org
http://list.coin-or.org/mailman/listinfo/symphony</div></div>                                               </div>
<br>_______________________________________________
Symphony mailing list
Symphony@list.coin-or.org
http://list.coin-or.org/mailman/listinfo/symphony</div></div>                                               </div></body>
</html>