# Alan Weiss

### MathWorks

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**

RANK**34**

of 242.558

REPUTATION**4.784**

CONTRIBUTIONS

**0** Questions

**2.174** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**600**

RANK**4.705** of 16.999

REPUTATION**243**

AVERAGE RATING**0.00**

CONTRIBUTIONS**3** Files

DOWNLOADS **5**

ALL TIME DOWNLOADS**2436**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

Optimisation: minimise function while maximising a design variable

Perhaps you can change the optimization in a nearly unnoticeable way that would bias solutions to have large values of R, like t...

circa 17 ore ago | 1

Problem using fminbnd function

All optimization solvers require that the objective function return a scalar value. You need to write your objective function in...

3 giorni ago | 0

Augmented Lagrangian and Penalty Methods

Sounds like a homework problem. I suggest that you consult the documentation for passing extra parameters, such as Passing Extr...

3 giorni ago | 0

Find gradient numerically for the equation

There are tools on the File Exchange that can help you find numerical approximations to derivatives. For example, see Adaptive R...

7 giorni ago | 0

| accepted

optimization problem - problem using det funciton

The main problem is that det is not a Supported Operations on Optimization Variables and Expressions. For example, x = optimvar...

7 giorni ago | 1

| accepted

How to optimize nonlinear multiple input model with multiple constraints

I doubt that you want a symbolic solution. You probably want numbers. So I suggest that you use the Problem-Based Optimization W...

7 giorni ago | 0

can i use different solvers for problem based optimisation in matlab

You CAN use different solvers. The question is, SHOULD you? In other questions you have shown that you are trying to solve an MI...

7 giorni ago | 0

| accepted

Optimizing 1 equation with 7 variables

I think that you would have an easier time formulating your problem by using the problem-based approach. However, if you really...

7 giorni ago | 0

Matlab optimprob _Problem based _how can i see the optimal parameter setting while using optimprob

You can set a plot function in the options for your solver. To see which solver is being used, call optimoptions: options = opt...

13 giorni ago | 0

| accepted

How to find fixed number of variables with value 1 using Genetic Algorithm with population type Bitstring ?

If I understand you correctly (and I might not have understood), you want to impose a linear constraint on the population x sum...

13 giorni ago | 0

| accepted

Find best input combinations that will maximize the output of a non-linear ODE mathematical model

Add the parameters to optimize as a vector in your ODE calculation: function rest = Scrpt1(t,X,params) x2 = X(1); x3 = X(2);...

21 giorni ago | 1

| accepted

How to use simulated annealing to optimize a simulation based, multicriteria Problem?

Your question confuses me because you talk about having a multiobjective problem but then seem to want to use simulannealbnd to ...

21 giorni ago | 0

parallel computing in Genetic algorithm

You have to be careful using parallel computing. Are you using Simuulink® for the simulation? I am not sure that it can run in p...

24 giorni ago | 0

How to find a part of function value in Genetic Algorithm after each iteration cycle

I think that you can write a Custom Output Function for Genetic Algorithm and use it to calculate what you want and store them i...

27 giorni ago | 0

| accepted

Coding a GA using constraint functions but getting array size error. - SOLVED

I think that you can investigate this problem yourself by using the debugger to set a break point at or just before line 119, an...

27 giorni ago | 0

| accepted

multi constraints fmincon optimization

I don't know which of these variables are optimization variables, meaning those that can be changed to try to optimize, and whic...

28 giorni ago | 0

| accepted

surrogateopt: get handle of optimized surrogate function

Sorry, the surrogate is not returned and is not available. We have no idea whether the surrogate is a good approximation to the ...

circa un mese ago | 0

| accepted

Intlinrprog (maximize) vs excel Solver (Maximize)

Your problem is that you set intcon = 3; This means that the only variable restricted to be an integer is x(3). Instead you sh...

circa un mese ago | 0

| accepted

Multi-objective optimization

Are you looking for the gamultiobj solver? Or are you asking something else? Alan Weiss MATLAB mathematical toolbox documentat...

circa un mese ago | 0

Find values for best and mean fitness value for each generation in Genetic Algorithm

Use a Custom Output Function for Genetic Algorithm. Model it on the gaplotbestf plot function. To see that function, edit gaplo...

circa un mese ago | 1

| accepted

Optimization of multiple input variable to a model

Usually you should use a least-squares solver for nonlinear fitting. See Nonlinear Data-Fitting and Nonlinear Least -Squares, Pr...

circa un mese ago | 0

about genetic algorithm

The topic Mixed Integer ga Optimization adderesses this kind of question. For an example that uses integer variables for non-int...

circa un mese ago | 0

Linear programming exercise help

This looks like quadratic programming, not linear programming. In any case, it looks quite straightforward to solve this kind of...

circa un mese ago | 0

Solving an optimization problem using fmincon

I think that this is a straightforward problem is you use the problem-based optimization workflow, which requires a relatively r...

circa un mese ago | 1

| accepted

Bayesian Optimization Hyperparameters .

The bayesopt function performs all Bayesian optimization. The bayesopt algorithm is described here. When finding the best parame...

circa un mese ago | 1

| accepted

How set properly a multiobjective optimization problem

I think that you need to understand that the optimization variables all need to be in one variable, typically called x. See Writ...

circa un mese ago | 0

| accepted

Simulation: fminsearch in a for loop

Do you really want TolFun = 1000? Are you sure? I am not sure that I understand what you are trying to do, but maybe you have a...

circa un mese ago | 0

| accepted

3 variable Linear function problem

In linprog set lb = [0 0 -Inf]; You will have to take the negative of your objective function vector in order to maximize. Al...

circa un mese ago | 0

| accepted

prediction using genetic algorithm

Perhaps you are looking at fitting a parameterized model to data using the genetic algorithm. You can follow the Nonlinear Data-...

circa 2 mesi ago | 0

How do I optimise a logarithmic (log) function in Matlab?

It depends on which variables you can change in your optimization process, and whether there are any constraints such as bounds....

circa 2 mesi ago | 0