Optimiser
- class compas_tno.optimisers.Optimiser[source]
Bases:
compas.datastructures.datastructure.Datastructure
The
Optimiser
sets the parameters of the optimisation.- Parameters
x0 (array) – The starting point of the optimisation.
xopt (array) – The value of the variables that solves thhe optimisation problem.
fopt (float) – The value of the objective function at the end of the optimisation process.
message (str) – The message provided by the solver.
M (
Problem
) – The problem with the relevat matrices.time (float) – The time consumption for solving.
niter (int) – The number of iterations.
exitflag (int) – Whether or not the optimisation problem was solved successfully. Value ``0``represents a solved problem.
log (str) – Log of the optimisation, available for some solves.
Settings
——–
The main settings and default values are shown below
* ‘library’ ([‘Scipy’, ‘MATLAB’, ‘MMA’, ‘IPOPT’, ‘Scipy’, …])
* ‘solver’ ([‘SLSQP’, ‘IPOPT’, ‘MMA’, …],)
* ‘objective’ ([‘min’, ‘max’, ‘t’, ‘loadpath’, ‘bestfit’, …],)
* ‘constraints’ ([‘funicular’, ‘envelope’, ‘reac_bounds’, …],)
* ‘variables’ ([‘q’, ‘zb’, ‘xyb’, ‘t’, …],)
* ‘features’ ([‘fixed’, ‘sym’, …],)
* ‘find_inds’ (True,)
* ‘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
Initiate an empty Optimiser objects, or 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 additional options of the optimisation.
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 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 the provided data.
Construct an object from serialized data contained in a JSON file.
Construct an object from serialized data contained in 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.
Serialize the data representation of an object to a JSON file.
Serialize the data representation of an object to a JSON string.
Validate the object's data against its data schema.
Validate the object's data against its json schema.