Community Profile

photo

Alan Weiss

MathWorks

Last seen: 1일 전 2011 이후 활성

I write documentation for MATLAB mathematical toolboxes, primarily optimization. I have also written documentation for PDE, statistics, symbolic math, and econometrics.

My pre-MathWorks job was with Bell Labs, primarily in mathematical models of data traffic, with a strong interest in parallel computation and in rare events (large deviations).

I do not provide private consulting. If you have a question, please ask on a public forum such as MATLAB Answers.

Statistics

All
  • Revival Level 3
  • First Submission
  • 36 Month Streak
  • Thankful Level 2
  • Guiding Light
  • Knowledgeable Level 4
  • First Answer
  • Solver

배지보기

Content Feed

보기 기준

답변 있음
Minimize norm of the complex number array with subtraction of a variable
I am not sure that I understand exactly what you are doing, but if you are willing to accept a least squares solution (rather th...

3일 전 | 0

답변 있음
How to incorporate write "options" into the main code (GA algorithm) for beginners
I think that you have a misconception about How the Genetic Algorithm Works. ga always takes exactly two parents for creating a ...

3일 전 | 0

답변 있음
Bayesian optimization with fixed 'Method' for fitcensemble
Mdl = fitcensemble(X_train , Y_train ,... "OptimizeHyperparameters", {'NumLearningCycles','LearnRate'} ,... "Hyperpara...

5일 전 | 0

답변 있음
find the minimum objective for a given ode as boundary value problem
For examples of optimizing a function given as the solution to an ODE, see Fit ODE, Problem-Based and Fit an Ordinary Differenti...

7일 전 | 0

| 수락됨

답변 있음
change number of pareto point with change number of initial population gamultiobj
You asked the exact same question very recently: https://www.mathworks.com/matlabcentral/answers/1629415-change-number-of-paret...

8일 전 | 1

| 수락됨

답변 있음
FMINCON requires the following inputs to be of data type double: 'X0'.
Without testing anything, I see a problem in this line of code: fun = @(X0,StoreInitialization,ttransij1,texeij1,theta,D_Cloud,...

11일 전 | 1

답변 있음
GA is not satisfying nonlinear constraints
The answer is that you cannot ensure that nonlinear constraints are satisfied at every step. Instead, your code must accept poin...

17일 전 | 0

| 수락됨

답변 있음
What is penalty value in GA
The documentation describes the penalty value. As for the lower-left portion of the plot, these points are infeasible. Once ga ...

17일 전 | 0

답변 있음
how to use live editor optimize tool ?
Did you try the documentation examples? Solve a Constrained Nonlinear Problem, Solver-Based Get Started with Optimize Live Edi...

19일 전 | 0

답변 있음
how to use fsolve with multiple variables with unique names, not vectors
The Problem-Based Workflow for Solving Equations is designed to do exactly what you want. Alan Weiss MATLAB mathematical tool...

22일 전 | 1

답변 있음
A genetic algorithm code with constraints on individuals
I cannot understand much of what you say, but it sounds as if you are trying to give bounds on the solution. If I understand you...

약 1달 전 | 0

답변 있음
How do I use the max() function on an optimization expression when using the genetic algorithm?
If you check the Supported Operations for Optimization Variables and Expressions, you see that max is not supported. (Why? I bel...

약 1달 전 | 1

| 수락됨

답변 있음
Optimization using fmincon with respect to 2 variables
I think that you would find it much easier to use the problem-based approach rather than fmincon directly. The reason is that wi...

약 1달 전 | 0

| 수락됨

답변 있음
Problem-based optimization, Conversion to double from optim.problemdef.OptimizationExpression is not possible.
To use a general nonlinear function with an optimization variable, you must first convert the function to an optimization expres...

약 1달 전 | 1

| 수락됨

답변 있음
I have problem with fmincon
Do not use symbolic variables with Optimization Toolbox functions, unless you convert them to function handles using matlabFunct...

약 1달 전 | 0

답변 있음
Optimization method for solving mixed discrete-continuous programming problems
For linear objective and constraints, use intlinprog. For nonlinear objective or constraints, use ga or surogateopt from Global...

약 1달 전 | 0

답변 있음
how to solve a cubic equation where the last term is an array
Try this instead of your code after %EVERYTHING UP TO HERE IS FINE: sol_x = zeros(size(V_total)); for i = 1:numel(V_total) ...

약 2달 전 | 0

| 수락됨

답변 있음
optimization value not able to acheive
That is not what I get when I run your code: No solution found. fsolve stopped because the last step was ineffective. Howeve...

약 2달 전 | 0

답변 있음
Using the output of a ready function as a constraint
I think that the easiest approach is problem-based. Create optimization variables: the vector A in your case Create the object...

약 2달 전 | 0

답변 있음
Cancel objective function evaluation in Optimization
I think that you can write an output function for the ODE solver that will halt the solver if it takes too long or reaches too l...

약 2달 전 | 0

답변 있음
How to write the equation for minimizing one day power loss of a PV system as an objective function to be used in Genetic Algorithm.
I think that you need to rethink your objective function. It sounds like the input variables must be integers in a certain range...

약 2달 전 | 0

답변 있음
Define a optimization problem
Perhaps you left out constraints that the x, y, and z variables should be nonnegative. Put those constraints and the upper bound...

약 2달 전 | 0

| 수락됨

답변 있음
How to write the equation for minimizing one day power loss of a PV system as an objective function to be used in Genetic Algorithm.
Your function as written does not make use of the input x1 and x2 values. Instead, it declares these variables as indices for tw...

약 2달 전 | 0

답변 있음
Confusion over use of fmincon for an optimisation problem
There could be several reasons for your results, in addition to the hard-to-diagnose bugs and other programming errors. One is ...

약 2달 전 | 0

답변 있음
fsolve gives the same value for different parameters of the nonlinear equation
Your function funH returns the following iinternal values for your initial point x0 = 5 and the other parameters pmt = [1.027313...

약 2달 전 | 0

답변 있음
What does relative constraint tolerance of fmincon in detail ?
As far as the interpretation, a positive value means at least one constraint is violated. A zero (or negative for other solvers)...

약 2달 전 | 0

| 수락됨

답변 있음
Find gradient ascent for 3D surface
You might be interested in this example: Pattern Search Climbs Mount Washington Alan Weiss MATLAB mathematical toolbox documen...

약 2달 전 | 0

답변 있음
how to run different for loops in MATLAB
Usually, people write functions that accept arguments and return arguments, such as result(k,z,q) = Matlaboptimization(Pemax,Pb...

약 2달 전 | 0

| 수락됨

답변 있음
The running time complexity of Mixed-integer linear programming (MILP)?
It is well known that MILP is an NP-complete problem. See https://en.wikipedia.org/wiki/Integer_programming for an explanation. ...

약 2달 전 | 0

답변 있음
Matlab Optimisation toolbox (Score Constaint)
Instead of minimizing TARGETVALUE - ACTUALVALUE , instead minimize either abs(TARGETVALUE - ACTUALVALUE) or (TARGETVALUE - ACTUA...

약 2달 전 | 0

| 수락됨

더로드