Defines | Functions

StochModel.cpp File Reference

#include "StochModel.h"
#include "GlobalVariables.h"
#include "misc.h"
#include "nodes.h"
#include "sml.tab.h"
#include "StochModelComp.h"
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>

Defines

#define LogSM(X)

Functions

static void splitIn (SyntaxNode *expr, IDNode **dummy, SyntaxNode **set)
static void callAmpl ()
 Build the command to call Ampl and run it.
static void expandSet (SyntaxNode *set, vector< string > &member_list)

Define Documentation

#define LogSM (   X  ) 

Function Documentation

static void callAmpl (  )  [static]

Build the command to call Ampl and run it.

References GlobalVariables::amplcommand, PRINT_LOG, and GlobalVariables::prtLvl.

Referenced by expandSet(), and StochModel::expandStagesOfComp().

static void expandSet ( SyntaxNode set,
vector< string > &  member_list 
) [static]

Bug:
this is just so that the global data file can be read, eventually this should be removed.

References callAmpl(), AmplModel::comps, GlobalVariables::datafilename, LogSM, ModelComp::modifiedWriteAllTagged(), AmplModel::root, TPARAM, TSET, and ModelComp::untagAll().

Referenced by StochModel::expandStages().

static void splitIn ( SyntaxNode expr,
IDNode **  dummy,
SyntaxNode **  set 
) [static]