|
Á¦ ¸ñ |
IloCplex °´Ã¼ÀÇ setParam() ÀÌ¿ë |
|
ÀÛ¼ºÀÚ |
¼Ò°æÃ¶ |
ÀÛ¼ºÀÏ |
2002-05-25 |
Á¶È¸¼ö |
1163 ȸ |
|
÷ºÎÆÄÀÏ |
÷ºÎµÈ ÆÄÀϾøÀ½.
|
|
ÀÌ ÇÔ¼ö´Â ILOG CPLEX ¸Å´º¾óÀÌ ¾Æ´Ï¶ó ILOG HybridÀÇ Reference ManualÀ» ã¾Æº¸¼Å¾ß ÇÕ´Ï´Ù.
°´Ã¼ À̸§ ¶ÇÇÑ IlogConstraint°¡ ¾Æ´Ï¶ó IloLinConstraint ÀÔ´Ï´Ù. Âø¿À¾øÀ¸½Ã±â ¹Ù¶ø´Ï´Ù.
±×¸®°í, CPLEX¸¦ ÀÌ¿ëÇÑ Variable Selection Àü·« Å×½ºÆ®´Â ´ÙÀ½ÀÇ Äڵ带 ÀÌ¿ëÇØ¼ °£´ÜÇÏ°Ô ±¸ÇöÀ» ÇØ¼ ½ÃµµÇØ º¸½Ã±â ¹Ù¶ø´Ï´Ù.
void main() { IloEnv env; IloModel model(env);
// º¯¼ö »ý¼º // Á¦¾à ºÎ°ú => model.add(Á¦¾à); // ¸ñÀûÇÔ¼ö ºÎ°ú => model.add(¸ñÀûÇÔ¼ö);
IloCplex cplex(model);
cplex.setParam(IloCplex::VarSel, 4); // 0 = Branch variable automatically selected // 1 = Branch on variable with maximum infeasibility // 2 = Branch based on pseudo costs // 3 = Strong Branching // 4 = Branch based on pseudo reduced costs
cplex.solve();
env.out() << \"Obj = \" << cplex.getObjValue() << endl; env.out() << \"Value = \" << cplex.getValue(º¯¼ö) << endl;
env.end();
}
:±èº¹¼ø´ÔÀÇ ±ÛÀÔ´Ï´Ù.
:´äº¯ °í¸¿½À´Ï´Ù. : :¿Ã·ÁÁֽбÛÀ»º¸°í óÀ½º¸´Ù ¸¹ÀÌ ÀÌÇØÇß½À´Ï´Ù. : :¸»¾¸ÇØ ÁֽŠÇÔ¼öÀdz»¿ëÀ» ¾Ë±âÀ§ÇØ, : :CPLEX manual (online and offline)À» ¸ðµÎ ºÃ½À´Ï´Ù. : :ÇÏÁö¸¸ ¸Å´º¾ó¿¡´Â :IlogNum IlogConstraint::getUpPseudoCost(const IloNumVar x); :IlogNum IlogConstrain::getDownPseudoCost(const IloNumVar x);°¡ ³ª¿ÍÀÖÁú ¾Ê¾Æ ÀÚ¼¼È÷ º¸Áø ¸øÇß½À´Ï´Ù. : :ÇÔ¼öÀÇ ³»¿ëÀÌ ¾î¶²Áö ¾Ë·Á¸é ¾î¶»°Ô ÇØ¾ßÇϳª¿ä? : :¶ÇÇÑ, branch and boundÀÇ pseudo reduced cost ºÎºÐ¿¡ °üÇØ CPLEX·Î Å×½ºÆ®¸¦ ÇØº¸°í ½ÍÀºµ¥ ¾î¶»°Ô ÇÏÁÒ? : :Á¦°¡ ¾ÆÁ÷ Ãʺ¸ÀÚ¶ó ±×·¯´Âµ¥¿ä... : :¾Ë·ÁÁÖ¼ÌÀ¸¸é ÁÁ°Ú½À´Ï´Ù. (°í¸¿½À´Ï´Ù.) |
|
|
|