Overview
Comment:Reformat input line for rates and outputs as well as algebraic equations.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/optimise-algebraic-equations | trunk
Files: files | file ages | folders
SHA3-256: 0dbaa74d0ae1eeb724ccf5e6cbf5d37883f04289c55a783620eb15855c4afab9
User & Date: geraint@users.sourceforge.net on 2002-06-21 13:30:59
Other Links: branch diff | manifest | tags
Context
2002-07-10
14:55:19
Created branch optimise-algebraic-equations check-in: 0402a842d6 user: gawthrop@users.sourceforge.net tags: origin/optimise-algebraic-equations, trunk
2002-06-21
13:30:59
Reformat input line for rates and outputs as well as algebraic equations. check-in: 0dbaa74d0a user: geraint@users.sourceforge.net tags: origin/optimise-algebraic-equations, trunk
2002-06-18
16:56:51
Trying to get optimisation to work with maxima. check-in: 2eee9281c7 user: geraint@users.sourceforge.net tags: origin/optimise-algebraic-equations, trunk
Changes

Modified mttroot/mtt/bin/trans/mtt_optimise.sh from [a08246f929] to [51933f155d].

31
32
33
34
35
36
37


38
39
40
41
42
43
44
}

optimise_with_maxima ()
{
    cat ${filename}					|\
	tr "\t\n" "  "					|\
	sed -e 's/\ //g'				|\


	sed -e 's/\(MTTYz([0-9.]*,[0-9.]*)\)/\1 /'     	|\
	sed -e 's/[A-Za-z0-9_.:()]*(D2)\(.*\)/\1/'	|\
	sed -e 's/\([A-Za-z0-9_.:()]*\)(C3)/\1/g'	|\
	optimise_max2r.awk				|\
	tr "A-Z" "a-z"					> ${tmp}
}








>
>







31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
}

optimise_with_maxima ()
{
    cat ${filename}					|\
	tr "\t\n" "  "					|\
	sed -e 's/\ //g'				|\
	sed -e 's/\(MTTdX([0-9.]*,[0-9.]*)\)/\1 /'     	|\
	sed -e 's/\(MTTy([0-9.]*,[0-9.]*)\)/\1 /'     	|\
	sed -e 's/\(MTTYz([0-9.]*,[0-9.]*)\)/\1 /'     	|\
	sed -e 's/[A-Za-z0-9_.:()]*(D2)\(.*\)/\1/'	|\
	sed -e 's/\([A-Za-z0-9_.:()]*\)(C3)/\1/g'	|\
	optimise_max2r.awk				|\
	tr "A-Z" "a-z"					> ${tmp}
}


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]