Class LHSSimGenerator
java.lang.Object
net.simplace.sim.control.FWSimulationControlContainer
net.simplace.sim.control.FWSimulationGenerator
net.simplace.sim.control.generators.DefaultSimulationGenerator
net.simplace.sim.control.generators.LHSSimGenerator
- All Implemented Interfaces:
net.simplace.sim.util.FWSimFieldContainer
public class LHSSimGenerator
extends net.simplace.sim.control.generators.DefaultSimulationGenerator
Generate simulations with parameters created using random Latin hypercube
sampling
WIKI_START
== Example ==
Three dimensional hypercube with 1600 samples:
{{{
|
|
|
|
| 1600
|
}}}
== References ==
LHS and permutation functions by Le Minh Nghia, NTU-Singapore
([https://code.google.com/p/evolutionary-algorithm/ Google code link])
WIKI_END
- Author:
- Roelof Oomen, Le Minh Nghia
-
Field Summary
Fields inherited from class net.simplace.sim.control.FWSimulationGenerator
iContentType, iSimulationsMap
Fields inherited from class net.simplace.sim.control.FWSimulationControlContainer
iCache, iCals, iConstraint, iContainerElement, iControlMap, iFieldMap, iInputMap, iInputs, iName, iParams, iSession, iSimulationMap
-
Constructor Summary
ConstructorDescriptionLHSSimGenerator
(org.jdom2.Element aGeneratorElement, net.simplace.sim.FWSimSession aSession, HashMap<String, net.simplace.sim.util.FWSimVariable<?>> aFieldMap, net.simplace.sim.util.FWSimVariable.CONTENT_TYPE aContentType) -
Method Summary
Modifier and TypeMethodDescriptionvoid
int[][]
getSimpleLH
(int N, int dim) Generate matrix (nSamples x nDim) so that each column is a permutation of 1->Nvoid
init()
Methods inherited from class net.simplace.sim.control.FWSimulationGenerator
addSimulation, canUpdate, clearSimulations, createSimulationGenerator, finalize, getSimulation, getSimulationsListSize, initializeProject, reset, setFinished, setInitial, updateSimulations, writeSimulation
Methods inherited from class net.simplace.sim.control.FWSimulationControlContainer
addProcessTime, addVariable, checkCondition, evaluate, getContentType, getCreateFormXML, getEditFormXML, getFieldMap, getFrequence, getInputVariables, getName, getOrderNumber, getOutputVariables, getVariable, getVarMap, isConditionCheck, readInputCalAndConstraint, removeVariable, setPropertyValue, toXML
-
Constructor Details
-
LHSSimGenerator
public LHSSimGenerator(org.jdom2.Element aGeneratorElement, net.simplace.sim.FWSimSession aSession, HashMap<String, net.simplace.sim.util.FWSimVariable<?>> aFieldMap, net.simplace.sim.util.FWSimVariable.CONTENT_TYPE aContentType) - Parameters:
aProjectsElement
-aSolution
-aFieldMap
-aContentType
-
-
-
Method Details
-
init
public void init()- Overrides:
init
in classnet.simplace.sim.control.generators.DefaultSimulationGenerator
-
createVariables
- Specified by:
createVariables
in interfacenet.simplace.sim.util.FWSimFieldContainer
- Overrides:
createVariables
in classnet.simplace.sim.control.generators.DefaultSimulationGenerator
-
getSimpleLH
public int[][] getSimpleLH(int N, int dim) Generate matrix (nSamples x nDim) so that each column is a permutation of 1->N- Parameters:
N
- Number of samplesdim
- Number of dimensions
-
generate
public void generate(net.simplace.sim.control.FWSimulationControlCache aCache, ResultSet aResultSet) - Overrides:
generate
in classnet.simplace.sim.control.generators.DefaultSimulationGenerator
-