Issue with Solver to make a function zero by changing two parameters

Mosen87

New Member
Joined
Mar 9, 2020
Messages
36
Hello
I have a bunch of equations connected with a function that must be zero only by changing two parameters (these parameters affect the equations). In Data tab I use Solver and set objective to vale of zero by changing the two variables using GRG nonlinear. When I press solve, It seems it cannot solve it and makes one of the variables to zero.
Is there a way so I tell the solver not use zero during solving?
how can I solve this issue?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Out of curiosity, could you check File > Options > Advanced, and then scroll to "When calculating this workbook" and see whether the "Set precision as displayed" option is checked? I've encountered situations where if it is checked, Solver won't return a meaningful result.
 
Upvote 0
It would help if you post the file, so we can see the model.
 
Upvote 0
This is part of the code I attach here. My question is how can I make output of each line to see what exactly the line refers to? for example in the following, I need to know what is the value for "ActiveCell.Offset(donum, 0)"? Is there any command I can add to output each line? Thanks
Sub Opter()
'Application.ScreenUpdating = False
'Call Module1.Iterations
Do While IsEmpty(ActiveCell.Offset(donum, 0)) = False
If mini = 1 Then
Call selecterMini
Else
Call selecter
End If
Set changev = Selection
ActiveCell.Offset(off, 0).Select
 
Upvote 0

Forum statistics

Threads
1,215,430
Messages
6,124,846
Members
449,194
Latest member
HellScout

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top