Softanza
StartFrançais
Softanza
The library documents itself · Numeric & optimization

stzMultiObjectiveSolver

44 own methods · 0 forms written with extensions, listed under their method

the source: base/optim/stzMultiObjectiveSolver.ring(opens in a new tab) · All classes · The area reference: Numeric & optimization

Under each method, its extensions (Q CS XT Z ZZ IB W U): bold and ticked, it exists; struck, it does not. The extensions and what they mean

Examples: 0 come from the library's tests; 8 were composed from each method's signature and run for this page, on a fresh object, for example o1 = new stzMultiObjectiveSolver() o1.AddVariable("x", 0, 10) o1.Maximize("x") o1.Minimize("x"). 36 methods have none yet. Examples run on 2026-10-04 07:31 inside the library at commit 0e72e2e2c.

Method
Explanation, as the source carries it
init
(no comment in the source: the name reads as a sentence) initno extension
clear
(no comment in the source: the name reads as a sentence) clearno extension
addVariable
Variables Management (inherited from stzLinearSolver)no extension
addIntegerVariable
Same as addVariable: Variables Management (inherited from stzLinearSolver)no extension
addBinaryVariable
Same as addVariable: Variables Management (inherited from stzLinearSolver)no extension
Variables
(no comment in the source: the name reads as a sentence) variables
composed example
o1 = new stzMultiObjectiveSolver()
o1.AddVariable("x", 0, 10)
o1.Maximize("x")
o1.Minimize("x")
? @@( o1.Variables() )
#--> [ [ [ "name", "x" ], [ "lowerbound", 0 ], [ "upperbound", 10 ], [ "type", "continuous" ] ] ]
composed from the signature, run for this page
no extension
Vars
(no comment in the source: the name reads as a sentence) vars
composed example
o1 = new stzMultiObjectiveSolver()
o1.AddVariable("x", 0, 10)
o1.Maximize("x")
o1.Minimize("x")
? @@( o1.Vars() )
#--> [ [ [ "name", "x" ], [ "lowerbound", 0 ], [ "upperbound", 10 ], [ "type", "continuous" ] ] ]
composed from the signature, run for this page
no extension
VariableNames
(no comment in the source: the name reads as a sentence) variable namesalso written: VarNames
composed example
o1 = new stzMultiObjectiveSolver()
o1.AddVariable("x", 0, 10)
o1.Maximize("x")
o1.Minimize("x")
? @@( o1.VariableNames() )
#--> [ "x" ]
composed from the signature, run for this page
no extension
addConstraint
Constraints Management (inherited from stzLinearSolver)no extension
constraints
(no comment in the source: the name reads as a sentence) constraintsno extension
addObjective
Multi-Objective Functionsno extension
maximize
(no comment in the source: the name reads as a sentence) maximizeno extension
minimize
(no comment in the source: the name reads as a sentence) minimizeno extension
objectives
(no comment in the source: the name reads as a sentence) objectives
composed example
o1 = new stzMultiObjectiveSolver()
o1.AddVariable("x", 0, 10)
o1.Maximize("x")
o1.Minimize("x")
? @@( o1.objectives() )
#--> [ [ [ "expression", "x" ], [ "type", "maximize" ] ], [ [ "expression", "x" ], [ "type", "minimize" ] ] ]
composed from the signature, run for this page
no extension
setNSGAParameters
Algorithm Parametersno extension
solve
Solving Methods
composed example
o1 = new stzMultiObjectiveSolver()
o1.AddVariable("x", 0, 10)
o1.Maximize("x")
o1.Minimize("x")
o1.Solve("nsga_ii")
? o1.Status()
#--> optimal
composed from the signature, run for this page
no extension
solveWithNSGAII
(no comment in the source: the name reads as a sentence) solve with nsgaiino extension
solveWithEpsilonConstraint
(no comment in the source: the name reads as a sentence) solve with epsilon constraintno extension
initializePopulation
NSGA-II Helper Methodsno extension
generateRandomSolution
(no comment in the source: the name reads as a sentence) generate random solutionno extension
SetSeed
THE MULTIPLIER IS NOT ARBITRARY, and the reason is copied from stzNeuralNetwork because it was found the hard way there: Park-Miller's 16807 is chosen for HARO'S DOUBLES, since 16807 * 2^31 < 2^53 so the product never loses integer bits. The classic 1103515245 multiplier OVERFLOWS a double and degenerates -- in stzNeuralNetwork that showed up live as every seed producing the same network.no extension
Seed
(no comment in the source: the name reads as a sentence) seedno extension
evaluateObjectives
(no comment in the source: the name reads as a sentence) evaluate objectivesno extension
calculateObjectiveValue
(no comment in the source: the name reads as a sentence) calculate objective valueno extension
nonDominatedSort
(no comment in the source: the name reads as a sentence) non dominated sortno extension
dominates
(no comment in the source: the name reads as a sentence) dominatesno extension
calculateCrowdingDistance
(no comment in the source: the name reads as a sentence) calculate crowding distanceno extension
sortFrontByObjective
(no comment in the source: the name reads as a sentence) sort front by objectiveno extension
createNewPopulation
(no comment in the source: the name reads as a sentence) create new populationno extension
tournamentSelection
(no comment in the source: the name reads as a sentence) tournament selectionno extension
crossover
(no comment in the source: the name reads as a sentence) crossoverno extension
mutate
(no comment in the source: the name reads as a sentence) mutateno extension
calculateEpsilonRanges
Epsilon Constraint Helper Methodsno extension
calculateObjectiveBound
(no comment in the source: the name reads as a sentence) calculate objective boundno extension
extractCoefficient
Utility Methods (inherited from stzLinearSolver)no extension
parseObjectiveCoefficients
(no comment in the source: the name reads as a sentence) parse objective coefficientsno extension
getSolutionValue
(no comment in the source: the name reads as a sentence) get solution valueno extension
paretoSolutions
Solution Access
composed example
o1 = new stzMultiObjectiveSolver()
o1.AddVariable("x", 0, 10)
o1.Maximize("x")
o1.Minimize("x")
o1.Solve("nsga_ii")
? len(o1.ParetoSolutions())
#--> 50
composed from the signature, run for this page
no extension
bestCompromiseSolution
(no comment in the source: the name reads as a sentence) best compromise solution
composed example
o1 = new stzMultiObjectiveSolver()
o1.AddVariable("x", 0, 10)
o1.Maximize("x")
o1.Minimize("x")
o1.Solve("nsga_ii")
? @@( o1.BestCompromiseSolution() )
#--> [ [ "solution", [ [ "x", 0 ] ] ], [ "objectives", [ 0, 0 ] ], [ "rank", 1 ], [ "crowdingdistance", 999999 ], [ "dominatedsolutions", [ ] ], [ "dominationcount", 0 ] ]
composed from the signature, run for this page
no extension
status
(no comment in the source: the name reads as a sentence) status
composed example
o1 = new stzMultiObjectiveSolver()
o1.AddVariable("x", 0, 10)
o1.Maximize("x")
o1.Minimize("x")
o1.Solve("nsga_ii")
? o1.Status()
#--> optimal
composed from the signature, run for this page
no extension
iterations
(no comment in the source: the name reads as a sentence) iterationsno extension
solveTime
(no comment in the source: the name reads as a sentence) solve timeno extension
show
Display and Reportingno extension
exportParetoFrontCSV
(no comment in the source: the name reads as a sentence) export pareto front csvno extension