Problem
- class nrv.optim.Problem(cost_function: cost_function = None, optimizer: Optimizer = None, save_problem_results=False, problem_fname='optim.json')[source]
Problem Class
A class to describe problems that should be optimized with the NRV Framework. The problem should be described with a simulation and a cost, using the object cost_function, and various optimization algorithms can be used to find optimal solution.
This class is abstract and is not supposed to be used directly by the end user. NRV can handle two types of problems: - problems where a geometric parameter can be optimized: please refer to … - problems where the waveform can be optimized: please refer to …
Attributes
Cost function of a Problem, the cost function should be a CosFunction object, it should return a scalar. |
|
Optimizer of the problem, the Optimizer should be an Optimizer object. |
|
Optimizer of the problem, the Optimizer should be an Optimizer object. |
Methods
|
Init method for |
|
|
Generic method returning all the atributes of an NRV_class instance |
|
|
Generic loading method for |
|
Generic saving method for |
|
Generic method to set any attribute of |