viernes, 27 de abril de 2012
web sobre diseño de algoritmos y analisis
http://openclassroom.stanford.edu/MainFolder/CoursePage.php?course=IntroToAlgorithms
lunes, 27 de febrero de 2012
Optimization wiki
here we have two optimization web page very interesting Neos_Wiki and optimization tree.
lunes, 26 de septiembre de 2011
Trazar CPLEX
http://yetanothermathprogrammingconsultant.blogspot.com/2008/05/undocumented-gamscplex-options.html
miércoles, 3 de agosto de 2011
Aprovechar multi-core CPLEX
Para que cplex se ejecute en paralelo, añadir la siguiente instrucción en el código de gams:
$onecho > cplex.opt
lpmethod 6
parallelmode 0
threads 0
predual -1
$offecho
model.optfile = 1;
$onecho > cplex.opt
lpmethod 6
parallelmode 0
threads 0
predual -1
$offecho
model.optfile = 1;
lunes, 11 de julio de 2011
Generar combinaciones(n,k)
int generarComb(int i,int l,int k,int n){
if(i==k){
if(l==0){
for(int r=0;r < k;r++){
cout < < mark[r];
}
cout < < endl;
}
}
else{
if(l > 0){
mark[i]=true;
generarComb(i+1,l-1,k,n);
mark[i]=false;
}
generarComb(i+1,l,k,n);
}
return 0;
}
if(i==k){
if(l==0){
for(int r=0;r < k;r++){
cout < < mark[r];
}
cout < < endl;
}
}
else{
if(l > 0){
mark[i]=true;
generarComb(i+1,l-1,k,n);
mark[i]=false;
}
generarComb(i+1,l,k,n);
}
return 0;
}
miércoles, 8 de junio de 2011
Incluir gráficos en MikTex
Hay que incluir el paquete
\usepackage{graphicx}
y no hay que dejar lineas en blanco entre \begin{landscape} y \begin{figure}:
\begin{landscape}
\begin{figure}[ht]
\centering
\includegraphics[scale=0.5]{planning.eps}
\caption{Planning thesis}
\label{fig2}
\end{figure}
\end{landscape}
\usepackage{graphicx}
y no hay que dejar lineas en blanco entre \begin{landscape} y \begin{figure}:
\begin{landscape}
\begin{figure}[ht]
\centering
\includegraphics[scale=0.5]{planning.eps}
\caption{Planning thesis}
\label{fig2}
\end{figure}
\end{landscape}
jueves, 2 de junio de 2011
Suscribirse a:
Entradas (Atom)