MAOS: PortalDocumentation → Command Line & Parameters

Command Line (myprojects/Examples.bat)

% java [-options] -cp $BIN_PATH/$BODYFILE maosKernel.MAOSExecuter $PROBTYPE:[NAME=VALUE] N=* Nact=* T=* Tcon=* Topology=* solver=*:[NAME=VALUE]
//java: the JAVA executor, jre version 1.5 or above is preferred
//maosKernel.MAOSExecuter: the main entrance of the MAOS program

JAVA Options (See JAVA help for more information)

There are two recommended optional parameters:
  -server: to select the "server" VM, which is normally faster than the "client" VM 
  -Xmx<size>: to set maximum Java heap size. Using a large size may prevent from the "out of memory" error

Moreover, the "-cp" option is used for loading the MAOS solver specified by $BODYFILE.

Parameters for $PROBTYPE

For most problem types, it is "Problem=*", in which "Problem" is located in the directory "$INST_DIR/$PROBTYPE/instance"
For the GCP type, the parameters are "Problem=*,kColor=*", in which "kColor" is an integer value
For the NKB type, the parameters are "N=*,K=*", in which both "N" and "K" are integer values (N>=K)

Common Framework parameters

NAME      VALUE_type  Description

N         integer     The number of agents (N>1)
Nact      integer     The number of active agents during each cycle
T         integer     Termiate condition: maximum number of learning cycles
Tcon      integer     Termiate condition: number of cycles as the best state is unvaried

Tout      integer     The interval cycles for displaying on screen
DUP_TIMES integer     Number of trials

Topology  string      The topology name, see file "$SET_PATH/topology.par" (Toplogy List)
solver    string      The name of an solving script file in directory "$SET_PATH/$PROBTYPE/solver/" (Solving Script List)

NOTE: the default values of these parameters can be found in Setting file for Common Framework Parameters.
                     
"Topology" & "solver" (See Framework Script Files & Format)

The supported parameters for "solver" are defined by the -P flag in the solver (behavioral toolbox) script file.


Return to homepage

Maintained by AdaptiveBox StUdIo, under a Creative Commons Attribution 3.0 License.