Versions in this module Expand all Collapse all v1 v1.0.0 Jul 6, 2017 Changes in this version + const INF + func CxInt(a, b, A, B []int, prms *Parameters) + func CxIntOrd(a, b, A, B []int, prms *Parameters) + func DiffEvol(xnew, x, x0, x1, x2 []float64, prms *Parameters) + func FormatXFGH(opt *Optimiser, fmtX, fmtFGH string) (l string) + func GenTrialSolutions(sols []*Solution, prms *Parameters, reset bool) + func GenerateCxEnds(size, ncuts int, cuts []int) (ends []int) + func GetBestFeasible(opt *Optimiser, iOvaSort int) (best *Solution, feasible []*Solution) + func GetParetoFront(p, q int, all []*Solution, feasibleOnly bool) (fp, fq []float64, front []int) + func GetParetoFrontRes(p, q int, res [][]float64) (fp, fq []float64, front []int) + func GetResults(sols []*Solution, ovaOnly bool) (ova, oor [][]float64) + func MtInt(A []int, prms *Parameters) + func MtIntBin(A []int, prms *Parameters) + func MtIntOrd(A []int, prms *Parameters) + func SortSolutions(s []*Solution, idxOva int) + func WriteAllValues(dirout, fnkey string, opt *Optimiser) + type CxInt_t func(a, b, A, B []int, prms *Parameters) + type Generator_t func(sols []*Solution, prms *Parameters, reset bool) + type Group struct + All []*Solution + Indices []int + Metrics *Metrics + Ncur int + Pairs [][]int + func (o *Group) Init(cpu, ncpu int, solutions []*Solution, prms *Parameters) + func (o *Group) Reset(cpu, ncpu int, solutions []*Solution) + type Mesh struct + C [][]int + V [][]float64 + type Metrics struct + Fmax []float64 + Fmin []float64 + Fronts [][]*Solution + Fsizes []int + Imax []int + Imin []int + Omax []float64 + Omin []float64 + func (o *Metrics) Compute(sols []*Solution) (nfronts int) + func (o *Metrics) Init(nsol int, prms *Parameters) + type MinProb_t func(f, g, h, x []float64, y []int, cpu int) + type MtInt_t func(a []int, prms *Parameters) + type ObjFunc_t func(sol *Solution, cpu int) + type Optimiser struct + CxInt CxInt_t + F [][]float64 + G [][]float64 + Generator Generator_t + Groups []*Group + H [][]float64 + Meshes [][]*Mesh + Metrics *Metrics + MinProb MinProb_t + MtInt MtInt_t + Nf int + Ng int + Nh int + ObjFunc ObjFunc_t + Output Output_t + Solutions []*Solution + func (o *Optimiser) EvolveOneGroup(cpu int) (nfeval int) + func (o *Optimiser) GetSolutionsCopy() (res []*Solution) + func (o *Optimiser) Init(gen Generator_t, obj ObjFunc_t, fcn MinProb_t, nf, ng, nh int) + func (o *Optimiser) PlotAddFltFlt(iFlt, jFlt int, sols []*Solution, args *plt.A) + func (o *Optimiser) PlotAddFltOva(iFlt, iOva int, sols []*Solution, ovaMult float64, args *plt.A) + func (o *Optimiser) PlotAddOvaOva(iOva, jOva int, sols []*Solution, feasibleOnly bool, args *plt.A) + func (o *Optimiser) PlotAddParetoFront(iOva, jOva int, sols []*Solution, feasibleOnly bool, args *plt.A) + func (o *Optimiser) PlotContour(iFlt, jFlt, iOva int, pp *PlotParams) + func (o *Optimiser) PlotFltFltContour(sols0 []*Solution, iFlt, jFlt, iOva int, pp *PlotParams) + func (o *Optimiser) PlotFltOva(sols0 []*Solution, iFlt, iOva int, ovaMult float64, pp *PlotParams) + func (o *Optimiser) PlotOvaOvaPareto(sols0 []*Solution, iOva, jOva int, pp *PlotParams) + func (o *Optimiser) PlotStar() + func (o *Optimiser) PrintStatF(idxF int) + func (o *Optimiser) PrintStatF1F0() + func (o *Optimiser) PrintStatIGD() + func (o *Optimiser) PrintStatMultiE() + func (o *Optimiser) Reset(reSeed bool) + func (o *Optimiser) RunMany(dirout, fnkey string, constantSeed bool) + func (o *Optimiser) Solve() + func (o *Optimiser) Tournament(A, B, a, b *Solution, m *Metrics) + type Output_t func(time int, sols []*Solution) + type Parameters struct + BinInt int + ClearFlt bool + DEC float64 + DelFlt []float64 + DelInt []int + DtExc int + DtOut int + EpsH float64 + ExcOne bool + ExcTour bool + FltMax []float64 + FltMin []float64 + GenAll bool + GenType string + IntMax []int + IntMin []int + IntNchanges int + IntNcuts int + IntPc float64 + IntPm float64 + LatinDup int + Nbry int + Ncpu int + Nflt int + Nint int + Noor int + NormFlt bool + Nova int + Nsamples int + Nsol int + NumExtraSols int + NumXiXjBryPts int + NumXiXjPairs int + Pll bool + PlotSet1 bool + PlotSet2 bool + ProbNum int + Seed int + Strategy int + Tmax int + UseMesh bool + VerbStat bool + VerbTime bool + Verbose bool + func (o *Parameters) CalcDerived() + func (o *Parameters) DeNormalise1(r []float64) + func (o *Parameters) Default() + func (o *Parameters) EnforceRange(i int, x float64) float64 + func (o *Parameters) LogParams() (l string) + func (o *Parameters) Normalise4(x, x0, x1, x2 []float64) (r, r0, r1, r2 []float64) + func (o *Parameters) Read(filenamepath string) + type PlotParams struct + ArgsAux *plt.A + ArgsBest *plt.A + ArgsF *plt.A + ArgsFront *plt.A + ArgsG *plt.A + ArgsH *plt.A + ArgsLeg *plt.A + ArgsSimple *plt.A + ArgsSols *plt.A + ArgsSols0 *plt.A + ArgsYfX *plt.A + AxEqual bool + ContourAt string + DirOut string + Extra func() + FeasibleOnly bool + FnKey string + IdxH int + Limits bool + NoF bool + NoFront bool + NoG bool + NoH bool + Npts int + NptsYfX int + OnlyAux bool + RefX []float64 + Simple bool + WithAll bool + WithAux bool + Xlabel string + Xrange []float64 + YfuncX YfuncX_t + Ylabel string + Yrange []float64 + func NewPlotParams(simple bool) (o *PlotParams) + type Solution struct + Aux float64 + Closest *Solution + DistCrowd float64 + DistNeigh float64 + Fixed bool + Flt []float64 + FrontId int + Id int + Int []int + Nlosses int + Nwins int + Oor []float64 + Ova []float64 + WinOver []*Solution + func CheckFront0(opt *Optimiser, verbose bool) (nfailed int, front0 []*Solution) + func GetFeasible(sols []*Solution) (feasible []*Solution) + func NewSolution(id, nsol int, prms *Parameters) (o *Solution) + func NewSolutions(nsol int, prms *Parameters) (res []*Solution) + func (A *Solution) Compare(B *Solution) (A_dominates, B_dominates bool) + func (A *Solution) CopyInto(B *Solution) + func (A *Solution) Distance(B *Solution, fmin, fmax []float64, imin, imax []int) (dist float64) + func (A *Solution) Fight(B *Solution) (A_wins bool) + func (o *Solution) Feasible() bool + func (o *Solution) Reset(id int) + type Stat struct + BestFlts [][]float64 + BestInts [][]int + BestOfBestFlt []float64 + BestOfBestInt []int + BestOfBestOva []float64 + BestOvas [][]float64 + Eave float64 + Edev float64 + Emax float64 + Emin float64 + F1F0_arcLen []float64 + F1F0_arcLenRef float64 + F1F0_err []float64 + F1F0_f0ranges [][]float64 + F1F0_func func(f0 float64) float64 + Fave []float64 + Fdev []float64 + Fmax []float64 + Fmin []float64 + HistDelEmax float64 + HistDelEmaxZero bool + HistDelEmin float64 + HistDelEminZero bool + HistDelFmax float64 + HistDelFmaxZero bool + HistDelFmin float64 + HistDelFminZero bool + HistFmt string + HistLen int + HistNdig int + HistNsta int + IGDave float64 + IGDdev float64 + IGDmax float64 + IGDmin float64 + Lave float64 + Ldev float64 + Lmax float64 + Lmin float64 + Multi_IGD []float64 + Multi_err []float64 + Multi_fStar [][]float64 + Multi_fcnErr func(f []float64) float64 + Nfeval int + RptDesc string + RptFmax []float64 + RptFmin []float64 + RptFmtE string + RptFmtEdev string + RptFmtF string + RptFmtFdev string + RptFmtL string + RptFmtLdev string + RptFmtX string + RptFref []float64 + RptName string + RptWordF string + RptXref []float64 + SysTimeAve time.Duration + SysTimeTot time.Duration + SysTimes []time.Duration + type TexReport struct + DescHeader string + DroundCte time.Duration + ItableNotes string + Landscape bool + Opts []*Optimiser + RtableNotes string + RunPDF bool + ShowAllX bool + ShowDEC bool + ShowDescription bool + ShowDtExc bool + ShowEave bool + ShowEdev bool + ShowEmax bool + ShowEmin bool + ShowFave bool + ShowFdev bool + ShowFmax bool + ShowFmin bool + ShowFref bool + ShowIGDave bool + ShowIGDdev bool + ShowIGDmax bool + ShowIGDmin bool + ShowLave bool + ShowLdev bool + ShowLmax bool + ShowLmin bool + ShowNcpu bool + ShowNfeval bool + ShowNsamples bool + ShowNsol bool + ShowSysTimeAve bool + ShowSysTimeTot bool + ShowTmax bool + ShowX01 bool + ShowXref bool + TableColSep float64 + Title string + UseGeom bool + XtableFontSz string + XtableNotes string + func NewTexReport(opts []*Optimiser) (o *TexReport) + func (o *TexReport) GenTable() (K []string, nrows int, F map[string]io.FcnRow, M map[string]string) + func (o *TexReport) Generate(dirout, fnkey string) + func (o *TexReport) SetColumnsAll(flag bool) + func (o *TexReport) SetColumnsDefault() + func (o *TexReport) SetColumnsInputData() + func (o *TexReport) SetColumnsMultiObj(usingIGD bool) + func (o *TexReport) SetColumnsSingleObj(showX01, showAllX bool) + func (o *TexReport) SetColumnsXvalues() + type YfuncX_t func(x float64) float64