-
Create Ubuntu server instance under Parallels (obviously).
-
Start VM, goto Actions - Install Parallels Tools... to mount the ISO image.
- Note: if this fails, or updating tools for an existing guest you can do the following:
- Goto
Devices
>CD/DVD 1
>Connect Image...
. - Select the following ISO image:
/Applications/Parallels Desktop/Contents/Resources/Tools/prl-tools-lin.iso
. - This will mount the tools CD image.
-
From the terminal, run the following commands:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StochasticUniversalSampling { | |
/** | |
* | |
* @param population - set of individuals' segments. Segment is equal to individual's fitness. | |
* @param n - number of individuals to choose from population. | |
* @return set of indexes, pointing to the chosen individuals in the population set | |
*/ | |
public int[] execute(double[] population, int n) { | |
// Calculate total fitness of population |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// JS Module Pattern: | |
// http://j.mp/module-pattern | |
// Redefine: $, window, document, undefined. | |
var APP = (function($, window, document, undefined) { | |
// Automatically calls all functions in APP.init | |
$(document).ready(function() { | |
APP.go(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\addcontentsline{toc}{section}{References} | |
\bibliographystyle{plain} | |
\begin{thebibliography}{1} | |
\bibitem{notes} {\em ``How to lock files in C/C++ using fopen"} - http://stackoverflow.com/questions/7573282/ 2011: StackOverf low, StackExchange. | |
\bibitem{notes} P. Prinz, T. Crawford {\em ``C in a Nutshell"} 2008: O'Reilly Media Inc. | |
\bibitem{notes} R. Lischner {\em ``C++ in a Nutshell"} 2009: O'Reilly Media Inc. |