# Tag Info

4

This is just an extended comment as it does not answer the specific question asked. My only guess to the specific question is that the double sum embedded in a double integral where one of the parameters (x) must be an integer confuses Mathematica. In addition, my limited imagination does not allow me to see how explaining the specific error message would ...

4

It would be nice if there would be some control over the "acceptable-tol" parameter in IPOPT, which as @Lukas points out is the method being used in the OP as well as here. The "tol" parameter seems to be set to the maximum of PrecisionGoal and AccuracyGoal, but the "acceptable-tol" parameter is left at whatever value is the ...

3

The error means what it says: the domain of restriction must be either Reals or Integers. But you can also add additional inequalities in your constraints to ensure that the variables are either 0 or 1. Here's an example of how to do this: ArgMax[{3 x + 5 y + z, (x + y + z == 1 && 0 <= x <= 1 && 0 <= y <= 1 && 0 ...

2

I think there are few issues with what you're attempting to do: Fitting 6 parameters ($a$, $\rho$, $\phi$, $\psi$, $r$, and the error variance) to just 12 data points is usually not enlightening. (This is not to say that obtaining more data is easy or even possible to do.) The parameters estimates for $\rho$, $\phi$, and $\psi$ are not even close to being ...

2

Answering the original question in case someone else has a similar problem as this has been confirmed by Wolfram as a known issue. Setting the default printer on a Windows 10 machine to the Microsoft XPS Document Writer allowed Mathematica 12 to load on a Windows 10 machine again. I cleared caches etc but no avail, as soon as I set the default printer then ...

2

Note that this is NOT an answer to the question but rather a critique of the model and data considered. I get the same "acceptable" message with Mathematica 12.3 but there is a simple approach to avoid that message. There are really only 2 significant figures for the predictor variable. Subtracting 33322.98 from all predictor values gets one a ...

1

The problem is that Mathematica tries to evaluate f[x,0.5] before x is defined. This issue is explained clearly in this Wolfram support page. To force the function to only evaluate if it receives numerical values for both x and y: Clear[f]; f[x_?NumericQ, y_?NumericQ] := NIntegrate[(2 y - (x - a/2)^2), {a, 0, 1}] FindMaximum[{f[x, 0.5], 0 < x < 1}, {x, ...

Only top voted, non community-wiki answers of a minimum length are eligible