fr.geocites.marius.model

FixedCost

trait FixedCost extends Marius

Fixed cost component which could be injected in the model

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

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

Abstract Value Members

  1. abstract def distanceDecay: Double

    Decaying effect of distance on interaction

    Decaying effect of distance on interaction

    Definition Classes
    Marius
  2. abstract def economicMultiplier: Double

    Factor adjusting the values of production and consumption

    Factor adjusting the values of production and consumption

    Definition Classes
    Marius
  3. abstract def fixedCost: Double

    Cost of a transaction

  4. abstract def maxStep: Int

    Number of simulation steps

    Number of simulation steps

    Definition Classes
    Marius
  5. abstract def populationToWealthExponent: Double

    Exponent of the scaling law to convert population into wealth

    Exponent of the scaling law to convert population into wealth

    Definition Classes
    Marius
  6. abstract def sizeEffectOnDemand: Double

    Exponent of the scaling law between demand and population

    Exponent of the scaling law between demand and population

    Definition Classes
    Marius
  7. abstract def sizeEffectOnSupply: Double

    Exponent of the scaling law between supply and population

    Exponent of the scaling law between supply and population

    Definition Classes
    Marius
  8. abstract def wealthToPopulationExponent: Double

    Exponent of the scaling law to convert wealth into population

    Exponent of the scaling law to convert wealth into population

    Definition Classes
    Marius

Concrete 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. 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
  9. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  11. 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
  12. def finalize(): Unit

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

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

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

    Create the initial state of the cities

    Create the initial state of the cities

    Definition Classes
    Marius
  16. def initialState: State

    Initial state of the model

    Initial state of the model

    Definition Classes
    Marius
  17. 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
  18. def interactionPotentialMatrix(supplies: Seq[Double], demands: Seq[Double], network: FullNetwork): DenseMatrix

    Filter the interaction potential matrix

    Filter the interaction potential matrix

    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
    FixedCostMarius
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. 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
  22. final def notify(): Unit

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

    Definition Classes
    AnyRef
  24. 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
  25. 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
  26. def states: Iterator[Try[State]]

    Iterate through the states of the model

    Iterate through the states of the model

    Definition Classes
    Marius
  27. 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
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  29. def toString(): String

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

    Cost implied by the number of transactions

    Cost implied by the number of transactions

    returns

    a sequence of fixed costs indexed by city index

    Definition Classes
    FixedCostMarius
  31. 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
  32. 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
  33. 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
  34. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. 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

Inherited from Marius

Inherited from AnyRef

Inherited from Any

Ungrouped