# Questions tagged [mathematical-optimization]

Questions on the optimization functions of Mathematica such as FindMinimum/FindMaximum, Minimize/Maximize, NMinimize/NMaximize, etc.

1,259 questions
Filter by
Sorted by
Tagged with
0answers
91 views

### Mixed integer programming with FindMinimum

As this works fine ...
0answers
205 views

### How I can use FindFit to simultaneously fit two data sets to two equations having shared parameters? [duplicate]

I think that FindFit package with the method Nminimize yields global minimum if initial values of adjustable parameters are ...
0answers
78 views

### solving the game of fiver

Up to an error by myself, the following code is an implementation of the mixed integer linear programming of the game of Fiver : ...
1answer
103 views

### Non-linear optimization giving error NMaximize::nrnum [closed]

I am trying to solve the following non-linear optimization problem: Here is my code: ...
0answers
41 views

### FindMinium produces a worse point that the initially provided one [closed]

I am using FindMinimum to get a local minimum to a non-liner function of 50 variables on [0,1]^50 with some additional constraints. I provide FindMinumum with a feasible point which reaches a function ...
0answers
42 views

### Affine connection with torsion using xAct

I'm working with xAct and I need to obtain the affinne connection with torsion. Without torsion it is easy: ...
2answers
111 views

...
1answer
81 views

### How to build a Neural Network with only categorical variables?

I've built mixed data NN, but I'm trying to build an NN that only has categorical variables. In my problem, I cannot represent my categorical variables using the commonly used ...
1answer
52 views

### Choice of variables name affects the behavior of expression evaluation

I tried to expand this polynomials. With x, it is increasing with the right order, however with b it is in a random order. The only difference is that I change b to x and it works. ...
0answers
39 views

### Acceptable number of parameters for NMinimize

At the moment I am trying to optimize a fourth order polynomial which contains many parameters. I wanted to ask your opinion based on your experience about what is the acceptable number of parameters ...
2answers
80 views

### FindMinimum from DensityPlot

I need to find the values of x, y that correspond to the minimum value of the function (in this example it is -1.0, the black area). Code example: ...
0answers
34 views

### Determine if nonlinear function can be positive subject to nonlinear constraints [closed]

I am trying to determine if a certain nonlinear function can be positive when the variables have to satisfy multiple nonlinear constraints. Currently my code looks like ...
0answers
74 views

### FindMinimum giving error FindMinimum::infeas:

I'm trying to find the minimum y-coordinate of a point which lies on a side of an equilateral triangle. FindMinimum doesn't work when I change the position of the ...
2answers
200 views

### Problem with Solve (Lagrange multiplier)

I'm trying to solve a simple maximization problem, which I can easily solve by hand using the Lagrangian method. I want to maximize UH subject to ...
2answers
242 views

### Discrepancy between Minimize and NSolve

I was trying to minimize a quartic polyonomial equation with a constraint using Mathematica but I got some conflicting results and I wanted to ask to you. Am I making a conceptual mistake or a coding ...
0answers
70 views

### Optimization problem over a bi-linear function

Here is my code: ...
1answer
152 views

1answer
49 views

### Find values that minimize function (by passing list as initial searching points)

I have a cost function and I want to find which variables minimize it using the built-in method FindMinimum My cost function is this (keep in mind that ...
1answer
125 views

### 2nd Order ODE with Optimal Control

I'm trying to solve an ODE where there is an optimal control problem involving a tradeoff between the flow cost c and the drift rate ...
0answers
75 views

### How to involve more cpu cores?

I'm working on Mathematica 11 (Lenovo Laptop, Core i7 cpu, 16GB Ram, SSD storage, windows 10 pro), part of my work is definite double integral, the evaluation time of this integral takes between 50 to ...
1answer
427 views

### Solving coupled PDE and ODE

I want to solve a system of partial differential equation in mathematica. equation is: $y0=0.5 t0=30 λ_12=0.3 λ_13=λ_23=0.01 λ_21=2.8$ I am new in mathematica. please help me for solving ...
0answers
57 views

### Is there a way to Connect a function ''normally'' through its Pole?

Basicaly I have this function: ...
1answer
103 views

### Minimization of the sums of complicated parametric integrals

I have to find the values of the parametersω and λ that minimize the function Int[ω, λ] ...
1answer
46 views

### Precision error in FindMinimum

I am trying to solve a system of three non-linear equations for three unknowns (e1, e2, phi). I am using FindMinimum to solve the system (I am minimizing the norm ...
1answer
56 views

1answer
158 views

### How to generate optimal solution and order the rest

This is a decimal maze, you start with 100 points and you must choose the path that gives you the highest score. Rule: You should not go twice for the same point and the same segment. My question: Is ...