15.11.2013 Views

Esqueleto Algorítmico - ulpgc

Esqueleto Algorítmico - ulpgc

Esqueleto Algorítmico - ulpgc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Implementación Secuencial y Paralela de Técnicas Algorítmicas:<br />

Aplicación a Problemas de Optimización Combinatoria<br />

Seminario Invitado: Dpto Métodos Cuantitativos en Economía y Gestión<br />

Introducción<br />

Interfaz de<br />

Usuario<br />

Patrones<br />

Secuenciales<br />

Patrones Paralelos<br />

Experimentos<br />

Computacionales<br />

Conclusiones<br />

Interfaz de Usuario<br />

de MaLLBa<br />

Ejemplo: EL Problema de la Mochila 0/1<br />

requires class SubProblem {<br />

public:<br />

Number CRest, // capacidad actual<br />

obj, // objeto siguiente<br />

profit; // beneficio actual<br />

Solution sol; // Solución actual<br />

SubProblem (); // constructor<br />

~SubProblem (); // destructor<br />

...<br />

Interfaz Ramificación<br />

y Acotación<br />

Interfaz Divide y<br />

Vencerás<br />

Clases<br />

Proporcionadas<br />

Mª Isabel Dorta González<br />

Marzo, 2007<br />

};<br />

friend opacket& operator> (ipacket& is, SubProblem& sp);<br />

void initSubProblem (const Problem& pbm);<br />

void branch (const Problem& pbm,<br />

branchQueue& subpbms);<br />

Bound upper_bound (const Problem& pbm, Solution& ls);<br />

Bound lower_bound (const Problem& pbm, Solution& us);

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!