Optimiser
- class compas_tno.optimisers.Optimiser
Bases:
Data
The
Optimiser
sets the parameters of the optimisation.- Parameters:
- x0array
The starting point of the optimisation.
- xoptarray
The value of the variables that solves thhe optimisation problem.
- foptfloat
The value of the objective function at the end of the optimisation process.
- messagestr
The message provided by the solver.
- M
Problem
The problem with the relevat matrices.
- timefloat
The time consumption for solving.
- niterint
The number of iterations.
- exitflagint
Whether or not the optimisation problem was solved successfully. Value
0
represents a solved problem.- logstr
Log of the optimisation, available for some solves.
- Attributes:
- The main settings and default values are shown below:
- * ‘solver’[‘SLSQP’, ‘IPOPT’, …],
- * ‘objective’[‘min’, ‘max’, ‘t’, ‘loadpath’, ‘bestfit’, …],
- * ‘constraints’[‘funicular’, ‘envelope’, ‘reac_bounds’, …],
- * ‘variables’[‘q’, ‘zb’, ‘xyb’, ‘t’, …],
- * ‘features’[‘fixed’, ‘sym’, …],
- * ‘find_inds’True,
- * ‘solver_convex’[‘CLARABEL’, ‘MOSEK’, ‘CVXPY’, …],
- * ‘exitflag’1,
- * ‘printout’True,
- * ‘starting_point’‘current’,
- * ‘support_displacement’: None,
- * ‘gradient’True,
- * ‘jacobian’True,
- * ‘solver_options’{},
- * ‘max_iter’500,
- * ‘qmin’-1e+4,
- * ‘qmax’1e-8,
Methods
Clear Previous results stored in the Optimiser object.
Create a bestfit optimiser to be sent with instructions to the Analysis.
Create a linear complementary energy optimiser to be sent with instructions to the Analysis.
Create a loadpath optimisation optimiser to be sent with instructions to the Analysis.
Create a minimum thickness optimiser to be sent with instructions to the Analysis.
Create a minimum thickness optimiser to be sent with instructions to the Analysis.
Create a maximum thickness optimiser to be sent with instructions to the Analysis.
Create a minimum thickness optimiser to be sent with instructions to the Analysis.
Create a minimum thickness optimiser to be sent with instructions to the Analysis.
Create a quadratic complementary energy optimiser to be sent with instructions to the Analysis.
Set the axis of symmetry.
Set the constraints for the problem.
Set the display options of the optimisation
Set the features for the problem.
Set the display options of the optimisation
Set the features for the problem.
Set the objective function for the problem.
Set the additional options of the optimisation.
Set the features for the problem.
Set the starating point of the problem.
Set the variables for the problem.
Inherited Methods
Converts the instance to a string.
Make an independent copy of the data object.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Convert an object to its native data representation and save it to a JSON file.
Convert an object to its native data representation and save it to a JSON string.
Validate the data against the object's data schema.