fr.geocites.marius.calibration

SimpleModel

class SimpleModel extends Marius with DefaultValues

Simple model with only core mechanisms

Linear Supertypes
DefaultValues, Marius, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SimpleModel
  2. DefaultValues
  3. Marius
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SimpleModel(economicMultiplier: Double, sizeEffectOnSupply: Double, sizeEffectOnDemand: Double, distanceDecay: Double, wealthToPopulationExponent: Double, populationToWealthExponent: Double)

Type Members

  1. case class Transacted(cities: Seq[City], supplies: Seq[Double], demands: Seq[Double], transacted: DenseMatrix) extends Product with Serializable

    Technical data structure to memoize the matrix computation

    Technical data structure to memoize the matrix computation

    cities

    the cities

    supplies

    the supplies of the city

    demands

    the demands of the city

    transacted

    the transaction matrix

    Definition Classes
    Marius

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def bonuses(transacted: Transacted): Seq[Double]

    Stub for bonuses injection.

    Stub for bonuses injection. No bonuses are modeled in this version.

    transacted

    information on all transactions between cities

    returns

    a sequence of bonuses indexed by city index

    Definition Classes
    Marius
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def demand(population: Double): Double

    Demand of a city from its population

    Demand of a city from its population

    population

    the population the city

    returns

    the demand

    Definition Classes
    Marius
  8. val distanceDecay: Double

    Decaying effect of distance on interaction

    Decaying effect of distance on interaction

    Definition Classes
    SimpleModelMarius
  9. val economicMultiplier: Double

    Factor adjusting the values of production and consumption

    Factor adjusting the values of production and consumption

    Definition Classes
    SimpleModelMarius
  10. def ended(state: State): Boolean

    Stop criterion on a maximum number of state

    Stop criterion on a maximum number of state

    state

    a state of the model

    returns

    true if the simulation is finished

    Definition Classes
    Marius
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def exchangeBalances(cities: Seq[City], network: FullNetwork, supplies: Seq[Double], demands: Seq[Double]): Seq[Double]

    Valued balance of the cities resulting from exchanges.

    Valued balance of the cities resulting from exchanges.

    cities

    the cities

    network

    the network of cities

    supplies

    the supplies of the cities indexed by city index

    demands

    the demands of the cities indexed by city index

    returns

    the exchange balance of the cities indexed by city index

    Definition Classes
    Marius
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. def initialCities: Seq[City]

    Create the initial state of the cities

    Create the initial state of the cities

    Definition Classes
    Marius
  18. def initialState: State

    Initial state of the model

    Initial state of the model

    Definition Classes
    Marius
  19. def interactionPotential(mass1: Double, mass2: Double, distance: Double): Double

    Compute the interaction potential as a gravity model.

    Compute the interaction potential as a gravity model.

    mass1

    mass of the 1st city

    mass2

    mass of the 2nd city

    distance

    distance between the cities

    returns

    Definition Classes
    Marius
  20. def interactionPotentialMatrix(supplies: Seq[Double], demands: Seq[Double], network: FullNetwork): DenseMatrix

    Compute the interaction potential matrix of the whole network of city.

    Compute the interaction potential matrix of the whole network of city.

    supplies

    masses of the cities of origin

    demands

    masses of the cities of destination

    network

    the interaction network

    returns

    the interaction potential matrix as an adjacency matrix

    Definition Classes
    Marius
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. def maxStep: Int

    Simulate from 1959 to 1989

    Simulate from 1959 to 1989

    Definition Classes
    DefaultValues
  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. def nextState(state: State): State

    The next state of the model

    The next state of the model

    state

    the current state

    returns

    the subsequent state

    Definition Classes
    Marius
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. def populationToWealth(population: Double): Double

    Estimate the wealth of a city from its population

    Estimate the wealth of a city from its population

    population

    population of the city

    returns

    the estimated wealth

    Definition Classes
    Marius
  28. val populationToWealthExponent: Double

    Exponent of the scaling law to convert population into wealth

    Exponent of the scaling law to convert population into wealth

    Definition Classes
    SimpleModelMarius
  29. def rescaleWealth(wealth: Seq[Double], population: Seq[Double]): Seq[Double]

    Center the wealth distribution on the population distribution

    Center the wealth distribution on the population distribution

    wealth

    the wealth distribution

    population

    the population distribution

    returns

    the centered wealth distribution

    Definition Classes
    Marius
  30. val sizeEffectOnDemand: Double

    Exponent of the scaling law between demand and population

    Exponent of the scaling law between demand and population

    Definition Classes
    SimpleModelMarius
  31. val sizeEffectOnSupply: Double

    Exponent of the scaling law between supply and population

    Exponent of the scaling law between supply and population

    Definition Classes
    SimpleModelMarius
  32. def states: Iterator[Try[State]]

    Iterate through the states of the model

    Iterate through the states of the model

    Definition Classes
    Marius
  33. def supply(population: Double): Double

    Supply of a city from its population

    Supply of a city from its population

    population

    the population the city

    returns

    the supply

    Definition Classes
    Marius
  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  35. def toString(): String

    Definition Classes
    AnyRef → Any
  36. def totalFixedCosts(transacted: Transacted): Seq[Double]

    Stub for fixed costs injection.

    Stub for fixed costs injection. No fixed cost are modeled in this version.

    transacted

    information on all transactions between cities

    returns

    a sequence of fixed costs indexed by city index

    Definition Classes
    Marius
  37. def transactions(cities: Seq[City], network: FullNetwork, supplies: Seq[Double], demands: Seq[Double]): DenseMatrix

    Match cities according to their interaction potential and compute the transacted quantity

    Match cities according to their interaction potential and compute the transacted quantity

    cities

    the cities

    network

    the network of cities

    supplies

    the supplies of the cities indexed by city index

    demands

    the demands of the cities indexed by city index

    returns

    the

    Definition Classes
    Marius
  38. def updatedPopulation(city: City, updatedWealth: Double): Double

    The updated population of a city from its updated wealth

    The updated population of a city from its updated wealth

    city

    the city to update

    updatedWealth

    the updated wealth

    returns

    the updated population

    Definition Classes
    Marius
  39. def updatedWealths(state: State): Seq[Double]

    The updated wealth of the cities as a result of economic processes:

    The updated wealth of the cities as a result of economic processes:

    • supply,
    • demand,
    • exchange balance.
    state

    the current state of the model

    returns

    Definition Classes
    Marius
  40. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. def wealthToPopulation(wealth: Double): Double

    Convert a quantity of wealth into a quantity of population

    Convert a quantity of wealth into a quantity of population

    wealth

    the stock of wealth

    returns

    the matching population

    Definition Classes
    Marius
  44. val wealthToPopulationExponent: Double

    Exponent of the scaling law to convert wealth into population

    Exponent of the scaling law to convert wealth into population

    Definition Classes
    SimpleModelMarius

Inherited from DefaultValues

Inherited from Marius

Inherited from AnyRef

Inherited from Any

Ungrouped