Janus 2.0.0
High-performance C++20 dual-mode numerical framework
Loading...
Searching...
No Matches
janus::VariableOptions Struct Reference

Options for variable creation. More...

#include <Opti.hpp>

Public Attributes

std::string category = "Uncategorized"
 Category for grouping variables.
bool freeze = false
 If true, variable is fixed at init_guess.

Detailed Description

Options for variable creation.

Allows specifying category and freeze status for optimization variables.

Example:

auto x = opti.variable(1.0, {.category = "Wing", .freeze = false});
auto y = opti.variable(2.0, {.category = "Wing", .freeze = true}); // Frozen at 2.0

Member Data Documentation

◆ category

std::string janus::VariableOptions::category = "Uncategorized"

Category for grouping variables.

◆ freeze

bool janus::VariableOptions::freeze = false

If true, variable is fixed at init_guess.


The documentation for this struct was generated from the following file: