<<
>>

the Appendix In

(Help)

Working out of imitating model in AnyLogic

In the given appendix we will result the basic options and initial codes of the developed imitating model for platform AnyLogic 7. This model allows to evaluate dependence of distribution of an innovation on parametres of environment and to define corrective actions depending on parametres of the subsequent supporting innovations.

The basic interface of the program is resulted in drawings 4.6 - 4.9. In drawing of Century 1 the interface containing is shown

Model basic elements.

Drawing of Century 1 - the Basic interface of imitating model

The table of Century 1 - the General options of imitating model

The cores
Units of modelling time Days
Numerical methods
Method of the decision of diff.ur th Euler
Method of the decision of algebras. Ur th The changed Newton
Method of the decision mixed ur th RK45+Newton
Absolute accuracy 1
Time accuracy 1
Relative accuracy 1
The fixed step on time 0.001

The table of Century 2 - Options of agent Main

The agent in the process diagramme
To use in process diagrammes The agent
Space and network
Space type The continuous
Arrangement type It is set by the user
To apply an arrangement at start true
Network type It is set by the user
To create a network at start true
To execute steps false
Java for experts
Import import

j avax.swing.text. StyledEditorKit. F ontSizeAction; import j avax.activation. DataHandler; import java.util.function. DoubleToIntFunction; import com.anylogic.engine.internal.ln;


The table of Century 3 - function Options redrawFons

The cores
Type of returned significance: Action (does not return anything)
On presentation true
To display a label true
Function body
double MIN BUBBLE SIZE = 2,

MAX BUBBLE SIZE = 2, DIAGRAM X POS = 180, DIAGRAM Y POS = 50,

DIAGRAM HEIGHT = 200, DIAGRAM WIDTH = 170;

double verticalGap = 8, horizontalGap = 8;
Body for (Fon fo: fons) {double yCoord = DIAGRAM Y POS + verticalGap + ((DIAGRAM_HEIGHT - 2 * verticalGap) * random ()); double xCoord = DIAGRAM X POS + horizontalGap + ((DIAGRAM_WIDTH - 2 * horizontalGap) * random ()); double size = MAX_BUBBLE_SIZE * FonSize _; fo.show (xCoord, yCoord, size, true);}
The specific
The static false
Access level By default
Units of measure (sist. Dynamics) false

The table of Century 4 - Options of function KoefDiff

The cores
Type of returned significance double
Type of returned significance: Returns significance
On presentation true
To display a label true
Function body
Body if (StateinMarketNIP> 0) return (InnPSize / (FonSize + InnPSize + NIPSize)) * 0.01 * UserAbility * (1 + StateUsers);//* log (Demand / (StateUsers + 1)) ((Demand - StateUsers) / Demand) * (Demand / (Demand + DemandNIP));

else return (InnPSize / (FonSize + InnPSize)) * 0.01 * UserAbility * (1 + StateUsers);//* log (Demand / (StateUsers + 1));//((Demand - StateUsers) / Demand);

//(1 + StateUsers/* / MarketSize */);

The specific
The static false
Access level By default
Units of measure (sist.
Dynamics)
false

The table of Century 5 - Options of function Force

The cores
Type of returned significance double
Type of returned significance: Returns significance
On presentation true
To display a label true
Function body
Body if (Offer == 0 || Demand == 0 || (Demand + StateKilled - 1) == StateUsers) return 0; else {if (StateinMarketNIP = ceil (QuanPoint - 5) && (StateUsers) 1 && StateUsersNIP> = ceil (QuanPointNIP - 10) && StateUsersNIP 1 && (StateUsersNIP = DemandNIP - 50)) {TimeSaturNIP = time ();

QSaturNIP = StateUsersNIP; QSumSatNIP = SumUsers ();}

The specific
The static false
Access level By default
Units of measure (sist. Dynamics) false

The cores
Logging true
Condition StateReadytoLaunch
<< | >>

More on topic the Appendix In:

  1. the Appendix
  2. the Appendix 4
  3. the Appendix
  4. THE APPENDIX
  5. the Appendix
  6. THE APPENDIX
  7. the APPENDIX 4
  8. the Appendix
  9. the Appendix
  10. the Appendix
  11. the Appendix
  12. THE APPENDIX
  13. the Appendix
  14. THE APPENDIX
  15. the Appendix
  16. the Appendix
  17. THE APPENDIX
  18. THE APPENDIX