Skip to content

Commit

Permalink
fixed UI optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
qualand committed Nov 6, 2024
1 parent dfc9693 commit 224118f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solarpilot/AutoPilot_API.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ bool AutoPilot::Optimize(vector<double*> &optvars, vector<double> &upper_range,
nlobj.add_inequality_mconstraint(constraint_auto_eval, &AO, std::vector<double>(_SF->getActiveReceiverCount(), 0.));

//Number of variables to be optimized
int nvars = nvars;
int nvars = (int)optvars.size();

//NLopt optimization variable values
vector<double> var_values(nvars);
Expand Down

0 comments on commit 224118f

Please sign in to comment.