# Questions tagged [constraint]

The tag has no usage guidance.

160 questions
Filter by
Sorted by
Tagged with
50 views

### Find perspective projection matrix under constraints

I have taken a photo (with a rectilinear lens) of a house's outside wall that sits on top a roof, from which I wish to take measurements from. However, to do so I would need to correct the perspective ...
• 213
77 views

### Solving for Lagrangian multipliers with additional assumptions

I want to solve the Lagrangian with two multipliers $\lambda_1$ and $\lambda_2$, but with an additional convexity assumption. However, when I solve it case by case under such an assumption, I get 0 as ...
199 views

### Two-directional vibration of Euler–Bernoulli beam with Lagrange multiplier

Background I'm going to investigate a beam-pendulum coupling system (in this question I won't consider the pendulum though), that is, a spherical pendulum is suspended on the tip of a cantilever beam. ...
• 3,740
1 vote
67 views

### Find an instance satisfying equation

I have the following equation with two variables xi and nu. ...
• 456
40 views

### NonlinearModelFit with NMinimize Submethods and Selective or Mixed-Head Constraints

Problem: I believe I've found a two related bugs associated with using NonlinearModelFit while making a Method call to NMinimize's submethods, e.g. "RandomSearch" and "...
• 1,157
30 views

### Adding constrains in a SYM function "Classicalsymmetries"

Please help me add constrains on my code. The function runs perfectly fine without the constrains but it gives me 7 cases and I only need one where all the constrains I have hold. This is the code ...
50 views

### Identify a condition among variables that satisfy an inequality

I have a symbolic function that produces the output a = (1 - e - mu/n) Log[(1 - e - mu/n)/(1 - mu/n)] + (e + mu/n) Log[((e + mu/n) n)/mu] If I substitute ...
• 456
53 views

### Problem maximizing a function

I have a problem maximizing the following function: ...
• 1
1 vote
58 views

### Error with NMaximize: "The following constraints are not valid" which disappears if the objective is changed

I am trying to optimize under constraint using NMaximize, however the constraints are flagged as invalid. I could not see the problem with the constraints so I ...
• 133
1 vote
116 views

### Finding the maximum of a non-linear function symbolically

I have the function $$f(x,\alpha) = x^\alpha - \frac{x^2}{2}$$ where $x>0$ is the main variable of interest and $\alpha \in (0,1)$ is the parameter of curvature: ...
53 views

### Constraints in a set of equations

I am currently working on a system of equations that is subject to a determinant constraint. Specifically, I have a matrix $B$ with $\det(B) = 0$, and I aim to construct a linear combination of its ...
• 491
59 views

### Invalid Constraints error in Non-linear Optimization

I am trying to write the code to solve a certain optimal control problem, but I keep running into an issue when I pass on my constraints to NMininimize[]. The ...
91 views

### Find the minimum value of a constrained multivariable function [closed]

Say I have a function of four variables $f(x_1,x_2,x_3,x_4)$ and a constraint $g(x_1,x_2,x_3,x_4)$ (both are quite complicated, that's why I don't write them explicitly). I want to find the minimum ...
• 123
72 views

### NIntegrate MonteCarlo with phase-space constraints

I wanted to use NIntegrate in Mathematica to perform a multi-dimensional Monte-Carlo integration numerically. I am a physics student, and I want to calculate probabilty (cross-section) of a high ...
304 views

### Creating a random symmetric matrix with a particular rank

The documentation about LinearAlgebra has a section on Constructing Matrices, but the examples of random matrices using RandomReal don't offer an obvios way to ...
• 2,141
31 views

### Solving a system of equations with distributional constraints

I'd like to generate samples of real numbers respecting distributional constraints. I tried (here, for a sample of 17 reals): ...
• 101
52 views

• 1,088
75 views

• 245
170 views

### Calculate the Viswanath's constant (Random Fibonacci sequences)

How Can I calculate first few digits of Viswanath's constant? Viswanath’s constant ≈ 1.1319882487943 is a real number whose nth power approximates the absolute value of the nth term of some random ...
• 8,958
254 views

### How to find a numerical solution for a differential equation with constraints?

I want first to apologize for my poor english level ^^ Let me present my issue. I want resolve numerically (I use Python) for x in [0;1] the following differential equation : $$dy/dx = a(y - y^2)$$ ...
• 11
119 views

### Verify a conjectured formula for a modification of a 3D constrained integration successfully solved using Mathematica

I've acquired somewhat indirect--and not fully conclusive--evidence that the solution of a certain three-dimensional constrained integration takes the form ...
• 2,335
1 vote
43 views

### Plotting 3D region depending on 2 parameters with constraints

I'm trying to plot the full range that a set of estimates gives. They depend on some parameters and conditions, but I haven't been able to to it effectively with RegionPlot3D. Here is the set that I ...
• 93
37 views

### Bug with ValueQ involving fractions? [duplicate]

Expected behavior: ClearAll[f]; ValueQ[f[1]] False Unexpected behavior: ...
• 960