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

    Constructors
    Constructor
    Description
    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)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    HashMap<String,net.simplace.sim.util.FWSimVariable<?>>
     
    void
    generate(net.simplace.sim.control.FWSimulationControlCache aCache, ResultSet aResultSet)
     
    int[][]
    getSimpleLH(int N, int dim)
    Generate matrix (nSamples x nDim) so that each column is a permutation of 1->N
    void
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class net.simplace.sim.control.generators.DefaultSimulationGenerator
    • createVariables

      public HashMap<String,net.simplace.sim.util.FWSimVariable<?>> createVariables()
      Specified by:
      createVariables in interface net.simplace.sim.util.FWSimFieldContainer
      Overrides:
      createVariables in class net.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 samples
      dim - Number of dimensions
    • generate

      public void generate(net.simplace.sim.control.FWSimulationControlCache aCache, ResultSet aResultSet)
      Overrides:
      generate in class net.simplace.sim.control.generators.DefaultSimulationGenerator