ILOG logo
KSTEC ȸ¿øÀ¸·Î °¡ÀÔÇϼ¼¿ä¤Ó»õ¼Ò½Ä | ·Î±×ÀÎ
 
title element1
License
- ¶óÀ̼¾½º
- ¶óÀ̼¾½º °ü¸®
Maintenance
Training
FAQ
Q&A

Q & A ... °Ô½ÃÆÇ  (Optimization)


¡Ø ¾È³çÇϽʴϱî..?
    ÀúÈñ KSTECÀÇ Á¦Ç°À̳ª ¼­ºñ½º¿¡ ´ëÇØ ±Ã±ÝÇϽŠÁ¡À̳ª ±â¼úÁö¿øÀ» ¿øÇϽô °í°´´ÔÀº ȸ»ç¸í,
    ºÎ¼­¸í, ¼º¸í, »ç¿ëÁ¦Ç°¸í, Á¦Ç° VERSIONÀ» ¸í½ÃÇÏ¿© Áֽñ⠹ٶø´Ï´Ù.

¡Ø °Ô½ÃÇϽг»¿ë¿¡ ´ëÇØ¼­´Â ½Å¼ÓÇÏ°Ô ´äº¯ÇØ µå¸®°Ú½À´Ï´Ù.
¡Ø ÇØ´çµÇ´Â Á¦Ç°±ºÀ» ¼±ÅÃÇϽŠÈÄ ÇÏ°í ½ÍÀ¸½Å ¸»¾¸À» Àû¾î ÁֽʽÿÀ.

Á¦ ¸ñ
´ÙÂ÷¿ø ¹è¿­ ¿¹Á¦
ÀÛ¼ºÀÚ
±è¿ëȯ
ÀÛ¼ºÀÏ
2002-12-06
Á¶È¸¼ö 1195 È¸
÷ºÎÆÄÀÏ Ã·ºÎµÈ ÆÄÀϾøÀ½.
¾È³çÇϼ¼¿ä
¾Æ·¡ Äڵ带 ÂüÁ¶ Çϼ¼¿ä...

===== ¾Æ·¡ ======

#include

ILOSTLBEGIN

typedef IloArray twoMatrix;
typedef IloArray threeMatrix;

void main() {

IloEnv env;


IloInt first = 2;
IloInt second = 3;
IloInt third = 3;

threeMatrix Array(env, first);
for (IloInt k = 0; k < first; k++) {
Array[k] = twoMatrix(env, second);
for (IloInt i = 0; i < second; i++) {
Array[k][i] = IloNumArray(env, third);
for (IloInt j = 0; j < third; j++) {
Array[k][i][j] = k+i+j;
}
}
}

IloInt c = 1;
for (k = 0; k < first; k++) {
for (IloInt i = 0; i < second; i++) {
for (IloInt j = 0; j < third; j++) {
cout << c++ << \"\\t\" << Array[k][i][j] << endl;
}
}
}
env.end();
}




:À̼øÈ£´ÔÀÇ ±ÛÀÔ´Ï´Ù.

:
:¸ÕÀú, ´äº¯¿¡ °¨»çµå¸³´Ï´Ù.
:¾Æ·¡¿Í °°ÀÌ 3Â÷¿ø Arrayº¯¼ö x¸¦ ¼±¾ðÇÏ¿´½À´Ï´Ù.
:typedef IloArray IloNumVarArray2;
:IloArray x(env, numK);
:
:±×·±µ¥, IloNumVarArray¸¦ ÀÌ¿ëÇØ¼­, ÃʱâÈ­¸¦ ÇÒ ¶§,
:¾î¶»°Ô ó¸®ÇØ¾ß ÇÒ Áö ³­°¨Çϱº¿ä.
:(2Â÷¿ø Arrayº¯¼ö´Â ½±°Ô ó¸®ÇÒ ¼ö ÀÖ´Â °Í °°½À´Ï´Ù.)
:x[i]¹øÂ°´Â ¾î¶»°Ô Á¤ÀÇÇØ ÁÖ¾î¾ß Çմϱî ?
:
:±×·³, ´äº¯¿¡ ¹Ì¸® °¨»çµå¸³´Ï´Ù.
:¼ö°íÇϼ¼¿ä.
:
:/À̼øÈ£
°ü·Ã±Û º¸±â
"´ÙÂ÷¿ø ¹è¿­ ¿¹Á¦"¿Í(°ú) °ü·ÃµÈ ±ÛÀÌ  3°Ç ÀÖ½À´Ï´Ù.
º¯¼ö»ç¿ë À̼øÈ£ 2002-12-06
IloArray¸¦ »ç¿ëÇÏ½Ã¸é µË´Ï´Ù. ±è¿ëȯ 2002-12-06
   [RE] º¯¼ö»ç¿ë À̼øÈ£ 2002-12-06
    ´ÙÂ÷¿ø ¹è¿­ ¿¹Á¦ ±è¿ëȯ 2002-12-06