Пример #1
0
func main() {

	// input filename
	_, fnkey := io.ArgToFilename(0, "frame2d", ".sim", true)

	// simple problems
	var opts []*goga.Optimiser
	if fnkey == "simple" {
		io.Pf("\n\n\n")
		//P := []int{1}
		P := utl.IntRange2(1, 19)
		opts = make([]*goga.Optimiser, len(P))
		for i, problem := range P {
			opts[i] = solve_problem(fnkey, problem)
		}
	} else {
		opts = []*goga.Optimiser{solve_problem(fnkey, 0)}
	}
	if opts[0].PlotSet1 {
		return
	}

	if opts[0].Nsamples > 1 {
		io.Pf("\n")
		rpt := goga.NewTexReport(opts)
		rpt.ShowDEC = false
		rpt.Type = 4
		rpt.TextSize = ""
		rpt.Title = "FORM Reliability: " + fnkey
		rpt.Fnkey = "rel-" + fnkey
		rpt.Generate()
	}
}
Пример #2
0
func main() {
	P := utl.IntRange2(1, 9)
	//P := []int{2}
	opts := make([]*goga.Optimiser, len(P))
	for i, problem := range P {
		opts[i] = solve_problem(problem)
	}
	io.Pf("\n-------------------------- generating report --------------------------\nn")
	rpt := goga.NewTexReport(opts)
	rpt.NRowPerTab = 10
	rpt.Type = 1
	rpt.Title = "Unconstrained and constrained three objective problems."
	rpt.Fnkey = "three-obj"
	rpt.Generate()
}
Пример #3
0
func main() {
	P := utl.IntRange2(1, 7)
	//P := []int{1, 2, 4, 6}
	//P := []int{4, 5, 6}
	//P := []int{4}
	opts := make([]*goga.Optimiser, len(P))
	for i, problem := range P {
		opts[i] = solve_problem(problem)
	}
	io.Pf("\n-------------------------- generating report --------------------------\nn")
	rpt := goga.NewTexReport(opts)
	rpt.NRowPerTab = 9
	rpt.Type = 2
	rpt.Title = "Unconstrained two objective problems."
	rpt.Fnkey = "two-obj"
	rpt.Generate()
}