×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Are you an
Engineering professional?
Join Eng-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# Optimization, Abaqus CAE, Python scripting2

## Optimization, Abaqus CAE, Python scripting

(OP)
Hello,

I am doing a project, in which I am running the Abaqus simulation through python scripting.
I have some experimental values and I am using these values to get some initial assumption. Then these initial assumptions are used as input in Abaqus simulation, after running the simulation the output i.e. the simulated values are compared with the experimental one that I have used to generate the input.
So after comparing experimental and simulated values I will get some error. I want to reduce this error by optimizing the input values of the simulation.
I am not getting any idea, how to optimize these input values in order to reduce the error in a certain limit.
Please suggest the possible solution to this query.
I will definitely appreciate any suggestions.

Thank you.

### RE: Optimization, Abaqus CAE, Python scripting

You need to do optimization: https://en.wikipedia.org/wiki/Mathematical_optimiz....

That presumes you have some knowledge of the shape of the response surface so that you can determine which direction to go to find the set of values that minimizes your "error." Alternately, you can brute force it by using Monte Carlo or similar scattershot approaches, particularly if you do not know how the system function really behaves mathematically

This brief thread might point you to something: thread724-477642: How to minimize cost function define over volume omega using BFGS algorithm? BFGS https://en.wikipedia.org/wiki/Broyden%E2%80%93Flet... does not require derivatives

TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm

### RE: Optimization, Abaqus CAE, Python scripting

(OP)

I am a little bit confused, I want to clear something, My objective function is error = simulated - experimental and to reduce this error I want to optimize the input values (two input variables) for that I want to predict these values.
I had made an initial guess and had obtained the error for initial prediction, but now how should I predict the next input values.
So is there any way to predict these input values?

### RE: Optimization, Abaqus CAE, Python scripting

if your new inputs reduced the error by 50% then a next guess would be twice as big a change.

But that is usually a bad approach, you are much better off finding out the sensitivity to each of your scaling factors alone, and whether there is an additional effect of both together.

So, ideally you run a matric of

lo lo
hi hi
hi lo
lo hi

Of course in practice we don't know how close we are to the peak, so the level of factor chosen may skip past the local optimum. So, given runs are cheap,and our time is not, we'd run the full 9 element matrix of L M H for each factor.

Cheers

Greg Locock

New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Close Box

# Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!